decocms 4.97.0 → 4.97.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Bd2je-cB.js → AlertCircle-C4BWLdJ4.js} +1 -1
- package/dist/client/assets/{AreaChart-DkKq49Dt.js → AreaChart-2lzk5ej3.js} +1 -1
- package/dist/client/assets/{ArrowRight-B3m2pN9y.js → ArrowRight-qJlbKSrg.js} +1 -1
- package/dist/client/assets/{ArrowUp-BX_bEaFr.js → ArrowUp-BVYSfKPB.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CjNCKllv.js → ArrowUpRight-CZ2fIDWv.js} +1 -1
- package/dist/client/assets/{Check-D2tgQYUH.js → Check-CymDPtaz.js} +1 -1
- package/dist/client/assets/{CheckCircle-CBRH3j7M.js → CheckCircle-CeUlzZCm.js} +1 -1
- package/dist/client/assets/{ChevronDown-fdV9phBI.js → ChevronDown-B6-w9q8W.js} +1 -1
- package/dist/client/assets/{ChevronRight-BwJinQig.js → ChevronRight-DEIr6kW5.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cp7VgDYd.js → ChevronUp-C_eomkpm.js} +1 -1
- package/dist/client/assets/{Copy01-DKnyVR5P.js → Copy01-R8AR2-1c.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dzuqk0dy.js → DotsVertical-C3MnHRz8.js} +1 -1
- package/dist/client/assets/{Eye-DCD7YeTq.js → Eye-CE-cR8Oa.js} +1 -1
- package/dist/client/assets/{FilterLines-ZJaYu41j.js → FilterLines-D4J8LYhW.js} +1 -1
- package/dist/client/assets/{Globe01-DAdWNRRf.js → Globe01-hVg4-cH5.js} +1 -1
- package/dist/client/assets/{Globe04-jH-buQSM.js → Globe04-D5VJ_hkz.js} +1 -1
- package/dist/client/assets/{HardDrive-C6kdD_or.js → HardDrive-zN0Is6H-.js} +1 -1
- package/dist/client/assets/{Image01-BZrsIdRq.js → Image01-DG088yrA.js} +1 -1
- package/dist/client/assets/{Key01-C52Q4uIO.js → Key01-CHhJPyPs.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DnxqkwQW.js → LayoutLeft-C4fmYl61.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Wx2zOa0M.js → LinkExternal01-DuSi53Ey.js} +1 -1
- package/dist/client/assets/{Monitor01-C0a3JFIF.js → Monitor01-D09qwZZ1.js} +1 -1
- package/dist/client/assets/{Package-BMVPvtc2.js → Package-oKuIYsv6.js} +1 -1
- package/dist/client/assets/{Palette-CxniLd-o.js → Palette-DxnkmeGc.js} +1 -1
- package/dist/client/assets/{Play-w51jOoUp.js → Play-BMDEoRJl.js} +1 -1
- package/dist/client/assets/{Plus-4_6KGqAm.js → Plus-D7pYKUsO.js} +1 -1
- package/dist/client/assets/{SearchLg-C__tBoev.js → SearchLg-C42MXEKt.js} +1 -1
- package/dist/client/assets/{SearchMd-Bjx-Ezhm.js → SearchMd-CP6wLgs6.js} +1 -1
- package/dist/client/assets/{Settings02-BrCvCp5i.js → Settings02-BbDm-Ne4.js} +1 -1
- package/dist/client/assets/{Shield01-qenJwry0.js → Shield01-CjiZhLxU.js} +1 -1
- package/dist/client/assets/{Star01-DTaYFGW8.js → Star01-DZ_3ux8i.js} +1 -1
- package/dist/client/assets/{Stars01-B0-XrNtW.js → Stars01-JDxcV7AF.js} +1 -1
- package/dist/client/assets/{Stars02-BgeAl4Qn.js → Stars02-CmhbeIDG.js} +1 -1
- package/dist/client/assets/{Sun-hd0x8f6o.js → Sun-DoaIj1xZ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D-4Z1b7Y.js → SwitchHorizontal01-CRibS_Zy.js} +1 -1
- package/dist/client/assets/{Tool01-tywbntXa.js → Tool01-DMTzqx5i.js} +1 -1
- package/dist/client/assets/{Tool02-Wk4yDDov.js → Tool02-DGUi9uKr.js} +1 -1
- package/dist/client/assets/{Trash01-BsXCUP-i.js → Trash01-D08DuleC.js} +1 -1
- package/dist/client/assets/{TrendUp01-D5MsRGsy.js → TrendUp01-B8sZVpOQ.js} +1 -1
- package/dist/client/assets/{Upload01-0iT0HtnC.js → Upload01-kJs7y_sS.js} +1 -1
- package/dist/client/assets/{User01-DtOpMbkt.js → User01-9n6b7RP1.js} +1 -1
- package/dist/client/assets/{Users01-DMwOx9vc.js → Users01-ZUQPsXZL.js} +1 -1
- package/dist/client/assets/{Users03-BmV8-N2x.js → Users03-CjXk-r9i.js} +1 -1
- package/dist/client/assets/{X-7dFtnplq.js → X-_ogr2Thx.js} +1 -1
- package/dist/client/assets/{XCircle-D8OccAXi.js → XCircle-Ojqttb4K.js} +1 -1
- package/dist/client/assets/{XClose-DSE0di54.js → XClose-C5Joak01.js} +1 -1
- package/dist/client/assets/{Zap-B6QwOIS_.js → Zap-CVYBhiGb.js} +1 -1
- package/dist/client/assets/{ZapSquare-17EeYv3v.js → ZapSquare-DuoaxuW6.js} +1 -1
- package/dist/client/assets/{ZoomOut-D9ex4vS_.js → ZoomOut-6evm9HJr.js} +1 -1
- package/dist/client/assets/{access-gate-DXoDxMVR.js → access-gate-CROyFBNQ.js} +1 -1
- package/dist/client/assets/{add-section-modal-BpHEb3lJ.js → add-section-modal-Dtdlek5H.js} +1 -1
- package/dist/client/assets/{agent-icon-CBgtoGMX.js → agent-icon-BBgjEkV0.js} +1 -1
- package/dist/client/assets/{agents-list-Dddq1Msf.js → agents-list-B2pe35L-.js} +1 -1
- package/dist/client/assets/{ai-providers-P0-WJLOi.js → ai-providers-C3odtRrl.js} +1 -1
- package/dist/client/assets/{alert-BByhYQNr.js → alert-Be-D3J6_.js} +1 -1
- package/dist/client/assets/{alert-dialog-fG87PlMu.js → alert-dialog-C2Bqhcmc.js} +1 -1
- package/dist/client/assets/{app-editor-B__C85yJ.js → app-editor-B3Nz7_-S.js} +1 -1
- package/dist/client/assets/{auth-BCM-D-sZ.js → auth-BU8dnKUI.js} +1 -1
- package/dist/client/assets/{auth-catchall-DYS0sjFC.js → auth-catchall-EXC_8C7r.js} +1 -1
- package/dist/client/assets/{auth-entry-COqZ5J_j.js → auth-entry-A7pTSp0P.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BB66Mf5-.js → auth-split-layout-C7ta0NVe.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-opWpqR2L.js → authenticate-and-persist-oauth-CXoW_w5W.js} +1 -1
- package/dist/client/assets/{automation-list-row-DqJTJ5Fa.js → automation-list-row-DRyf2mOg.js} +1 -1
- package/dist/client/assets/{automation-runs-BGHwnlly.js → automation-runs-U2tWrOBe.js} +1 -1
- package/dist/client/assets/{automations-BuTICk23.js → automations-Dd_qxkUk.js} +1 -1
- package/dist/client/assets/{autosend-BiG6REcJ.js → autosend-DZWEI21D.js} +1 -1
- package/dist/client/assets/{avatar-s4UNM9aY.js → avatar-UzWl0gwW.js} +1 -1
- package/dist/client/assets/{badge-PYjH4nYt.js → badge-Baw1FT-S.js} +1 -1
- package/dist/client/assets/{block-document-DBOT6_gI.js → block-document-Bo4gMMfS.js} +1 -1
- package/dist/client/assets/{brand-context-DnsRF8H_.js → brand-context-CG5th-2x.js} +1 -1
- package/dist/client/assets/{buckets-DLoORNrW.js → buckets-t5T7X7Zi.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DAAtpJSk.js → bulk-category-panel-BcmvRZsS.js} +1 -1
- package/dist/client/assets/{calendar-DfhmE6yT.js → calendar-CDlXA0Du.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bn9UXp0u.js → capability-load-error-KKdV9Q3l.js} +1 -1
- package/dist/client/assets/{card-C13XWIUN.js → card-zoyg0nhK.js} +1 -1
- package/dist/client/assets/{category-editor-wH2VReWY.js → category-editor-B3YyI2nN.js} +1 -1
- package/dist/client/assets/{chat-context-BZvh6FK5.js → chat-context-DUAqM3BL.js} +1 -1
- package/dist/client/assets/{checkbox-JZqnAqSI.js → checkbox-FmmsZFBn.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CNyVYBLj.js → cli-auth-success-C8PJDHgg.js} +1 -1
- package/dist/client/assets/{collection-detail-b0JpGJaa.js → collection-detail-DFnnR_Ed.js} +1 -1
- package/dist/client/assets/{collection-display-button-Du96-XRG.js → collection-display-button-O06UP2ip.js} +1 -1
- package/dist/client/assets/{collection-search-Kebpqtb4.js → collection-search-zof41lOw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-HnUWREyd.js → collection-table-wrapper-zYN8dorL.js} +1 -1
- package/dist/client/assets/{collection-tabs-dO0ZeTCK.js → collection-tabs-CgqHDjS1.js} +1 -1
- package/dist/client/assets/{command-BL0tcMY4.js → command-rWYtUR5c.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DBCFgq_L.js → commerce-onboarding-C645w_Mz.js} +1 -1
- package/dist/client/assets/{companions-core-CjZn6xwq.js → companions-core-sVa6Qw5T.js} +1 -1
- package/dist/client/assets/{connect-C4NXK81G.js → connect-D8942-MM.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CxFuoeWg.js → connect-desktop-dialog-DxGAbniS.js} +1 -1
- package/dist/client/assets/{connection-card-DLNA5dfk.js → connection-card-Dz1fwerM.js} +1 -1
- package/dist/client/assets/{connection-detail-CNKK0Uwv.js → connection-detail-DbXXUV2H.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-zSgiw1Xk.js → connection-form-helpers-C_ssxiIn.js} +1 -1
- package/dist/client/assets/{connections-ywSL5h_0.js → connections-CLeMA5sw.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CGqNc25D.js → decopilot-sse-pool-yan_82bi.js} +1 -1
- package/dist/client/assets/{dialog-DcrYgOGO.js → dialog-BhvH5UUY.js} +1 -1
- package/dist/client/assets/{domain-settings-B-LvwXmr.js → domain-settings-aEds6nPr.js} +1 -1
- package/dist/client/assets/{drawer-CiGyGKLQ.js → drawer-Clee3MiY.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DM7-k3j8.js → dropdown-menu-CJMe9yFA.js} +1 -1
- package/dist/client/assets/{empty-state-CAArqFDh.js → empty-state-YC9UCU06.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CiMQ0W6r.js → extract-connection-data-CRUudyOW.js} +1 -1
- package/dist/client/assets/{file-explorer-BA8hwotg.js → file-explorer-xqvaLr55.js} +1 -1
- package/dist/client/assets/{file-type-icon-CGnLW73f.js → file-type-icon-Wt0fW6Db.js} +1 -1
- package/dist/client/assets/{files-_XaDqqBq.js → files-PO932eji.js} +1 -1
- package/dist/client/assets/{form-D8CrSgsK.js → form-C5iFi2jZ.js} +1 -1
- package/dist/client/assets/{general-CCnrBM4Q.js → general-BcJnDe6x.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CFEcOj4_.js → github-repo-picker-C6QGF-3R.js} +1 -1
- package/dist/client/assets/{hooks-DG6vcDwp.js → hooks-2c34l0ae.js} +1 -1
- package/dist/client/assets/{index-DTSNAVPl.js → index-BWC7sFp_.js} +3 -3
- package/dist/client/assets/{index-DuYNJaWj.js → index-BZKh5x8S.js} +3 -3
- package/dist/client/assets/{index-CNx7TmSm.js → index-CAwc9d0_.js} +1 -1
- package/dist/client/assets/{index-P1IoZ6NC.js → index-CDy6bFpC.js} +1 -1
- package/dist/client/assets/{index-Ba2odJdj.js → index-CHtFJlMs.js} +1 -1
- package/dist/client/assets/{index-DD73prpg.js → index-D0YUP6cD.js} +1 -1
- package/dist/client/assets/{index-Cmqa6FM3.js → index-D3Egmveq.js} +1 -1
- package/dist/client/assets/{index-By-VEKbQ.js → index-D4LYwylo.js} +1 -1
- package/dist/client/assets/{index-sjUL2IyD.js → index-DXU-zOnf.js} +1 -1
- package/dist/client/assets/{index-CJX4eGgf.js → index-DdFBHhSl.js} +1 -1
- package/dist/client/assets/{index-bIZkhTe1.js → index-Dha2A-8H.js} +1 -1
- package/dist/client/assets/{index-CrKZ9p2A.js → index-DkqrfhJp.js} +23 -23
- package/dist/client/assets/{index-DrYcM1UE.js → index-_4qsQ90U.js} +1 -1
- package/dist/client/assets/{index-redirect-DBTS2dnX.js → index-redirect-Bsk6Qi8z.js} +1 -1
- package/dist/client/assets/{index-CWEbo3GV.js → index-uvwA1VZB.js} +1 -1
- package/dist/client/assets/{input-BdGe86G9.js → input-Dwgjs0Me.js} +1 -1
- package/dist/client/assets/{integration-icon-Big2E16J.js → integration-icon-9QXIMfmD.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CEz5eU9_.js → invite-member-dialog-CVfjEmwU.js} +1 -1
- package/dist/client/assets/{label-Cgcr_E3j.js → label-BK6sLMEK.js} +1 -1
- package/dist/client/assets/{layout-CSu6vzzu.js → layout-BL3WnOhQ.js} +1 -1
- package/dist/client/assets/{login-CZQugvTf.js → login-4_3ws-KS.js} +1 -1
- package/dist/client/assets/{mcp-oauth-6rvqQnMK.js → mcp-oauth-CCJ1wn2F.js} +1 -1
- package/dist/client/assets/{members-DUgIby8N.js → members-DBEjnYOy.js} +1 -1
- package/dist/client/assets/{monaco-editor-WB9KR-bw.js → monaco-editor-dhKEhAZV.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CK9Bvug8.js → monitoring-stats-row-BbVanr4F.js} +1 -1
- package/dist/client/assets/{multi-select-CLT6Otb5.js → multi-select-BR19LYze.js} +1 -1
- package/dist/client/assets/{oauth-callback-BHatfLrm.js → oauth-callback-Dvq5W1_N.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DqZYel48.js → oauth-callback-ai-provider-DbmJB-Oh.js} +1 -1
- package/dist/client/assets/{onboarding-DMLJT3my.js → onboarding-C8unJq0w.js} +1 -1
- package/dist/client/assets/{org-install-DRMyhX7p.js → org-install--ffHoCdp.js} +1 -1
- package/dist/client/assets/{org-layout-BS9LHZZk.js → org-layout-A8-sPwxd.js} +1 -1
- package/dist/client/assets/{organization-choice-CfBex73s.js → organization-choice-DtcC4Aee.js} +1 -1
- package/dist/client/assets/{orgs-Bk041H2L.js → orgs-DzN52fjP.js} +1 -1
- package/dist/client/assets/{page-seo-form-Cj05veVk.js → page-seo-form-CQiZ7Ngj.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Cr5zp_Qx.js +1 -0
- package/dist/client/assets/{popover-C-6PWHh6.js → popover-C35uikDd.js} +1 -1
- package/dist/client/assets/{post-editor-CE149ctZ.js → post-editor-Bhd63YjE.js} +1 -1
- package/dist/client/assets/{primitives-91hU5Z7J.js → primitives-BcOXHRHh.js} +1 -1
- package/dist/client/assets/{profile-CSuugqqH.js → profile-D7z_2Q-S.js} +1 -1
- package/dist/client/assets/project-app-view-ByXtWSB_.js +1 -0
- package/dist/client/assets/record-editor-CzCU9PKr.js +1 -0
- package/dist/client/assets/{redirect-editor-CJc-xlJz.js → redirect-editor-mfOHOEeZ.js} +1 -1
- package/dist/client/assets/registry-BeUPIlNQ.js +2 -0
- package/dist/client/assets/{registry-layout-FcawRTNb.js → registry-layout-BmXDtVhQ.js} +1 -1
- package/dist/client/assets/{reports-BVWlDfnl.js → reports-Ch_0FWNX.js} +1 -1
- package/dist/client/assets/{require-capability-C7jVivWE.js → require-capability-BudvvNO5.js} +1 -1
- package/dist/client/assets/{required-auth-layout-ChqmDC9P.js → required-auth-layout-BrqitDmd.js} +1 -1
- package/dist/client/assets/{reset-password-DG3AimDG.js → reset-password-BbJbIECY.js} +1 -1
- package/dist/client/assets/{roles-BLXYMTam.js → roles-BNyb78Mb.js} +1 -1
- package/dist/client/assets/{search-input-3Pf6pH5A.js → search-input-Ccf8_eUm.js} +1 -1
- package/dist/client/assets/{secrets-DCWr6KKP.js → secrets-BzFJ43TI.js} +1 -1
- package/dist/client/assets/{sections-editor-BcPEsHf_.js → sections-editor-CPeM3Vti.js} +1 -1
- package/dist/client/assets/{select-model-D1cAmSQ6.js → select-model-gBHKlDIm.js} +1 -1
- package/dist/client/assets/{select-B4JKzLFi.js → select-uGrWbEMz.js} +1 -1
- package/dist/client/assets/{self-tool-result-Di9p13rl.js → self-tool-result-mjYjIdAR.js} +1 -1
- package/dist/client/assets/{seo-editor-CKU5zr_C.js → seo-editor-C6FBYCud.js} +1 -1
- package/dist/client/assets/{settings-layout-D6hkxbEw.js → settings-layout-DenVW1V_.js} +1 -1
- package/dist/client/assets/{settings-section-_-AGRPcy.js → settings-section-B8q2fbg4.js} +1 -1
- package/dist/client/assets/{shell-controls-DV44OB4-.js → shell-controls-ChkZgq-8.js} +1 -1
- package/dist/client/assets/{shell-layout-Ch3Kdb2k.js → shell-layout-Mucs34pV.js} +1 -1
- package/dist/client/assets/{sidebar-CGmVx26g.js → sidebar-Dv_H2jfW.js} +1 -1
- package/dist/client/assets/{skeleton-DA69b9Wr.js → skeleton-CEv-QtIz.js} +1 -1
- package/dist/client/assets/{sso-C2xzeJdb.js → sso-NPY_FcmV.js} +1 -1
- package/dist/client/assets/{store-BMPIzDfO.js → store-DvLImTcn.js} +1 -1
- package/dist/client/assets/store-registry-DkfCPpEE.js +2 -0
- package/dist/client/assets/{studio-tools-DH6NZyDA.js → studio-tools-DqyzSTaT.js} +1 -1
- package/dist/client/assets/{switch-Q9YYQF-D.js → switch-BQHSVMIs.js} +1 -1
- package/dist/client/assets/{table-CfqsJ4MB.js → table-CbpS0yp4.js} +1 -1
- package/dist/client/assets/{tabs-BQ7JKlxy.js → tabs-_KEklsIu.js} +1 -1
- package/dist/client/assets/{textarea-C3kqBFbl.js → textarea-D2K-qpEF.js} +1 -1
- package/dist/client/assets/{toggle-group-nPxCt6Jp.js → toggle-group-DZVcSFOA.js} +1 -1
- package/dist/client/assets/{toolbar-Clo_BDTH.js → toolbar-cItkaIEN.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BX96U1pB.js → toolbar-icon-button-CmxseXuq.js} +1 -1
- package/dist/client/assets/{tooltip-B7vNT4Wn.js → tooltip-BmutXqWI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CXjJzhnn.js → use-ai-providers-Dp6I5-8x.js} +1 -1
- package/dist/client/assets/{use-api-keys-CXczE1W-.js → use-api-keys-BNoqdZYe.js} +1 -1
- package/dist/client/assets/{use-automations-Do-o7Cxb.js → use-automations-zyl04vpa.js} +1 -1
- package/dist/client/assets/{use-autosave-PZsHxMCn.js → use-autosave-DxV5LsO-.js} +1 -1
- package/dist/client/assets/{use-capability-Dq-tRDHt.js → use-capability-B1l0lZqa.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D7I7V0Ju.js → use-clock-tick-Bn8KTZQB.js} +1 -1
- package/dist/client/assets/{use-connection-izdZyOnV.js → use-connection-Db71aL_l.js} +1 -1
- package/dist/client/assets/{use-copy-1vVQnABW.js → use-copy-C9WCw_xQ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BSXse2zg.js → use-create-virtual-mcp-B9oPChqg.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CI2n3xys.js → use-debounced-autosave-CF3nwEaJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CT_IuBiB.js → use-debounced-value-CmRylZJc.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BF7U8JvI.js → use-deco-credits-CNlP8bKq.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B96U5En2.js → use-decopilot-events-JGRwbLqN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DBawRcCu.js → use-delete-connection-Bbxuu1s-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CUUSn6dj.js → use-deployment-admin-Dd6ryBl2.js} +1 -1
- package/dist/client/assets/{use-file-configs-C96LPzgL.js → use-file-configs-BNgMZFIO.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DY0dMYA5.js → use-infinite-scroll-C9CrduD1.js} +1 -1
- package/dist/client/assets/{use-join-requests-Csi6FNCn.js → use-join-requests-pdqNaIsl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D9hbRmwN.js → use-mcp-auth-status-B8Ydhf-J.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CK5FwAgP.js → use-mcp-client-BfCXL7Ea.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DH1nvHw6.js → use-mcp-tools-Dmvh1NTU.js} +1 -1
- package/dist/client/assets/{use-members-DPDLUppt.js → use-members-DHjn4tSi.js} +1 -1
- package/dist/client/assets/{use-mobile-CM0mnPGe.js → use-mobile-D2X5CiwU.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-01oF9O4S.js → use-navigate-to-agent-BRmHvfMz.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-hoHI_uNL.js → use-org-auth-client-Y3lH7Le-.js} +1 -1
- package/dist/client/assets/{use-org-sso-DN8pMR44.js → use-org-sso-C63dt58J.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BN8Am-n3.js → use-organization-roles-DAWTrk9s.js} +1 -1
- package/dist/client/assets/{use-organization-settings-AcZ5yHOA.js → use-organization-settings-DdWAi5Fa.js} +1 -1
- package/dist/client/assets/{use-registry-app-D12nnqOT.js → use-registry-app-DhV6qG8g.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BHwKxFqZ.js → use-registry-connections-B2LAq4ux.js} +1 -1
- package/dist/client/assets/{use-secrets-DD1VUOqY.js → use-secrets-C2rRzzPu.js} +1 -1
- package/dist/client/assets/{use-status-sounds-qQ1ObLCw.js → use-status-sounds-K0-7jWPp.js} +1 -1
- package/dist/client/assets/{use-view-mode-BzqQNiAl.js → use-view-mode-BSR8qosx.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-LDXRrLYA.js → use-virtual-mcp-B4R9Gg2E.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B4u61JTE.js +1 -0
- package/dist/client/assets/{useRouterState-Cn-TDa5k.js → useRouterState-DfytzR2p.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-S8U9qcL-.js +1 -0
- package/dist/client/assets/{users-0Wdq7G49.js → users-K-MwRA9n.js} +1 -1
- package/dist/client/assets/{variant-calendar-DRgjJZhh.js → variant-calendar-BVVOn_dO.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-xUW46ArQ.js → view-mode-toggle-B1kegHzc.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-4JLrA_Q_.js +0 -1
- package/dist/client/assets/project-app-view-CjPSyHhT.js +0 -1
- package/dist/client/assets/record-editor-CBqFE4_t.js +0 -1
- package/dist/client/assets/registry-Bn6rObQg.js +0 -2
- package/dist/client/assets/store-registry-DQmSIxU0.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BAbHKPGb.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BAfqpdKf.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-4_3ws-KS.js","assets/auth-entry-A7pTSp0P.js","assets/input-Dwgjs0Me.js","assets/retry-CErkP7V6.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-C7ta0NVe.js","assets/cli-auth-success-C8PJDHgg.js","assets/reset-password-BbJbIECY.js","assets/oauth-callback-Dvq5W1_N.js","assets/mcp-oauth-CCJ1wn2F.js","assets/auth-BU8dnKUI.js","assets/layout-BL3WnOhQ.js","assets/useRouterState-DfytzR2p.js","assets/required-auth-layout-BrqitDmd.js","assets/use-deployment-admin-Dd6ryBl2.js","assets/users-K-MwRA9n.js","assets/index-DdFBHhSl.js","assets/sidebar-Dv_H2jfW.js","assets/LayoutLeft-C4fmYl61.js","assets/use-mobile-D2X5CiwU.js","assets/X-_ogr2Thx.js","assets/tooltip-BmutXqWI.js","assets/collection-table-wrapper-zYN8dorL.js","assets/table-CbpS0yp4.js","assets/ArrowUp-BVYSfKPB.js","assets/empty-state-YC9UCU06.js","assets/search-input-Ccf8_eUm.js","assets/SearchMd-CP6wLgs6.js","assets/avatar-UzWl0gwW.js","assets/User01-9n6b7RP1.js","assets/badge-Baw1FT-S.js","assets/use-debounced-value-CmRylZJc.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/get-initials-D-f_fDFw.js","assets/orgs-DzN52fjP.js","assets/label-BK6sLMEK.js","assets/dialog-BhvH5UUY.js","assets/select-uGrWbEMz.js","assets/Check-CymDPtaz.js","assets/ChevronDown-B6-w9q8W.js","assets/ChevronUp-C_eomkpm.js","assets/shell-layout-Mucs34pV.js","assets/Users03-CjXk-r9i.js","assets/SearchLg-C42MXEKt.js","assets/Stars02-CmhbeIDG.js","assets/XClose-C5Joak01.js","assets/CheckCircle-CeUlzZCm.js","assets/FilterLines-D4J8LYhW.js","assets/Zap-CVYBhiGb.js","assets/autosend-DZWEI21D.js","assets/use-mcp-client-BfCXL7Ea.js","assets/hooks-2c34l0ae.js","assets/decopilot-sse-pool-yan_82bi.js","assets/tab-id-BijBBRwE.js","assets/use-organization-settings-DdWAi5Fa.js","assets/studio-tools-DqyzSTaT.js","assets/use-org-sso-C63dt58J.js","assets/onboarding-C8unJq0w.js","assets/organization-choice-DtcC4Aee.js","assets/switch-BQHSVMIs.js","assets/Globe04-D5VJ_hkz.js","assets/Palette-DxnkmeGc.js","assets/Upload01-kJs7y_sS.js","assets/commerce-onboarding-C645w_Mz.js","assets/self-tool-result-mjYjIdAR.js","assets/integration-icon-9QXIMfmD.js","assets/Tool02-DGUi9uKr.js","assets/agent-icon-BBgjEkV0.js","assets/AlertCircle-C4BWLdJ4.js","assets/Tool01-DMTzqx5i.js","assets/Settings02-BbDm-Ne4.js","assets/ArrowRight-qJlbKSrg.js","assets/ArrowUpRight-CZ2fIDWv.js","assets/TrendUp01-B8sZVpOQ.js","assets/ZapSquare-DuoaxuW6.js","assets/ZoomOut-6evm9HJr.js","assets/ChevronRight-DEIr6kW5.js","assets/DotsVertical-C3MnHRz8.js","assets/Copy01-R8AR2-1c.js","assets/Globe01-hVg4-cH5.js","assets/Eye-CE-cR8Oa.js","assets/Star01-DZ_3ux8i.js","assets/SwitchHorizontal01-CRibS_Zy.js","assets/HardDrive-zN0Is6H-.js","assets/Image01-DG088yrA.js","assets/Key01-CHhJPyPs.js","assets/XCircle-Ojqttb4K.js","assets/LinkExternal01-DuSi53Ey.js","assets/Monitor01-D09qwZZ1.js","assets/Sun-DoaIj1xZ.js","assets/Package-oKuIYsv6.js","assets/Play-BMDEoRJl.js","assets/Plus-D7pYKUsO.js","assets/Shield01-CjiZhLxU.js","assets/Stars01-JDxcV7AF.js","assets/Trash01-D08DuleC.js","assets/Users01-ZUQPsXZL.js","assets/companions-core-sVa6Qw5T.js","assets/extract-connection-data-CRUudyOW.js","assets/github-repo-scope-DjMZbiKa.js","assets/form-C5iFi2jZ.js","assets/provision-repo-scoped-github-connection-2iDn-wQ1.js","assets/authenticate-and-persist-oauth-CXoW_w5W.js","assets/dropdown-menu-CJMe9yFA.js","assets/reports-Ch_0FWNX.js","assets/reports-BWI6IDQq.css","assets/index-CDy6bFpC.js","assets/skeleton-CEv-QtIz.js","assets/use-virtual-mcp-B4R9Gg2E.js","assets/popover-C35uikDd.js","assets/alert-dialog-C2Bqhcmc.js","assets/chat-context-DUAqM3BL.js","assets/use-ai-providers-Dp6I5-8x.js","assets/location-BpLtHjTZ.js","assets/use-decopilot-events-JGRwbLqN.js","assets/toolbar-icon-button-CmxseXuq.js","assets/drawer-Clee3MiY.js","assets/use-registry-app-DhV6qG8g.js","assets/use-mcp-tools-Dmvh1NTU.js","assets/github-repo-picker-C6QGF-3R.js","assets/collection-search-zof41lOw.js","assets/use-connection-Db71aL_l.js","assets/use-navigate-to-agent-BRmHvfMz.js","assets/reusable-new-chat-CouMjkYR.js","assets/use-deco-credits-CNlP8bKq.js","assets/connection-card-Dz1fwerM.js","assets/use-registry-connections-B2LAq4ux.js","assets/useInfiniteQuery-B4u61JTE.js","assets/use-infinite-scroll-C9CrduD1.js","assets/connection-slug-eyAPH6o3.js","assets/card-zoyg0nhK.js","assets/textarea-D2K-qpEF.js","assets/connection-form-helpers-C_ssxiIn.js","assets/collection-tabs-CgqHDjS1.js","assets/useSuspenseInfiniteQuery-S8U9qcL-.js","assets/index-CHtFJlMs.js","assets/invite-member-dialog-CVfjEmwU.js","assets/use-org-auth-client-Y3lH7Le-.js","assets/use-organization-roles-DAWTrk9s.js","assets/use-copy-C9WCw_xQ.js","assets/use-api-keys-BNoqdZYe.js","assets/connect-desktop-dialog-DxGAbniS.js","assets/toggle-group-DZVcSFOA.js","assets/command-rWYtUR5c.js","assets/index-D0YUP6cD.js","assets/shell-controls-ChkZgq-8.js","assets/use-clock-tick-Bn8KTZQB.js","assets/toolbar-cItkaIEN.js","assets/index-DkqrfhJp.js","assets/automation-runs-U2tWrOBe.js","assets/use-members-DHjn4tSi.js","assets/use-automations-zyl04vpa.js","assets/file-type-icon-Wt0fW6Db.js","assets/monaco-editor-dhKEhAZV.js","assets/index-Dha2A-8H.js","assets/index-D3Egmveq.js","assets/calendar-CDlXA0Du.js","assets/AreaChart-2lzk5ej3.js","assets/index-BZKh5x8S.js","assets/tabs-_KEklsIu.js","assets/select-model-gBHKlDIm.js","assets/checkbox-FmmsZFBn.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-B8q2fbg4.js","assets/index-DXU-zOnf.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-K0-7jWPp.js","assets/use-capability-B1l0lZqa.js","assets/pt-BR-CLy76QW2.js","assets/use-debounced-autosave-CF3nwEaJ.js","assets/use-mcp-auth-status-B8Ydhf-J.js","assets/use-secrets-C2rRzzPu.js","assets/use-file-configs-BNgMZFIO.js","assets/automation-list-row-DRyf2mOg.js","assets/index-DDGTF8rc.css","assets/index-CAwc9d0_.js","assets/settings-layout-DenVW1V_.js","assets/use-join-requests-pdqNaIsl.js","assets/index-redirect-Bsk6Qi8z.js","assets/capability-load-error-KKdV9Q3l.js","assets/connections-CLeMA5sw.js","assets/collection-display-button-O06UP2ip.js","assets/view-mode-toggle-B1kegHzc.js","assets/use-delete-connection-Bbxuu1s-.js","assets/use-view-mode-BSR8qosx.js","assets/connection-detail-DbXXUV2H.js","assets/index-D4LYwylo.js","assets/index-uvwA1VZB.js","assets/use-create-virtual-mcp-B9oPChqg.js","assets/monitoring-stats-row-BbVanr4F.js","assets/collection-detail-DFnnR_Ed.js","assets/alert-Be-D3J6_.js","assets/index-_4qsQ90U.js","assets/require-capability-BudvvNO5.js","assets/access-gate-CROyFBNQ.js","assets/multi-select-BR19LYze.js","assets/general-BcJnDe6x.js","assets/domain-settings-aEds6nPr.js","assets/connect-D8942-MM.js","assets/brand-context-CG5th-2x.js","assets/ai-providers-C3odtRrl.js","assets/secrets-BzFJ43TI.js","assets/buckets-t5T7X7Zi.js","assets/members-DBEjnYOy.js","assets/role-color-Dn2tXDDF.js","assets/roles-BNyb78Mb.js","assets/sso-NPY_FcmV.js","assets/profile-D7z_2Q-S.js","assets/store-DvLImTcn.js","assets/registry-BeUPIlNQ.js","assets/store-registry-DkfCPpEE.js","assets/agents-list-B2pe35L-.js","assets/automations-Dd_qxkUk.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function j6(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(n,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const U6="modulepreload",$6=function(e){return"/"+e},PR={},lt=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){let l=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");r=l(o.map(f=>{if(f=$6(f),f in PR)return;PR[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":U6,h||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),h)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return r.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var bde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fy={exports:{}},ed={};var AR;function q6(){if(AR)return ed;AR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(n,r,i){var l=null;if(i!==void 0&&(l=""+i),r.key!==void 0&&(l=""+r.key),"key"in r){i={};for(var c in r)c!=="key"&&(i[c]=r[c])}else i=r;return r=i.ref,{$$typeof:e,type:n,key:l,ref:r!==void 0?r:null,props:i}}return ed.Fragment=t,ed.jsx=o,ed.jsxs=o,ed}var kR;function V6(){return kR||(kR=1,Fy.exports=q6()),Fy.exports}var P=V6(),By={exports:{}},zy={},jy={exports:{}},at={};var DR;function H6(){if(DR)return at;DR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function _(M,G,V){this.props=M,this.context=G,this.refs=E,this.updater=V||y}_.prototype.isReactComponent={},_.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,G,"setState")},_.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function w(){}w.prototype=_.prototype;function R(M,G,V){this.props=M,this.context=G,this.refs=E,this.updater=V||y}var x=R.prototype=new w;x.constructor=R,S(x,_.prototype),x.isPureReactComponent=!0;var T=Array.isArray;function A(){}var k={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function N(M,G,V){var L=V.ref;return{$$typeof:e,type:M,key:G,ref:L!==void 0?L:null,props:V}}function q(M,G){return N(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function $(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var U=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?$(""+M.key):G.toString(36)}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(A,A):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,L,j){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(J){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0;break;case h:return fe=M._init,H(fe(M._payload),G,V,L,j)}}if(fe)return j=j(M),fe=L===""?"."+W(M,0):L,T(j)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),H(j,G,V,"",function(Be){return Be})):j!=null&&(B(j)&&(j=q(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(U,"$&/")+"/")+fe)),G.push(j)),1;fe=0;var he=L===""?".":L+":";if(T(M))for(var Ee=0;Ee<M.length;Ee++)L=M[Ee],J=he+W(L,Ee),fe+=H(L,G,V,J,j);else if(Ee=v(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(L=M.next()).done;)L=L.value,J=he+W(L,Ee++),fe+=H(L,G,V,J,j);else if(J==="object"){if(typeof M.then=="function")return H(ae(M),G,V,L,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function Z(M,G,V){if(M==null)return M;var L=[],j=0;return H(M,L,"","",function(J){return G.call(V,J,j++)}),L}function te(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var le=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:Z,forEach:function(M,G,V){Z(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return Z(M,function(){G++}),G},toArray:function(M){return Z(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return at.Activity=m,at.Children=Q,at.Component=_,at.Fragment=o,at.Profiler=r,at.PureComponent=R,at.StrictMode=n,at.Suspense=d,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,at.__COMPILER_RUNTIME={__proto__:null,c:function(M){return k.H.useMemoCache(M)}},at.cache=function(M){return function(){return M.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var L=S({},M.props),j=M.key;if(G!=null)for(J in G.key!==void 0&&(j=""+G.key),G)!O.call(G,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&G.ref===void 0||(L[J]=G[J]);var J=arguments.length-2;if(J===1)L.children=V;else if(1<J){for(var fe=Array(J),he=0;he<J;he++)fe[he]=arguments[he+2];L.children=fe}return N(M.type,j,L)},at.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:i,_context:M},M},at.createElement=function(M,G,V){var L,j={},J=null;if(G!=null)for(L in G.key!==void 0&&(J=""+G.key),G)O.call(G,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(j[L]=G[L]);var fe=arguments.length-2;if(fe===1)j.children=V;else if(1<fe){for(var he=Array(fe),Ee=0;Ee<fe;Ee++)he[Ee]=arguments[Ee+2];j.children=he}if(M&&M.defaultProps)for(L in fe=M.defaultProps,fe)j[L]===void 0&&(j[L]=fe[L]);return N(M,J,j)},at.createRef=function(){return{current:null}},at.forwardRef=function(M){return{$$typeof:c,render:M}},at.isValidElement=B,at.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:te}},at.memo=function(M,G){return{$$typeof:f,type:M,compare:G===void 0?null:G}},at.startTransition=function(M){var G=k.T,V={};k.T=V;try{var L=M(),j=k.S;j!==null&&j(V,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(A,le)}catch(J){le(J)}finally{G!==null&&V.types!==null&&(G.types=V.types),k.T=G}},at.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},at.use=function(M){return k.H.use(M)},at.useActionState=function(M,G,V){return k.H.useActionState(M,G,V)},at.useCallback=function(M,G){return k.H.useCallback(M,G)},at.useContext=function(M){return k.H.useContext(M)},at.useDebugValue=function(){},at.useDeferredValue=function(M,G){return k.H.useDeferredValue(M,G)},at.useEffect=function(M,G){return k.H.useEffect(M,G)},at.useEffectEvent=function(M){return k.H.useEffectEvent(M)},at.useId=function(){return k.H.useId()},at.useImperativeHandle=function(M,G,V){return k.H.useImperativeHandle(M,G,V)},at.useInsertionEffect=function(M,G){return k.H.useInsertionEffect(M,G)},at.useLayoutEffect=function(M,G){return k.H.useLayoutEffect(M,G)},at.useMemo=function(M,G){return k.H.useMemo(M,G)},at.useOptimistic=function(M,G){return k.H.useOptimistic(M,G)},at.useReducer=function(M,G,V){return k.H.useReducer(M,G,V)},at.useRef=function(M){return k.H.useRef(M)},at.useState=function(M){return k.H.useState(M)},at.useSyncExternalStore=function(M,G,V){return k.H.useSyncExternalStore(M,G,V)},at.useTransition=function(){return k.H.useTransition()},at.version="19.2.6",at}var OR;function bs(){return OR||(OR=1,jy.exports=H6()),jy.exports}var IR;function G6(){if(IR)return zy;IR=1;var e=bs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return zy.c=function(t){return e.H.useMemoCache(t)},zy}var MR;function K6(){return MR||(MR=1,By.exports=G6()),By.exports}var no=K6(),Uy={exports:{}},td={},$y={exports:{}},qy={};var LR;function W6(){return LR||(LR=1,(function(e){function t(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<r(Q,Z))H[le]=Z,H[te]=Q,te=le;else break e}}function o(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var le=0,Q=H.length,M=Q>>>1;le<M;){var G=2*(le+1)-1,V=H[G],L=G+1,j=H[L];if(0>r(V,te))L<Q&&0>r(j,V)?(H[le]=j,H[L]=te,le=L):(H[le]=V,H[G]=te,le=G);else if(L<Q&&0>r(j,te))H[le]=j,H[L]=te,le=L;else break e}}return Z}function r(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],h=1,m=null,g=3,v=!1,y=!1,S=!1,E=!1,_=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function x(H){for(var Z=o(f);Z!==null;){if(Z.callback===null)n(f);else if(Z.startTime<=H)n(f),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=o(f)}}function T(H){if(S=!1,x(H),!y)if(o(d)!==null)y=!0,A||(A=!0,$());else{var Z=o(f);Z!==null&&ae(T,Z.startTime-H)}}var A=!1,k=-1,O=5,N=-1;function q(){return E?!0:!(e.unstable_now()-N<O)}function B(){if(E=!1,A){var H=e.unstable_now();N=H;var Z=!0;try{e:{y=!1,S&&(S=!1,w(k),k=-1),v=!0;var te=g;try{t:{for(x(H),m=o(d);m!==null&&!(m.expirationTime>H&&q());){var le=m.callback;if(typeof le=="function"){m.callback=null,g=m.priorityLevel;var Q=le(m.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){m.callback=Q,x(H),Z=!0;break t}m===o(d)&&n(d),x(H)}else n(d);m=o(d)}if(m!==null)Z=!0;else{var M=o(f);M!==null&&ae(T,M.startTime-H),Z=!1}}break e}finally{m=null,g=te,v=!1}Z=void 0}}finally{Z?$():A=!1}}}var $;if(typeof R=="function")$=function(){R(B)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=B,$=function(){W.postMessage(null)}}else $=function(){_(B,0)};function ae(H,Z){k=_(function(){H(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var te=g;g=Z;try{return H()}finally{g=te}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=g;g=H;try{return Z()}finally{g=te}},e.unstable_scheduleCallback=function(H,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,H={id:h++,callback:Z,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(f,H),o(d)===null&&H===o(f)&&(S?(w(k),k=-1):S=!0,ae(T,te-le))):(H.sortIndex=Q,t(d,H),y||v||(y=!0,A||(A=!0,$()))),H},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(H){var Z=g;return function(){var te=g;g=Z;try{return H.apply(this,arguments)}finally{g=te}}}})(qy)),qy}var NR;function Y6(){return NR||(NR=1,$y.exports=W6()),$y.exports}var Vy={exports:{}},En={};var FR;function Z6(){if(FR)return En;FR=1;var e=bs();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var n={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function i(d,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:m==null?null:""+m,children:d,containerInfo:f,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return En.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,En.createPortal=function(d,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(d,f,null,h)},En.flushSync=function(d){var f=l.T,h=n.p;try{if(l.T=null,n.p=2,d)return d()}finally{l.T=f,n.p=h,n.d.f()}},En.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,n.d.C(d,f))},En.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},En.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var h=f.as,m=c(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?n.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:v}):h==="script"&&n.d.X(d,{crossOrigin:m,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},En.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=c(f.as,f.crossOrigin);n.d.M(d,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&n.d.M(d)},En.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=c(h,f.crossOrigin);n.d.L(d,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},En.preloadModule=function(d,f){if(typeof d=="string")if(f){var h=c(f.as,f.crossOrigin);n.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else n.d.m(d)},En.requestFormReset=function(d){n.d.r(d)},En.unstable_batchedUpdates=function(d,f){return d(f)},En.useFormState=function(d,f,h){return l.H.useFormState(d,f,h)},En.useFormStatus=function(){return l.H.useHostTransitionStatus()},En.version="19.2.6",En}var BR;function dI(){if(BR)return Vy.exports;BR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vy.exports=Z6(),Vy.exports}var zR;function Q6(){if(zR)return td;zR=1;var e=Y6(),t=bs(),o=dI();function n(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function i(a){var s=a,u=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(u=s.return),a=s.return;while(a)}return s.tag===3?u:null}function l(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function c(a){if(a.tag===31){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function d(a){if(i(a)!==a)throw Error(n(188))}function f(a){var s=a.alternate;if(!s){if(s=i(a),s===null)throw Error(n(188));return s!==a?null:a}for(var u=a,p=s;;){var b=u.return;if(b===null)break;var C=b.alternate;if(C===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===C.child){for(C=b.child;C;){if(C===u)return d(b),a;if(C===p)return d(b),s;C=C.sibling}throw Error(n(188))}if(u.return!==p.return)u=b,p=C;else{for(var I=!1,z=b.child;z;){if(z===u){I=!0,u=b,p=C;break}if(z===p){I=!0,p=b,u=C;break}z=z.sibling}if(!I){for(z=C.child;z;){if(z===u){I=!0,u=C,p=b;break}if(z===p){I=!0,p=C,u=b;break}z=z.sibling}if(!I)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?a:s}function h(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=h(a),s!==null)return s;a=a.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),R=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function $(a){return a===null||typeof a!="object"?null:(a=B&&a[B]||a["@@iterator"],typeof a=="function"?a:null)}var U=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===U?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case _:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList";case N:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return"Portal";case R:return a.displayName||"Context";case w:return(a._context.displayName||"Context")+".Consumer";case x:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return s=a.displayName||null,s!==null?s:W(a.type)||"Memo";case O:s=a._payload,a=a._init;try{return W(a(s))}catch{}}return null}var ae=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function M(a){return{current:a}}function G(a){0>Q||(a.current=le[Q],le[Q]=null,Q--)}function V(a,s){Q++,le[Q]=a.current,a.current=s}var L=M(null),j=M(null),J=M(null),fe=M(null);function he(a,s){switch(V(J,s),V(j,a),V(L,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?Q1(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=Q1(s),a=J1(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(L),V(L,a)}function Ee(){G(L),G(j),G(J)}function Be(a){a.memoizedState!==null&&V(fe,a);var s=L.current,u=J1(s,a.type);s!==u&&(V(j,a),V(L,u))}function Y(a){j.current===a&&(G(L),G(j)),fe.current===a&&(G(fe),Zu._currentValue=te)}var ne,ve;function ie(a){if(ne===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+a+ve}var Ce=!1;function Re(a,s){if(!a||Ce)return"";Ce=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(ge){var me=ge}Reflect.construct(a,[],we)}else{try{we.call()}catch(ge){me=ge}a.call(we.prototype)}}else{try{throw Error()}catch(ge){me=ge}(we=a())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(ge){if(ge&&me&&typeof ge.stack=="string")return[ge.stack,me.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=p.DetermineComponentFrameRoot(),I=C[0],z=C[1];if(I&&z){var X=I.split(`
|
|
@@ -160,7 +160,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
160
160
|
display: none;
|
|
161
161
|
}
|
|
162
162
|
`})]})]})}function Oa({redirectTo:e}){const{redirectTo:t}=D.useContext(bt),[o,n]=D.useState(!1),{navigate:r,hooks:{useSession:i},onSessionChange:l}=D.useContext(bt),{refetch:c}=i();return{onSuccess:D.useCallback(async()=>{n(!0),await c?.(),l&&await l(),n(!1);const f=e||bl("redirectTo")||t;r(f)},[c,l,r,e,t]),isPending:o}}function Q3({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:o}=D.useContext(bt),n=t?.(),r=D.useRef(!1),{onSuccess:i}=Oa({redirectTo:e});return D.useEffect(()=>{if(!r.current){if(!o){r.current=!0,i();return}n||(r.current=!0,i())}},[n,o,i]),P.jsx(kn,{className:"animate-spin"})}function pE({className:e,containerClassName:t,...o}){return P.jsx(N3,{"data-slot":"input-otp",containerClassName:Pe("flex items-center gap-2 has-disabled:opacity-50",t),className:Pe("disabled:cursor-not-allowed",e),...o})}function vc({className:e,...t}){return P.jsx("div",{"data-slot":"input-otp-group",className:Pe("flex items-center",e),...t})}function nn({index:e,className:t,...o}){const n=D.useContext(L3),{char:r,hasFakeCaret:i,isActive:l}=n?.slots[e]??{};return P.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:Pe("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...o,children:[r,i&&P.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:P.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function fS({...e}){return P.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:P.jsx(QZ,{})})}function gE({otpSeparators:e=0}){return e===0?P.jsxs(vc,{children:[P.jsx(nn,{index:0}),P.jsx(nn,{index:1}),P.jsx(nn,{index:2}),P.jsx(nn,{index:3}),P.jsx(nn,{index:4}),P.jsx(nn,{index:5})]}):e===1?P.jsxs(P.Fragment,{children:[P.jsxs(vc,{children:[P.jsx(nn,{index:0}),P.jsx(nn,{index:1}),P.jsx(nn,{index:2})]}),P.jsx(fS,{}),P.jsxs(vc,{children:[P.jsx(nn,{index:3}),P.jsx(nn,{index:4}),P.jsx(nn,{index:5})]})]}):P.jsxs(P.Fragment,{children:[P.jsxs(vc,{children:[P.jsx(nn,{index:0}),P.jsx(nn,{index:1})]}),P.jsx(fS,{}),P.jsxs(vc,{children:[P.jsx(nn,{index:2}),P.jsx(nn,{index:3})]}),P.jsx(fS,{}),P.jsxs(vc,{children:[P.jsx(nn,{index:4}),P.jsx(nn,{index:5})]})]})}function eO(e){const[t,o]=D.useState();return t?P.jsx(kae,{...e,email:t}):P.jsx(Aae,{...e,setEmail:o})}function Aae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r,setEmail:i}){const l=gi(),{captchaRef:c,getCaptchaHeaders:d}=Nf({localization:n}),{authClient:f,localization:h,toast:m,localizeErrors:g}=D.useContext(bt);n={...h,...n};const v=Se({email:F().email({message:`${n.EMAIL} ${n.IS_INVALID}`})}),y=Pa({resolver:Aa(v),defaultValues:{email:""}});o=o||y.formState.isSubmitting,D.useEffect(()=>{r?.(y.formState.isSubmitting)},[y.formState.isSubmitting,r]);async function S({email:E}){const _={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await f.emailOtp.sendVerificationOtp({email:E,type:"sign-in",fetchOptions:_}),m({variant:"success",message:n.EMAIL_OTP_VERIFICATION_SENT}),i(E)}catch(w){m({variant:"error",message:No({error:w,localization:n,localizeErrors:g})})}}return P.jsx(Da,{...y,children:P.jsxs("form",{method:"POST",onSubmit:y.handleSubmit(S),noValidate:l,className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:y.control,name:"email",render:({field:E})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:n.EMAIL}),P.jsx(Ho,{children:P.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...E})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Ff,{ref:c,localization:n,action:"/email-otp/send-verification-otp"}),P.jsx(ao,{type:"submit",disabled:o,className:Pe("w-full",t?.button,t?.primaryButton),children:o?P.jsx(kn,{className:"animate-spin"}):n.EMAIL_OTP_SEND_ACTION})]})})}function kae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l,email:c}){const{authClient:d,localization:f,toast:h,localizeErrors:m}=D.useContext(bt);n={...f,...n};const{onSuccess:g,isPending:v}=Oa({redirectTo:i}),y=Se({code:F().min(1,{message:`${n.EMAIL_OTP} ${n.IS_REQUIRED}`}).min(6,{message:`${n.EMAIL_OTP} ${n.IS_INVALID}`})}),S=Pa({resolver:Aa(y),defaultValues:{code:""}});o=o||S.formState.isSubmitting||v,D.useEffect(()=>{l?.(S.formState.isSubmitting||v)},[S.formState.isSubmitting,v,l]);async function E({code:_}){try{await d.signIn.emailOtp({email:c,otp:_,fetchOptions:{throw:!0}}),await g()}catch(w){h({variant:"error",message:No({error:w,localization:n,localizeErrors:m})}),S.reset()}}return P.jsx(Da,{...S,children:P.jsxs("form",{method:"POST",onSubmit:S.handleSubmit(E),className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:S.control,name:"code",render:({field:_})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:n.EMAIL_OTP}),P.jsx(Ho,{children:P.jsx(pE,{..._,maxLength:6,onChange:w=>{_.onChange(w),w.length===6&&S.handleSubmit(E)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:P.jsx(gE,{otpSeparators:r})})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx("div",{className:"grid gap-4",children:P.jsxs(ao,{type:"submit",disabled:o,className:Pe(t?.button,t?.primaryButton),children:[o&&P.jsx(kn,{className:"animate-spin"}),n.EMAIL_OTP_VERIFY_ACTION]})})]})})}function Dae({onCancel:e,localization:t,className:o,classNames:n,otpSeparators:r,callbackURL:i,isSubmitting:l,redirectTo:c,setIsSubmitting:d}){const[f,h]=D.useState(!0),[m,g]=D.useState(30),{authClient:v,localization:y,toast:S,localizeErrors:E,navigate:_,basePath:w,viewPaths:R}=D.useContext(bt);t={...y,...t};const x=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:T,isPending:A}=Oa({redirectTo:c}),k=Se({code:F().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),O=Pa({resolver:Aa(k),defaultValues:{code:""}}),N=l||O.formState.isSubmitting||A;D.useEffect(()=>{d?.(O.formState.isSubmitting||A)},[O.formState.isSubmitting,A,d]),D.useEffect(()=>{if(m>0){const $=setTimeout(()=>g(m-1),1e3);return()=>clearTimeout($)}else h(!1)},[m]);async function q({code:$}){try{const U=await v.emailOtp.verifyEmail({email:x,otp:$,fetchOptions:{throw:!0}});"token"in U&&U.token?await T():(_(`${w}/${R.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(U){S({variant:"error",message:No({error:U,localization:t,localizeErrors:E})}),O.reset()}}async function B(){if(!f){h(!0),g(30);try{await v.emailOtp.sendVerificationOtp({email:x,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch($){S({variant:"error",message:No({error:$,localization:t,localizeErrors:E})}),h(!1),g(0)}}}return x?P.jsx(Da,{...O,children:P.jsxs("form",{method:"POST",onSubmit:O.handleSubmit(q),className:Pe("grid w-full gap-6",o,n?.base),children:[P.jsx(Oo,{control:O.control,name:"code",render:({field:$})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:n?.label,children:t.EMAIL_OTP}),P.jsx(Ho,{children:P.jsx(pE,{...$,maxLength:6,onChange:U=>{$.onChange(U),U.length===6&&O.handleSubmit(q)()},containerClassName:n?.otpInputContainer,className:n?.otpInput,disabled:N,children:P.jsx(gE,{otpSeparators:r})})}),P.jsx(Zo,{className:n?.error})]})}),P.jsxs("div",{className:"grid gap-4",children:[P.jsxs(ao,{type:"submit",disabled:N,className:Pe(n?.button,n?.primaryButton),children:[N&&P.jsx(kn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),P.jsx(ao,{type:"button",variant:"outline",onClick:B,disabled:f||N,className:Pe("w-full",n?.button),children:f?`${t.RESEND_VERIFICATION_EMAIL} (${m}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&P.jsx(ao,{type:"button",variant:"ghost",onClick:e,disabled:N,className:"w-full",children:t.CANCEL})]})]})}):P.jsx("div",{className:Pe("grid w-full gap-6",o),children:P.jsxs("div",{className:"text-center",children:[P.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),P.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function Oae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r}){const i=gi(),{captchaRef:l,getCaptchaHeaders:c,resetCaptcha:d}=Nf({localization:n}),{authClient:f,basePath:h,baseURL:m,localization:g,navigate:v,toast:y,viewPaths:S,localizeErrors:E}=D.useContext(bt);n={...g,...n};const _=Se({email:F().email({message:`${n.EMAIL} ${n.IS_INVALID}`}).min(1,{message:`${n.EMAIL} ${n.IS_REQUIRED}`})}),w=Pa({resolver:Aa(_),defaultValues:{email:""}});o=o||w.formState.isSubmitting,D.useEffect(()=>{r?.(w.formState.isSubmitting)},[w.formState.isSubmitting,r]);async function R({email:x}){try{const T={throw:!0,headers:await c("/forget-password")};await f.requestPasswordReset({email:x,redirectTo:`${m}${h}/${S.RESET_PASSWORD}`,fetchOptions:T}),y({variant:"success",message:n.FORGOT_PASSWORD_EMAIL}),v(`${h}/${S.SIGN_IN}${window.location.search}`)}catch(T){y({variant:"error",message:No({error:T,localization:n,localizeErrors:E})}),d()}}return P.jsx(Da,{...w,children:P.jsxs("form",{method:"POST",onSubmit:w.handleSubmit(R),noValidate:i,className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:w.control,name:"email",render:({field:x})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:n.EMAIL}),P.jsx(Ho,{children:P.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...x})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Ff,{ref:l,localization:n,action:"/forget-password"}),P.jsx(ao,{type:"submit",disabled:o,className:Pe("w-full",t?.button,t?.primaryButton),children:o?P.jsx(kn,{className:"animate-spin"}):n.FORGOT_PASSWORD_ACTION})]})})}function tO({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l}){const c=gi(),{captchaRef:d,getCaptchaHeaders:f,resetCaptcha:h}=Nf({localization:r}),{authClient:m,basePath:g,baseURL:v,persistClient:y,localization:S,redirectTo:E,viewPaths:_,toast:w,localizeErrors:R}=D.useContext(bt);r={...S,...r};const x=D.useCallback(()=>i||bl("redirectTo")||E,[i,E]),T=D.useCallback(()=>`${v}${o||(y?`${g}/${_.CALLBACK}?redirectTo=${encodeURIComponent(x())}`:x())}`,[o,y,g,_,v,x]),A=Se({email:F().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),k=Pa({resolver:Aa(A),defaultValues:{email:""}});n=n||k.formState.isSubmitting,D.useEffect(()=>{l?.(k.formState.isSubmitting)},[k.formState.isSubmitting,l]);async function O({email:N}){try{const q={throw:!0,headers:await f("/sign-in/magic-link")};await m.signIn.magicLink({email:N,callbackURL:T(),fetchOptions:q}),w({variant:"success",message:r.MAGIC_LINK_EMAIL}),k.reset()}catch(q){w({variant:"error",message:No({error:q,localization:r,localizeErrors:R})}),h()}}return P.jsx(Da,{...k,children:P.jsxs("form",{method:"POST",onSubmit:k.handleSubmit(O),noValidate:c,className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:k.control,name:"email",render:({field:N})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:r.EMAIL}),P.jsx(Ho,{children:P.jsx(na,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...N})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Ff,{ref:d,localization:r,action:"/sign-in/magic-link"}),P.jsx(ao,{type:"submit",disabled:n,className:Pe("w-full",t?.button,t?.primaryButton),children:n?P.jsx(kn,{className:"animate-spin"}):r.MAGIC_LINK_ACTION})]})})}function Iae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i}){const{authClient:l,localization:c,toast:d,localizeErrors:f}=D.useContext(bt);n={...c,...n};const{onSuccess:h,isPending:m}=Oa({redirectTo:r}),g=Se({code:F().min(1,{message:n.BACKUP_CODE_REQUIRED})}),v=Pa({resolver:Aa(g),defaultValues:{code:""}});o=o||v.formState.isSubmitting||m,D.useEffect(()=>{i?.(v.formState.isSubmitting||m)},[v.formState.isSubmitting,m,i]);async function y({code:S}){try{await l.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await h()}catch(E){d({variant:"error",message:No({error:E,localization:n,localizeErrors:f})}),v.reset()}}return P.jsx(Da,{...v,children:P.jsxs("form",{method:"POST",onSubmit:v.handleSubmit(y),className:Pe("grid gap-6",e,t?.base),children:[P.jsx(Oo,{control:v.control,name:"code",render:({field:S})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:n.BACKUP_CODE}),P.jsx(Ho,{children:P.jsx(na,{placeholder:n.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:o,...S})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(ao,{type:"submit",disabled:o,className:Pe(t?.button,t?.primaryButton),children:o?P.jsx(kn,{className:"animate-spin"}):n.RECOVER_ACCOUNT_ACTION})]})})}function Mae({className:e,classNames:t,localization:o,passwordValidation:n}){const r=D.useRef(!1),{authClient:i,basePath:l,credentials:c,localization:d,viewPaths:f,navigate:h,toast:m,localizeErrors:g}=D.useContext(bt),v=c?.confirmPassword,y=c?.passwordValidation;o={...d,...o},n={...y,...n};const S=Se({newPassword:of(n,{PASSWORD_REQUIRED:o.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}),confirmPassword:v?of(n,{PASSWORD_REQUIRED:o.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}):F().optional()}).refine(R=>!v||R.newPassword===R.confirmPassword,{message:o.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),E=Pa({resolver:Aa(S),defaultValues:{newPassword:"",confirmPassword:""}}),_=E.formState.isSubmitting;D.useEffect(()=>{if(r.current)return;r.current=!0;const x=new URLSearchParams(window.location.search).get("token");(!x||x==="INVALID_TOKEN")&&(h(`${l}/${f.SIGN_IN}${window.location.search}`),m({variant:"error",message:o.INVALID_TOKEN}))},[l,h,m,f,o]);async function w({newPassword:R}){try{const T=new URLSearchParams(window.location.search).get("token");await i.resetPassword({newPassword:R,token:T,fetchOptions:{throw:!0}}),m({variant:"success",message:o.RESET_PASSWORD_SUCCESS}),h(`${l}/${f.SIGN_IN}${window.location.search}`)}catch(x){m({variant:"error",message:No({error:x,localization:o,localizeErrors:g})}),E.reset()}}return P.jsx(Da,{...E,children:P.jsxs("form",{method:"POST",onSubmit:E.handleSubmit(w),className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:E.control,name:"newPassword",render:({field:R})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:o.NEW_PASSWORD}),P.jsx(Ho,{children:P.jsx(uf,{autoComplete:"new-password",className:t?.input,placeholder:o.NEW_PASSWORD_PLACEHOLDER,disabled:_,...R})}),P.jsx(Zo,{className:t?.error})]})}),v&&P.jsx(Oo,{control:E.control,name:"confirmPassword",render:({field:R})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:o.CONFIRM_PASSWORD}),P.jsx(Ho,{children:P.jsx(uf,{autoComplete:"new-password",className:t?.input,placeholder:o.CONFIRM_PASSWORD_PLACEHOLDER,disabled:_,...R})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(ao,{type:"submit",disabled:_,className:Pe("w-full",t?.button,t?.primaryButton),children:_?P.jsx(kn,{className:"animate-spin"}):o.RESET_PASSWORD_ACTION})]})})}function Lae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i,passwordValidation:l,callbackURL:c}){const d=gi(),{captchaRef:f,getCaptchaHeaders:h,resetCaptcha:m}=Nf({localization:n}),{authClient:g,basePath:v,credentials:y,localization:S,viewPaths:E,navigate:_,toast:w,Link:R,localizeErrors:x,emailVerification:T}=D.useContext(bt),A=y?.rememberMe,k=y?.username,O=y?.passwordValidation;n={...S,...n},l={...O,...l};const{onSuccess:N,isPending:q}=Oa({redirectTo:r}),B=Se({email:k?F().min(1,{message:`${n.USERNAME} ${n.IS_REQUIRED}`}):F().email({message:`${n.EMAIL} ${n.IS_INVALID}`}),password:of(l,n),rememberMe:It().optional()}),$=Pa({resolver:Aa(B),defaultValues:{email:"",password:"",rememberMe:!A}});o=o||$.formState.isSubmitting||q,D.useEffect(()=>{i?.($.formState.isSubmitting||q)},[$.formState.isSubmitting,q,i]);async function U({email:W,password:ae,rememberMe:H}){var Z;try{let te={};if(k&&!QY(W)){const le={throw:!0,headers:await h("/sign-in/username")};te=await g.signIn.username({username:W,password:ae,rememberMe:H,fetchOptions:le,callbackURL:c})}else{const le={throw:!0,headers:await h("/sign-in/email")};te=await g.signIn.email({email:W,password:ae,rememberMe:H,fetchOptions:le,callbackURL:c})}te.twoFactorRedirect?_(`${v}/${E.TWO_FACTOR}${window.location.search}`):await N()}catch(te){$.resetField("password"),m(),w({variant:"error",message:No({error:te,localization:n,localizeErrors:x})}),T?.otp&&((Z=te?.error)==null?void 0:Z.code)==="EMAIL_NOT_VERIFIED"&&_(`${v}/${E.EMAIL_VERIFICATION}?email=${encodeURIComponent(W)}`)}}return P.jsx(Da,{...$,children:P.jsxs("form",{method:"POST",onSubmit:$.handleSubmit(U),noValidate:d,className:Pe("grid w-full gap-6",e,t?.base),children:[P.jsx(Oo,{control:$.control,name:"email",render:({field:W})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:k?n.USERNAME:n.EMAIL}),P.jsx(Ho,{children:P.jsx(na,{autoComplete:k?"username":"email",className:t?.input,type:k?"text":"email",placeholder:k?n.SIGN_IN_USERNAME_PLACEHOLDER:n.EMAIL_PLACEHOLDER,disabled:o,...W})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Oo,{control:$.control,name:"password",render:({field:W})=>P.jsxs(Io,{children:[P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx(Mo,{className:t?.label,children:n.PASSWORD}),y?.forgotPassword&&P.jsx(R,{className:Pe("text-sm hover:underline",t?.forgotPasswordLink),href:`${v}/${E.FORGOT_PASSWORD}${d?window.location.search:""}`,children:n.FORGOT_PASSWORD_LINK})]}),P.jsx(Ho,{children:P.jsx(uf,{autoComplete:"current-password",className:t?.input,placeholder:n.PASSWORD_PLACEHOLDER,disabled:o,...W})}),P.jsx(Zo,{className:t?.error})]})}),A&&P.jsx(Oo,{control:$.control,name:"rememberMe",render:({field:W})=>P.jsxs(Io,{className:"flex",children:[P.jsx(Ho,{children:P.jsx(hE,{checked:W.value,onCheckedChange:W.onChange,disabled:o})}),P.jsx(Mo,{children:n.REMEMBER_ME})]})}),P.jsx(Ff,{ref:f,localization:n,action:"/sign-in/email"}),P.jsx(ao,{type:"submit",disabled:o,className:Pe("w-full",t?.button,t?.primaryButton),children:o?P.jsx(kn,{className:"animate-spin"}):n.SIGN_IN_ACTION})]})})}function Nae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){var d,f,h,m,g,v;const y=gi(),{captchaRef:S,getCaptchaHeaders:E,resetCaptcha:_}=Nf({localization:r}),{additionalFields:w,authClient:R,basePath:x,baseURL:T,credentials:A,localization:k,nameRequired:O,persistClient:N,redirectTo:q,signUp:B,viewPaths:$,navigate:U,toast:W,avatar:ae,localizeErrors:H,emailVerification:Z}=D.useContext(bt),te=A?.confirmPassword,le=A?.username,Q=A?.usernameRequired??!0,M=A?.passwordValidation,G=B?.fields;r={...k,...r},c={...M,...c};const V=D.useRef(null),[L,j]=D.useState(null),[J,fe]=D.useState(!1),he=D.useCallback(()=>i||bl("redirectTo")||q,[i,q]),Ee=D.useCallback(()=>`${T}${o||(N?`${x}/${$.CALLBACK}?redirectTo=${encodeURIComponent(he())}`:he())}`,[o,N,x,$,T,he]),{onSuccess:Be,isPending:Y}=Oa({redirectTo:i}),ne={email:F().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:of(c,r),name:G?.includes("name")&&O?F().min(1,{message:`${r.NAME} ${r.IS_REQUIRED}`}):F().optional(),image:F().optional(),username:le&&Q?F().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):F().optional(),confirmPassword:te?of(c,{PASSWORD_REQUIRED:r.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:r.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:r.PASSWORD_TOO_LONG,INVALID_PASSWORD:r.INVALID_PASSWORD}):F().optional()},ve={};if(G)for(const Oe of G){if(Oe==="name"||Oe==="image")continue;const De=w?.[Oe];if(!De)continue;let Ue;De.type==="number"?Ue=De.required?YC(K=>K?Number(K):void 0,mt({message:((d=De.errorMessage)==null?void 0:d.invalid)??`${De.label} ${r.IS_INVALID}`})):zM({message:((f=De.errorMessage)==null?void 0:f.invalid)??`${De.label} ${r.IS_INVALID}`}).optional():De.type==="boolean"?Ue=De.required?bP({message:((h=De.errorMessage)==null?void 0:h.invalid)??`${De.label} ${r.IS_INVALID}`}).refine(K=>K===!0,{message:((m=De.errorMessage)==null?void 0:m.required)??`${De.label} ${r.IS_REQUIRED}`}):bP({message:((g=De.errorMessage)==null?void 0:g.invalid)??`${De.label} ${r.IS_INVALID}`}).optional():Ue=De.required?F().min(1,((v=De.errorMessage)==null?void 0:v.required)??`${De.label} ${r.IS_REQUIRED}`):F().optional(),ve[Oe]=Ue}const ie=Se(ne).extend(ve).refine(Oe=>te?Oe.password===Oe.confirmPassword:!0,{message:r.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),Ce={email:"",password:"",...te&&{confirmPassword:""},...G?.includes("name")?{name:""}:{},...le?{username:""}:{},...G?.includes("image")&&ae?{image:""}:{}};if(G)for(const Oe of G){if(Oe==="name"||Oe==="image")continue;const De=w?.[Oe];De&&(Ce[Oe]=De.type==="boolean"?!1:"")}const Re=Pa({resolver:Aa(ie),defaultValues:Ce});n=n||Re.formState.isSubmitting||Y,D.useEffect(()=>{l?.(Re.formState.isSubmitting||Y)},[Re.formState.isSubmitting,Y,l]);const tt=async Oe=>{if(ae){fe(!0);try{const De=await qre(Oe,crypto.randomUUID(),ae.size,ae.extension);let Ue;ae.upload?Ue=await ae.upload(De):Ue=await Hre(De),Ue?(j(Ue),Re.setValue("image",Ue)):(j(null),Re.setValue("image",""))}catch(De){console.error(De),W({variant:"error",message:No({error:De,localization:r,localizeErrors:H})})}fe(!1)}},nt=()=>{j(null),Re.setValue("image","")},$e=()=>{var Oe;return(Oe=V.current)==null?void 0:Oe.click()};async function Qe({email:Oe,password:De,name:Ue,username:K,confirmPassword:oe,image:se,...Te}){var Ae,ke;try{for(const[yt,Rt]of Object.entries(Te)){const St=w?.[yt];if(St?.validate&&typeof Rt=="string"&&!await St.validate(Rt)){Re.setError(yt,{message:((Ae=St.errorMessage)==null?void 0:Ae.validate)??((ke=St.errorMessage)==null?void 0:ke.invalid)??`${St.label} ${r.IS_INVALID}`});return}}const Me={throw:!0,headers:await E("/sign-up/email")},Xe={};K!==void 0&&(!Q&&(K===null||K===""||typeof K=="string"&&K.trim()==="")||(Xe.username=K)),se!==void 0&&(Xe.image=se);const et=await R.signUp.email({email:Oe,password:De,name:Ue||"",...Xe,...Te,callbackURL:Ee(),fetchOptions:Me});"token"in et&&et.token?await Be():Z?.otp?U(`${x}/${$.EMAIL_VERIFICATION}?email=${encodeURIComponent(Oe)}`):(U(`${x}/${$.SIGN_IN}${window.location.search}`),W({variant:"success",message:r.SIGN_UP_EMAIL}))}catch(Me){W({variant:"error",message:No({error:Me,localization:r,localizeErrors:H})}),Re.resetField("password"),Re.resetField("confirmPassword"),_()}}return P.jsx(Da,{...Re,children:P.jsxs("form",{method:"POST",onSubmit:Re.handleSubmit(Qe),noValidate:y,className:Pe("grid w-full gap-6",e,t?.base),children:[G?.includes("image")&&ae&&P.jsxs(P.Fragment,{children:[P.jsx("input",{ref:V,accept:"image/*",disabled:J,hidden:!0,type:"file",onChange:Oe=>{var De;const Ue=(De=Oe.target.files)==null?void 0:De.item(0);Ue&&tt(Ue),Oe.target.value=""}}),P.jsx(Oo,{control:Re.control,name:"image",render:()=>P.jsxs(Io,{children:[P.jsx(Mo,{children:r.AVATAR}),P.jsxs("div",{className:"flex items-center gap-4",children:[P.jsxs(Gre,{children:[P.jsx(Kre,{asChild:!0,children:P.jsx(ao,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:P.jsx(Qre,{isPending:J,className:"size-16",user:L?{name:Re.watch("name"),email:Re.watch("email"),image:L}:null,localization:r})})}),P.jsxs(Wre,{align:"start",onCloseAutoFocus:Oe=>Oe.preventDefault(),children:[P.jsxs(XD,{onClick:$e,disabled:J,children:[P.jsx(KZ,{}),r.UPLOAD_AVATAR]}),L&&P.jsxs(XD,{onClick:nt,disabled:J,variant:"destructive",children:[P.jsx(XZ,{}),r.DELETE_AVATAR]})]})]}),P.jsxs(ao,{type:"button",variant:"outline",onClick:$e,disabled:J,children:[J&&P.jsx(kn,{className:"animate-spin"}),r.UPLOAD]})]}),P.jsx(Zo,{})]})})]}),G?.includes("name")&&P.jsx(Oo,{control:Re.control,name:"name",render:({field:Oe})=>P.jsxs(Io,{children:[P.jsxs(Mo,{className:t?.label,children:[r.NAME,!O&&P.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),P.jsx(Ho,{children:P.jsx(na,{autoComplete:"name",className:t?.input,placeholder:r.NAME_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),P.jsx(Zo,{className:t?.error})]})}),le&&P.jsx(Oo,{control:Re.control,name:"username",render:({field:Oe})=>P.jsxs(Io,{children:[P.jsxs(Mo,{className:t?.label,children:[r.USERNAME,!Q&&P.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),P.jsx(Ho,{children:P.jsx(na,{autoComplete:"username",className:t?.input,placeholder:r.USERNAME_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Oo,{control:Re.control,name:"email",render:({field:Oe})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:r.EMAIL}),P.jsx(Ho,{children:P.jsx(na,{autoComplete:"email",className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Oo,{control:Re.control,name:"password",render:({field:Oe})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:r.PASSWORD}),P.jsx(Ho,{children:P.jsx(uf,{autoComplete:"new-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...Oe,value:Oe.value})}),P.jsx(Zo,{className:t?.error})]})}),te&&P.jsx(Oo,{control:Re.control,name:"confirmPassword",render:({field:Oe})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:r.CONFIRM_PASSWORD}),P.jsx(Ho,{children:P.jsx(uf,{autoComplete:"new-password",className:t?.input,placeholder:r.CONFIRM_PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...Oe,value:Oe.value})}),P.jsx(Zo,{className:t?.error})]})}),G?.filter(Oe=>Oe!=="name"&&Oe!=="image").map(Oe=>{const De=w?.[Oe];return De?De.type==="boolean"?P.jsx(Oo,{control:Re.control,name:Oe,render:({field:Ue})=>P.jsxs(Io,{className:"flex",children:[P.jsx(Ho,{children:P.jsx(hE,{checked:Ue.value,onCheckedChange:Ue.onChange,disabled:n})}),P.jsx(Mo,{className:t?.label,children:De.label}),P.jsx(Zo,{className:t?.error})]})},Oe):P.jsx(Oo,{control:Re.control,name:Oe,render:({field:Ue})=>P.jsxs(Io,{children:[P.jsx(Mo,{className:t?.label,children:De.label}),P.jsx(Ho,{children:De.type==="number"?P.jsx(na,{className:t?.input,type:"number",placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value}):De.multiline?P.jsx(Xre,{className:t?.input,placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value}):P.jsx(na,{className:t?.input,type:"text",placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value})}),P.jsx(Zo,{className:t?.error})]})},Oe):(console.error(`Additional field ${Oe} not found`),null)}),P.jsx(Ff,{ref:S,localization:r,action:"/sign-up/email"}),P.jsx(ao,{type:"submit",disabled:n,className:Pe("w-full",t?.button,t?.primaryButton),children:n?P.jsx(kn,{className:"animate-spin"}):r.SIGN_UP_ACTION})]})})}function Fae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l}){var c;const d=gi(),f=d?bl("totpURI"):null,h=D.useRef(!1),{authClient:m,basePath:g,hooks:{useSession:v},localization:y,twoFactor:S,viewPaths:E,toast:_,Link:w,localizeErrors:R}=D.useContext(bt);n={...y,...n};const{onSuccess:x,isPending:T}=Oa({redirectTo:i}),{data:A}=v(),k=(c=A?.user)==null?void 0:c.twoFactorEnabled,[O,N]=D.useState(S?.length===1?S[0]:null),[q,B]=D.useState(!1),[$,U]=D.useState(0),W=Se({code:F().min(1,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_REQUIRED}`}).min(6,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_INVALID}`}),trustDevice:It().optional()}),ae=Pa({resolver:Aa(W),defaultValues:{code:""}});o=o||ae.formState.isSubmitting||T,D.useEffect(()=>{l?.(ae.formState.isSubmitting||T)},[ae.formState.isSubmitting,T,l]),D.useEffect(()=>{O==="otp"&&$<=0&&!h.current&&(h.current=!0,H())},[O]),D.useEffect(()=>{if($<=0)return;const te=setTimeout(()=>{U(le=>le-1)},1e3);return()=>clearTimeout(te)},[$]);const H=async()=>{if(!(q||$>0)){try{B(!0),await m.twoFactor.sendOtp({fetchOptions:{throw:!0}}),U(60)}catch(te){_({variant:"error",message:No({error:te,localization:n,localizeErrors:R})}),te.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}h.current=!1,B(!1)}};async function Z({code:te,trustDevice:le}){try{await(O==="totp"?m.twoFactor.verifyTotp:m.twoFactor.verifyOtp)({code:te,trustDevice:le,fetchOptions:{throw:!0}}),await x(),A&&!k&&_({variant:"success",message:n?.TWO_FACTOR_ENABLED})}catch(Q){_({variant:"error",message:No({error:Q,localization:n,localizeErrors:R})}),ae.reset()}}return P.jsx(Da,{...ae,children:P.jsxs("form",{method:"POST",onSubmit:ae.handleSubmit(Z),className:Pe("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&f&&O==="totp"&&P.jsxs("div",{className:"space-y-3",children:[P.jsx(V3,{className:t?.label,children:n.TWO_FACTOR_TOTP_LABEL}),P.jsx(Nre,{className:Pe("border shadow-xs",t?.qrCode),value:f})]}),O!==null&&P.jsxs(P.Fragment,{children:[P.jsx(Oo,{control:ae.control,name:"code",render:({field:te})=>P.jsxs(Io,{children:[P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx(Mo,{className:t?.label,children:n.ONE_TIME_PASSWORD}),P.jsx(w,{className:Pe("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${E.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:n.FORGOT_AUTHENTICATOR})]}),P.jsx(Ho,{children:P.jsx(pE,{...te,maxLength:6,onChange:le=>{te.onChange(le),le.length===6&&ae.handleSubmit(Z)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:P.jsx(gE,{otpSeparators:r})})}),P.jsx(Zo,{className:t?.error})]})}),P.jsx(Oo,{control:ae.control,name:"trustDevice",render:({field:te})=>P.jsxs(Io,{className:"flex",children:[P.jsx(Ho,{children:P.jsx(hE,{checked:te.value,onCheckedChange:te.onChange,disabled:o,className:t?.checkbox})}),P.jsx(Mo,{className:t?.label,children:n.TRUST_DEVICE})]})})]}),P.jsxs("div",{className:"grid gap-4",children:[O!==null&&P.jsxs(ao,{type:"submit",disabled:o,className:Pe(t?.button,t?.primaryButton),children:[o&&P.jsx(kn,{className:"animate-spin"}),n.TWO_FACTOR_ACTION]}),O==="otp"&&S?.includes("otp")&&P.jsxs(ao,{type:"button",variant:"outline",onClick:H,disabled:$>0||q||o,className:Pe(t?.button,t?.outlineButton),children:[q?P.jsx(kn,{className:"animate-spin"}):P.jsx(Ik,{className:t?.icon}),n.RESEND_CODE,$>0&&` (${$})`]}),O!=="otp"&&S?.includes("otp")&&P.jsxs(ao,{type:"button",variant:"secondary",className:Pe(t?.button,t?.secondaryButton),onClick:()=>N("otp"),disabled:o,children:[P.jsx(Ik,{className:t?.icon}),n.SEND_VERIFICATION_CODE]}),O!=="totp"&&S?.includes("totp")&&P.jsxs(ao,{type:"button",variant:"secondary",className:Pe(t?.button,t?.secondaryButton),onClick:()=>N("totp"),disabled:o,children:[P.jsx(JZ,{className:t?.icon}),n.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function J3({redirectTo:e}){const t=D.useRef(!1),{authClient:o,basePath:n,viewPaths:r}=D.useContext(bt),{onSuccess:i}=Oa({redirectTo:e||`${n}/${r.SIGN_IN}`});return D.useEffect(()=>{t.current||(t.current=!0,o.signOut().finally(i))},[o,i]),P.jsx(kn,{className:"animate-spin"})}function Bae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,pathname:i,redirectTo:l,view:c,otpSeparators:d=0,setIsSubmitting:f}){const{basePath:h,credentials:m,localization:g,magicLink:v,emailOTP:y,signUp:S,twoFactor:E,viewPaths:_,replace:w}=D.useContext(bt),R=!!S;if(r={...g,...r},D.useEffect(()=>{i&&!__(_,i)&&(console.error(`Invalid auth view: ${i}`),w(`${h}/${_.SIGN_IN}${window.location.search}`))},[i,_,h,w]),c=c||__(_,i)||"SIGN_IN",D.useEffect(()=>{let x=!1;c==="MAGIC_LINK"&&(!v||!m&&!y)&&(x=!0),c==="EMAIL_OTP"&&(!y||!m&&!v)&&(x=!0),c==="SIGN_UP"&&!R&&(x=!0),!m&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&(x=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&!E&&(x=!0),x&&w(`${h}/${_.SIGN_IN}${window.location.search}`)},[h,c,_,m,w,y,R,v,E]),c==="SIGN_OUT")return P.jsx(J3,{redirectTo:l});if(c==="CALLBACK")return P.jsx(Q3,{redirectTo:l});if(c==="SIGN_IN")return m?P.jsx(Lae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f,callbackURL:o}):v?P.jsx(tO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f}):y?P.jsx(eO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f}):null;if(c==="TWO_FACTOR")return P.jsx(Fae,{className:e,classNames:t,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:f});if(c==="RECOVER_ACCOUNT")return P.jsx(Iae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f});if(c==="MAGIC_LINK")return P.jsx(tO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f});if(c==="EMAIL_OTP")return P.jsx(eO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f});if(c==="EMAIL_VERIFICATION")return P.jsx(Dae,{className:e,classNames:t,callbackURL:o,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:f});if(c==="FORGOT_PASSWORD")return P.jsx(Oae,{className:e,classNames:t,localization:r,isSubmitting:n,setIsSubmitting:f});if(c==="RESET_PASSWORD")return P.jsx(Mae,{className:e,classNames:t,localization:r});if(c==="SIGN_UP")return R&&P.jsx(Nae,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:f})}function zae({className:e,classNames:t,localization:o}){const{localization:n,redirectTo:r,replace:i,toast:l}=D.useContext(bt),c=D.useMemo(()=>({...n,...o}),[n,o]),{data:d}=Ure(),[f,h]=D.useState(null);return D.useEffect(()=>{const m=bl("invitationId");if(!m){l({variant:"error",message:c.INVITATION_NOT_FOUND}),i(r);return}h(m)},[c.INVITATION_NOT_FOUND,l,i,r]),!d||!f?P.jsx(X3,{className:e,classNames:t}):P.jsx(jae,{className:e,classNames:t,localization:c,invitationId:f})}function jae({className:e,classNames:t,localization:o,invitationId:n}){var r;const{authClient:i,hooks:{useInvitation:l},localization:c,organization:d,redirectTo:f,replace:h,toast:m,localizeErrors:g}=D.useContext(bt),v=D.useMemo(()=>({...c,...o}),[c,o]),[y,S]=D.useState(!1),[E,_]=D.useState(!1),w=y||E,{data:R,isPending:x}=l({query:{id:n}}),T=D.useCallback(()=>bl("redirectTo")||f,[f]);D.useEffect(()=>{if(!(x||!n)){if(!R){m({variant:"error",message:v.INVITATION_NOT_FOUND}),h(f);return}(R.status!=="pending"||new Date(R.expiresAt)<new Date)&&(m({variant:"error",message:new Date(R.expiresAt)<new Date?v.INVITATION_EXPIRED:v.INVITATION_NOT_FOUND}),h(f))}},[R,x,n,v,m,h,f]);const A=async()=>{_(!0);try{await i.organization.acceptInvitation({invitationId:n,fetchOptions:{throw:!0}}),m({variant:"success",message:v.INVITATION_ACCEPTED||"Invitation accepted"}),h(T())}catch(B){m({variant:"error",message:No({error:B,localization:v,localizeErrors:g})}),_(!1)}},k=async()=>{S(!0);try{await i.organization.rejectInvitation({invitationId:n,fetchOptions:{throw:!0}}),m({variant:"success",message:v.INVITATION_REJECTED}),h(f)}catch(B){m({variant:"error",message:No({error:B,localization:v,localizeErrors:g})}),S(!1)}},q=((r=[...[{role:"owner",label:v.OWNER},{role:"admin",label:v.ADMIN},{role:"member",label:v.MEMBER}],...d?.customRoles||[]].find(B=>B.role===R?.role))==null?void 0:r.label)||R?.role;return R?P.jsxs(cf,{className:Pe("w-full max-w-sm",e,t?.base),children:[P.jsxs(dE,{className:Pe("justify-items-center text-center",t?.header),children:[P.jsx($3,{className:Pe("text-lg md:text-xl",t?.title),children:v.ACCEPT_INVITATION}),P.jsx(q3,{className:Pe("text-xs md:text-sm",t?.description),children:v.ACCEPT_INVITATION_DESCRIPTION})]}),P.jsxs(fE,{className:Pe("flex flex-col gap-6 truncate",t?.content),children:[P.jsxs(cf,{className:Pe("flex-row items-center p-4"),children:[P.jsx(Z3,{organization:{id:R.organizationId,name:R.organizationName,slug:R.organizationSlug,logo:R.organizationLogo,createdAt:new Date},localization:v}),P.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:q})]}),P.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[P.jsxs(ao,{variant:"outline",className:Pe(t?.button,t?.outlineButton),onClick:k,disabled:w,children:[y?P.jsx(kn,{className:"animate-spin"}):P.jsx(tQ,{}),v.REJECT]}),P.jsxs(ao,{className:Pe(t?.button,t?.primaryButton),onClick:A,disabled:w,children:[E?P.jsx(kn,{className:"animate-spin"}):P.jsx(OL,{}),v.ACCEPT]})]})]})]}):P.jsx(X3,{className:e,classNames:t})}var X3=({className:e,classNames:t,localization:o})=>P.jsxs(cf,{className:Pe("w-full max-w-sm",e,t?.base),children:[P.jsxs(dE,{className:Pe("justify-items-center",t?.header),children:[P.jsx(ii,{className:Pe("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),P.jsx(ii,{className:Pe("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),P.jsxs(fE,{className:Pe("flex flex-col gap-6 truncate",t?.content),children:[P.jsxs(cf,{className:Pe("flex-row items-center p-4"),children:[P.jsx(Z3,{isPending:!0,localization:o}),P.jsx(ii,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),P.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[P.jsx(ii,{className:"h-9 w-full"}),P.jsx(ii,{className:"h-9 w-full"})]})]})]});function oO({className:e,orientation:t="horizontal",decorative:o=!0,...n}){return P.jsx(jre,{"data-slot":"separator",decorative:o,orientation:t,className:Pe("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function Uae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:f,basePath:h}=D.useContext(bt);return P.jsxs(ao,{className:Pe("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${h}/${n==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[n==="EMAIL_OTP"?P.jsx(IL,{className:(l=e?.form)==null?void 0:l.icon}):P.jsx(ML,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="EMAIL_OTP"?o.PASSWORD:o.EMAIL_OTP]})}function $ae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:f,basePath:h,credentials:m}=D.useContext(bt);return P.jsxs(ao,{className:Pe("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${h}/${n==="MAGIC_LINK"||!m?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[n==="MAGIC_LINK"?P.jsx(IL,{className:(l=e?.form)==null?void 0:l.icon}):P.jsx(ML,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="MAGIC_LINK"?o.PASSWORD:o.MAGIC_LINK]})}function qae({localization:e,redirectTo:t}){const{authClient:o,localization:n,toast:r,localizeErrors:i}=D.useContext(bt),l=D.useRef(!1);e=D.useMemo(()=>({...n,...e}),[n,e]);const{onSuccess:c}=Oa({redirectTo:t});return D.useEffect(()=>{if(!l.current){l.current=!0;try{o.oneTap({fetchOptions:{throw:!0,onSuccess:c}})}catch(d){r({variant:"error",message:No({error:d,localization:e,localizeErrors:i})})}}},[o,e,i,c,r]),null}function Vae({classNames:e,isSubmitting:t,localization:o,redirectTo:n,setIsSubmitting:r}){var i,l;const{authClient:c,localization:d,toast:f,localizeErrors:h}=D.useContext(bt);o={...d,...o};const{onSuccess:m}=Oa({redirectTo:n}),g=async()=>{r?.(!0);try{const v=await c.signIn.passkey({fetchOptions:{throw:!0}});v?.error?(f({variant:"error",message:No({error:v.error,localization:o,localizeErrors:h})}),r?.(!1)):m()}catch(v){f({variant:"error",message:No({error:v,localization:o,localizeErrors:h})}),r?.(!1)}};return P.jsxs(ao,{className:Pe("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[P.jsx(ZZ,{}),o.SIGN_IN_WITH," ",o.PASSKEY]})}function nO({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,other:i,provider:l,redirectTo:c,socialLayout:d,setIsSubmitting:f}){var h,m,g,v;const{authClient:y,basePath:S,baseURL:E,persistClient:_,redirectTo:w,viewPaths:R,social:x,genericOAuth:T,toast:A,localizeErrors:k}=D.useContext(bt),O=D.useCallback(()=>c||bl("redirectTo")||w,[c,w]),N=D.useCallback(()=>`${E}${o||(_?`${S}/${R.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[o,_,S,R,E,O]),q=async()=>{f(!0);try{if(i){const B={providerId:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};T?.signIn?(await T.signIn(B),setTimeout(()=>{f(!1)},1e4)):await y.signIn.oauth2(B)}else{const B={provider:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};x?.signIn?(await x.signIn(B),setTimeout(()=>{f(!1)},1e4)):await y.signIn.social(B)}}catch(B){A({variant:"error",message:No({error:B,localization:r,localizeErrors:k})}),f(!1)}};return P.jsxs(ao,{className:Pe(d==="vertical"?"w-full":"grow",e,(h=t?.form)==null?void 0:h.button,(m=t?.form)==null?void 0:m.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:n,variant:"outline",onClick:q,children:[l.icon&&P.jsx(l.icon,{className:(v=t?.form)==null?void 0:v.icon}),d==="grid"&&l.name,d==="vertical"&&`${r.SIGN_IN_WITH} ${l.name}`]})}function Dfe({className:e,classNames:t,callbackURL:o,cardHeader:n,cardFooter:r,localization:i,path:l,pathname:c,redirectTo:d,socialLayout:f="auto",view:h,otpSeparators:m=0}){var g,v,y,S,E,_;const w=gi(),{basePath:R,credentials:x,localization:T,magicLink:A,emailOTP:k,oneTap:O,passkey:N,signUp:q,social:B,genericOAuth:$,viewPaths:U,Link:W}=D.useContext(bt);i={...T,...i};let ae=f;ae==="auto"&&(ae=x&&B?.providers&&B.providers.length>2?"horizontal":"vertical");const H=l??c?.split("/").pop(),Z=h||__(U,H)||"SIGN_IN",[te,le]=D.useState(!1);if(D.useEffect(()=>{const M=()=>le(!1);return window.addEventListener("pagehide",M),()=>{le(!1),window.removeEventListener("pagehide",M)}},[]),Z==="CALLBACK")return P.jsx(Q3,{redirectTo:d});if(Z==="SIGN_OUT")return P.jsx(J3,{redirectTo:d});if(Z==="ACCEPT_INVITATION")return P.jsx(zae,{className:e,classNames:t});const Q=!x&&!A&&!k?i.DISABLED_CREDENTIALS_DESCRIPTION:i[`${Z}_DESCRIPTION`];return P.jsxs(cf,{className:Pe("w-full max-w-sm",e,t?.base),children:[P.jsx(dE,{className:t?.header,children:n||P.jsxs(P.Fragment,{children:[P.jsx($3,{className:Pe("text-lg md:text-xl",t?.title),children:i[Z]}),Q&&P.jsx(q3,{className:Pe("text-xs md:text-sm",t?.description),children:Q})]})}),P.jsxs(fE,{className:Pe("grid gap-6",t?.content),children:[O&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(Z)&&P.jsx(qae,{localization:i,redirectTo:d}),(x||A||k)&&P.jsxs("div",{className:"grid gap-4",children:[P.jsx(Bae,{classNames:t?.form,callbackURL:o,isSubmitting:te,localization:i,otpSeparators:m,view:Z,redirectTo:d,setIsSubmitting:le}),A&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||k&&Z==="EMAIL_OTP")&&P.jsx($ae,{classNames:t,localization:i,view:Z,isSubmitting:te}),k&&(x&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||A&&["SIGN_IN","MAGIC_LINK"].includes(Z))&&P.jsx(Uae,{classNames:t,localization:i,view:Z,isSubmitting:te})]}),Z!=="RESET_PASSWORD"&&Z!=="EMAIL_VERIFICATION"&&(((g=B?.providers)==null?void 0:g.length)||((v=$?.providers)==null?void 0:v.length)||Z==="SIGN_IN"&&N)&&P.jsxs(P.Fragment,{children:[(x||A||k)&&P.jsxs("div",{className:Pe("flex items-center gap-2",t?.continueWith),children:[P.jsx(oO,{className:Pe("!w-auto grow",t?.separator)}),P.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:i.OR_CONTINUE_WITH}),P.jsx(oO,{className:Pe("!w-auto grow",t?.separator)})]}),P.jsxs("div",{className:"grid gap-4",children:[(((y=B?.providers)==null?void 0:y.length)||((S=$?.providers)==null?void 0:S.length))&&P.jsxs("div",{className:Pe("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(E=B?.providers)==null?void 0:E.map(M=>{const G=wae.find(V=>V.provider===M);return G?P.jsx(nO,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:G,redirectTo:d,setIsSubmitting:le,socialLayout:ae},M):null}),(_=$?.providers)==null?void 0:_.map(M=>P.jsx(nO,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:M,redirectTo:d,setIsSubmitting:le,socialLayout:ae,other:!0},M.provider))]}),N&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(Z)&&P.jsx(Vae,{classNames:t,isSubmitting:te,localization:i,redirectTo:d,setIsSubmitting:le})]})]})]}),r&&P.jsx(JD,{className:t?.footer,children:r}),x&&q&&P.jsxs(JD,{className:Pe("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.DONT_HAVE_AN_ACCOUNT:Z==="SIGN_UP"?i.ALREADY_HAVE_AN_ACCOUNT:P.jsx(HZ,{className:"size-3"}),Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"||Z==="SIGN_UP"?P.jsx(W,{className:Pe("text-foreground underline",t?.footerLink),href:`${R}/${U[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${w?window.location.search:""}`,children:P.jsx(ao,{variant:"link",size:"sm",className:Pe("px-0 text-foreground underline",t?.footerLink),children:Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.SIGN_UP:i.SIGN_IN})}):P.jsx(ao,{variant:"link",size:"sm",className:Pe("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:i.GO_BACK})]})]})}function Ofe({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{isPending:o}=t();return o?e:null}function Ife({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{data:o}=t();return o?e:null}function Mfe({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{data:o,isPending:n}=t();return!o&&!n?e:null}function Hae(e){const t=no.c(8),{children:o}=e,n=Ef();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={basePath:"/",pathMode:"slug"},t[0]=r):r=t[0];let i,l;t[1]!==n?(i=d=>n({to:d}),l=d=>n({to:d,replace:!0}),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c;return t[4]!==o||t[5]!==i||t[6]!==l?(c=P.jsx(UZ,{authClient:rv,redirectTo:"/",organization:r,navigate:i,replace:l,Link:Gae,children:o}),t[4]=o,t[5]=i,t[6]=l,t[7]=c):c=t[7],c}function Gae(e){const{href:t,className:o,children:n,...r}=e;return P.jsx(xf,{to:t,className:o,...r,children:n})}var pe=typeof window<"u"?window:void 0,Xo=typeof globalThis<"u"?globalThis:pe;typeof self>"u"&&(Xo.self=Xo),typeof File>"u"&&(Xo.File=function(){});var vr=Xo?.navigator,Ne=Xo?.document,pn=Xo?.location,H_=Xo?.fetch,G_=Xo!=null&&Xo.XMLHttpRequest&&"withCredentials"in new Xo.XMLHttpRequest?Xo.XMLHttpRequest:void 0,rO=Xo?.AbortController,Kae=Xo?.CompressionStream,Qn=vr?.userAgent,Ze=pe??{},aO="1.372.3",Bn={DEBUG:!1,LIB_VERSION:aO,LIB_NAME:"web",JS_SDK_VERSION:aO};function iO(e,t,o,n,r,i,l){try{var c=e[i](l),d=c.value}catch(f){return void o(f)}c.done?t(d):Promise.resolve(d).then(n,r)}function Nr(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function l(d){iO(i,n,r,l,c,"next",d)}function c(d){iO(i,n,r,l,c,"throw",d)}l(void 0)}))}}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ie.apply(null,arguments)}function e4(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function K_(){return K_=Nr((function*(e,t,o){t===void 0&&(t=!0);try{var n=new CompressionStream("gzip"),r=n.writable.getWriter(),i=r.write(new TextEncoder().encode(e)).then((()=>r.close())).catch((function(){var d=Nr((function*(f){try{yield r.abort(f)}catch{}throw f}));return function(f){return d.apply(this,arguments)}})()),l=new Response(n.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),K_.apply(this,arguments)}var Wae=["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"],sO=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return Wae.concat(t).some((n=>{var r=n.toLowerCase();return o.indexOf(r)!==-1}))},Yae=["$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 wt(e,t){return e.indexOf(t)!==-1}var yv=function(e){return e.trim()},W_=function(e){return e.replace(/^\$/,"")},t4=Object.prototype,o4=t4.hasOwnProperty,Sv=t4.toString,Ot=Array.isArray||function(e){return Sv.call(e)==="[object Array]"},ai=e=>typeof e=="function",Do=e=>e===Object(e)&&!Ot(e),Oc=e=>{if(Do(e)){for(var t in e)if(o4.call(e,t))return!1;return!0}return!1},ze=e=>e===void 0,So=e=>Sv.call(e)=="[object String]",Ip=e=>So(e)&&e.trim().length===0,yi=e=>e===null,Et=e=>ze(e)||yi(e),Ur=e=>Sv.call(e)=="[object Number]"&&e==e,Ec=e=>Ur(e)&&e>0,xa=e=>Sv.call(e)==="[object Boolean]",Zae=e=>e instanceof FormData,Qae=e=>wt(Yae,e);function n4(e){return e===null||typeof e!="object"}function pg(e,t){return{}.toString.call(e)==="[object "+t+"]"}function vE(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var Jae=[!0,"true",1,"1","yes"],mS=e=>wt(Jae,e),Xae=[!1,"false",0,"0","no"];function Ta(e,t,o,n,r){return t>o&&(n.warn("min cannot be greater than max."),t=o),Ur(e)?e>o?(n.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+r),Ta(r||o,t,o,n))}class eie{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Ta(t.bucketSize,0,100,t.Gt),this.Wt=Ta(t.refillRate,0,this.Ut,t.Gt),this.Xt=Ta(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var n=Math.floor((o-t.lastAccess)/this.Xt);n>0&&(t.tokens=Math.min(t.tokens+n*this.Wt,this.Ut),t.lastAccess=t.lastAccess+n*this.Xt)}consumeRateLimit(t){var o,n=Date.now(),r=String(t),i=this.$t[r];return i?this.Jt(i,n):this.$t[r]=i={tokens:this.Ut,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}}var fp,lO,hS,yr="Mobile",gg="iOS",ci="Android",Jc="Tablet",r4=ci+" "+Jc,a4="iPad",i4="Apple",s4=i4+" Watch",$d="Safari",Xc="BlackBerry",l4="Samsung",c4=l4+"Browser",u4=l4+" Internet",cl="Chrome",tie=cl+" OS",d4=cl+" "+gg,bE="Internet Explorer",f4=bE+" "+yr,yE="Opera",oie=yE+" Mini",SE="Edge",m4="Microsoft "+SE,qc="Firefox",h4=qc+" "+gg,df="Nintendo",ff="PlayStation",Vc="Xbox",p4=ci+" "+yr,g4=yr+" "+$d,Dd="Windows",Y_=Dd+" Phone",cO="Nokia",Z_="Ouya",v4="Generic",nie=v4+" "+yr.toLowerCase(),b4=v4+" "+Jc.toLowerCase(),Q_="Konqueror",Fn="(\\d+(\\.\\d+)?)",pS=new RegExp("Version/"+Fn),rie=new RegExp(Vc,"i"),aie=new RegExp(ff+" \\w+","i"),iie=new RegExp(df+" \\w+","i"),_E=new RegExp(Xc+"|PlayBook|BB10","i"),sie={"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"},y4=function(e,t){return t=t||"",wt(e," OPR/")&&wt(e,"Mini")?oie:wt(e," OPR/")?yE:_E.test(e)?Xc:wt(e,"IE"+yr)||wt(e,"WPDesktop")?f4:wt(e,c4)?u4:wt(e,SE)||wt(e,"Edg/")?m4:wt(e,"FBIOS")?"Facebook "+yr:wt(e,"UCWEB")||wt(e,"UCBrowser")?"UC Browser":wt(e,"CriOS")?d4:wt(e,"CrMo")||wt(e,cl)?cl:wt(e,ci)&&wt(e,$d)?p4:wt(e,"FxiOS")?h4:wt(e.toLowerCase(),Q_.toLowerCase())?Q_:((o,n)=>n&&wt(n,i4)||(function(r){return wt(r,$d)&&!wt(r,cl)&&!wt(r,ci)})(o))(e,t)?wt(e,yr)?g4:$d:wt(e,qc)?qc:wt(e,"MSIE")||wt(e,"Trident/")?bE:wt(e,"Gecko")?qc:""},lie={[f4]:[new RegExp("rv:"+Fn)],[m4]:[new RegExp(SE+"?\\/"+Fn)],[cl]:[new RegExp("("+cl+"|CrMo)\\/"+Fn)],[d4]:[new RegExp("CriOS\\/"+Fn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Fn)],[$d]:[pS],[g4]:[pS],[yE]:[new RegExp("(Opera|OPR)\\/"+Fn)],[qc]:[new RegExp(qc+"\\/"+Fn)],[h4]:[new RegExp("FxiOS\\/"+Fn)],[Q_]:[new RegExp("Konqueror[:/]?"+Fn,"i")],[Xc]:[new RegExp(Xc+" "+Fn),pS],[p4]:[new RegExp("android\\s"+Fn,"i")],[u4]:[new RegExp(c4+"\\/"+Fn)],[bE]:[new RegExp("(rv:|MSIE )"+Fn)],Mozilla:[new RegExp("rv:"+Fn)]},cie=function(e,t){var o=y4(e,t),n=lie[o];if(ze(n))return null;for(var r=0;n.length>r;r++){var i=e.match(n[r]);if(i)return parseFloat(i[i.length-2])}return null},uO=[[new RegExp(Vc+"; "+Vc+" (.*?)[);]","i"),e=>[Vc,e&&e[1]||""]],[new RegExp(df,"i"),[df,""]],[new RegExp(ff,"i"),[ff,""]],[_E,[Xc,""]],[new RegExp(Dd,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Y_,""];if(new RegExp(yr).test(t)&&!/IEMobile\b/.test(t))return[Dd+" "+yr,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var n=sie[o[1]]||"";return/arm/i.test(t)&&(n="RT"),[Dd,n]}return[Dd,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[gg,[e[3],e[4],e[5]||"0"].join(".")]:[gg,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ze(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ci+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ci+")","i"),e=>e&&e[2]?[ci,[e[2],e[3],e[4]||"0"].join(".")]:[ci,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[tie,""]],[/Linux|debian/i,["Linux",""]]],dO=function(e){return iie.test(e)?df:aie.test(e)?ff:rie.test(e)?Vc:new RegExp(Z_,"i").test(e)?Z_:new RegExp("("+Y_+"|WPDesktop)","i").test(e)?Y_:/iPad/.test(e)?a4:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?s4:_E.test(e)?Xc:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(cO,"i").test(e)?cO:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(yr).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ci:r4:new RegExp("(pda|"+yr+")","i").test(e)?nie:new RegExp(Jc,"i").test(e)&&!new RegExp(Jc+" pc","i").test(e)?b4:""},uie=e=>e instanceof Error,S4={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}},die=S4.info;function _4(e){if(xa(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Ot(e))return{arrayValue:{values:e.map((t=>_4(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function fO(e){var t=[];for(var o in e){var n=e[o];yi(n)||ze(n)||t.push({key:o,value:_4(n)})}return t}function fie(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return hS&&o.length===lO||(lO=o.length,hS=o.reduce(((n,r)=>{fp||(fp={});var i=fp[r];if(i)n[i[0]]=i[1];else for(var l=e(r),c=l.length-1;c>=0;c--){var d=l[c],f=d?.filename,h=t[r];if(f&&h){n[f]=h,fp[r]=[f,h];break}}return n}),{})),hS}}class mie{constructor(t,o,n){n===void 0&&(n=[]),this.coercers=t,this.stackParser=o,this.modifiers=n}buildFromUnknown(t,o){o===void 0&&(o={});var n=o&&o.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(l,n),$exception_level:"error"}}modifyFrames(t){var o=this;return Nr((function*(){for(var n of t)n.stacktrace&&n.stacktrace.frames&&Ot(n.stacktrace.frames)&&(n.stacktrace.frames=yield o.applyModifiers(n.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var n,r;return t.cause!=null&&(n=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(r=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Ie({},t,{cause:n,stack:r})}applyChunkIds(t,o){return t.map((n=>(n.filename&&o&&(n.chunk_id=o[n.filename]),n)))}applyCoercers(t,o){for(var n of this.coercers)if(n.match(t))return n.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Nr((function*(){var n=t;for(var r of o.modifiers)n=yield r(n);return n}))()}convertToExceptionList(t,o){var n,r,i,l={type:t.type,value:t.value,mechanism:{type:(n=o.type)!==null&&n!==void 0?n:"generic",handled:(r=o.handled)===null||r===void 0||r,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Ie({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:fie(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,n){n===void 0&&(n=0);var r=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Ie({},o,{syntheticException:n==0?o.syntheticException:void 0,mechanism:t,apply:i=>r(i,n),next:i=>r(i,n+1)})}}var eu="?";function J_(e,t,o,n,r){var i={platform:e,filename:t,function:o==="<anonymous>"?eu:o,in_app:!0};return ze(n)||(i.lineno=n),ze(r)||(i.colno=r),i}var C4=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:eu,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},hie=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,pie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gie=/\((\S*)(?::(\d+))(?::(\d+))\)/,vie=(e,t)=>{var o=hie.exec(e);if(o){var[,n,r,i]=o;return J_(t,n,eu,+r,+i)}var l=pie.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=gie.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,f]=C4(l[1]||eu,l[2]);return J_(t,f,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},bie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Sie=(e,t)=>{var o=bie.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var n=yie.exec(o[3]);n&&(o[1]=o[1]||"eval",o[3]=n[1],o[4]=n[2],o[5]="")}var r=o[3],i=o[1]||eu;return[i,r]=C4(i,r),J_(t,r,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},mO=/\(error: (.*)\)/;class _ie{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var n=So(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return pg(t,"DOMException")}isDOMError(t){return pg(t,"DOMError")}}class Cie{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var n=t.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(t){return t.stacktrace||t.stack||void 0}}class wie{constructor(){}match(t){return pg(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var n;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var Eie=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class xie{match(t){return typeof t=="string"}coerce(t,o){var n,[r,i]=this.getInfos(t);return{type:r??"Error",value:i??t,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var o="Error",n=t,r=t.match(Eie);return r&&(o=r[1],n=r[2]),[o,n]}}var Tie=["fatal","error","warning","log","info","debug"];function w4(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var n=o.length;n>0;n--){var r=o.slice(0,n).join(", ");if(t>=r.length)return n===o.length?r:r.length>t?r.slice(0,t)+"...":r}return""}class Rie{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var n,r=this.getErrorPropertyFromObject(t);return r?o.apply(r):{type:this.getType(t),value:this.getValue(t),stack:(n=o.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return vE(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+w4(t)}isSeverityLevel(t){return So(t)&&!Ip(t)&&Tie.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var n=t[o];if(uie(n))return n}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}}class Pie{match(t){return vE(t)}coerce(t,o){var n,r=t.constructor.name;return{type:r,value:r+" captured as exception with keys: "+w4(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Aie{match(t){return n4(t)}coerce(t,o){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class kie{match(t){return pg(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!vE(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var n,r=this.getUnhandledRejectionReason(t);return n4(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}:o.apply(r)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var vg="$message",bg="$timestamp",Die=new Set([vg,bg]),gS={enabled:!0,max_bytes:32768};function yg(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:gS.enabled,max_bytes:Iie(e.max_bytes,gS.max_bytes)}:Ie({},gS)}class Oie{constructor(t){this.Kt=[],this.Qt=0,this.Bt=yg(t)}setConfig(t){this.Bt=yg(t),this.er()}add(t){var o=(function(r){var i=(function(h){var m=new WeakSet;try{return JSON.stringify(h,((g,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(m.has(v))return"[Circular]";m.add(v)}return v}}))}catch{return}})(r);if(i)try{var l=JSON.parse(i);if(!Do(l))return;var c=l,d=c[vg],f=c[bg];return!So(d)||d.trim().length===0||!So(f)&&!Ur(f)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var n=(function(r){if(typeof TextEncoder<"u")return new TextEncoder().encode(r).length;for(var i=encodeURIComponent(r),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);n>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:n}),this.Qt+=n,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}}function Iie(e,t){if(!Ur(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var E4=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,n={C(r){if(pe&&(Bn.DEBUG||Ze.POSTHOG_DEBUG||o)&&!ze(pe.console)&&pe.console){for(var i=("__rrweb_original__"in pe.console[r])?pe.console[r].__rrweb_original__:pe.console[r],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];i(e,...c)}},info(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("log",...i)},warn(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("warn",...i)},error(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("error",...i)},critical(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(r){n.error("You must initialize PostHog before calling "+r)},createLogger:(r,i)=>E4(e+" "+r,i)};return n},Fe=E4("[PostHog.js]"),go=Fe.createLogger,Mie=go("[ExternalScriptsLoader]"),vS=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return Mie.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var n=Ne?.querySelectorAll("script");if(n){for(var r,i=function(){if(n[l].src===t){var d=n[l];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(f=>{d.__posthog_loading_callback_fired=!0,o(void 0,f)})),d.onerror=f=>o(f),{v:void 0})}},l=0;n.length>l;l++)if(r=i())return r.v}var c=()=>{if(!Ne)return o("document not found");var d=Ne.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=m=>{d.__posthog_loading_callback_fired=!0,o(void 0,m)},d.onerror=m=>o(m),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Ne.head.appendChild(d);else{var f,h=Ne.querySelectorAll("body > script");h.length>0?(f=h[0].parentNode)==null||f.insertBefore(d,h[0]):Ne.body.appendChild(d)}};Ne!=null&&Ne.body?c():Ne?.addEventListener("DOMContentLoaded",c)};Ze.__PosthogExtensions__=Ze.__PosthogExtensions__||{},Ze.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var n;if(e.config.__preview_external_dependency_versioned_paths)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var r="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}n=e.requestRouter.endpointFor("assets",r)}vS(e,n,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");vS(e,l,o)}},Ze.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var n=e.requestRouter.endpointFor("api",t);vS(e,n,o)};var x4="$people_distinct_id",Sg="$device_id",Od="__alias",Id="__timers",X_="$autocapture_disabled_server_side",eC="$heatmaps_enabled_server_side",tC="$exception_capture_enabled_server_side",oC="$error_tracking_suppression_rules",nC="$error_tracking_capture_extension_exceptions",rC="$web_vitals_enabled_server_side",CE="$dead_clicks_enabled_server_side",aC="$product_tours_enabled_server_side",iC="$web_vitals_allowed_metrics",Md="$session_recording_remote_config",T4="$replay_override_sampling",R4="$replay_override_linked_flag",P4="$replay_override_url_trigger",A4="$replay_override_event_trigger",_g="$sesid",wE="$session_is_sampled",Ic="$enabled_feature_flags",Mp="$active_feature_flags",Ld="$early_access_features",sC="$feature_flag_details",lC="$feature_flag_payloads",cC="$feature_flag_request_id",ri="$override_feature_flags",xc="$override_feature_flag_payloads",Nd="$stored_person_properties",Xs="$stored_group_properties",uC="$surveys",dC="$surveys_activated",Lp="ph_product_tours",qd="$flag_call_reported",fC="$flag_call_reported_session_id",mC="$feature_flag_errors",Cg="$feature_flag_evaluated_at",ta="$user_state",hC="$client_session_props",pC="$capture_rate_limit",gC="$initial_campaign_params",vC="$initial_referrer_info",wg="$initial_person_info",Eg="$epp",k4="__POSTHOG_TOOLBAR__",mp="$posthog_cookieless",D4="$sdk_debug_extensions_init_method",O4="$sdk_debug_extensions_init_time_ms",I4="$sdk_debug_recording_script_not_loaded",EE="PostHog loadExternalDependency extension not found.",el="on_reject",si="always",bc="anonymous",yc="identified",bC="identified_only",xg="visibilitychange",Tg="beforeunload",Tc="$pageview",bS="$pageleave",yS="$identify",hO="$groupidentify";function hp(e,t){Ot(e)&&e.forEach(t)}function fo(e,t){if(!Et(e))if(Ot(e))e.forEach(t);else if(Zae(e))e.forEach(((n,r)=>t(n,r)));else for(var o in e)o4.call(e,o)&&t(e[o],o)}var To=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];for(var r of o)for(var i in r)r[i]!==void 0&&(e[i]=r[i]);return e};function Np(e){for(var t=Object.keys(e),o=t.length,n=new Array(o);o--;)n[o]=[t[o],e[t[o]]];return n}var pO=function(e){try{return e()}catch{return}},Lie=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),n=0;t>n;n++)o[n]=arguments[n];return e.apply(this,o)}catch(r){Fe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Fe.critical(r)}}},xE=function(e){var t={};return fo(e,(function(o,n){(So(o)&&o.length>0||Ur(o))&&(t[n]=o)})),t},Nie=["herokuapp.com","vercel.app","netlify.app"];function Fie(e){var t=e?.hostname;if(!So(t))return!1;var o=t.split(".").slice(-2).join(".");for(var n of Nie)if(o===n)return!1;return!0}function Vo(e,t,o,n){var{capture:r=!1,passive:i=!0}=n??{};e?.addEventListener(t,o,{capture:r,passive:i})}function M4(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ur(e)&&isFinite(e)&&Math.floor(e)===e});class Rg{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,n,r){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(n)||!Number.isInteger(r)||0>t||0>o||0>n||0>r||t>0xffffffffffff||o>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new Rg(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Rg(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var n=this.bytes[o]-t.bytes[o];if(n!==0)return Math.sign(n)}return 0}}class Bie{constructor(){this.I=0,this.S=0,this.k=new zie}generate(){var t=this.generateOrAbort();if(ze(t)){this.I=0;var o=this.generateOrAbort();if(ze(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Rg.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 gO,L4=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};pe&&!ze(pe.crypto)&&crypto.getRandomValues&&(L4=e=>crypto.getRandomValues(e));class zie{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(L4(this.T),this.N=0),this.T[this.N++]}}var ns=()=>jie().toString(),jie=()=>(gO||(gO=new Bie)).generate(),vd="",Uie=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,wa={R:()=>!!Ne,B(e){Fe.error("cookieStore error: "+e)},O(e){if(Ne){try{for(var t=e+"=",o=Ne.cookie.split(";").filter((i=>i.length)),n=0;o.length>n;n++){for(var r=o[n];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return decodeURIComponent(r.substring(t.length,r.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(wa.O(e))||{}}catch{}return t},M(e,t,o,n,r){if(Ne)try{var i="",l="",c=(function(h,m){if(m){var g=(function(y,S){if(S===void 0&&(S=Ne),vd)return vd;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var E=y.split("."),_=Math.min(E.length,8),w="dmn_chk_"+ns();!vd&&_--;){var R=E.slice(_).join("."),x=w+"=1;domain=."+R+";path=/";S.cookie=x+";max-age=3",S.cookie.includes(w)&&(S.cookie=x+";max-age=0",vd=R)}return vd})(h);if(!g){var v=(y=>{var S=y.match(Uie);return S?S[0]:""})(h);v!==g&&Fe.info("Warning: cookie subdomain discovery mismatch",v,g),g=v}return g?"; domain=."+g:""}return""})(Ne.location.hostname,n);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),i="; expires="+d.toUTCString()}r&&(l="; secure");var f=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return f.length>3686.4&&Fe.warn("cookieStore warning: large cookie, len="+f.length),Ne.cookie=f,f}catch{return}},F(e,t){if(Ne!=null&&Ne.cookie)try{wa.M(e,"",-1,t)}catch{return}}},SS=null,yo={R(){if(!yi(SS))return SS;var e=!0;if(ze(pe))e=!1;else try{var t="__mplssupport__";yo.M(t,"xyz"),yo.O(t)!=='"xyz"'&&(e=!1),yo.F(t)}catch{e=!1}return e||Fe.error("localStorage unsupported; falling back to cookie store"),SS=e,e},B(e){Fe.error("localStorage error: "+e)},O(e){try{return pe?.localStorage.getItem(e)}catch(t){yo.B(t)}return null},Z(e){try{return JSON.parse(yo.O(e))||{}}catch{}return null},M(e,t){try{pe?.localStorage.setItem(e,JSON.stringify(t))}catch(o){yo.B(o)}},F(e){try{pe?.localStorage.removeItem(e)}catch(t){yo.B(t)}}},$ie=[Sg,"distinct_id",_g,wE,Eg,wg,ta],pp={},qie={R:()=>!0,B(e){Fe.error("memoryStorage error: "+e)},O:e=>pp[e]||null,Z:e=>pp[e]||null,M(e,t){pp[e]=t},F(e){delete pp[e]}},Zs=null,gn={R(){if(!yi(Zs))return Zs;if(Zs=!0,ze(pe))Zs=!1;else try{var e="__support__";gn.M(e,"xyz"),gn.O(e)!=='"xyz"'&&(Zs=!1),gn.F(e)}catch{Zs=!1}return Zs},B(e){Fe.error("sessionStorage error: ",e)},O(e){try{return pe?.sessionStorage.getItem(e)}catch(t){gn.B(t)}return null},Z(e){try{return JSON.parse(gn.O(e))||null}catch{}return null},M(e,t){try{pe?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){gn.B(o)}},F(e){try{pe?.sessionStorage.removeItem(e)}catch(t){gn.B(t)}}};class Vie{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===si||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===el}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:n}=this._instance.config;return n||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return mS(t)?1:wt(Xae,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?yo:wa;if(!this.ar||this.ar!==o){this.ar=o;var n=t==="localStorage"?wa:yo;n.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(mS(n.O(this.sr))),n.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[vr?.doNotTrack,vr?.msDoNotTrack,Ze.doNotTrack].some((t=>mS(t)))}}var gp=go("[Dead Clicks]"),Hie=()=>!0,Gie=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(CE)),n=e.instance.config.capture_dead_clicks;return xa(n)?n:!!Do(n)||o};class vO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,n){this.instance=t,this.isEnabled=o,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[CE]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(r=>{r?gp.error("failed to load script",r):t()}))}hr(){var t;if(Ne){if(!this.lr&&(t=Ze.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Do(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=Ze.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Ne),gp.info("starting...")}}else gp.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,gp.info("stopping..."))}}var _S=go("[SegmentIntegration]"),N4="posthog-js";function F4(e,t){var{organization:o,projectId:n,prefix:r,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,f,h,m,g;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],E=S.map((w=>Ie({},w,{stacktrace:w.stacktrace?Ie({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map((R=>Ie({},R,{platform:"web:javascript"})))}):void 0}))),_={$exception_message:((f=S[0])==null?void 0:f.value)||c.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:c.level,$exception_list:E,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((m=S[0])==null?void 0:m.value)||c.message,$sentry_exception_type:(g=S[0])==null?void 0:g.type,$sentry_tags:c.tags};return o&&n&&(_.$sentry_url=(r||"https://sentry.io/organizations/")+o+"/issues/?project="+n+"&query="+c.event_id),l&&((y=e.exceptions)==null||y.sendExceptionEvent(_)),c}}class Kie{constructor(t,o,n,r,i,l){this.name=N4,this.setupOnce=function(c){c(F4(t,{organization:o,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class bO{constructor(t){this.cr=(o,n,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Fe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:r}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var n,r=this.gr(t,o);return this.dr={pathname:(n=pe?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),r}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var n=this.dr;if(!n)return{$pageview_id:o};var r={$pageview_id:o,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:d,maxContentHeight:f,lastContentY:h,maxContentY:m}=i;if(!(ze(l)||ze(c)||ze(d)||ze(f)||ze(h)||ze(m))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),f=Math.ceil(f),h=Math.ceil(h),m=Math.ceil(m);var g=l>1?Ta(c/l,0,1,Fe):1,v=l>1?Ta(d/l,0,1,Fe):1,y=f>1?Ta(h/f,0,1,Fe):1,S=f>1?Ta(m/f,0,1,Fe):1;r=To(r,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:m,$prev_pageview_max_content_percentage:S})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),r}}var Wie={[x4]:{exposure:"hidden"},[Od]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Id]:{exposure:"hidden"},[X_]:{exposure:"event"},[eC]:{exposure:"hidden"},[tC]:{exposure:"event"},[oC]:{exposure:"hidden"},[nC]:{exposure:"event"},[rC]:{exposure:"event"},[CE]:{exposure:"event"},[aC]:{exposure:"hidden"},[iC]:{exposure:"event"},[Md]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[_g]:{exposure:"hidden"},[wE]:{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"},[Ic]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Do(e))return{};for(var t={},o=Object.keys(e),n=0;o.length>n;n++)t["$feature/"+o[n]]=e[o[n]];return t}},[Mp]:{exposure:"event"},[Ld]:{exposure:"hidden"},[sC]:{exposure:"hidden"},[lC]:{exposure:"event"},[cC]:{exposure:"event"},[ri]:{exposure:"event"},[xc]:{exposure:"hidden"},[Nd]:{exposure:"hidden"},[Xs]:{exposure:"hidden"},[uC]:{exposure:"hidden"},[dC]:{exposure:"event"},[Lp]:{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"},[qd]:{exposure:"hidden"},[fC]:{exposure:"hidden"},[mC]:{exposure:"hidden"},[Cg]:{exposure:"hidden"},[ta]:{exposure:"hidden"},[hC]:{exposure:"hidden"},[pC]:{exposure:"hidden"},[gC]:{exposure:"hidden"},[vC]:{exposure:"hidden"},[wg]:{exposure:"hidden"},[Eg]:{exposure:"hidden"},[T4]:{exposure:"event"},[R4]:{exposure:"event"},[P4]:{exposure:"event"},[A4]:{exposure:"event"},[D4]:{exposure:"event"},[O4]:{exposure:"event"},[I4]:{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"}},Yie=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Pg=e=>{var t=Ne?.createElement("a");return ze(t)?null:(t.href=e,t)},Ag=function(e,t){for(var o,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;n.length>r;r++){var i=n[r].split("=");if(i[0]===t){o=i;break}}if(!Ot(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Fe.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},mf=function(e,t,o){if(!e||!t||!t.length)return e;for(var n=e.split("#"),r=n[1],i=(n[0]||"").split("?"),l=i[1],c=i[0],d=(l||"").split("&"),f=[],h=0;d.length>h;h++){var m=d[h].split("=");Ot(m)&&(t.includes(m[0])?f.push(m[0]+"="+o):f.push(d[h]))}var g=c;return l!=null&&(g+="?"+f.join("&")),r!=null&&(g+="#"+r),g},kg=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},vp="https?://(.*)",tu=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Zie=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...tu],hf="<masked>",Qie=["li_fat_id"];function B4(e,t,o){if(!Ne)return{};var n,r=t?[...tu,...o||[]]:[],i=z4(mf(Ne.URL,r,hf),e),l=(n={},fo(Qie,(function(c){var d=wa.O(c);n[c]=d||null})),n);return To(l,i)}function z4(e,t){var o=Zie.concat(t||[]),n={};return fo(o,(function(r){var i=Ag(e,r);n[r]=i||null})),n}function j4(e){var t=(function(i){return i?i.search(vp+"google.([^/?]*)")===0?"google":i.search(vp+"bing.com")===0?"bing":i.search(vp+"yahoo.com")===0?"yahoo":i.search(vp+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",n={};if(!yi(t)){n.$search_engine=t;var r=Ne?Ag(Ne.referrer,o):"";r.length&&(n.ph_keyword=r)}return n}function yO(){return navigator.language||navigator.userLanguage}var Dg="$direct";function U4(){return Ne?.referrer||Dg}function $4(e,t){var o=e?[...tu,...t||[]]:[],n=pn?.href.substring(0,1e3);return{r:U4().substring(0,1e3),u:n?mf(n,o,hf):void 0}}function q4(e){var t,{r:o,u:n}=e,r={$referrer:o,$referring_domain:o==null?void 0:o==Dg?Dg:(t=Pg(o))==null?void 0:t.host};if(n){r.$current_url=n;var i=Pg(n);r.$host=i?.host,r.$pathname=i?.pathname;var l=z4(n);To(r,l)}if(o){var c=j4(o);To(r,c)}return r}function V4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Jie(){try{return new Date().getTimezoneOffset()}catch{return}}var Xie=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class CS{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Fe.info("Persistence loaded",t.persistence,Ie({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){Xie.indexOf(t.persistence.toLowerCase())===-1&&(Fe.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(r){r===void 0&&(r=[]);var i=[...$ie,...r];return Ie({},yo,{Z(l){try{var c={};try{c=wa.Z(l)||{}}catch{}var d=To(c,JSON.parse(yo.O(l)||"{}"));return yo.M(l,d),d}catch{}return null},M(l,c,d,f,h,m){try{yo.M(l,c,void 0,void 0,m);var g={};i.forEach((v=>{c[v]&&(g[v]=c[v])})),Object.keys(g).length&&wa.M(l,g,d,f,h,m)}catch(v){yo.B(v)}},F(l,c){try{pe?.localStorage.removeItem(l),wa.F(l,c)}catch(d){yo.B(d)}}})})(t.cookie_persisted_properties||[]),n=t.persistence.toLowerCase();return n==="localstorage"&&yo.R()?yo:n==="localstorage+cookie"&&o.R()?o:n==="sessionstorage"&&gn.R()?gn:n==="memory"?qie:n==="cookie"?wa:o.R()?o:wa}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var n=this.props[Cg];return!n||typeof n!="number"||Date.now()-n>o}properties(){var t={};return fo(this.props,((o,n)=>{var r=(i=>{var l=Wie[i];if(l)return l;for(var[c,d]of Yie)if(i.indexOf(c)===0)return d})(n);if(r?.exposure==="derived"){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(o,n===Ic?()=>this.wr():()=>!1))return;r.transformToEventProperties&&To(t,r.transformToEventProperties(o))}else r&&r.exposure!=="event"||(t[n]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=To({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,n){if(Do(t)){ze(o)&&(o="None"),this.Ir=ze(n)?this.kr:n;var r=!1;if(fo(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),r=!0)})),r)return this.save(),!0}return!1}register(t,o){if(Do(t)){this.Ir=ze(o)?this.kr:o;var n=!1;if(fo(t,((r,i)=>{t.hasOwnProperty(i)&&this.props[i]!==r&&(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=B4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Oc(xE(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Ne?.referrer)?j4(t):{})}update_referrer_info(){var t;this.register_once({$referrer:U4(),$referring_domain:Ne!=null&&Ne.referrer&&((t=Pg(Ne.referrer))==null?void 0:t.host)||Dg},void 0)}set_initial_person_info(){this.props[gC]||this.props[vC]||this.register_once({[wg]:$4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};fo([vC,gC],(l=>{var c=this.props[l];c&&fo(c,(function(d,f){t["$initial_"+W_(f)]=d}))}));var o,n,r=this.props[wg];if(r){var i=(o=q4(r),n={},fo(o,(function(l,c){n["$initial_"+W_(c)]=l})),n);To(t,i)}return t}safe_merge(t){return fo(this.props,(function(o,n){n in t||(t[n]=o)})),t}update_config(t,o,n){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var d=[...l].sort(),f=[...c].sort();return d.every(((h,m)=>h===f[m]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var r=this.br(t),i=this.props;this.clear(),this.nr=r,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var n=this.props[Id]||{};n[t]=o,this.Tr(Id,n),this.save()}remove_event_timer(t){var o=this.props[Id]||{},n=o[t];return ze(n)||(delete o[t],this.Tr(Id,o),this.save()),n}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var bd={Activation:"events",Cancellation:"cancelEvents"},wS={Popover:"popover",API:"api",Widget:"widget"},Fd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ES={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},yC={Popover:"popover",Inline:"inline"},ese={SHOWN:"product tour shown"},SO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},_O=go("[RateLimiter]");class tse{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var n=o.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((r=>{_O.info((r||"events")+" is quota limited."),this.serverLimits[r]=new Date().getTime()+6e4}))}catch(r){return void _O.warn('could not rate limit - continuing. Error: "'+r?.message+'"',{text:n})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,n,r;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),d=(o=(n=this.instance.persistence)==null?void 0:n.get_property(pC))!==null&&o!==void 0?o:{tokens:i,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>i&&(d.tokens=i);var f=1>d.tokens;return f||t||(d.tokens=Math.max(0,d.tokens-1)),!f||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=f,(r=this.instance.persistence)==null||r.set_property(pC,d),{isRateLimited:f,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var yd=go("[RemoteConfig]");class H4{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Ze._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.loadExternalDependency?(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return yd.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void yd.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return yd.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){yd.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Ne?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||yd.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var ya={GZipJS:"gzip-js",Base64:"base64"},jr=Uint8Array,tr=Uint16Array,ou=Uint32Array,TE=new jr([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]),RE=new jr([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]),CO=new jr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),G4=function(e,t){for(var o=new tr(31),n=0;31>n;++n)o[n]=t+=1<<e[n-1];var r=new ou(o[30]);for(n=1;30>n;++n)for(var i=o[n];o[n+1]>i;++i)r[i]=i-o[n]<<5|n;return[o,r]},K4=G4(TE,2),SC=K4[1];K4[0][28]=258,SC[258]=28;for(var wO=G4(RE,0)[1],W4=new tr(32768),mo=0;32768>mo;++mo){var Sc=(43690&mo)>>>1|(21845&mo)<<1;W4[mo]=((65280&(Sc=(61680&(Sc=(52428&Sc)>>>2|(13107&Sc)<<2))>>>4|(3855&Sc)<<4))>>>8|(255&Sc)<<8)>>>1}var Vd=function(e,t,o){for(var n=e.length,r=0,i=new tr(t);n>r;++r)++i[e[r]-1];var l,c=new tr(t);for(r=0;t>r;++r)c[r]=c[r-1]+i[r-1]<<1;for(l=new tr(n),r=0;n>r;++r)l[r]=W4[c[e[r]-1]++]>>>15-e[r];return l},ml=new jr(288);for(mo=0;144>mo;++mo)ml[mo]=8;for(mo=144;256>mo;++mo)ml[mo]=9;for(mo=256;280>mo;++mo)ml[mo]=7;for(mo=280;288>mo;++mo)ml[mo]=8;var Og=new jr(32);for(mo=0;32>mo;++mo)Og[mo]=5;var ose=Vd(ml,9),nse=Vd(Og,5),Y4=function(e){return(e/8>>0)+(7&e&&1)},Z4=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var n=new(e instanceof tr?tr:e instanceof ou?ou:jr)(o-t);return n.set(e.subarray(t,o)),n},oi=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8},Sd=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8,e[n+2]|=o>>>16},xS=function(e,t){for(var o=[],n=0;e.length>n;++n)e[n]&&o.push({s:n,f:e[n]});var r=o.length,i=o.slice();if(!r)return[new jr(0),0];if(r==1){var l=new jr(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(T,A){return T.f-A.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],f=0,h=1,m=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};h!=r-1;)c=o[o[m].f>o[f].f?f++:m++],d=o[f!=h&&o[m].f>o[f].f?f++:m++],o[h++]={s:-1,f:c.f+d.f,l:c,r:d};var g=i[0].s;for(n=1;r>n;++n)i[n].s>g&&(g=i[n].s);var v=new tr(g+1),y=_C(o[h-1],v,0);if(y>t){n=0;var S=0,E=y-t,_=1<<E;for(i.sort((function(T,A){return v[A.s]-v[T.s]||T.f-A.f}));r>n;++n){var w=i[n].s;if(t>=v[w])break;S+=_-(1<<y-v[w]),v[w]=t}for(S>>>=E;S>0;){var R=i[n].s;t>v[R]?S-=1<<t-v[R]++-1:++n}for(;n>=0&&S;--n){var x=i[n].s;v[x]==t&&(--v[x],++S)}y=t}return[new jr(v),y]},_C=function(e,t,o){return e.s==-1?Math.max(_C(e.l,t,o+1),_C(e.r,t,o+1)):t[e.s]=o},EO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new tr(++t),n=0,r=e[0],i=1,l=function(d){o[n++]=d},c=1;t>=c;++c)if(e[c]==r&&c!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(r),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(r);i=1,r=e[c]}return[o.subarray(0,n),t]},_d=function(e,t){for(var o=0,n=0;t.length>n;++n)o+=e[n]*t[n];return o},CC=function(e,t,o){var n=o.length,r=Y4(t+2);e[r]=255&n,e[r+1]=n>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var i=0;n>i;++i)e[r+i+4]=o[i];return 8*(r+4+n)},xO=function(e,t,o,n,r,i,l,c,d,f,h){oi(t,h++,o),++r[256];for(var m=xS(r,15),g=m[0],v=m[1],y=xS(i,15),S=y[0],E=y[1],_=EO(g),w=_[0],R=_[1],x=EO(S),T=x[0],A=x[1],k=new tr(19),O=0;w.length>O;++O)k[31&w[O]]++;for(O=0;T.length>O;++O)k[31&T[O]]++;for(var N=xS(k,7),q=N[0],B=N[1],$=19;$>4&&!q[CO[$-1]];--$);var U,W,ae,H,Z=f+5<<3,te=_d(r,ml)+_d(i,Og)+l,le=_d(r,g)+_d(i,S)+l+14+3*$+_d(k,q)+(2*k[16]+3*k[17]+7*k[18]);if(te>=Z&&le>=Z)return CC(t,h,e.subarray(d,d+f));if(oi(t,h,1+(te>le)),h+=2,te>le){U=Vd(g,v),W=g,ae=Vd(S,E),H=S;var Q=Vd(q,B);for(oi(t,h,R-257),oi(t,h+5,A-1),oi(t,h+10,$-4),h+=14,O=0;$>O;++O)oi(t,h+3*O,q[CO[O]]);h+=3*$;for(var M=[w,T],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)oi(t,h,Q[L=31&V[O]]),h+=q[L],L>15&&(oi(t,h,V[O]>>>5&127),h+=V[O]>>>12)}}else U=ose,W=ml,ae=nse,H=Og;for(O=0;c>O;++O)if(n[O]>255){var L;Sd(t,h,U[257+(L=n[O]>>>18&31)]),h+=W[L+257],L>7&&(oi(t,h,n[O]>>>23&31),h+=TE[L]);var j=31&n[O];Sd(t,h,ae[j]),h+=H[j],j>3&&(Sd(t,h,n[O]>>>5&8191),h+=RE[j])}else Sd(t,h,U[n[O]]),h+=W[n[O]];return Sd(t,h,U[256]),h+W[256]},rse=new ou([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ase=(function(){for(var e=new ou(256),t=0;256>t;++t){for(var o=t,n=9;--n;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),TS=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function ise(e,t){t===void 0&&(t={});var o=(function(){var m=4294967295;return{p(g){for(var v=m,y=0;g.length>y;++y)v=ase[255&v^g[y]]^v>>>8;m=v},d(){return 4294967295^m}}})(),n=e.length;o.p(e);var r,i,l,c,d,f=(c=10+((r=t).filename&&r.filename.length+1||0),d=8,(function(m,g,v,y,S,E){var _=m.length,w=new jr(y+_+5*(1+Math.floor(_/7e3))+S),R=w.subarray(y,w.length-S),x=0;if(!g||8>_)for(var T=0;_>=T;T+=65535){var A=T+65535;_>A?x=CC(R,x,m.subarray(T,A)):(R[T]=!0,x=CC(R,x,m.subarray(T,_)))}else{for(var k=rse[g-1],O=k>>>13,N=8191&k,q=(1<<v)-1,B=new tr(32768),$=new tr(q+1),U=Math.ceil(v/3),W=2*U,ae=function(Ue){return(m[Ue]^m[Ue+1]<<U^m[Ue+2]<<W)&q},H=new ou(25e3),Z=new tr(288),te=new tr(32),le=0,Q=0,M=(T=0,0),G=0,V=0;_>T;++T){var L=ae(T),j=32767&T,J=$[L];if(B[j]=J,$[L]=j,T>=G){var fe=_-T;if((le>7e3||M>24576)&&fe>423){x=xO(m,R,0,H,Z,te,Q,M,V,T-V,x),M=le=Q=0,V=T;for(var he=0;286>he;++he)Z[he]=0;for(he=0;30>he;++he)te[he]=0}var Ee=2,Be=0,Y=N,ne=j-J&32767;if(fe>2&&L==ae(T-ne))for(var ve=Math.min(O,fe)-1,ie=Math.min(32767,T),Ce=Math.min(258,fe);ie>=ne&&--Y&&j!=J;){if(m[T+Ee]==m[T+Ee-ne]){for(var Re=0;Ce>Re&&m[T+Re]==m[T+Re-ne];++Re);if(Re>Ee){if(Ee=Re,Be=ne,Re>ve)break;var tt=Math.min(ne,Re-2),nt=0;for(he=0;tt>he;++he){var $e=T-ne+he+32768&32767,Qe=$e-B[$e]+32768&32767;Qe>nt&&(nt=Qe,J=$e)}}}ne+=(j=J)-(J=B[j])+32768&32767}if(Be){H[M++]=268435456|SC[Ee]<<18|wO[Be];var Oe=31&SC[Ee],De=31&wO[Be];Q+=TE[Oe]+RE[De],++Z[257+Oe],++te[De],G=T+Ee,++le}else H[M++]=m[T],++Z[m[T]]}}x=xO(m,R,!0,H,Z,te,Q,M,V,T-V,x)}return Z4(w,0,y+Y4(x)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,d)),h=f.length;return(function(m,g){var v=g.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>g.level?4:g.level==9?2:0,m[9]=3,g.mtime!=0&&TS(m,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),v){m[3]=8;for(var y=0;v.length>=y;++y)m[y+10]=v.charCodeAt(y)}})(f,t),TS(f,h-8,o.d()),TS(f,h-4,n),f}var sse=!!G_||!!H_,Q4="text/plain",TO=!1,_v=function(e,t,o){var n;o===void 0&&(o=!0);var[r,i]=e.split("?"),l=Ie({},t),c=(n=i?.split("&").map((f=>{var h,[m,g]=f.split("="),v=o&&(h=l[m])!==null&&h!==void 0?h:g;return delete l[m],m+"="+v})))!==null&&n!==void 0?n:[],d=(function(f,h){var m,g;h===void 0&&(h="&");var v=[];return fo(f,(function(y,S){ze(y)||ze(S)||S==="undefined"||(m=encodeURIComponent((E=>E instanceof File)(y)?y.name:y.toString()),g=encodeURIComponent(S),v[v.length]=g+"="+m)})),v.join(h)})(l);return d&&c.push(d),r+"?"+c.join("&")},Mc=(e,t)=>JSON.stringify(e,((o,n)=>typeof n=="bigint"?n.toString():n),t),RS=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===ya.GZipJS){var n=ise((function(c,d){var f=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new jr(c.length+(c.length>>>1)),m=0,g=function(E){h[m++]=E},v=0;f>v;++v){if(m+5>h.length){var y=new jr(m+8+(f-v<<1));y.set(h),h=y}var S=c.charCodeAt(v);128>S?g(S):2048>S?(g(192|S>>>6),g(128|63&S)):S>55295&&57344>S?(g(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),g(128|S>>>12&63),g(128|S>>>6&63),g(128|63&S)):(g(224|S>>>12),g(128|S>>>6&63),g(128|63&S))}return Z4(h,0,m)})(Mc(t)),{mtime:0});return{contentType:Q4,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(o===ya.Base64){var r=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,f)=>String.fromCharCode(parseInt(f,16)))))})(Mc(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Mc(c)))(r);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=Mc(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},lse=(function(){var e=Nr((function*(t){var o=Mc(t.data),n=yield(function(i,l,c){return K_.apply(this,arguments)})(o,Bn.DEBUG,{rethrow:!0});if(!n)return t;var r=yield n.arrayBuffer();return Ie({},t,{tr:{contentType:Q4,body:r,estimatedSize:r.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),RO=(e,t)=>_v(e,{_:new Date().getTime().toString(),ver:Bn.JS_SDK_VERSION,compression:t}),Fp=[];H_&&Fp.push({transport:"fetch",method(e){var t,o,{contentType:n,body:r,estimatedSize:i}=(t=RS(e))!==null&&t!==void 0?t:{},l=new Headers;fo(e.headers,(function(h,m){l.append(m,h)})),n&&l.append("Content-Type",n);var c=e.url,d=null;if(rO){var f=new rO;d={signal:f.signal,timeout:setTimeout((()=>f.abort()),e.timeout)}}H_(c,Ie({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:r,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((h=>h.text().then((m=>{var g={statusCode:h.status,text:m};if(h.status===200)try{g.json=JSON.parse(m)}catch(v){Fe.error(v)}e.callback==null||e.callback(g)})))).catch((h=>{Fe.error(h),e.callback==null||e.callback({statusCode:0,error:h})})).finally((()=>d?clearTimeout(d.timeout):null))}}),G_&&Fp.push({transport:"XHR",method(e){var t,o=new G_;o.open(e.method||"GET",e.url,!0);var{contentType:n,body:r}=(t=RS(e))!==null&&t!==void 0?t:{};fo(e.headers,(function(i,l){o.setRequestHeader(l,i)})),n&&o.setRequestHeader("Content-Type",n),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(r)}}),vr!=null&&vr.sendBeacon&&Fp.push({transport:"sendBeacon",method(e){var t=_v(e.url,{beacon:"1"});try{var o,{contentType:n,body:r}=(o=RS(e))!==null&&o!==void 0?o:{};if(!r)return;var i=r instanceof Blob?r:new Blob([r],{type:n});vr.sendBeacon(t,i)}catch{}}});var wC=3e3;class cse{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=Ta(o?.flush_interval_ms||wC,250,5e3,Fe.createLogger("flush interval"),wC),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((n=>n.url.indexOf("/e")===0)),...o.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Br(Ie({},n,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),n=function(){var i=o[r],l=new Date().getTime();i.data&&Ot(i.data)&&fo(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var r in o)n()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return fo(this.Lr,(o=>{var n,r=o,i=(r?r.batchKey:null)||r.url;ze(t[i])&&(t[i]=Ie({},r,{data:[]})),(n=t[i].data)==null||n.push(r.data)})),this.Lr=[],t}}var use=["retriesPerformedSoFar"];class dse{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!ze(pe)&&"onLine"in pe.navigator&&(this.zr=pe.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Vo(pe,"online",this.Ur),Vo(pe,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,n=e4(t,use);Ec(o)&&(n.url=_v(n.url,{retry_count:o})),this._instance._send_request(Ie({},n,{callback:r=>{r.statusCode===200||r.statusCode>=400&&500>r.statusCode||(o??0)>=10?n.callback==null||n.callback(r):this.Wr(Ie({retriesPerformedSoFar:o},n))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var n=(function(l){var c=3e3*Math.pow(2,l),d=c/2,f=Math.min(18e5,c),h=Math.random()-.5;return Math.ceil(f+h*(f-d))})(o),r=Date.now()+n;this.Lr.push({retryAt:r,requestOptions:t});var i="Enqueued failed request for retry in "+n;navigator.onLine||(i+=" (Browser is offline)"),Fe.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],n=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,ze(pe)||(this.Ur&&(pe.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(pe.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Ie({},t,{transport:"sendBeacon"}))}catch(o){Fe.error(o)}this.Lr=[]}}class fse{constructor(t){this.Kr=()=>{var o,n,r,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,f=c+(l?.clientHeight||0),h=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(n=this.Qr.maxScrollHeight)!==null&&n!==void 0?n:0),this.Qr.lastContentY=f,this.Qr.maxContentY=Math.max(f,(r=this.Qr.maxContentY)!==null&&r!==void 0?r:0),this.Qr.maxContentHeight=Math.max(h,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Vo(pe,"scroll",this.Kr,{capture:!0}),Vo(pe,"scrollend",this.Kr,{capture:!0}),Vo(pe,"resize",this.Kr)}scrollElement(){if(!this.ei)return pe?.document.documentElement;var t=Ot(this.ei)?this.ei:[this.ei];for(var o of t){var n=pe?.document.querySelector(o);if(n)return n}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return pe&&(pe.scrollY||pe.pageYOffset||pe.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return pe&&(pe.scrollX||pe.pageXOffset||pe.document.documentElement.scrollLeft)||0}}var mse=e=>$4(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class PO{constructor(t,o,n,r){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[hC]:c})}},this._instance=t,this.si=o,this.ni=n,this.ii=r||mse,this.si.onSessionId(this.ti)}ri(){return this.ni.props[hC]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?q4(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return fo(xE(this.getSetOnceProps()),((o,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+W_(n)]=o})),t}}class PE{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((n=>n!==o))}}emit(t,o){for(var n of this.oi[t]||[])n(o);for(var r of this.oi["*"]||[])r(t,o)}}var PS=go("[SessionId]");class AO{on(t,o){return this.ai.on(t,o)}constructor(t,o,n){var r;if(this.li=[],this.ui=void 0,this.ai=new PE,this.hi=(f,h)=>!(!Ec(f)||!Ec(h))&&Math.abs(f-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===si)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ns,this.fi=n||ns;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Ta(this.Bt.session_idle_timeout_seconds||1800,60,36e3,PS.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=gn.Z(this.gi),c=gn.Z(this.mi);l&&!c?this.ci=l:gn.F(this.gi),gn.M(this.mi,!0)}if((r=this.Bt.bootstrap)!=null&&r.sessionID)try{var d=(f=>{var h=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(f){PS.error("Invalid sessionID in bootstrap",f)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ze(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&gn.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&gn.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?gn.Z(this.gi):null}bi(t,o,n){t===this.di&&o===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[_g]:[o,t,n]}))}Si(){var t=this.ni.props[_g];return Ot(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&pe&&(pe.removeEventListener(Tg,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&gn.F(this.mi)},Vo(pe,Tg,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===si)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=o||new Date().getTime(),[r,i,l]=this.Si(),c=this.Ci(),d=Ec(l)&&Math.abs(n-l)>864e5,f=!1,h=!i,m=!h&&!t&&this.hi(n,r);h||m||d?(i=this.vi(),c=this.fi(),PS.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:d}}),l=n,f=!0):c||(c=this.fi(),f=!0);var g=Ec(r)&&t&&!d?r:n,v=Ec(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,g,v),t||this.pi(),f&&this.li.forEach((y=>y(i,c,f?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:d}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:f?{noSessionId:h,activityTimeout:m,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:r}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var J4=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&sO(o,t))return!0;try{var n=e?.userAgentData;if(n!=null&&n.brands&&n.brands.some((r=>sO(r?.brand,t))))return!0}catch{}return!!e.webdriver},Ig=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function kO(e,t,o){return Mc({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var X4={exact:(e,t)=>t.some((o=>e.some((n=>o===n)))),is_not:(e,t)=>t.every((o=>e.every((n=>o!==n)))),regex:(e,t)=>t.some((o=>e.some((n=>Ig(o,n))))),not_regex:(e,t)=>t.every((o=>e.every((n=>!Ig(o,n))))),icontains:(e,t)=>t.map(bp).some((o=>e.map(bp).some((n=>o.includes(n))))),not_icontains:(e,t)=>t.map(bp).every((o=>e.map(bp).every((n=>!o.includes(n))))),gt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n>parseFloat(r)))})),lt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n<parseFloat(r)))}))},bp=e=>e.toLowerCase();function eB(e,t){return!e||Object.entries(e).every((o=>{var[n,r]=o,i=t?.[n];if(ze(i)||yi(i))return!1;var l=[String(i)],c=X4[r.operator];return!!c&&c(r.values,l)}))}var EC="custom",DO="i.posthog.com",hse=/^\/static\//;class pse{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+DO,".posthog.com")),o==="https://app.posthog.com"?"https://us.posthog.com":o}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":EC),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&hse.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var n=this.Ti(o);if(n)return""+n+o}if(this.region===EC)return this.apiHost+o;var r=DO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Jt=go("[Surveys]"),xC="seenSurvey_",gse=[wS.Popover,wS.Widget,wS.API],vse={ignoreConditions:!1,ignoreDelay:!1,displayType:yC.Popover},bse=go("[PostHog ExternalIntegrations]"),yse={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Sse{constructor(t){this._instance=t}ur(t,o){var n;(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,(r=>{if(r)return bse.error("failed to load script",r);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,d,f;!r||(c=Ze.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(yse[l],(()=>{var h;(h=Ze.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(t._instance)})),!r&&(d=Ze.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[l]&&((f=Ze.__PosthogExtensions__)==null||(f=f.integrations)==null||(f=f[l])==null||f.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(n)}}}var _c,Hd={},AS=0,TC=()=>{},OO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Cd="Surveys module not available",IO="sanitize_properties is deprecated. Use before_send instead",tB="Invalid value for property_denylist config: ",Rc="posthog",oB=!sse&&Qn?.indexOf("MSIE")===-1&&Qn?.indexOf("Mozilla")===-1,MO=e=>{var t;return Ie({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Fie(Ne?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:TC,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:pn&&So(pn?.search)&&pn.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:(pe==null||(t=pe.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Fe.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:bC,before_send:void 0,request_queue_config:{flush_interval_ms:wC},error_tracking:{},_onCapture:TC,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},_se=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],LO=e=>{var t={};for(var[o,n]of _se)ze(e[o])||(t[n]=e[o]);var r=To({},t,e);return Ot(e.property_blacklist)&&(ze(e.property_denylist)?r.property_denylist=e.property_blacklist:Ot(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Fe.error(tB+e.property_denylist)),r};class Cse{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Fe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Fr{Ei(t,o){if(t){var n=this.Ri.indexOf(t);n!==-1&&this.Ri.splice(n,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===si||this.config.cookieless_mode===el&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Cse,this.Mi=!1,this.version=Bn.LIB_VERSION,this.Fi=new PE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=MO(),this.SentryIntegration=Kie,this.sentryIntegration=n=>(function(r,i){var l=F4(r,i);return{name:N4,processEvent:c=>l(c)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new fse(this),this.pageViewManager=new bO(this),this.rateLimiter=new tse(this),this.requestRouter=new pse(this),this.consent=new Vie(this),this.externalIntegrations=new Sse(this);var o=(t=Fr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(n,r,i)=>{var l=So(n)?{[n]:r}:n;this.setPersonProperties(l),i?.({})},set_once:(n,r,i)=>{var l=So(n)?{[n]:r}:n;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(n=>Fe.info('send "'+n?.event+'"',n)))}init(t,o,n){if(n&&n!==Rc){var r,i=(r=Hd[n])!==null&&r!==void 0?r:new Fr;return i._init(t,o,n),Hd[n]=i,Hd[Rc][n]=i,i}return this._init(t,o,n)}_init(t,o,n){var r,i;if(o===void 0&&(o={}),ze(t)||Ip(t))return Fe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(To({},MO(o.defaults),LO(o),{name:n,token:t})),this.config.on_xhr_error&&Fe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:ya.GZipJS;var l=this.qi();this.persistence=new CS(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new CS(Ie({},this.config,{persistence:"sessionStorage"}),l);var c=Ie({},this.persistence.props),d=Ie({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new cse((E=>this.Vi(E)),this.config.request_queue_config),this.Hi=new dse(this),this.__request_queue=[];var f=this.Ni();if(f||(this.sessionManager=new AO(this),this.sessionPropsManager=new PO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Fe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(f)}),0)):(Fe.info("Initializing extensions synchronously"),this.zi(f)),Bn.DEBUG=Bn.DEBUG||this.config.debug,Bn.DEBUG&&Fe.info("Starting in debug mode",{this:this,config:o,thisC:Ie({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(r=o.bootstrap)!=null&&r.distinctID||(o.bootstrap=Ie({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=o.bootstrap.distinctID,m=this.get_distinct_id(),g=this.persistence.get_property(ta);if(o.bootstrap.isIdentifiedID&&m!=null&&m!==h&&g===bc)this.identify(h);else if(o.bootstrap.isIdentifiedID&&m!=null&&m!==h&&g===yc)Fe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ns()),y=o.bootstrap.isIdentifiedID?v:h;this.persistence.set_property(ta,o.bootstrap.isIdentifiedID?yc:bc),this.register({distinct_id:h,$device_id:y})}}if(f)this.register_once({distinct_id:mp,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ns());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(ta,bc)}return Vo(pe,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(E,_){var w=E.config.segment;if(!w)return _();(function(R,x){var T=R.config.segment;if(!T)return x();var A=O=>{var N=()=>O.anonymousId()||ns();R.config.get_device_id=N,O.id()&&(R.register({distinct_id:O.id(),$device_id:N()}),R.persistence.set_property(ta,yc)),x()},k=T.user();"then"in k&&ai(k.then)?k.then(A):A(k)})(E,(()=>{w.register((R=>{Promise&&Promise.resolve||_S.warn("This browser does not have Promise support, and can not use the segment integration");var x=(T,A)=>{if(!A)return T;T.event.userId||T.event.anonymousId===R.get_distinct_id()||(_S.info("No userId set, resetting PostHog"),R.reset()),T.event.userId&&T.event.userId!==R.get_distinct_id()&&(_S.info("UserId set, identifying with PostHog"),R.identify(T.event.userId));var k=R.calculateEventProperties(A,T.event.properties);return T.event.properties=Object.assign({},k,T.event.properties),T};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:T=>x(T,T.event.event),page:T=>x(T,Tc),identify:T=>x(T,yS),screen:T=>x(T,"$screen")}})(E)).then((()=>{_()}))}))})(this,(()=>this.Ui())):this.Ui(),ai(this.config._onCapture)&&this.config._onCapture!==TC&&(Fe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(E=>this.config._onCapture(E.event,E)))),this.config.ip&&Fe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,n,r,i,l,c,d,f=performance.now(),h=Ie({},Fr.__defaultExtensionClasses,this.config.__extensionClasses),m=[];h.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new h.featureFlags(this)),h.exceptions&&this.Ri.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new h.exceptions(this)),h.historyAutocapture&&this.Ri.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ri.push(new h.tracingHeaders(this)),h.siteApps&&this.Ri.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||m.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Ri.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ri.push(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new h.surveys(this)),h.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new h.logs(this)),h.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Ri.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ri.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ri.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,Gie)),h.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new h.toolbar(this)),h.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new h.experiments(this)),this.Ri.forEach((g=>{g.initialize&&m.push((()=>{g.initialize==null||g.initialize()}))})),m.push((()=>{if(this.Yi){var g=this.Yi;this.Yi=void 0,this.Nr(g)}})),this.Gi(m,f)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var n=t.shift();if(n)try{n()}catch(i){Fe.error("Error initializing extension:",i)}}var r=Math.round(performance.now()-o);this.register_for_session({[D4]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[O4]:r}),this.config.__preview_deferred_init_extensions&&Fe.info("PostHog extensions initialized ("+r+"ms)")}Nr(t){var o;if(!Ne||!Ne.body)return Fe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=wt(t.supportedCompression,ya.GZipJS)?ya.GZipJS:wt(t.supportedCompression,ya.Base64)?ya.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:bC}),this.Ri.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(n){Fe.critical("`loaded` function failed",n)}if(this.Xi(),this.config.internal_or_test_user_hostname&&pn!=null&&pn.hostname){var t=pn.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new H4(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&hp(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,n,r;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(bS),(o=this.logs)==null||o.flushLogs("sendBeacon"),(n=this.Zi)==null||n.unload(),(r=this.Hi)==null||r.unload()):this.Qi()&&this.capture(bS,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(oB?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=_v(t.url,{ip:this.config.ip?1:0}),t.headers=Ie({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var n,r,i,l=Ie({},o);l.timeout=l.timeout||6e4,l.url=RO(l.url,l.compression);var c=(n=l.transport)!==null&&n!==void 0?n:"fetch",d=Fp.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),f=(r=(i=(function(h,m){for(var g=0;h.length>g;g++)if(h[g].transport===c)return h[g]})(d))==null?void 0:i.method)!==null&&r!==void 0?r:d[0].method;if(!f)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===ya.GZipJS&&Kae&&!TO?lse(l).then((h=>{f(h)})).catch((h=>{if((m=>!(!m||typeof m!="object")&&("name"in m?String(m.name):"")==="NotReadableError")(h))return TO=!0,void f(Ie({},l,{compression:void 0,url:RO(o.url,void 0)}));f(l)})):f(l)})(Ie({},t,{callback:o=>{var n,r;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){AS++;try{var o,n=[],r=[],i=[];hp(t,(c=>{c&&(Ot(o=c[0])?i.push(c):ai(c)?c.call(this):Ot(c)&&o==="alias"?n.push(c):Ot(c)&&o.indexOf("capture")!==-1&&ai(this[o])?i.push(c):r.push(c))}));var l=function(c,d){hp(c,(function(f){if(Ot(f[0])){var h=d;fo(f,(function(m){h=h[m[0]].apply(h,m.slice(1))}))}else d[f[0]].apply(d,f.slice(1))}))};l(n,this),l(r,this),l(i,this)}finally{AS--}}push(t){if(AS>0&&Ot(t)&&So(t[0])){var o=Fr.prototype[t[0]];ai(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,n){var r,i,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!ze(t)&&So(t)){var f=!this.config.opt_out_useragent_filter&&this._is_bot();if(!f||this.config.__preview_capture_bot_pageviews){var h=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){o!=null&&o.$current_url&&!So(o?.$current_url)&&(Fe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||n!=null&&n.en||Fe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var m=new Date,g=n?.timestamp||m,v=ns(),y={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},g,v)};t===Tc&&this.config.__preview_capture_bot_pageviews&&f&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),h&&(y.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),n?.$set&&(y.$set=n?.$set);var S,E,_,w=this.tn(n?.$set_once,t!==hO,t===yS);if(w&&(y.$set_once=w),n!=null&&n._noTruncate||(i=this.config.properties_string_max_length,l=y,c=N=>So(N)?N.slice(0,i):N,d=new Set,y=(function N(q,B){return q!==Object(q)?c?c(q):q:d.has(q)?void 0:(d.add(q),Ot(q)?($=[],hp(q,(U=>{$.push(N(U))}))):($={},fo(q,((U,W)=>{d.has(U)||($[W]=N(U))}))),$);var $})(l)),y.timestamp=g,ze(n?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=m),t===Fd.DISMISSED||t===Fd.SENT){var R=o?.[ES.SURVEY_ID],x=o?.[ES.SURVEY_ITERATION];(N=>{try{var q=(B=>(($,U)=>{var W=""+xC+U.id;return U.current_iteration&&U.current_iteration>0&&(W=""+xC+U.id+"_"+U.current_iteration),W})(0,B))(N);if(localStorage.getItem(q))return;localStorage.setItem(q,"true")}catch(B){Jt.error("Failed to persist survey seen state",B)}})({id:R,current_iteration:x}),y.$set=Ie({},y.$set,{[(S={id:R,current_iteration:x},E=t===Fd.SENT?"responded":"dismissed",_="$survey_"+E+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(_="$survey_"+E+"/"+S.id+"/"+S.current_iteration),_)]:!0})}else t===Fd.SHOWN&&(y.$set=Ie({},y.$set,{[ES.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===ese.SHOWN){var T=o?.[SO.TOUR_TYPE];T&&(y.$set=Ie({},y.$set,{[SO.TOUR_LAST_SEEN_DATE+"/"+T]:new Date().toISOString()}))}var A=Ie({},y.properties.$set,y.$set);if(Oc(A)||this.setPersonPropertiesForFlags(A),!Et(this.config.before_send)){var k=this.rn(y);if(!k)return;y=k}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(r=n?._url)!==null&&r!==void 0?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}Fe.critical("This capture call is ignored due to client rate limiting.")}}else Fe.error("No event name provided to posthog.capture")}else Fe.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Ie({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Ie({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!So(c.distinct_id)&&!Ur(c.distinct_id)||Ip(c.distinct_id))&&Fe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var f,h=(function(_,w){var R,x,T,A;if(!Qn)return{};var k,O,N,q,B,$,U,W,ae=_?[...tu,...w||[]]:[],[H,Z]=(function(te){for(var le=0;uO.length>le;le++){var[Q,M]=uO[le],G=Q.exec(te),V=G&&(ai(M)?M(G,te):M);if(V)return V}return["",""]})(Qn);return To(xE({$os:H,$os_version:Z,$browser:y4(Qn,navigator.vendor),$device:dO(Qn),$device_type:(O=Qn,N={userAgentDataPlatform:(R=navigator)==null||(R=R.userAgentData)==null?void 0:R.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:pe==null||(T=pe.screen)==null?void 0:T.width,screenHeight:pe==null||(A=pe.screen)==null?void 0:A.height,devicePixelRatio:pe?.devicePixelRatio},W=dO(O),W===a4||W===r4||W==="Kobo"||W==="Kindle Fire"||W===b4?Jc:W===df||W===Vc||W===ff||W===Z_?"Console":W===s4?"Wearable":W?yr:N?.userAgentDataPlatform==="Android"&&((q=N?.maxTouchPoints)!==null&&q!==void 0?q:0)>0?600>Math.min((B=N?.screenWidth)!==null&&B!==void 0?B:0,($=N?.screenHeight)!==null&&$!==void 0?$:0)/((U=N?.devicePixelRatio)!==null&&U!==void 0?U:1)?yr:Jc:"Desktop"),$timezone:V4(),$timezone_offset:Jie()}),{$current_url:mf(pn?.href,ae,hf),$host:pn?.host,$pathname:pn?.pathname,$raw_user_agent:Qn.length>1e3?Qn.substring(0,997)+"...":Qn,$browser_version:cie(Qn,navigator.vendor),$browser_language:yO(),$browser_language_prefix:(k=yO(),typeof k=="string"?k.split("-")[0]:void 0),$screen_height:pe?.screen.height,$screen_width:pe?.screen.width,$viewport_height:pe?.innerHeight,$viewport_width:pe?.innerWidth,$lib:Bn.LIB_NAME,$lib_version:Bn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:m,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());c.$session_id=m,c.$window_id=g}this.sessionPropsManager&&To(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&To(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(_){c.$sdk_debug_error_capturing_properties=String(_)}if(this.requestRouter.region===EC&&(c.$lib_custom_api_host=this.config.api_host),f=t!==Tc||i?t!==bS||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),c=To(c,f),t===Tc&&Ne&&(c.title=Ne.title),!ze(l)){var y=n.getTime()-l;c.$duration=parseFloat((y/1e3).toFixed(3))}Qn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=To({},h,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Ot(this.config.property_denylist)?fo(this.config.property_denylist,(function(_){delete c[_]})):Fe.error(tB+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Fe.error(IO),c=S(c,t));var E=this.nn();return c.$process_person_profile=E,E&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,n){var r;if(o===void 0&&(o=!0),n===void 0&&(n=!1),!this.persistence||!this.nn()||this.Mi&&!n)return t;var i=this.persistence.get_initial_props(),l=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),c=To({},i,l||{},t||{}),d=this.config.sanitize_properties;return d&&(Fe.error(IO),c=d(c,"$set_once")),o&&(this.Mi=!0),Oc(c)?void 0:c}register(t,o){var n;(n=this.persistence)==null||n.register(t,o)}register_once(t,o,n){var r;(r=this.persistence)==null||r.register_once(t,o,n)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,n){var r;(r=this.featureFlags)==null||r.updateFlags(t,o,n)}updateEarlyAccessFeatureEnrollment(t,o,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(t,o,n)}getEarlyAccessFeatures(t,o,n){var r;return o===void 0&&(o=!1),(r=this.featureFlags)==null?void 0:r.getEarlyAccessFeatures(t,o,n)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Cd}),()=>{})}onSessionId(t){var o,n;return(o=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:Cd})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:Cd})}renderSurvey(t,o){var n;(n=this.surveys)==null||n.renderSurvey(t,o)}displaySurvey(t,o){var n;o===void 0&&(o=vse),(n=this.surveys)==null||n.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,n;return(o=(n=this.surveys)==null?void 0:n.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:Cd}}canRenderSurveyAsync(t,o){var n,r;return o===void 0&&(o=!1),(n=(r=this.surveys)==null?void 0:r.canRenderSurveyAsync(t,o))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:Cd})}ln(t){return!t||Ip(t)?(Fe.critical("Unique user id has not been set in posthog.identify"),!1):t===mp?(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,n){if(!this.__loaded||!this.persistence)return Fe.uninitializedWarning("posthog.identify");if(Ur(t)&&(t=t.toString(),Fe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Sg)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),t!==r&&t!==this.get_property(Od)&&(this.unregister(Od),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(ta)||bc)===bc;t!==r&&l?(this.persistence.set_property(ta,yc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:n||{}},!1),this.capture(yS,{distinct_id:t,$anon_distinct_id:r},{$set:o||{},$set_once:n||{}}),this.Di=kO(t,o,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(o||n)&&this.setPersonProperties(o,n),t!==r&&(this.reloadFeatureFlags(),this.unregister(qd))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var n=kO(this.get_distinct_id(),t,o);this.Di!==n?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=n):Fe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,n){if(t&&o){var r=this.getGroups(),i=r[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Ie({},r,{[t]:o})}),i||n){var l={$group_type:t,$group_key:o};n&&(l.$group_set=n),this.capture(hO,l)}n&&this.setGroupPropertiesForFlags({[t]:n}),i&&!n&&this.reloadFeatureFlags()}else Fe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,n,r,i,l,c,d,f;if(Fe.info("reset"),!this.__loaded)return Fe.uninitializedWarning("posthog.reset");var h=this.get_property(Sg);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(n=this.sessionPersistence)==null||n.clear(),(r=this.surveys)==null||r.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(ta,bc),(f=this.sessionManager)==null||f.resetSessionId(),this.Di=null,this.config.cookieless_mode===si)this.register_once({distinct_id:mp,$device_id:null},"");else{var m=this.config.get_device_id(ns());this.register_once({distinct_id:m,$device_id:t?m:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var n;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(n=this.conversations)==null||n.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&n){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-l,0)}return r}alias(t,o){return t===this.get_property(x4)?(Fe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ze(o)&&(o=this.get_distinct_id()),t!==o?(this.an(Od,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Fe.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Ie({},this.config);if(Do(t)){var n,r,i,l,c,d,f,h,m,g;To(this.config,LO(t));var v=this.qi();(n=this.persistence)==null||n.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new CS(Ie({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);xa(y)&&(this.config.debug=y),xa(this.config.debug)&&(this.config.debug?(Bn.DEBUG=!0,yo.R()&&yo.M("ph_debug",!0),Fe.info("set_config",{config:t,oldConfig:o,newConfig:Ie({},this.config)})):(Bn.DEBUG=!1,yo.R()&&yo.F("ph_debug"))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(f=this.exceptionObserver)==null||f.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(m=this.surveys)==null||m.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Bn.LIB_NAME=t,Bn.LIB_VERSION=o}startSessionRecording(t){var o,n,r,i,l,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),d.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),d.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),d.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Ie({},r,o))}}addExceptionStep(t,o){var n;(n=this.exceptions)==null||n.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Fr.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,n;return(o=(n=this.toolbar)==null?void 0:n.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Rc;return o!==Rc&&(o=Rc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(ta))===yc||((o=this.sessionPersistence)==null?void 0:o.get_property(ta))===yc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===bC&&!this._isIdentified()&&Oc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Od])&&((o=this.persistence)==null||(o=o.props)==null||!o[Eg]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Fe.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(Eg,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==el)}cn(){var t,o,n,r,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((n=this.persistence)==null||n.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((r=this.sessionPersistence)==null||r.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==si){if(this.Ni()){var n,r,i,l,c;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=new AO(this),this.pageViewManager=new bO(this),this.persistence&&(this.sessionPropsManager=new PO(this,this.sessionManager,this.persistence));var d,f=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Fr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;f&&(this.sessionRecording=this.Ei(this.sessionRecording,new f(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var h,m;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==el&&((h=this.surveys)==null||h.loadIfEnabled()),(ze(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((m=t?.captureEventName)!==null&&m!==void 0?m:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Fe.warn(OO)}opt_out_capturing(){var t,o,n;this.config.cookieless_mode!==si?(this.config.cookieless_mode===el&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===el&&(this.register({distinct_id:mp,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Ji())):Fe.warn(OO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===si||(this.config.cookieless_mode===el?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return vr?J4(vr,this.config.custom_blocked_useragents):void 0}Ji(){Ne&&(Ne.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Tc,{title:Ne.title},{send_instantly:!0}),this.Pi&&(Ne.removeEventListener(xg,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Vo(Ne,xg,this.Pi)))}debug(t){t===!1?(pe?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(pe?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,n,r,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Fe.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):(n="advanced_disable_decide",r=Fe,i=(o="advanced_disable_flags")in(t=c)&&!Et(t[o]),l=n in t&&!Et(t[n]),i?t[o]:!!l&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[n]))}rn(t){if(Et(this.config.before_send))return t;var o=Ot(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var r of o){if(n=r(n),Et(n)){var i="Event '"+t.event+"' was rejected in beforeSend function";return Qae(t.event)?Fe.warn(i+". This can cause unexpected behavior."):Fe.info(i),null}n.properties&&!Oc(n.properties)||Fe.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(n)})}Bi(t){var o=xa(t)&&!t,n=yo.R()&&yo.O("ph_debug")==="true";return!o&&(!!n||t)}}function NO(e){return e instanceof Element&&(e.id===k4||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Cv(e){return!!e&&e.nodeType===1}function ms(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function nB(e){return!!e&&e.nodeType===3}function rB(e){return!!e&&e.nodeType===11}function AE(e){return e?yv(e).split(/\s+/):[]}function FO(e){var t=pe?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Mg(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return AE(t)}function aB(e){return Et(e)?null:yv(e).split(/(\s+)/).filter((t=>Gd(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function pf(e){var t="";return PC(e)&&!sB(e)&&e.childNodes&&e.childNodes.length&&fo(e.childNodes,(function(o){var n;nB(o)&&o.textContent&&(t+=(n=aB(o.textContent))!==null&&n!==void 0?n:"")})),yv(t)}function BO(e){return ze(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Fr.__defaultExtensionClasses={},Fr.dn={trace:_c=()=>{},debug:_c,info:_c,warn:_c,error:_c,fatal:_c},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=Lie(e.prototype[t[o]])})(Fr,["identify"]);var kE=["a","button","form","input","select","textarea","label"];function zO(e,t){if(ze(t))return!0;var o,n=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var r of e)if(o=n(r))return o.v;return!1}function iB(e){var t=e.parentNode;return!(!t||!Cv(t))&&t}var wse=["next","previous","prev",">","<"],jO=[".ph-no-rageclick",".ph-no-capture"],RC=e=>!e||ms(e,"html")||!Cv(e),UO=(e,t)=>{if(!pe||RC(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,n=[e],r=e;r.parentNode&&!ms(r,"body");)if(rB(r.parentNode))n.push(r.parentNode.host),r=r.parentNode.host;else{var i=iB(r);if(!i)break;if(t||kE.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=pe.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}n.push(i),r=i}return{parentIsUsefulElement:o,targetElementList:n}};function PC(e){for(var t=e;t.parentNode&&!ms(t,"body");t=t.parentNode){var o=Mg(t);if(wt(o,"ph-sensitive")||wt(o,"ph-no-capture"))return!1}if(wt(Mg(e),"ph-include"))return!0;var n=e.type||"";if(So(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!So(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function sB(e){return!!(ms(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||ms(e,"select")||ms(e,"textarea")||e.getAttribute("contenteditable")==="true")}var lB="(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})",Ese=new RegExp("^(?:"+lB+")$"),xse=new RegExp(lB),cB="\\d{3}-?\\d{2}-?\\d{4}",Tse=new RegExp("^("+cB+")$"),Rse=new RegExp("("+cB+")");function Gd(e,t){return t===void 0&&(t=!0),!(Et(e)||So(e)&&(e=yv(e),(t?Ese:xse).test((e||"").replace(/[- ]/g,""))||(t?Tse:Rse).test(e)))}function $O(e){var t=pf(e);return Gd(t=(t+" "+uB(e)).trim())?t:""}function uB(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fo(e.childNodes,(function(o){var n;if(o&&((n=o.tagName)==null?void 0:n.toLowerCase())==="span")try{var r=pf(o);t=(t+" "+r).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+uB(o)).trim())}catch(i){Fe.error("[AutoCapture]",i)}})),t}function qO(e){return e.replace(/"|\\"/g,'\\"')}function Pse(e){var t=e.attr__class;return t?Ot(t)?t:AE(t):void 0}class VO{constructor(t){this.disabled=t===!1;var o=Do(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(t-r.x)+Math.abs(o-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:t,y:o,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:n}];return!1}}var kS="$copy_autocapture",HO=go("[AutoCapture]");function DS(e,t){return t.length>e?t.slice(0,e)+"...":t}function Ase(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Cv(t));return t}function kse(e,t){for(var o,n,{e:r,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,f=[e],h=e;h.parentNode&&!ms(h,"body");)rB(h.parentNode)?(f.push(h.parentNode.host),h=h.parentNode.host):(f.push(h.parentNode),h=h.parentNode);var m,g,v=[],y={},S=!1,E=!1;if(fo(f,(T=>{var A=PC(T);T.tagName.toLowerCase()==="a"&&(S=T.getAttribute("href"),S=A&&S&&Gd(S)&&S),wt(Mg(T),"ph-no-capture")&&(E=!0),v.push((function(O,N,q,B){var $=O.tagName.toLowerCase(),U={tag_name:$};kE.indexOf($)>-1&&!q&&(U.$el_text=$.toLowerCase()==="a"||$.toLowerCase()==="button"?DS(1024,$O(O)):DS(1024,pf(O)));var W=Mg(O);W.length>0&&(U.classes=W.filter((function(te){return te!==""}))),fo(O.attributes,(function(te){var le;if((!sB(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(B==null||!B.includes(te.name))&&!N&&Gd(te.value)&&(!So(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=AE(Q).join(" ")),U["attr__"+te.name]=DS(1024,Q)}}));for(var ae=1,H=1,Z=O;Z=Ase(Z);)ae++,Z.tagName===O.tagName&&H++;return U.nth_child=ae,U.nth_of_type=H,U})(T,i,l,c));var k=(function(O){if(!PC(O))return{};var N={};return fo(O.attributes,(function(q){if(q.name&&q.name.indexOf("data-ph-capture-attribute")===0){var B=q.name.replace("data-ph-capture-attribute-",""),$=q.value;B&&$&&Gd($)&&(N[B]=$)}})),N})(T);To(y,k)})),E)return{props:{},explicitNoCapture:E};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?$O(e):pf(e)),S){var _,w;v[0].attr__href=S;var R=(_=Pg(S))==null?void 0:_.host,x=pe==null||(w=pe.location)==null?void 0:w.host;R&&x&&R!==x&&(m=S)}return{props:To({$event_type:r.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(g=v,(function(T){return T.map((A=>{var k,O,N="";if(A.tag_name&&(N+=A.tag_name),A.attr_class)for(var q of(A.attr_class.sort(),A.attr_class))N+="."+q.replace(/"/g,"");var B=Ie({},A.text?{text:A.text}:{},{"nth-child":(k=A.nth_child)!==null&&k!==void 0?k:0,"nth-of-type":(O=A.nth_of_type)!==null&&O!==void 0?O:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),$={};return Np(B).sort(((U,W)=>{var[ae]=U,[H]=W;return ae.localeCompare(H)})).forEach((U=>{var[W,ae]=U;return $[qO(W.toString())]=qO(ae.toString())})),(N+=":")+Np($).map((U=>{var[W,ae]=U;return W+'="'+ae+'"'})).join("")})).join(";")})((function(T){return T.map((A=>{var k,O,N={text:(k=A.$el_text)==null?void 0:k.slice(0,400),tag_name:A.tag_name,href:(O=A.attr__href)==null?void 0:O.slice(0,2048),attr_class:Pse(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return Np(A).filter((q=>{var[B]=q;return B.indexOf("attr__")===0})).forEach((q=>{var[B,$]=q;return N.attributes[B]=$})),N}))})(g)))},(o=v[0])!=null&&o.$el_text?{$el_text:(n=v[0])==null?void 0:n.$el_text}:{},m&&r.type==="click"?{$external_click_url:m}:{},y)}}var wd=go("[ExceptionAutocapture]");function GO(e,t,o){try{if(!(t in e))return()=>{};var n=e[t],r=o(n);return ai(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=r,()=>{e[t]=n}}catch{return()=>{}}}var Dse=go("[TracingHeaders]"),Zi=go("[Web Vitals]"),KO=9e5,WO="disabled",YO="lazy_loading",Ed="awaiting_config",yp="missing_config";go("[SessionRecording]"),go("[SessionRecording]");var AC="[SessionRecording]",Qi=go(AC),Ose=go("[Heatmaps]");function ZO(e){return Do(e)&&"clientX"in e&&"clientY"in e&&Ur(e.clientX)&&Ur(e.clientY)}var QO=go("[Product Tours]"),Ise=["$set_once","$set"],Ji=go("[SiteApps]"),JO="Error while initializing PostHog app with config id ";function Cc(e,t,o){if(Et(e))return!1;switch(o){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class Mse{constructor(t){this.vn=new PE,this.fn=(o,n)=>this.pn(o,n)&&this.gn(o,n)&&this.mn(o,n)&&this.yn(o,n),this.pn=(o,n)=>n==null||!n.event||o?.event===n?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;ze((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((n,r)=>{this.on(n,r)}))}register(t){var o,n;if(!ze((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((f=>{var h;(h=this.bn)==null||h.add(f?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var r,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((d=>{d!=null&&d.selector&&i.add(d?.selector)}))})),(r=this._instance)==null||r.autocapture.setElementSelectors(i)}}on(t,o){var n;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((n=this._n)==null?void 0:n.size)>0&&this._n.forEach((r=>{this.wn(o,r)&&this.vn.emit("actionCaptured",r.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var n of o.steps)if(this.fn(t,n))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var n,r=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!r||typeof r!="string"||!Cc(r,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var n;if(o==null||!o.href)return!0;var r=this.kn(t);if(r.length>0)return r.some((c=>Cc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!l&&Cc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var n;if(o==null||!o.text)return!0;var r=this.kn(t);if(r.length>0)return r.some((f=>Cc(f.text,o.text,o.text_matching||"exact")||Cc(f.$el_text,o.text,o.text_matching||"exact")));var i,l,c,d=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!d&&(i=(function(f){for(var h,m=[],g=/(?::|")text="(.*?)"/g;!Et(h=g.exec(f));)m.includes(h[1])||m.push(h[1]);return m})(d),l=o.text,c=o.text_matching||"exact",i.some((f=>Cc(f,l,c))))}xn(t,o){var n,r;if(o==null||!o.selector)return!0;var i=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||eB(o.properties.reduce(((n,r)=>{var i=Ot(r.value)?r.value.map(String):r.value!=null?[String(r.value)]:[];return n[r.key]={values:i,operator:r.operator||"exact"},n}),{}),t?.properties)}}class Lse{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&eB(t.propertyFilters,o?.properties)}Nn(t,o){var n=new Map;return t.forEach((r=>{var i;(i=r.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=n.get(l.name)||[];c.push(r.id),n.set(l.name,c)}}))})),n}Mn(t,o,n){var r=(n===bd.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>r?.includes(c.id)))})),i.filter((l=>{var c,d=(c=l.conditions)==null||(c=c[n])==null||(c=c.values)==null?void 0:c.find((f=>f.name===t));return this.Rn(d,o)}))}register(t){var o;ze((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((n=>{var r,i;return((r=n.conditions)==null?void 0:r.actions)&&((i=n.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Mse(this._instance),this.Ln.init(),this.Ln.In((n=>{this.onAction(n)}))),o.forEach((n=>{var r,i,l,c,d;n.conditions&&(r=n.conditions)!=null&&r.actions&&(i=n.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(n.conditions.actions.values),(d=n.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((f=>{if(f&&f.name){var h=this.En.get(f.name);h&&h.push(n.id),this.En.set(f.name,h||[n.id])}})))})))}On(t){var o,n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),r=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));n.length===0&&r.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,bd.Activation),this.An=this.Nn(t,bd.Cancellation))}onEvent(t,o){var n,r=this.le(),i=this.Dn(),l=this.Bn(),c=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(l===t&&o&&c.length>0){var d,f;r.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var h=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(f=o.properties)==null?void 0:f.$product_tour_id);if(h){var m=c.indexOf(h);0>m||(c.splice(m,1),this.jn(c))}}else{if(this.An.has(t)){var g=this.Mn(t,o,bd.Cancellation);g.length>0&&(r.info("cancel event matched, cancelling items",{event:t,itemsToCancel:g.map((y=>y.id))}),g.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(t)){r.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,bd.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(t){var o,n=this.Dn(),r=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[n])||[];this.En.has(t)&&this.jn(r.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),n=[...new Set(t)].filter((r=>!this.qn(r)));o.info("updating activated items",{activatedItems:n}),this.Zn(n)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class Nse extends Lse{constructor(t){super(t)}Dn(){return dC}Bn(){return Fd.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return Jt}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[dC]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var OS="SDK is not enabled or survey functionality is not yet loaded",XO="Disabled. Not loading surveys.",Fse=pe!=null&&pe.location?kg(pe.location.hash,"__posthog")||kg(location.hash,"state"):null,eI="_postHogToolbarParams",tI=go("[Toolbar]"),Ln=go("[FeatureFlags]"),Qs=go("[FeatureFlags]",{debugEnabled:!0}),IS=`" failed. Feature flags didn't load in time.`,oI=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},nI=e=>{var t={};for(var[o,n]of Np(e||{}))n&&(t[o]=n);return t},ni=go("[Error tracking]"),rI="Refusing to render web experiment since the viewer is a likely bot",Bse={icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!pe&&Ig(t.href,e),not_regex:(e,t)=>!!pe&&!Ig(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Tn{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),o.getWebExperiments((r=>{Tn.Hn("retrieved web experiments from the server"),o.zn=new Map,r.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Tn.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);So(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var d in i.variants){var f=i.variants[d];Tn.Yn(f)&&o.Un(i.name,d,f.transforms)}}))}),n)},this._instance=t,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Tn.Hn(rI);else if(!this.Bt.disable_web_experiments){if(Et(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Tn.Hn("applying feature flags",t),t.forEach((o=>{var n;if(this.zn&&(n=this.zn)!=null&&n.has(o)){var r,i=this._instance.getFeatureFlag(o),l=(r=this.zn)==null?void 0:r.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Tn.getWindowLocation();if(t!=null&&t.search){var o=Ag(t?.search,"__experiment_id"),n=Ag(t?.search,"__experiment_variant");o&&n&&(Tn.Hn("previewing web experiments "+o+" && "+n),this.getWebExperiments((r=>{this.Gn(parseInt(o),n,r)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,n){if(this.Bt.disable_web_experiments&&!n)return t([]);var r=this._instance.get_property("$web_experiments");if(r&&!o)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,n){var r=n.filter((i=>i.id===t));r&&r.length>0&&(Tn.Hn("Previewing web experiment ["+r[0].name+"] with variant ["+o+"]"),this.Un(r[0].name,o,r[0].variants[o].transforms))}static Yn(t){return!Et(t.conditions)&&Tn.Wn(t)&&Tn.Xn(t)}static Wn(t){var o;if(Et(t.conditions)||Et((o=t.conditions)==null?void 0:o.url))return!0;var n,r,i,l=Tn.getWindowLocation();return!!l&&((n=t.conditions)==null||!n.url||Bse[(r=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&r!==void 0?r:"icontains"](t.conditions.url,l))}static getWindowLocation(){return pe?.location}static Xn(t){var o;if(Et(t.conditions)||Et((o=t.conditions)==null?void 0:o.utm))return!0;var n=B4();if(n.utm_source){var r,i,l,c,d,f,h,m,g=(r=t.conditions)==null||(r=r.utm)==null||!r.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==n.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==n.utm_source,y=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_medium)==n.utm_medium,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_term||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_term)==n.utm_term;return g&&y&&S&&v}return!1}static Hn(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;o>r;r++)n[r-1]=arguments[r];Fe.info("[WebExperiments] "+t,n)}Un(t,o,n){this._is_bot()?Tn.Hn(rI):o!=="control"?n.forEach((r=>{if(r.selector){var i;Tn.Hn("applying transform of variant "+o+" for experiment "+t+" ",r);var l=(i=document)==null?void 0:i.querySelectorAll(r.selector);l?.forEach((c=>{var d=c;r.html&&(d.innerHTML=r.html),r.css&&d.setAttribute("style",r.css)}))}})):Tn.Hn("Control variants leave the page unmodified.")}_is_bot(){return vr&&this._instance?J4(vr,this.Bt.custom_blocked_useragents):void 0}}var Mr=go("[Conversations]"),Js="Conversations not available yet.",wv={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ln.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ln.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var n=o&&typeof o=="string"&&o.trim().length>0;return n||Ln.error("Invalid evaluation context found:",o,"Expected non-empty string"),n})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,n=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(n).length){var r,i,l=(r=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&r!==void 0?r:{},c=Object.keys(n).filter((f=>!!n[f])).reduce(((f,h)=>(f[h]=n[h]||!1,f)),{}),d=Object.keys(l).filter((f=>c[f])).reduce(((f,h)=>(l[h]&&(f[h]=l[h]),f)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var n=o!=null&&o.merge?this.getFlagVariants():{},r=o!=null&&o.merge?this.getFlagPayloads():{},i=Ie({},n,e),l=Ie({},r,t),c={};for(var[d,f]of Object.entries(i)){var h=typeof f=="string";c[d]={key:d,enabled:!!h||!!f,variant:h?f:void 0,reason:void 0,metadata:ze(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(sC),t=this.os(ri),o=this.os(xc);if(!o&&!t)return e||{};var n=To({},e||{}),r=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of r){var l,c,d=n[i],f=t?.[i],h=ze(f)?(l=d?.enabled)!==null&&l!==void 0&&l:!!f,m=ze(f)?d.variant:typeof f=="string"?f:void 0,g=o?.[i],v=Ie({},d,{enabled:h,variant:h?m??d?.variant:void 0});h!==d?.enabled&&(v.original_enabled=d?.enabled),m!==d?.variant&&(v.original_variant=d?.variant),g&&(v.metadata=Ie({},d?.metadata,{payload:g,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),n[i]=v}return this.Jn||(Ln.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:n}),this.Jn=!0),n}getFlagVariants(){var e=this.os(Ic),t=this.os(ri);if(!t)return e||{};for(var o=To({},e),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(lC),t=this.os(xc);if(!t)return e||{};for(var o=To({},e||{}),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,n=this.os(Sg),r={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ie({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Nd)||{}),group_properties:this.os(Xs),timezone:V4()};yi(n)||ze(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.cs()&&(r.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:r,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,f,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Qn=!1,!r.disable_flags||this.ts){this.rs=!h;var m=[];l.error?l.error instanceof Error?m.push(l.error.name==="AbortError"?"timeout":"connection_error"):m.push("unknown_error"):l.statusCode!==200&&m.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&m.push("errors_while_computing_flags");var g,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&m.push("quota_limited"),(f=this.ni)==null||f.register({[mC]:m}),v?Ln.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."):(r.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},h,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var n=this.getFeatureFlagResult(e,t);return(o=n?.variant)!==null&&o!==void 0?o:n?.enabled}}else Ln.warn('getFeatureFlag for key "'+e+IS)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),n=e in o,r=o[e],i=this.getFlagPayloads()[e],l=String(r),c=this.os(cC)||void 0,d=this.os(Cg)||void 0,f=this.os(qd)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var h,m=this._instance.get_session_id(),g=this.os(fC);m&&m!==g&&(f={},(h=this.ni)==null||h.register({[qd]:f,[fC]:m}))}if((t.send_event||!("send_event"in t))&&(!(e in f)||!f[e].includes(l))){var v,y,S,E,_,w,R,x,T,A;Ot(f[e])?f[e].push(l):f[e]=[l],(v=this.ni)==null||v.register({[qd]:f});var k=this.getFeatureFlagDetails(e),O=[...(y=this.os(mC))!==null&&y!==void 0?y:[]];ze(r)&&O.push("flag_missing");var N={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((E=this.Bt.bootstrap)==null||(E=E.featureFlagPayloads)==null?void 0:E[e])||null,$used_bootstrap_value:!this.rs};ze(k==null||(_=k.metadata)==null?void 0:_.version)||(N.$feature_flag_version=k.metadata.version);var q,B=(w=k==null||(R=k.reason)==null?void 0:R.description)!==null&&w!==void 0?w:k==null||(x=k.reason)==null?void 0:x.code;B&&(N.$feature_flag_reason=B),k!=null&&(T=k.metadata)!=null&&T.id&&(N.$feature_flag_id=k.metadata.id),ze(k?.original_variant)&&ze(k?.original_enabled)||(N.$feature_flag_original_response=ze(k.original_variant)?k.original_enabled:k.original_variant),k!=null&&(A=k.metadata)!=null&&A.original_payload&&(N.$feature_flag_original_payload=k==null||(q=k.metadata)==null?void 0:q.original_payload),O.length&&(N.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",N)}if(n){var $=i;if(!ze(i))try{$=JSON.parse(i)}catch{}return{key:e,enabled:!!r,variant:typeof r=="string"?r:void 0,payload:$}}}}else Ln.warn('getFeatureFlagResult for key "'+e+IS)}getRemoteConfigPayload(e,t){var o=this.Bt.token,n={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(n.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(r){var i,l=(i=r.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return ze(o)?void 0:!!o}Ln.warn('isFeatureEnabled for key "'+e+IS)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,d,f,h,m){d===void 0&&(d={}),f===void 0&&(f={}),h===void 0&&(h={});var g=(O=>{var N=O.flags;return N?(O.featureFlags=Object.fromEntries(Object.keys(N).map((q=>{var B;return[q,(B=N[q].variant)!==null&&B!==void 0?B:N[q].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(N).filter((q=>N[q].enabled)).filter((q=>{var B;return(B=N[q].metadata)==null?void 0:B.payload})).map((q=>{var B;return[q,(B=N[q].metadata)==null?void 0:B.payload]})))):Ln.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=g.flags,y=g.featureFlags,S=g.featureFlagPayloads;if(y){var E=l.requestId,_=l.evaluatedAt;if(Ot(y)){Ln.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var w={};if(y)for(var R=0;y.length>R;R++)w[y[R]]=!0;c&&c.register({[Mp]:y,[Ic]:w})}else{var x=y,T=S,A=v;if(m!=null&&m.partialResponse)x=Ie({},d,x),T=Ie({},f,T),A=Ie({},h,A);else if(l.errorsWhileComputingFlags)if(v){var k=new Set(Object.keys(v).filter((O=>{var N;return!((N=v[O])!=null&&N.failed)})));x=Ie({},d,Object.fromEntries(Object.entries(x).filter((O=>{var[N]=O;return k.has(N)})))),T=Ie({},f,Object.fromEntries(Object.entries(T||{}).filter((O=>{var[N]=O;return k.has(N)})))),A=Ie({},h,Object.fromEntries(Object.entries(A||{}).filter((O=>{var[N]=O;return k.has(N)}))))}else x=Ie({},d,x),T=Ie({},f,T),A=Ie({},h,A);c&&c.register(Ie({[Mp]:Object.keys(nI(x)),[Ic]:x||{},[lC]:T||{},[sC]:A||{}},E?{[cC]:E}:{},_?{[Cg]:_}:{}))}}})(e,this.ni,n,r,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Ln.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Ln.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ri),this.ni.unregister(xc),this.ps(),Qs.info("All overrides cleared");if(Ot(e)){var t=oI(e);return this.ni.register({[ri]:t}),this.ps(),Qs.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,n=e;if(this.Jn=!!((o=n.suppressWarning)!==null&&o!==void 0&&o),"flags"in n){if(n.flags===!1)this.ni.unregister(ri),Qs.info("Flag overrides cleared");else if(n.flags){if(Ot(n.flags)){var r=oI(n.flags);this.ni.register({[ri]:r})}else this.ni.register({[ri]:n.flags});Qs.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.ni.unregister(xc),Qs.info("Payload overrides cleared")):n.payloads&&(this.ni.register({[xc]:n.payloads}),Qs.info("Payload overrides set",{payloads:n.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ri]:e}),this.ps(),Qs.info("Flag overrides set",{flags:e});Ln.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var n,r=(this.os(Ld)||[]).find((d=>d.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};r&&(l.$early_access_feature_name=r.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Ie({},this.getFlagVariants(),{[e]:t});(n=this.ni)==null||n.register({[Mp]:Object.keys(nI(c)),[Ic]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var n=this.os(Ld),r=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+r),method:"GET",callback:i=>{var l,c;if(i.json){var d=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(Ld),(c=this.ni)==null||c.register({[Ld]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,n)=>(o[n]=t[n],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((n=>n(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Nd)||{},n=e?.$set||(e!=null&&e.$set_once?{}:e),r=e?.$set_once,i={};if(r)for(var l in r)({}).hasOwnProperty.call(r,l)&&(l in o||(i[l]=r[l]));this._instance.register({[Nd]:Ie({},o,i,n)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Nd)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Xs)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((n=>{o[n]=Ie({},o[n],e[n]),delete e[n]})),this._instance.register({[Xs]:Ie({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Xs)||{};this._instance.register({[Xs]:Ie({},t,{[e]:{}})})}else this._instance.unregister(Xs)}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}}},zse={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===Ed||this.bs===yp?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=WO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Qi.error("started without valid sessionManager"),new Error(AC+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===si)throw new Error(AC+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Md))==null||!e.enabled),o=!this.Bt.disable_session_recording,n=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return pe&&t&&o&&!n}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!ze(Object.assign)&&!ze(Array.from);this.ws&&o?(this.Is(e),Qi.info("starting")):(this.bs=WO,this.stopRecording())}}Is(e){var t,o,n;this.ws&&(this.bs!==Ed&&this.bs!==yp&&(this.bs=YO),Ze!=null&&(t=Ze.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=Ze.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.Ss,(r=>{if(r)return Qi.error("could not load recorder",r);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(wE)}Ts(e,t){if(Et(e))return null;var o,n=Ur(e)?e:parseFloat(e);return typeof(o=n)!="number"||!Number.isFinite(o)||0>o||o>1?(Qi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):n}As(e){if(this.ni){var t,o,n=this.ni,r=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),f=c??d;Et(f)&&this.ks();var h=l?.minimumDurationMilliseconds;n.register({[Md]:Ie({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Ie({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:f,minimumDurationMilliseconds:ze(h)?null:h,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};r(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(r)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===Ed&&(this.bs=yp,Qi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):Qi.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Md);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Md);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=Ze.__PosthogExtensions__)==null||!t.initSessionRecording)return Qi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[I4]:!0});if(this.ys||(this.ys=(o=Ze.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===yp||this.bs===Ed?void 0:(this.bs=Ed,Qi.info("persisted remote config is stale, requesting fresh config before starting"),void new H4(this._instance).load());this.bs=YO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[R4]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[T4]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?P4:A4]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},jse={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new VO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Do(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((n=>new RegExp(n))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((n=>new RegExp(n))),o}Os(){if(this.isBrowserSupported()){if(pe&&Ne){var e=o=>{o=o||pe?.event;try{this.Ps(o)}catch(n){HO.error("Failed to capture event",n)}};if(Vo(Ne,"submit",e,{capture:!0}),Vo(Ne,"change",e,{capture:!0}),Vo(Ne,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||pe?.event,kS)};Vo(Ne,"copy",t,{capture:!0}),Vo(Ne,"cut",t,{capture:!0})}}}else HO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[X_]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((n=>{var r=Ne?.querySelectorAll(n);r?.forEach((i=>{e===i&&o.push(n)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[X_];if(yi(this.Ns)&&!xa(o)&&!this.instance.Fr())return!1;var n=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!n}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,n=BO(e);nB(n)&&(n=n.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(m,g){if(!pe||RC(m))return!1;var v,y,S;if(xa(g)?(v=!!g&&jO,y=void 0):(v=(S=g?.css_selector_ignorelist)!==null&&S!==void 0?S:jO,y=g?.content_ignorelist),v===!1)return!1;var{targetElementList:E}=UO(m,!1);return!(function(_,w){if(_===!1||ze(_))return!1;var R;if(_===!0)R=wse;else{if(!Ot(_))return!1;if(_.length>10)return Fe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;R=_.map((x=>x.toLowerCase()))}return w.some((x=>{var{safeText:T,ariaLabel:A}=x;return R.some((k=>T.includes(k)||A.includes(k)))}))})(y,E.map((_=>{var w;return{safeText:pf(_).toLowerCase(),ariaLabel:((w=_.getAttribute("aria-label"))==null?void 0:w.toLowerCase().trim())||""}})))&&!zO(E,v)})(n,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var r=t===kS;if(n&&(function(m,g,v,y,S){var E,_,w,R;if(v===void 0&&(v=void 0),!pe||RC(m)||(E=v)!=null&&E.url_allowlist&&!FO(v.url_allowlist)||(_=v)!=null&&_.url_ignorelist&&FO(v.url_ignorelist))return!1;if((w=v)!=null&&w.dom_event_allowlist){var x=v.dom_event_allowlist;if(x&&!x.some((N=>g.type===N)))return!1}var{parentIsUsefulElement:T,targetElementList:A}=UO(m,y);if(!(function(N,q){var B=q?.element_allowlist;if(ze(B))return!0;var $,U=function(ae){if(B.some((H=>ae.tagName.toLowerCase()===H)))return{v:!0}};for(var W of N)if($=U(W))return $.v;return!1})(A,v)||!zO(A,(R=v)==null?void 0:R.css_selector_allowlist))return!1;var k=pe.getComputedStyle(m);if(k&&k.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var O=m.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(g.type)>=0;default:return T?(S||["click"]).indexOf(g.type)>=0:(S||["click"]).indexOf(g.type)>=0&&(kE.indexOf(O)>-1||m.getAttribute("contenteditable")==="true")}})(n,e,this.Bt,r,r?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=kse(n,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(n);if(c&&c.length>0&&(i.$element_selectors=c),t===kS){var d,f=aB(pe==null||(d=pe.getSelection())==null?void 0:d.toString()),h=e.type||"clipboard";if(!f)return!1;i.$selected_content=f,i.$copy_type=h}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return ai(Ne?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(pe==null||(t=pe.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Fe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Fe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(pe&&pe.history){var o=this;(e=pe.history.pushState)!=null&&e.__posthog_wrapped__||GO(pe.history,"pushState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("pushState")})),(t=pe.history.replaceState)!=null&&t.__posthog_wrapped__||GO(pe.history,"replaceState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=pe==null||(t=pe.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Tc,{navigation_type:e}),this.Ls=o}catch(n){Fe.error("Error capturing "+e+" pageview",n)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Vo(pe,"popstate",e),this.Ds=()=>{pe&&pe.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[eC]),this.rageclicks=new VO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Do(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Et(this.Bt.capture_heatmaps)?Et(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Ose.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[eC]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Ne?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){pe&&Ne&&(this.zs=this.Yr.bind(this),Vo(pe,Tg,this.zs),this.Us=e=>this.Tt(e||pe?.event),Vo(Ne,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||pe?.event),Vo(Ne,"mousemove",this.Ys,{capture:!0}),this.Ws=new vO(this.instance,Hie,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Vo(Ne,xg,this.Xs),this.Rs=!0)}Vs(){var e;pe&&Ne&&(this.zs&&pe.removeEventListener(Tg,this.zs),this.Us&&Ne.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Ne.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Ne.removeEventListener(xg,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),i=(function(l,c,d){for(var f=l;f&&Cv(f)&&!ms(f,"body");){if(f===d)return!1;if(wt(c,pe?.getComputedStyle(f).position))return!0;f=iB(f)}return!1})(BO(e),["fixed","sticky"],r);return{x:e.clientX+(i?0:n),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!NO(e.target)&&ZO(e)){var n=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Ie({},n,{type:"rageclick"})),this.Qs(n)}}Gs(e){!NO(e.target)&&ZO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(pe){var t=pe.location.href,o=this.Bt.custom_personal_data_properties,n=this.Bt.mask_personal_data_properties?[...tu,...o||[]]:[],r=mf(t,n,hf);this.T=this.T||{},this.T[r]||(this.T[r]=[]),this.T[r].push(e)}}Yr(){this.T&&!Oc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:vO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,n)=>Ie({},o,{["$web_vitals_"+n.name+"_event"]:Ie({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var n,r=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(ze(r))Zi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();ze(i)||(Et(o?.name)||Et(o?.value)?Zi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ze(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=ze(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Ie({},o,{$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):Zi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,n,r,i,l=Ze.__PosthogExtensions__;ze(l)||ze(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:n,onFCP:r,onINP:i}=l.postHogWebVitalsCallbacks),o&&n&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):Zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[rC]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Do(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Et(o)?((t=this._instance.persistence)==null?void 0:t.props[iC])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Do(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Do(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Do(this.oo)&&Ur(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:KO;return e>0&&6e4>=e?KO:e}get isEnabled(){var e=pn?.protocol;if(e!=="http:"&&e!=="https:")return Zi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Do(this.oo)?this.oo.web_vitals:xa(this.oo)?this.oo:void 0;return xa(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(Zi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Do(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Do(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[rC]:t}),this._instance.persistence.register({[iC]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Zi.error("failed to load script",n):e()}))}io(){var e=pe?pe.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...tu,...t||[]]:[];return mf(e,o,hf)}Zi.error("Could not determine current URL")}}},Use={exceptionObserver:class{constructor(e){var t,o,n;this.so=()=>{var r;if(pe&&this.isEnabled&&(r=Ze.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var i=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){wd.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[tC]),this.do=new eie({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,Gt:wd}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Do(e)?t=Ie({},t,e):(ze(e)?this.co:e)&&(t=Ie({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(wd.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return wd.error("failed to load script",n);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[tC]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,n,r=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(r)?wd.info("Skipping exception capture because of client rate limiting.",{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new mie([new _ie,new kie,new wie,new Cie,new Pie,new Rie,new xie,new Aie],(function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;r>l;l++)i[l-1]=arguments[l];return function(c,d){d===void 0&&(d=0);for(var f=[],h=c.split(`
|
|
163
|
-
`),m=d;h.length>m;m++){var g=h[m];if(1024>=g.length){var v=mO.test(g)?g.replace(mO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){f.push(S);break}}if(f.length>=50)break}}}return(function(E){if(!E.length)return[];var _=Array.from(E);return _.reverse(),_.slice(0,50).map((w=>{return Ie({},w,{filename:w.filename||(R=_,R[R.length-1]||{}).filename,function:w.function||eu});var R}))})(f)}})("web:javascript",vie,Sie)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(oC))!==null&&t!==void 0?t:[],this.mo=yg(this.yo()),this.bo=new Oie(this.mo)}onConfigChange(){this.mo=yg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[oC]:this.fo,[nC]:i})}}get _o(){var e,t=!!this._instance.get_property(nC),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!So(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>Die.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Ie({[vg]:e,[bg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Et(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ie({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[vg]:e,[bg]:new Date().toISOString()})}wo(e){return Do(e)?Ie({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return So(r)&&r.length>0&&o.$exception_types.push(r),So(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=X4[r.operator],c=Ot(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!Et(e)&&Ot(e)}}},$se=Ie({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[aC]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(aC)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?QO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Ot(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Lp];if(Ot(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return QO.error(l),void e([],{isLoaded:!1,error:l})}var c=Ot(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Lp]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Et(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Lp)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},wv),qse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},f=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[m,g]of Object.entries(h))d[m]={id:f[m],type:m,properties:g};var{$set_once:v,$set:y}=e;return{event:Ie({},e4(e,Ise),{properties:Ie({},e.properties,y?{$set:Ie({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ie({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(JO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var f;Ze["__$$ph_site_app_"+d]=r._instance,(f=Ze.__PosthogExtensions__)==null||f.loadSiteApp==null||f.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(JO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Vse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return Dse.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Hse=Ie({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Et(t))return Jt.warn("Flags not loaded yet. Not loading surveys.");var o=Ot(t);this.jo=o?t.length>0:t,Jt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(xC)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Jt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Jt.info(XO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Jt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(EE);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Jt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Nse(this._instance),Jt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Jt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Jt.info(XO),e([]);var o,n=this._instance.get_property(uC);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),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:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Jt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var f,h=r.json.surveys||[],m=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((f=this._surveyEventReceiver)==null||f.register(m)),(i=this._instance.persistence)==null||i.register({[uC]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Jt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Et(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Jt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(Et(this._surveyManager))return{eligible:!1,reason:OS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Et(this._surveyManager))return Jt.warn("init was not called"),{visible:!1,disabledReason:OS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Et(this._surveyManager)?(Jt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:OS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(Et(this._surveyManager))Jt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(gse.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Jt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Jt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Jt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Jt.warn("Survey element not found")}else Jt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Jt.warn("Survey not found")}}displaySurvey(e,t){var o;if(Et(this._surveyManager))Jt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Ie({},n,{appearance:Ie({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==yC.Popover&&t.initialResponses&&Jt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Jt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==yC.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Jt.warn("Survey not found")}}cancelPendingSurvey(e){Et(this._surveyManager)?Jt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},wv),Gse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),M4(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=Fse||kg(e.hash,"__posthog")||kg(e.hash,"state"),i=r?pO((()=>JSON.parse(atob(decodeURIComponent(r)))))||pO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(eI)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!Et(t)&&ai(t)?t(e,this.instance):tI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(k4));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(eI,JSON.stringify(Ie({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return tI.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),Vo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},Kse=Ie({experiments:Tn},wv),Wse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Et(t)||(xa(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||M4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(EE);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Js),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Js),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Js),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Js),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Js),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Js),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Js),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Yse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=go("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Et(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(EE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,f=Date.now();if(c>f-this.aa||(this.aa=f,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(m,g){var v=m.level||"info",{text:y,number:S}=S4[v]||die,E=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var w=Ie({},_,m.attributes||{}),R={timeUnixNano:E,observedTimeUnixNano:E,severityNumber:S,severityText:y,body:{stringValue:m.body},attributes:fO(w)};return m.trace_id&&(R.traceId=m.trace_id),m.span_id&&(R.spanId=m.span_id),ze(m.trace_flags)||(R.flags=m.trace_flags),R})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Ie({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,f){return{resourceLogs:[{resource:{attributes:fO(c)},scopeLogs:[{scope:{name:d,version:f},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},Zse=Ie({},wv,zse,jse,Use,$se,qse,Hse,Vse,Gse,Kse,Wse,Yse);Fr.__defaultExtensionClasses=Ie({},Zse);var aI,_l=(aI=Hd[Rc]=new Fr,(function(){function e(){e.done||(e.done=!0,oB=!1,fo(Hd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():Vo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),aI);const Qse="mesh-ui-resources",Lg="html",Jse=10080*60*1e3,Xse=50,ele=16*1024*1024;function tle(e){return e[0]==="mcp"&&e[1]===b2}function Ev(){return new Promise((e,t)=>{const o=indexedDB.open(Qse,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Lg)||o.result.createObjectStore(Lg)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function nu(e,t){return e.transaction(Lg,t).objectStore(Lg)}function kC(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function ole(e){if(!(typeof indexedDB>"u"))try{const t=await Ev(),o=nu(t,"readonly"),n=await kC(o.getAllKeys()),r=await kC(o.getAll()),i=Date.now(),l=n.map((f,h)=>({key:f,value:r[h]})).sort((f,h)=>(h.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:h}of l){if(!h||i-h.updatedAt>Jse||d>=Xse){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=nu(t,"readwrite");for(const h of c)f.delete(h)}}catch{}}function nle(e){if(typeof indexedDB>"u")return()=>{};const t=Ev().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!tle(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>ele||t.then(i=>{if(i)try{nu(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function rle(){typeof indexedDB>"u"||Ev().then(e=>nu(e,"readwrite").clear()).catch(()=>{})}async function Lfe(e){if(!(typeof indexedDB>"u"))try{const t=await Ev(),o=await kC(nu(t,"readonly").getAllKeys()),n=nu(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===b2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Ng="mesh:rq-cache",dB=1440*60*1e3,ale=1e3,ile=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),sle=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let fB=!1,mB=!1;function lle(e){const t=e[0];return typeof t=="string"&&ile.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&sle.has(e[4])}function cle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Ng);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>dB;if(o.buster!=="4.97.0"||n||!o.state){window.localStorage.removeItem(Ng);return}bz(e,o.state),fB=!0}catch{dle()}}function ule(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=vz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&lle(r.queryKey)});window.localStorage.setItem(Ng,JSON.stringify({buster:"4.97.0",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,ale))})}const hB="studio:org-cache:";function pB(e){return`${hB}${e}`}function Nfe(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(pB(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>dB?null:(mB=!0,n)}catch{return null}}function Ffe(e,t,o){if(!(typeof window>"u"))try{const n=pB(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function dle(){if(rle(),!(typeof window>"u"))try{window.localStorage.removeItem(Ng);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(hB)&&window.localStorage.removeItem(t)}}catch{}}function fle(){return fB}function mle(){return mB}let hi=!1,DC=null,iI=!1;const DE="mesh:lp-distinct-id",MS="/api/_reports/link-token/",hle=1440*60*1e3;function gB(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(MS)&&r.pathname!==MS&&(r.pathname=`${MS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function LS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?gB(o):o]))}const ple=e=>e?(e.properties=LS(e.properties),e.$set&&(e.$set=LS(e.$set)),e.$set_once&&(e.$set_once=LS(e.$set_once)),e):null;function vB(){try{const e=window.localStorage.getItem(DE);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=hle?t:void 0}catch{return}}function gle(){try{window.localStorage.removeItem(DE)}catch{}}function vle(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(DE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??vB();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function ble(e){const t=vB();if(t&&(gle(),t!==e))try{_l.alias(t)}catch{}}function yle(e,t){if(hi||typeof window>"u")return;const o=vle();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:ple,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:gB(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function Sle(e,t){hi&&(_l.identify(e,t),ble(e))}function _le(){hi&&(_l.reset(),DC=null)}function Cle(e,t){hi&&_l.capture(e,t)}function Bfe(){return hi}function zfe(){if(!hi||iI||typeof performance>"u")return;iI=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Cle("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:fle(),org_cache_restored:mle()})}function jfe(e,t){hi&&e!==DC&&(_l.group("organization",e,t),DC=e)}function bB(e,t){if(hi)try{_l.captureException(e,t)}catch{}}let Sp=null;function wle({children:e}){const t=T2(),{data:o}=rv.useSession();if(t.posthog){yle(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==Sp?(Sle(n,{email:o?.user?.email,name:o?.user?.name}),Sp=n):!n&&Sp&&(_le(),Sp=null)}return P.jsx(P.Fragment,{children:e})}const OE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));OE.displayName="AlertTriangle";const yB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));yB.displayName="Archive";const IE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));IE.displayName="Loading01";const SB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));SB.displayName="Lock01";const _B=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));_B.displayName="RefreshCw01";function ME(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=P.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:P.jsx(IE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ele(e){try{return JSON.parse(e)}catch{return}}function sI(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Ele(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function xle(e,t){const o=no.c(25),n=Bg();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>sI(e,t),c=()=>sI(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:f}=PI(d);let h;o[10]!==e?(h=async w=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(w)),w),o[10]=e,o[11]=h):h=o[11];let m;o[12]!==n||o[13]!==i?(m=w=>{n.setQueryData(i,w)},o[12]=n,o[13]=i,o[14]=m):m=o[14];let g;o[15]!==h||o[16]!==m?(g={mutationFn:h,onSuccess:m},o[15]=h,o[16]=m,o[17]=g):g=o[17];const v=_p(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=w=>{const R=n.getQueryData(i),x=typeof w=="function"?w(R):w;v.mutate(x)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,E=f;let _;return o[22]!==S||o[23]!==E?(_=[E,S],o[22]=S,o[23]=E,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,sidePanelWidth:()=>"mesh:side-panel:width",sidebarOpen:()=>"mesh:sidebar-open",preferences:()=>"mesh:user:preferences",lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`mesh:announcement:pt-br:${e}`},Tle=["en","pt-BR"];function CB(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Rle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:CB()},wB=["auto","readonly"],Ufe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Ple=["light","dark","system"];function $fe(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(wB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function EB(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],xle(t,Ale)}function Ale(e){const t={...Rle,...e};return wB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Ple.includes(t.theme)||(t.theme="system"),Tle.includes(t.language)||(t.language=CB()),t}async function kle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Dle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
|
|
163
|
+
`),m=d;h.length>m;m++){var g=h[m];if(1024>=g.length){var v=mO.test(g)?g.replace(mO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){f.push(S);break}}if(f.length>=50)break}}}return(function(E){if(!E.length)return[];var _=Array.from(E);return _.reverse(),_.slice(0,50).map((w=>{return Ie({},w,{filename:w.filename||(R=_,R[R.length-1]||{}).filename,function:w.function||eu});var R}))})(f)}})("web:javascript",vie,Sie)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(oC))!==null&&t!==void 0?t:[],this.mo=yg(this.yo()),this.bo=new Oie(this.mo)}onConfigChange(){this.mo=yg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[oC]:this.fo,[nC]:i})}}get _o(){var e,t=!!this._instance.get_property(nC),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!So(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>Die.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Ie({[vg]:e,[bg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Et(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ie({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[vg]:e,[bg]:new Date().toISOString()})}wo(e){return Do(e)?Ie({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return So(r)&&r.length>0&&o.$exception_types.push(r),So(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=X4[r.operator],c=Ot(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!Et(e)&&Ot(e)}}},$se=Ie({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[aC]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(aC)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?QO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Ot(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Lp];if(Ot(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return QO.error(l),void e([],{isLoaded:!1,error:l})}var c=Ot(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Lp]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Et(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Lp)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},wv),qse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},f=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[m,g]of Object.entries(h))d[m]={id:f[m],type:m,properties:g};var{$set_once:v,$set:y}=e;return{event:Ie({},e4(e,Ise),{properties:Ie({},e.properties,y?{$set:Ie({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ie({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(JO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var f;Ze["__$$ph_site_app_"+d]=r._instance,(f=Ze.__PosthogExtensions__)==null||f.loadSiteApp==null||f.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(JO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Vse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return Dse.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Hse=Ie({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Et(t))return Jt.warn("Flags not loaded yet. Not loading surveys.");var o=Ot(t);this.jo=o?t.length>0:t,Jt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(xC)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Jt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Jt.info(XO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Jt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(EE);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Jt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Nse(this._instance),Jt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Jt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Jt.info(XO),e([]);var o,n=this._instance.get_property(uC);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),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:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Jt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var f,h=r.json.surveys||[],m=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));m.length>0&&((f=this._surveyEventReceiver)==null||f.register(m)),(i=this._instance.persistence)==null||i.register({[uC]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Jt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Et(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Jt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(Et(this._surveyManager))return{eligible:!1,reason:OS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Et(this._surveyManager))return Jt.warn("init was not called"),{visible:!1,disabledReason:OS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Et(this._surveyManager)?(Jt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:OS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(Et(this._surveyManager))Jt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(gse.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Jt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Jt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Jt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Jt.warn("Survey element not found")}else Jt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Jt.warn("Survey not found")}}displaySurvey(e,t){var o;if(Et(this._surveyManager))Jt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Ie({},n,{appearance:Ie({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==yC.Popover&&t.initialResponses&&Jt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Jt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==yC.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Jt.warn("Survey not found")}}cancelPendingSurvey(e){Et(this._surveyManager)?Jt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},wv),Gse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),M4(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=Fse||kg(e.hash,"__posthog")||kg(e.hash,"state"),i=r?pO((()=>JSON.parse(atob(decodeURIComponent(r)))))||pO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(eI)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!Et(t)&&ai(t)?t(e,this.instance):tI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(k4));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(eI,JSON.stringify(Ie({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return tI.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),Vo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},Kse=Ie({experiments:Tn},wv),Wse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Et(t)||(xa(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||M4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(EE);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Js),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Js),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Js),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Js),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Js),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Js),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Js),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Yse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=go("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Et(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(EE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,f=Date.now();if(c>f-this.aa||(this.aa=f,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(m,g){var v=m.level||"info",{text:y,number:S}=S4[v]||die,E=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var w=Ie({},_,m.attributes||{}),R={timeUnixNano:E,observedTimeUnixNano:E,severityNumber:S,severityText:y,body:{stringValue:m.body},attributes:fO(w)};return m.trace_id&&(R.traceId=m.trace_id),m.span_id&&(R.spanId=m.span_id),ze(m.trace_flags)||(R.flags=m.trace_flags),R})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Ie({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,f){return{resourceLogs:[{resource:{attributes:fO(c)},scopeLogs:[{scope:{name:d,version:f},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},Zse=Ie({},wv,zse,jse,Use,$se,qse,Hse,Vse,Gse,Kse,Wse,Yse);Fr.__defaultExtensionClasses=Ie({},Zse);var aI,_l=(aI=Hd[Rc]=new Fr,(function(){function e(){e.done||(e.done=!0,oB=!1,fo(Hd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():Vo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),aI);const Qse="mesh-ui-resources",Lg="html",Jse=10080*60*1e3,Xse=50,ele=16*1024*1024;function tle(e){return e[0]==="mcp"&&e[1]===b2}function Ev(){return new Promise((e,t)=>{const o=indexedDB.open(Qse,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Lg)||o.result.createObjectStore(Lg)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function nu(e,t){return e.transaction(Lg,t).objectStore(Lg)}function kC(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function ole(e){if(!(typeof indexedDB>"u"))try{const t=await Ev(),o=nu(t,"readonly"),n=await kC(o.getAllKeys()),r=await kC(o.getAll()),i=Date.now(),l=n.map((f,h)=>({key:f,value:r[h]})).sort((f,h)=>(h.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:h}of l){if(!h||i-h.updatedAt>Jse||d>=Xse){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=nu(t,"readwrite");for(const h of c)f.delete(h)}}catch{}}function nle(e){if(typeof indexedDB>"u")return()=>{};const t=Ev().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!tle(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>ele||t.then(i=>{if(i)try{nu(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function rle(){typeof indexedDB>"u"||Ev().then(e=>nu(e,"readwrite").clear()).catch(()=>{})}async function Lfe(e){if(!(typeof indexedDB>"u"))try{const t=await Ev(),o=await kC(nu(t,"readonly").getAllKeys()),n=nu(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===b2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Ng="mesh:rq-cache",dB=1440*60*1e3,ale=1e3,ile=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),sle=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let fB=!1,mB=!1;function lle(e){const t=e[0];return typeof t=="string"&&ile.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&sle.has(e[4])}function cle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Ng);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>dB;if(o.buster!=="4.97.2"||n||!o.state){window.localStorage.removeItem(Ng);return}bz(e,o.state),fB=!0}catch{dle()}}function ule(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=vz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&lle(r.queryKey)});window.localStorage.setItem(Ng,JSON.stringify({buster:"4.97.2",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,ale))})}const hB="studio:org-cache:";function pB(e){return`${hB}${e}`}function Nfe(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(pB(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>dB?null:(mB=!0,n)}catch{return null}}function Ffe(e,t,o){if(!(typeof window>"u"))try{const n=pB(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function dle(){if(rle(),!(typeof window>"u"))try{window.localStorage.removeItem(Ng);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(hB)&&window.localStorage.removeItem(t)}}catch{}}function fle(){return fB}function mle(){return mB}let hi=!1,DC=null,iI=!1;const DE="mesh:lp-distinct-id",MS="/api/_reports/link-token/",hle=1440*60*1e3;function gB(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(MS)&&r.pathname!==MS&&(r.pathname=`${MS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function LS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?gB(o):o]))}const ple=e=>e?(e.properties=LS(e.properties),e.$set&&(e.$set=LS(e.$set)),e.$set_once&&(e.$set_once=LS(e.$set_once)),e):null;function vB(){try{const e=window.localStorage.getItem(DE);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=hle?t:void 0}catch{return}}function gle(){try{window.localStorage.removeItem(DE)}catch{}}function vle(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(DE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??vB();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function ble(e){const t=vB();if(t&&(gle(),t!==e))try{_l.alias(t)}catch{}}function yle(e,t){if(hi||typeof window>"u")return;const o=vle();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:ple,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:gB(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function Sle(e,t){hi&&(_l.identify(e,t),ble(e))}function _le(){hi&&(_l.reset(),DC=null)}function Cle(e,t){hi&&_l.capture(e,t)}function Bfe(){return hi}function zfe(){if(!hi||iI||typeof performance>"u")return;iI=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Cle("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:fle(),org_cache_restored:mle()})}function jfe(e,t){hi&&e!==DC&&(_l.group("organization",e,t),DC=e)}function bB(e,t){if(hi)try{_l.captureException(e,t)}catch{}}let Sp=null;function wle({children:e}){const t=T2(),{data:o}=rv.useSession();if(t.posthog){yle(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==Sp?(Sle(n,{email:o?.user?.email,name:o?.user?.name}),Sp=n):!n&&Sp&&(_le(),Sp=null)}return P.jsx(P.Fragment,{children:e})}const OE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));OE.displayName="AlertTriangle";const yB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));yB.displayName="Archive";const IE=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));IE.displayName="Loading01";const SB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.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"}));SB.displayName="Lock01";const _B=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));_B.displayName="RefreshCw01";function ME(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=P.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:P.jsx(IE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ele(e){try{return JSON.parse(e)}catch{return}}function sI(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Ele(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function xle(e,t){const o=no.c(25),n=Bg();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>sI(e,t),c=()=>sI(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:f}=PI(d);let h;o[10]!==e?(h=async w=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(w)),w),o[10]=e,o[11]=h):h=o[11];let m;o[12]!==n||o[13]!==i?(m=w=>{n.setQueryData(i,w)},o[12]=n,o[13]=i,o[14]=m):m=o[14];let g;o[15]!==h||o[16]!==m?(g={mutationFn:h,onSuccess:m},o[15]=h,o[16]=m,o[17]=g):g=o[17];const v=_p(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=w=>{const R=n.getQueryData(i),x=typeof w=="function"?w(R):w;v.mutate(x)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,E=f;let _;return o[22]!==S||o[23]!==E?(_=[E,S],o[22]=S,o[23]=E,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,sidePanelWidth:()=>"mesh:side-panel:width",sidebarOpen:()=>"mesh:sidebar-open",preferences:()=>"mesh:user:preferences",lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`mesh:announcement:pt-br:${e}`},Tle=["en","pt-BR"];function CB(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Rle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:CB()},wB=["auto","readonly"],Ufe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Ple=["light","dark","system"];function $fe(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(wB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function EB(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],xle(t,Ale)}function Ale(e){const t={...Rle,...e};return wB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Ple.includes(t.theme)||(t.theme="system"),Tle.includes(t.language)||(t.language=CB()),t}async function kle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Dle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
|
|
164
164
|
`);o.push(`:root {
|
|
165
165
|
${n}
|
|
166
166
|
}`)}if(e.dark&&Object.keys(e.dark).length>0){const n=Object.entries(e.dark).map(([r,i])=>` ${r}: ${i};`).join(`
|
|
@@ -182,4 +182,4 @@ debug?`,"orgs.monitoring.propertyFilters":"Filtros de propriedade","orgs.monitor
|
|
|
182
182
|
e.g. usuario1@example.com, usuario2@example.com
|
|
183
183
|
ou um por linha`,"common.inviteMemberDialog.errorFailedInvite":"Falha ao convidar {count} membro(s)","common.inviteMemberDialog.errorGeneric":"Falha ao convidar membros","common.inviteMemberDialog.errorNoValidEmail":"Digite pelo menos um endereço de e-mail válido","common.inviteMemberDialog.errorSelectRole":"Selecione uma função","common.inviteMemberDialog.inviteButton":"Convidar {count} membro(s)","common.inviteMemberDialog.invitingButton":"Convidando...","common.inviteMemberDialog.permAllConnections":"Todas as conexões","common.inviteMemberDialog.permAllTools":"todas as ferramentas","common.inviteMemberDialog.permConnections":"{count} conexão(ões)","common.inviteMemberDialog.permFullOrgAccess":"Acesso total à organização","common.inviteMemberDialog.permOrgPerms":"{count} permissão(ns) de org","common.inviteMemberDialog.permTools":"{count} ferramenta(s)","common.inviteMemberDialog.roleSelectPlaceholder":"Selecione uma função","common.inviteMemberDialog.successMultiple":"{count} membros convidados com sucesso!","common.inviteMemberDialog.successSingle":"Membro convidado com sucesso!","common.inviteMemberDialog.title":"Convidar membros","common.keyboardShortcutsDialog.title":"Atalhos de teclado","common.noAccessScreen.askAdminToInvite":"Peça a um administrador que o convide.","common.noAccessScreen.couldNotFind":"Não conseguimos encontrar uma organização chamada","common.noAccessScreen.goToHome":"Ir para home","common.noAccessScreen.noAccess":"Sem acesso","common.noAccessScreen.noAccessTo":"Você não tem acesso a","common.noAccessScreen.organizationNotFound":"Organização não encontrada","common.pendingInviteScreen.acceptButton":"Aceitar convite","common.pendingInviteScreen.acceptDescription":"Aceite o convite para se juntar a esta organização.","common.pendingInviteScreen.acceptingButton":"Aceitando…","common.pendingInviteScreen.declineButton":"Recusar","common.pendingInviteScreen.decliningButton":"Recusando…","common.pendingInviteScreen.failedToAccept":"Falha ao aceitar o convite","common.pendingInviteScreen.failedToDecline":"Falha ao recusar o convite","common.pendingInviteScreen.invitationDeclined":"Convite recusado","common.pendingInviteScreen.invitedTo":"Você foi convidado para {orgName}","common.requestPendingScreen.description":"Sua solicitação para ingressar em {orgName} está aguardando aprovação de um administrador. Você terá acesso após a aprovação.","common.requestPendingScreen.goHome":"Ir para início","common.requestPendingScreen.title":"Solicitação pendente","common.requestToJoinScreen.description":"Um administrador deve aprovar solicitações de e-mails @{domain} antes que você possa entrar.","common.requestToJoinScreen.failedToRequest":"Falha ao solicitar acesso","common.requestToJoinScreen.goToHome":"Ir para início","common.requestToJoinScreen.requestButton":"Solicitar acesso","common.requestToJoinScreen.requesting":"Solicitando…","common.requestToJoinScreen.title":"Solicitar acesso a {orgName}?","common.simpleIconPicker.filterPlaceholder":"Filtrar…","common.simpleIconPicker.noIconsFound":"Nenhum ícone encontrado","common.ssoRequiredScreen.goBack":"Voltar","common.ssoRequiredScreen.orgRequiresSsoAuth":"Esta organização requer autenticação SSO para acessar.","common.ssoRequiredScreen.requiresSsoAuth":"requer autenticação SSO","common.ssoRequiredScreen.signInWithSso":"Entrar com SSO","common.ssoRequiredScreen.title":"Autenticação SSO Necessária","common.ssoRequiredScreen.via":"via {domain}","common.tagMultiSelect.addTags":"Adicionar tags...","common.tagMultiSelect.available":"Disponível","common.tagMultiSelect.createTag":'Criar "{tagName}"',"common.tagMultiSelect.noTagsFound":"Nenhuma tag encontrada.","common.tagMultiSelect.searchOrCreate":"Pesquisar ou criar...","common.tagMultiSelect.selected":"Selecionado","common.toolInputForm.enterPlaceholder":"Digite {fieldKey}…","common.toolInputForm.false":"falso","common.toolInputForm.jsonPlaceholder":"Digite {fieldKey} como JSON…","common.toolInputForm.selectPlaceholder":"Selecione…","common.toolInputForm.true":"verdadeiro","common.toolSetSelector.filterAll":"Todos","common.toolSetSelector.filterSelected":"Selecionados","common.toolSetSelector.filterUnselected":"Não selecionados","common.toolSetSelector.noConnectionsAvailable":"Nenhuma conexão disponível","common.toolSetSelector.noConnectionsFound":"Nenhuma conexão encontrada","common.toolSetSelector.noServersSelected":"Nenhum servidor selecionado","common.toolSetSelector.noToolsAvailable":"Esta conexão não tem ferramentas disponíveis","common.toolSetSelector.noUnselectedServers":"Nenhum servidor não selecionado","common.toolSetSelector.searchPlaceholder":"Pesquisar servidores MCP...","common.toolSetSelector.selectConnection":"Selecione uma conexão para visualizar suas ferramentas","common.useStartThreadFromPrompt.failedToStartChat":"Falha ao iniciar o chat. Tente novamente.","common.useStartThreadFromPrompt.mcpClientNotAvailable":"Cliente MCP não disponível","common.versionCheckDialog.available":"Uma nova versão está disponível","common.versionCheckDialog.outdatedVersion":"Você está visualizando uma versão desatualizada desta página. Atualize para obter as últimas atualizações.","common.versionCheckDialog.refresh":"Atualizar","common.createAgentDropdown.createFromScratch":"Criar do zero","common.createAgentDropdown.importFromGitHub":"Importar do GitHub","common.createAgentDropdown.importFromDeco":"Importar do deco.cx","common.mainPanelTabs.overview":"Visão Geral","common.mainPanelTabs.preview":"Visualização","common.mainPanelTabs.code":"Código","common.mainPanelTabs.content":"Conteúdo","common.mainPanelTabs.reviewChanges":"Revisar alterações","common.mainPanelTabs.automations":"Automações","common.mainPanelTabs.settings":"Configurações","common.mainPanelTabs.report":"Relatório","common.taskBoard.listView":"Lista","common.taskBoard.boardView":"Quadro"},jce={"commerceOnboarding.companionCard.configure":"Configurar","commerceOnboarding.companionCard.configureAriaLabel":"Configurar {title}","commerceOnboarding.companionCard.configureDescription":"Configure o {title} para enriquecer os dados","commerceOnboarding.companionCard.connect":"Conectar","commerceOnboarding.companionCard.connectAriaLabel":"Conectar {title}","commerceOnboarding.companionCard.connected":"Conectado","commerceOnboarding.companionCard.disconnect":"Desconectar","commerceOnboarding.companionCard.disconnectAriaLabel":"Desconectar {title}","commerceOnboarding.companionCard.disconnectError":"Não foi possível desconectar. Tente novamente.","commerceOnboarding.companionCard.disconnectedSuccess":"{title} desconectado","commerceOnboarding.companionCard.editConfiguration":"Editar configuração","commerceOnboarding.companionCard.grantAccessDescription":"Conceda acesso ao nosso leitor e informe o identificador","commerceOnboarding.githubConfigForm.cancel":"Cancelar","commerceOnboarding.githubConfigForm.failedToSave":"Não foi possível salvar a configuração","commerceOnboarding.githubConfigForm.githubConnectionNotFound":"Conexão do GitHub não encontrada.","commerceOnboarding.githubConfigForm.invalidRepository":'Repositório inválido: "{repo}". Use o formato owner/nome.',"commerceOnboarding.githubConfigForm.loadingRepositories":"Carregando repositórios...","commerceOnboarding.githubConfigForm.noGithubInstallation":'Nenhuma instalação do GitHub encontrada para "{owner}".',"commerceOnboarding.githubConfigForm.noRepositoriesFound":"Nenhum repositório encontrado. Digite o nome do repositório (owner/nome) para buscar.","commerceOnboarding.githubConfigForm.save":"Salvar","commerceOnboarding.githubConfigForm.saving":"Salvando...","commerceOnboarding.githubConfigForm.searchFailedPartial":"Parte da busca falhou — alguns repositórios podem não ter aparecido. Tente novamente ou digite owner/nome.","commerceOnboarding.githubConfigForm.searchFailedTotal":"Não foi possível buscar os repositórios (erro ou tempo esgotado). Tente novamente ou digite o repositório no formato owner/nome.","commerceOnboarding.githubConfigForm.searchRepositoryLabel":"Buscar repositório","commerceOnboarding.githubConfigForm.searchRepositoryPlaceholder":"Buscar repositório","commerceOnboarding.githubConfigForm.selectRepository":"Selecione um repositório","commerceOnboarding.saBindingForm.bind":"Vincular","commerceOnboarding.saBindingForm.bindError":"Não foi possível vincular.","commerceOnboarding.saBindingForm.cancel":"Cancelar","commerceOnboarding.saBindingForm.connectedSuccess":"{label} conectado","commerceOnboarding.saBindingForm.copyEmailLabel":"Copiar e-mail do service account","commerceOnboarding.saBindingForm.emailCopied":"E-mail copiado","commerceOnboarding.saBindingForm.googleLoginAlternative":"autorizar via login do Google","commerceOnboarding.saBindingForm.resourceIdRequired":"Informe o {resourceLabel}","commerceOnboarding.saBindingForm.storeUrlUnavailable":"URL da loja indisponível — recarregue a página.","commerceOnboarding.saBindingForm.verifying":"Verificando...","commerceOnboarding.vtexConfigForm.accountNameLabel":"Nome da conta","commerceOnboarding.vtexConfigForm.accountNamePlaceholder":"Nome da sua conta VTEX","commerceOnboarding.vtexConfigForm.appKeyLabel":"App Key (opcional)","commerceOnboarding.vtexConfigForm.appKeyPlaceholder":"App Key da VTEX","commerceOnboarding.vtexConfigForm.appTokenLabel":"App Token (opcional)","commerceOnboarding.vtexConfigForm.appTokenPlaceholder":"App Token da VTEX","commerceOnboarding.vtexConfigForm.cancelButton":"Cancelar","commerceOnboarding.vtexConfigForm.saveButton":"Salvar","commerceOnboarding.vtexConfigForm.savingButton":"Salvando...","commerceOnboarding.vtexConfigForm.savingError":"Não foi possível salvar a configuração"},Uce={"collections.collectionDisplayButton.displayAndFilters":"Exibição & filtros","collections.collectionDisplayButton.sortBy":"Ordenar por","collections.collectionTableWrapper.loading":"Carregando...","collections.collectionTableWrapper.noItemsFound":"Nenhum item encontrado","collections.mutations.itemCreatedSuccessfully":"Item criado com sucesso","collections.mutations.itemUpdatedSuccessfully":"Item atualizado com sucesso","collections.mutations.itemDeletedSuccessfully":"Item deletado com sucesso","collections.mutations.createItemFailed":"Falha ao criar item: {error}","collections.mutations.updateItemFailed":"Falha ao atualizar item: {error}","collections.mutations.deleteItemFailed":"Falha ao deletar item: {error}"},$ce={"chat.agentCreate.agentCreated":"Agente criado: {name}","chat.agentCreate.cancelled":"Criação de agente cancelada","chat.agentCreate.couldntCreate":"Não foi possível criar o agente","chat.agentCreate.createAgent":"Criar agente","chat.agentCreate.created":"Agente criado","chat.agentCreate.creating":"Criando agente","chat.agentCreate.seeAgent":"Ver agente","chat.agentCreate.seeAgentLabel":"Ver agente: {name}","chat.agentIcons.claudeCode":"Claude Code","chat.agentIcons.codex":"Codex","chat.agentList.agentsNoun":"agentes","chat.agentList.couldntLoad":"Não foi possível carregar agentes","chat.agentList.listAgents":"Listar agentes","chat.agentList.loading":"Carregando agentes","chat.agentList.multiAgents":"{count} agentes","chat.agentList.noAgents":"Nenhum agente ainda","chat.agentList.noAgentsDesc":"Esta organização ainda não criou nenhum agente.","chat.agentList.oneAgent":"1 agente","chat.agentList.unavailable":"Lista de agentes indisponível","chat.agentModels.balancedQuality":"Qualidade equilibrada","chat.agentModels.deeperReasoning":"Raciocínio mais profundo","chat.agentModels.gptLunaLabel":"GPT-5.6 Luna","chat.agentModels.gptSolLabel":"GPT-5.6 Sol","chat.agentModels.gptTerraLabel":"GPT-5.6 Terra","chat.agentModels.haikuLabel":"Haiku 4.5","chat.agentModels.opusLabel":"Opus 4.8 1M","chat.agentModels.quickerResponses":"Respostas mais rápidas","chat.agentModels.sonnetLabel":"Sonnet 5","chat.approval.acceptButton":"Aceitar","chat.approval.batchedLabel":"{count} aprovação(ões) pendente(s)","chat.approval.defaultDenyReason":"O usuário negou esta chamada de ferramenta, ofereça outras alternativas.","chat.approval.denyButton":"Negar","chat.approval.needsApproval":"Aprovação necessária","chat.approval.noInput":"Sem entrada","chat.approval.preparingRequest":"Preparando solicitação de aprovação...","chat.assistant.messagePlural":"{count} mensagem(ns)","chat.assistant.noResponseGenerated":"Nenhuma resposta foi gerada","chat.assistant.resumedBackgroundTask":"Retomado — tarefa em segundo plano concluída","chat.assistant.resumingTask":"Retomando tarefa...","chat.assistant.toolCallPlural":"{count} chamada(s) de ferramenta","chat.brandContext.brand":"Marca","chat.brandContext.brandContextSet":"Contexto de marca definido","chat.brandContext.brandSet":"Marca definida: {name}","chat.brandContext.brandWithName":"Marca · {name}","chat.brandContext.colorAccent":"Destaque","chat.brandContext.colorBackground":"Fundo","chat.brandContext.colorForeground":"Primeiro Plano","chat.brandContext.colorPrimary":"Primário","chat.brandContext.colorSecondary":"Secundário","chat.brandContext.colorsSection":"Cores","chat.brandContext.couldNotLoadBrand":"Não foi possível carregar a marca","chat.brandContext.couldNotLoadBrands":"Não foi possível carregar as marcas","chat.brandContext.defaultBadge":"padrão","chat.brandContext.extractingBrand":"Extraindo marca","chat.brandContext.extractionFailed":"Falha ao extrair marca","chat.brandContext.fromDomain":"de {domain}","chat.brandContext.loadingBrand":"Carregando marca","chat.brandContext.loadingBrands":"Carregando marcas","chat.brandContext.multipleBrands":"{count} marca(s)","chat.brandContext.noBrandsContext":"A organização ainda não configurou nenhum contexto de marca.","chat.brandContext.noBrandsYet":"Nenhuma marca ainda","chat.brandContext.oneBrand":"1 marca","chat.brandContext.typographySection":"Tipografia","chat.brandContext.unknownError":"Erro desconhecido","chat.brandContext.untitled":"Sem Título","chat.chat.jumpToLatest":"Ir para o mais recente","chat.chat.loadingOlderMessages":"Carregando mensagens mais antigas…","chat.chatContext.activeTaskProviderMissingContext":"ActiveTaskProvider deve ser usado dentro de ChatContextProvider","chat.chatContext.cancelFailedStatus":"Falha ao cancelar: {status}","chat.chatContext.couldNotRemoveOriginalMessage":"Não foi possível remover a mensagem original","chat.chatContext.failedToCancel":"Falha ao cancelar","chat.chatContext.failedToQueueMessage":"Falha ao enfileirar mensagem","chat.chatContext.failedToSendEditedMessage":"Falha ao enviar mensagem editada","chat.chatContext.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em alguns momentos","chat.chatContext.useChatPrefsMissingContext":"useChatPrefs deve ser usado dentro de ChatContextProvider","chat.chatContext.useChatStreamMissingContext":"useChatStream deve ser usado dentro de ActiveTaskProvider","chat.chatContext.useChatTaskMissingContext":"useChatTask deve ser usado dentro de ChatContextProvider","chat.collapsibleHighlight.closeLabel":"Fechar","chat.collapsibleHighlight.closeTitle":"Fechar","chat.common.copy":"Copiar","chat.common.seeAll":"Ver todos os {count} {noun}","chat.connectDesktopDialog.agentClaudeCodeDescription":"Executa através do CLI do Claude Code","chat.connectDesktopDialog.agentClaudeCodeLabel":"Claude Code","chat.connectDesktopDialog.agentCodexDescription":"Executa através do CLI do Codex","chat.connectDesktopDialog.agentCodexLabel":"Codex","chat.connectDesktopDialog.connectYourDesktop":"Conecte seu desktop","chat.connectDesktopDialog.connectedTo":"Conectado a {desktopName}","chat.connectDesktopDialog.machineAgentsDescription":"Esta máquina fornece os seguintes agentes locais.","chat.connectDesktopDialog.notDetected":"Não detectado","chat.connectDesktopDialog.runCommandDescription":"Execute este comando no terminal do seu desktop. A caixa de diálogo será fechada assim que seu desktop ficar online.","chat.connectDesktopDialog.waitingForDesktop":"Aguardando desktop…","chat.connectDesktopDialog.yourDesktop":"Seu desktop","chat.connectionList.connectionNoun":"conexões","chat.connectionList.emptySummary":"Esta organização não conectou nenhum MCP.","chat.connectionList.emptyTitle":"Nenhuma conexão ainda","chat.connectionList.errorTitle":"Não foi possível carregar conexões","chat.connectionList.loadingTitle":"Carregando conexões","chat.connectionList.multipleConnections":"{count} conexões","chat.connectionList.singleConnection":"1 conexão","chat.connectionList.unavailableTitle":"Lista de conexões indisponível","chat.contextPanel.agentLabel":"Agente","chat.contextPanel.assistantPercent":"Assistente {pct}%","chat.contextPanel.contextBreakdownSection":"Análise do Contexto","chat.contextPanel.contextLimitLabel":"Limite de Contexto","chat.contextPanel.costLabel":"Custo","chat.contextPanel.emptyState":"Inicie uma conversa para ver o contexto","chat.contextPanel.inputTokensLabel":"Tokens de Entrada","chat.contextPanel.lastActivityLabel":"Última Atividade","chat.contextPanel.messagesLabel":"Mensagens","chat.contextPanel.modelLabel":"Modelo","chat.contextPanel.newChat":"Novo chat","chat.contextPanel.otherPercent":"Outro {pct}%","chat.contextPanel.outputTokensLabel":"Tokens de Saída","chat.contextPanel.rawMessagesSection":"Mensagens brutas","chat.contextPanel.reasoningTokensLabel":"Tokens de Raciocínio","chat.contextPanel.requestLabel":"Solicitação","chat.contextPanel.sessionCreatedLabel":"Sessão Criada","chat.contextPanel.sessionLabel":"Sessão","chat.contextPanel.sessionTokensLabel":"Tokens da Sessão (cobrados)","chat.contextPanel.subtask":"Subtarefa","chat.contextPanel.subtasksSection":"Subtarefas","chat.contextPanel.systemPromptLabel":"Prompt do sistema","chat.contextPanel.title":"Contexto","chat.contextPanel.tokAbbrev":"tok","chat.contextPanel.toolsActive":"ferramentas ativas","chat.contextPanel.usageLabel":"Uso","chat.contextPanel.userPercent":"Usuário {pct}%","chat.creditsEmptyState.add":"Adicionar","chat.creditsEmptyState.bestValueLabel":"Melhor custo","chat.creditsEmptyState.description":"Seus créditos gratuitos foram utilizados em outro workspace. Adicione créditos para usar IA aqui.","chat.creditsEmptyState.enterCustomAmount":"Inserir valor personalizado","chat.creditsEmptyState.opening":"Abrindo...","chat.creditsEmptyState.popularLabel":"Popular","chat.creditsEmptyState.skipForNow":"Pular por enquanto","chat.creditsEmptyState.starterLabel":"Iniciante","chat.creditsEmptyState.title":"Este workspace não possui créditos","chat.creditsEmptyState.topUpFailed":"Falha ao recarregar: {message}","chat.creditsEmptyState.useYourOwnProvider":"Usar seu próprio provedor","chat.creditsExhaustedBanner.add":"Adicionar","chat.creditsExhaustedBanner.benefit1":"Acesso a 100+ modelos de IA","chat.creditsExhaustedBanner.benefit2":"API unificada, sem necessidade de chaves separadas","chat.creditsExhaustedBanner.benefit3":"Pague apenas pelo que usar","chat.creditsExhaustedBanner.customPlaceholder":"50","chat.creditsExhaustedBanner.description":"Seus créditos foram esgotados. Adicione mais para continuar usando IA em todos os seus agentes.","chat.creditsExhaustedBanner.dismiss":"Descartar","chat.creditsExhaustedBanner.enterCustom":"Inserir valor personalizado","chat.creditsExhaustedBanner.manageProviders":"Gerenciar provedores","chat.creditsExhaustedBanner.opening":"Abrindo...","chat.creditsExhaustedBanner.tierBestValue":"Melhor valor","chat.creditsExhaustedBanner.tierPopular":"Popular","chat.creditsExhaustedBanner.tierStarter":"Iniciante","chat.creditsExhaustedBanner.title":"Recarregue para continuar criando","chat.creditsExhaustedBanner.topupError":"Falha na recarga: {error}","chat.decopilot.back":"Voltar","chat.decopilot.couldNotFetchModels":"Não foi possível buscar modelos deste provedor.","chat.decopilot.failedToLoadModels":"Falha ao carregar modelos","chat.decopilot.key":"Chave","chat.decopilot.manageApiKeys":"Gerenciar chaves de API","chat.decopilot.manageModels":"Gerenciar modelos","chat.decopilot.retry":"Tentar novamente","chat.decopilot.searchAllModels":"Pesquisar todos os modelos...","chat.decopilot.searchForModel":"Procure um modelo...","chat.decopilot.selectedCount":"{count} selecionado(s)","chat.decopilot.tierCheaper":"Mais barato","chat.decopilot.tierFaster":"Mais rápido","chat.decopilot.tierOther":"Outro","chat.decopilot.tierSmarter":"Mais inteligente","chat.decopilot.tryAnotherProviderOrRetry":"Tente outro provedor ou tente novamente.","chat.desktopCli.tierFastDescription":"Respostas mais rápidas","chat.desktopCli.tierSmartDescription":"Qualidade equilibrada","chat.desktopCli.tierThinkingDescription":"Raciocínio mais profundo","chat.desktopOfflineBanner.instructions":"Execute bunx decocms@latest link em um terminal naquele computador para trazê-lo de volta. As mensagens que você enviar enquanto estiver offline falharão.","chat.desktopOfflineBanner.label":"Seu desktop está offline","chat.desktopOfflineBanner.reconnectButton":"Reconectar desktop","chat.desktopOfflineBanner.title":"Este chat é executado no seu desktop, que não está conectado no momento.","chat.generateImage.failed":"Falhou","chat.generateImage.generatedImage":"Imagem gerada","chat.generateImage.generatedImageAlt":"Imagem gerada","chat.generateImage.generatingImage":"Gerando imagem","chat.generateImage.imageGeneration":"Geração de imagem","chat.generateImage.imageQueuedGeneratingInBackground":"Imagem na fila — gerando em segundo plano","chat.generateImage.noImagesGenerated":"Nenhuma imagem gerada","chat.generateImage.reference":"referência","chat.generateImage.references":"referências:","chat.generic.cancelled":"Cancelado","chat.generic.done":"Concluído","chat.generic.dynamicTool":"Ferramenta Dinâmica","chat.generic.failed":"Falhou","chat.generic.failedToLoad":"Falha ao carregar app {toolName}","chat.generic.loadingApp":"Carregando app...","chat.generic.openInPanel":"Abrir no painel","chat.generic.preparing":"Preparando...","chat.generic.retry":"Tentar novamente","chat.generic.waitingForApproval":"Aguardando sua aprovação","chat.highlight.continue":"Continuar","chat.highlight.copiedToClipboard":"Copiado para a área de transferência","chat.highlight.copy":"Copiar","chat.highlight.copyErrorDetails":"Copiar detalhes do erro","chat.highlight.couldNotCopy":"Não foi possível copiar","chat.highlight.errorOccurred":"Erro ocorreu","chat.highlight.fixInChat":"Corrigir no chat","chat.highlight.fixInChatMessage":"Encontrei este erro: {error}. Você pode me ajudar a corrigi-lo?","chat.highlight.hideTechnicalDetails":"Ocultar detalhes técnicos","chat.highlight.implementPlanMessage":`Implemente este plano:
|
|
184
184
|
|
|
185
|
-
{plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.queueTray.queuedMessages":"{count} mensagem(ns) na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.runtimeSwitcher.cloudSandbox":"Sandbox em nuvem","chat.runtimeSwitcher.notAvailableOnThisDeployment":"Não disponível nesta implantação","chat.runtimeSwitcher.runDecocmsLinkOnYourDesktop":"Execute `decocms link` em seu desktop","chat.runtimeSwitcher.runOn":"Executar em","chat.runtimeSwitcher.runningOn":"Executando em {label}","chat.runtimeSwitcher.runsInDecosCloud":"Executa na nuvem do deco","chat.runtimeSwitcher.runsOnYourMachineViaDecoLink":"Executa em sua máquina via deco link","chat.runtimeSwitcher.runtime":"Tempo de execução: {label}","chat.runtimeSwitcher.thisDevice":"Dispositivo","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}"},qce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},Vce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},Hce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},Gce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.blocks":"Blocos","sandbox.preview.blocksEditor":"Editor de blocos","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.hardReload":"Recarregamento forçado","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.siteSeo":"SEO do site","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Kce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},Wce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Yce={...pce,...gce,...vce,...bce,...yce,...Sce,..._ce,...Cce,...wce,...Ece,...xce,...Tce,...Rce,...Pce,...Ace,...kce,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce,...zce,...jce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Wce,...Kce},Zce={en:mce,"pt-BR":Yce};function Bf(){const e=no.c(2),[t]=EB(),o=Zce[t.language];let n;return e[0]!==o?(n=(r,i)=>hce(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const zf=new Dz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});cle(zf);ule(zf);ole(zf);nle(zf);function Qce(e){const t=no.c(2),{children:o}=e,n=Bf();vj({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=P.jsx(P.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function Jce(e){const t=no.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=P.jsx(gj,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=P.jsx(ME,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=P.jsxs(Oz,{client:zf,children:[n,P.jsx(D.Suspense,{fallback:r,children:P.jsx(Ole,{children:P.jsx(VH,{children:P.jsx(Hae,{children:P.jsx(wle,{children:P.jsx(Qce,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function LE(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=P.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:P.jsx(IE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Xce(...e){return TL(xw(e))}const eue=ZL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function gf(e){const t=no.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?Nw:"button";let f;t[6]!==o||t[7]!==r||t[8]!==l?(f=Xce(eue({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=f):f=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==f?(h=P.jsx(d,{"data-slot":"button",className:f,...n}),t[10]=d,t[11]=n,t[12]=f,t[13]=h):h=t[13],h}const tue=["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 oue(e){const t=no.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=P.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:tue}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=P.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,P.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function xB(e){const t=no.c(20),{orgName:o}=e,n=Bf(),r=nue;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=P.jsx("div",{className:"bg-muted p-3 rounded-full",children:P.jsx(yB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=P.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let f;t[8]!==d?(f=P.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=f):f=t[9];let h;t[10]!==c||t[11]!==f?(h=P.jsxs("div",{className:"space-y-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=h):h=t[12];let m;t[13]!==n?(m=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=m):m=t[14];let g;t[15]!==m?(g=P.jsx(gf,{onClick:r,children:m}),t[15]=m,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=P.jsxs(oue,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function nue(){window.location.href="/"}function rue(){const e=no.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=nv(t);let n;return e[1]!==o?(n=P.jsx(gf,{variant:"outline",size:"sm",asChild:!0,children:P.jsx(xf,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function aue(e){const t=no.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=P.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:P.jsx(SB,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=P.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let f;t[3]!==l?(f=P.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=f):f=t[4];let h;t[5]!==d||t[6]!==f?(h=P.jsxs("div",{className:"space-y-1",children:[d,f]}),t[5]=d,t[6]=f,t[7]=h):h=t[7];let m;t[8]!==r?(m=r??P.jsx(rue,{}),t[8]=r,t[9]=m):m=t[9];let g;return t[10]!==h||t[11]!==m?(g=P.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,m]}),t[10]=h,t[11]=m,t[12]=g):g=t[12],g}const lI="__mesh_chunk_reload_ts";function TB(e){return e?.message==="Organization is archived"}function iue(e){return!!e?.message?.includes("Access denied")}function cI(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class sue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),bB(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:TB(this.state.error)?P.jsx(xB,{}):iue(this.state.error)?P.jsx(aue,{}):P.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:P.jsx(OE,{className:"h-6 w-6 text-destructive"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),P.jsx(gf,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function qfe(e){const t=no.c(3),o=Bf();let n;return t[0]!==e||t[1]!==o?(n=P.jsx(sue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class lue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=cI(t);if(bB(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(lI),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(lI,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&cI(this.state.error)?P.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:P.jsx(_B,{className:"h-6 w-6 text-primary"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),P.jsx(gf,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?TB(this.state.error)?P.jsx(xB,{}):P.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:P.jsx(OE,{className:"h-6 w-6 text-destructive"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),P.jsx(gf,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function cue(e){const t=no.c(3),o=Bf();let n;return t[0]!==e||t[1]!==o?(n=P.jsx(lue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}function RB(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function uue(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Vfe(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,uI=!1;const OC=new Set;function Fg(){for(const e of OC)e()}function due(){uI||typeof window>"u"||(uI=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Fg()}),window.addEventListener("appinstalled",()=>{ui=null,Fg()}))}function Hfe(){ui!==null&&(ui=null,Fg())}function fue(e){return OC.add(e),()=>{OC.delete(e)}}function mue(){return ui}function hue(){return null}function pue(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function gue(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Gfe(){const e=no.c(5),t=D.useSyncExternalStore(fue,mue,hue);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=pue(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=gue(),l=vue,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function vue(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Fg(),e.outcome}const Hr=_K({component:()=>P.jsx(cue,{children:P.jsx(D.Suspense,{fallback:P.jsx(ME,{}),children:P.jsx(J2,{})})})}),bue=rt({getParentRoute:()=>Hr,path:"/login",component:ct(()=>lt(()=>import("./login-CZQugvTf.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>Se({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),yue=rt({getParentRoute:()=>Hr,path:"/cli/auth-success",component:ct(()=>lt(()=>import("./cli-auth-success-CNyVYBLj.js"),__vite__mapDeps([7,6])))}),Sue=rt({getParentRoute:()=>Hr,path:"/reset-password",component:ct(()=>lt(()=>import("./reset-password-DG3AimDG.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>Se({token:F().optional(),error:F().optional()}))}),_ue=rt({getParentRoute:()=>Hr,path:"/auth/$pathname",component:ct(()=>lt(()=>import("./auth-catchall-DYS0sjFC.js"),[]))}),Cue=rt({getParentRoute:()=>Hr,path:"/oauth/callback",component:ct(()=>lt(()=>import("./oauth-callback-BHatfLrm.js"),__vite__mapDeps([9,10,11])))}),wue=rt({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:ct(()=>lt(()=>import("./oauth-callback-ai-provider-DqZYel48.js"),[]))}),xv=rt({getParentRoute:()=>Hr,path:"/_admin",component:ct(()=>lt(()=>import("./layout-CSu6vzzu.js"),__vite__mapDeps([12,13,14,15])))}),Eue=rt({getParentRoute:()=>xv,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),xue=rt({getParentRoute:()=>xv,path:"/users",component:ct(()=>lt(()=>import("./users-0Wdq7G49.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),Tue=rt({getParentRoute:()=>xv,path:"/orgs",component:ct(()=>lt(()=>import("./orgs-Bk041H2L.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),Rue=xv.addChildren([Eue,xue,Tue]),NE=rt({getParentRoute:()=>Hr,id:"shell",component:ct(()=>lt(()=>import("./shell-layout-Ch3Kdb2k.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,55,4,5,56,57,58,59])))}),Pue=rt({getParentRoute:()=>NE,path:"/",beforeLoad:async()=>{const e=uue();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await uL();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),Aue=rt({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await uL();if(e&&e.length>0)throw is({to:"/"})},component:ct(()=>lt(()=>import("./onboarding-DMLJT3my.js"),__vite__mapDeps([60,14,6,61,29,30,2,38,62,45,49,63,64,65])))}),kue=rt({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:ct(()=>lt(()=>import("./commerce-onboarding-DBCFgq_L.js"),__vite__mapDeps([66,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,21,51,39,22,100,101,102,103,38,2,32,104,105,10,1,3,4,5,6,61,29,106]))),validateSearch:pi(()=>Se({org:F().optional(),siteUrl:F().optional()}))}),Due=rt({getParentRoute:()=>Hr,path:"/report/$domain",component:ct(()=>lt(()=>import("./reports-BVWlDfnl.js"),__vite__mapDeps([107,1,2,3,4,5,71,25,74,76,49,83,89,93,46,96,97,51,108]))),validateSearch:pi(()=>Se({key:F().optional()}))}),Tv=rt({getParentRoute:()=>NE,path:"/$org",beforeLoad:({params:e})=>{RB({org:e.org})},component:ct(()=>lt(()=>import("./org-layout-BS9LHZZk.js"),[]))}),jf=rt({getParentRoute:()=>Tv,id:"org-shell",component:ct(()=>lt(()=>import("./index-P1IoZ6NC.js"),__vite__mapDeps([109,18,19,20,21,22,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,39,100,101,102,103,38,2,32,104,105,10,56,110,111,112,113,114,52,54,55,4,5,58,115,116,117,57,118,119,120,121,122,123,124,125,126,44,29,14,59,127,128,129,130,131,3,132,133,40,134,135,136,31,137,15,138,139,140,141,142,143,144,145,146,147,148,149,34,35,150])))}),PB=rt({getParentRoute:()=>jf,id:"agent-shell",pendingComponent:LE,component:ct(()=>lt(()=>import("./index-CrKZ9p2A.js").then(e=>e.b2),__vite__mapDeps([151,25,114,52,54,53,11,55,4,5,58,111,115,116,56,117,57,152,40,22,41,42,43,130,131,124,133,18,19,20,21,24,26,153,140,149,71,49,80,70,72,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,154,137,29,34,35,142,155,39,156,157,158,159,44,14,59,68,125,126,160,103,38,2,119,123,161,36,112,120,121,102,105,10,101,106,146,147,100,162,145,127,128,129,3,132,134,135,136,31,144,163,164,110,165,166,167,113,150,32,168,169,170,118,171,172,17,27,173,62,122,104,174,175,176,177])))}),Oue=Se({virtualmcpid:F().optional(),tab:F().optional(),sidepanel:oo([Ge("chat"),Ge(0)]).optional(),main:oo([F(),Ge(0)]).optional(),preview:F().optional(),id:F().optional(),toolName:F().optional(),tasks:mt().optional(),mainOpen:mt().optional(),autosend:F().optional(),runLocally:F().optional(),connect:BM().optional(),siteUrl:F().optional()}),Iue=rt({getParentRoute:()=>PB,path:"/$taskId",validateSearch:Oue,beforeLoad:({params:e,search:t})=>{RB({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Mue=Se({main:F().optional(),connect:BM().optional(),siteUrl:F().optional()}),Lue=rt({getParentRoute:()=>jf,path:"/",validateSearch:Mue,pendingComponent:LE,component:ct(()=>lt(()=>import("./index-CNx7TmSm.js"),__vite__mapDeps([178,53,11,54,55,4,5,126])))}),Nue=Se({path:F().optional(),preview:F().optional(),skill:F().optional()}),Fue=rt({getParentRoute:()=>jf,path:"/files",validateSearch:Nue,pendingComponent:LE,component:ct(()=>lt(()=>import("./index-sjUL2IyD.js").then(e=>e.Y),__vite__mapDeps([167,83,64,95,46,65,48,51,20,113,39,21,2,155,41,81,82,78,56,150,93,32,116,110,134,42,43,112,22,88,90,157,87,106,79,80,19,97,98])))}),Bue=Se({task:F().optional()}),zue=rt({getParentRoute:()=>jf,path:"/board",validateSearch:Bue,component:ct(()=>lt(()=>import("./index-DuYNJaWj.js").then(e=>e.n),__vite__mapDeps([161,36,29,30,70,71,72,25,73,69,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,99,48,21,51,112,53,11,120,121,39,124,102,105,10,101,153,140,58,55,4,117,34,35,106,159,142,146,147,119,44,14,52,54,5,56,57,59,100])))}),Ro=rt({getParentRoute:()=>Tv,path:"/settings",component:ct(()=>lt(()=>import("./settings-layout-D6hkxbEw.js"),__vite__mapDeps([179,13,18,19,20,21,22,17,77,45,86,88,90,96,30,51,170,180,58,169,168,117,55,4,150,148,118])))}),jue=rt({getParentRoute:()=>Tv,path:"/install",component:ct(()=>lt(()=>import("./org-install-DRMyhX7p.js"),[]))}),Uue=rt({getParentRoute:()=>Ro,path:"/",component:ct(()=>lt(()=>import("./index-redirect-DBTS2dnX.js"),__vite__mapDeps([181,170,182])))}),$ue=rt({getParentRoute:()=>Ro,path:"/connections",component:ct(()=>lt(()=>import("./connections-ywSL5h_0.js"),__vite__mapDeps([183,101,53,11,184,106,41,79,80,25,85,22,185,31,27,28,136,128,129,124,57,58,130,131,3,4,5,132,133,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,86,87,88,19,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,21,51,26,17,18,20,186,113,170,187,39,119,103,38,2,40,134,111,135,105,10,164]))),validateSearch:pi(()=>Se({action:so(["create"]).optional(),tab:so(["all","connected"]).optional()}))}),que=rt({getParentRoute:()=>Ro,path:"/connections/$appSlug",component:ct(()=>lt(()=>import("./connection-detail-CNKK0Uwv.js"),__vite__mapDeps([188,101,53,11,26,135,2,95,98,189,17,18,19,20,21,22,121,78,88,124,129,57,58,40,41,42,43,158,190,147,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,83,50,84,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,65,30,99,48,51,112,111,191,125,54,55,4,5,126,173,31,10,153,140,29,160,68,103,38,186,113,192,162,132,123,133,106]))),validateSearch:pi(()=>Se({tab:F().optional()}))}),Vue=rt({getParentRoute:()=>Ro,path:"/connections/$appSlug/$collectionName/$itemId",component:ct(()=>lt(()=>import("./collection-detail-b0JpGJaa.js"),__vite__mapDeps([193,26,53,11,103,38,2,134,189,17,18,19,20,21,22,121,78,88,124,101,129,57,58,95,40,41,42,43,158,190,147,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,83,50,84,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,98,65,30,99,48,51,112,111,191,125,54,55,4,5,126,194,132,173,31,10,156,157,114,52,115,116,56,117,68,44,29,39,14,59]))),validateSearch:pi(()=>Se({replayId:F().optional()}))}),Hue=rt({getParentRoute:()=>Ro,path:"/monitor",component:ct(()=>lt(()=>import("./index-DrYcM1UE.js"),__vite__mapDeps([195,27,28,17,18,19,20,21,22,26,196,170,197,182,152,40,41,42,43,130,131,124,53,11,111,133,24,153,140,149,71,49,80,70,72,25,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,51,154,58,137,29,34,35,142,155,39,56,54,55,4,5,114,52,115,116,117,57,156,157,158,159,44,14,59,68,125,126,160,103,38,2,132,31,112,198,164,146,147,134,136,62,194,192]))),validateSearch:pi(()=>Se({tab:so(["overview","audit","dashboards","threads","automations"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:xe(F()).optional().default([]),virtualMcpId:xe(F()).optional().default([]),tool:F().default(""),status:so(["all","success","errors"]).default("all"),search:F().default(""),page:mt().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Gue=rt({getParentRoute:()=>Ro,path:"/general",component:ct(()=>lt(()=>import("./general-CCnrBM4Q.js"),__vite__mapDeps([199,17,18,19,20,21,22,194,74,90,48,140,172,29,30,2,166,133,75,200,58,31,40,41,42,43,113,196,170,197,182])))}),Kue=rt({getParentRoute:()=>Ro,path:"/connect",component:ct(()=>lt(()=>import("./connect-C4NXK81G.js"),__vite__mapDeps([201,194,133,162,142,41,81,88,90,98,17,18,19,20,21,22,166,75,143,53,11])))}),Wue=rt({getParentRoute:()=>Ro,path:"/brand-context",component:ct(()=>lt(()=>import("./brand-context-DnsRF8H_.js"),__vite__mapDeps([202,42,79,95,84,98,113,17,18,19,20,21,22,58,172,90,51,2,134,196,170,197,182])))}),Yue=rt({getParentRoute:()=>Ro,path:"/ai-providers",component:ct(()=>lt(()=>import("./ai-providers-P0-WJLOi.js"),__vite__mapDeps([203,71,17,18,19,20,21,22,110,166,133,75,115,58,49,114,52,54,53,11,55,4,5,111,116,56,117,57,163,39,119,164,41,2,40,42,43,73,72,88,28,165,91,79,29,30,83,144,81,87,97,172,145,113,95,171,35,98,196,170,197,182])))}),Zue=rt({getParentRoute:()=>Ro,path:"/secrets",component:ct(()=>lt(()=>import("./secrets-DCWr6KKP.js"),__vite__mapDeps([204,71,95,30,99,39,21,2,38,40,22,41,42,43,110,134,17,18,19,20,166,133,75,174,58,196,170,197,182])))}),Que=rt({getParentRoute:()=>Ro,path:"/files",component:ct(()=>lt(()=>import("./files-_XaDqqBq.js"),[]))}),Jue=rt({getParentRoute:()=>Ro,path:"/buckets",component:ct(()=>lt(()=>import("./buckets-DLoORNrW.js"),__vite__mapDeps([205,71,86,95,98,113,39,21,2,38,40,22,41,42,43,62,110,134,17,18,19,20,166,133,75,175,58,196,170,197,182])))}),Xue=rt({getParentRoute:()=>Ro,path:"/members",component:ct(()=>lt(()=>import("./members-DUgIby8N.js"),__vite__mapDeps([206,184,106,41,79,80,25,85,22,185,31,27,28,17,18,19,20,21,23,24,26,139,39,103,38,40,42,43,134,140,141,166,133,75,180,170,58,29,30,34,35,36,153,207,113,88,96,98,48,164,146,147,112,95,196,197,182])))}),ede=rt({getParentRoute:()=>Ro,path:"/roles",component:ct(()=>lt(()=>import("./roles-BLXYMTam.js"),__vite__mapDeps([208,141,140,207,31,113,106,41,79,80,95,98,23,24,25,17,18,19,20,21,22,26,27,28,165,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,51,131,164,137,53,11,123,153,36,124,115,58,29,62,166,133,170,197,182]))),validateSearch:pi(()=>Se({role:F().optional()}))}),tde=rt({getParentRoute:()=>Ro,path:"/sso",component:ct(()=>lt(()=>import("./sso-C2xzeJdb.js"),__vite__mapDeps([209,200,58,166,133,75,31,2,40,22,41,42,43,17,18,19,20,21,113,62,59,98,196,170,197,182])))}),ode=rt({getParentRoute:()=>Ro,path:"/profile",component:ct(()=>lt(()=>import("./profile-CSuugqqH.js"),__vite__mapDeps([210,17,18,19,20,21,22,29,30,62,40,41,42,43,145,2,91,92,94,172,168,138,166,133,75])))}),nde=rt({getParentRoute:()=>Ro,path:"/store",component:ct(()=>lt(()=>import("./store-BMPIzDfO.js"),__vite__mapDeps([211,71,79,95,98,2,62,110,29,30,112,124,53,11,17,18,19,20,21,22,129,57,58,166,133,75,196,170,197,182])))}),rde=rt({getParentRoute:()=>Ro,path:"/registry",component:ct(()=>lt(()=>import("./registry-Bn6rObQg.js"),__vite__mapDeps([212,196,170,197,182])))}),ade=rt({getParentRoute:()=>Ro,path:"/store/registry",component:ct(()=>lt(()=>import("./store-registry-DQmSIxU0.js"),__vite__mapDeps([213,196,170,197,182])))}),ide=rt({getParentRoute:()=>Ro,path:"/agents",component:ct(()=>lt(()=>import("./agents-list-Dddq1Msf.js"),__vite__mapDeps([214,106,41,79,80,45,120,53,11,121,111,17,18,19,20,21,22,73,98,171,35,70,71,72,25,69,74,75,76,77,78,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,65,30,99,48,51,125,54,55,4,5,126,133,170,26,191,124,122,39,123,32,105,10,101,104,102,113,27])))}),sde=rt({getParentRoute:()=>Ro,path:"/automations",component:ct(()=>lt(()=>import("./automations-BuTICk23.js"),__vite__mapDeps([215,95,51,27,28,17,18,19,20,21,22,26,154,53,11,58,125,111,54,55,4,5,126,176,113,106,41,79,80,47,98,70,71,72,25,73,69,74,75,76,77,78,45,49,42,43,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,196,170,197,182])))}),lde=Ro.addChildren([Uue,$ue,que,Vue,ide,sde,Hue,Gue,Kue,Wue,Yue,Zue,Que,Jue,Xue,ede,tde,ode,nde,ade,rde]),cde=PB.addChildren([Iue]),ude=jf.addChildren([Lue,Fue,zue,cde]),dde=Tv.addChildren([ude,lde,jue]),fde=NE.addChildren([Pue,dde]),mde=Hr.addChildren([fde,Rue,Aue,kue,Due,bue,yue,Sue,_ue,Cue,wue]);function hde(){const e=no.c(16),t=Bf();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=P.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=P.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=P.jsx("button",{type:"button",onClick:pde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=P.jsx("div",{className:"flex h-full items-center justify-center",children:P.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function pde(){return window.history.back()}const gde=OK({routeTree:mde,defaultPendingComponent:ME,defaultPendingMs:200,defaultNotFoundComponent:hde});due();const vde=document.getElementById("root");X6.createRoot(vde).render(P.jsx(D.StrictMode,{children:P.jsx(Jce,{children:P.jsx(LK,{router:gde})})}));export{Qo as $,Ofe as A,gf as B,mfe as C,dfe as D,qfe as E,qz as F,uu as G,lX as H,xle as I,Se as J,x2 as K,xf as L,F as M,ffe as N,J2 as O,Aa as P,wde as Q,Pa as R,ME as S,_l as T,bt as U,Cs as V,rae as W,dle as X,yB as Y,LE as Z,ru as _,rv as a,Sr as a$,Bp as a0,mI as a1,_I as a2,Iz as a3,Mz as a4,zz as a5,Lz as a6,Nz as a7,Yo as a8,Uz as a9,ON as aA,uee as aB,mee as aC,dee as aD,JX as aE,PH as aF,v2 as aG,Xde as aH,sfe as aI,nQ as aJ,gfe as aK,NH as aL,_B as aM,ee as aN,afe as aO,wo as aP,PN as aQ,yl as aR,Pf as aS,en as aT,AN as aU,dt as aV,ds as aW,mt as aX,lt as aY,yde as aZ,jn as a_,YR as aa,Fz as ab,Bz as ac,lfe as ad,xe as ae,so as af,Dt as ag,It as ah,aQ as ai,Ufe as aj,rQ as ak,$fe as al,au as am,T2 as an,ife as ao,mD as ap,IC as aq,lee as ar,ia as as,af as at,zg as au,Ww as av,Zc as aw,vs as ax,bi as ay,sa as az,Ef as b,xB as b$,nl as b0,ufe as b1,Hfe as b2,Gfe as b3,Gt as b4,rfe as b5,efe as b6,nfe as b7,Lfe as b8,b2 as b9,ZL as bA,jre as bB,o3 as bC,r3 as bD,Xte as bE,$N as bF,xoe as bG,vi as bH,ra as bI,Ede as bJ,aa as bK,bde as bL,ooe as bM,iK as bN,kI as bO,eue as bP,Yg as bQ,Qd as bR,bs as bS,oue as bT,uue as bU,Vfe as bV,CB as bW,jfe as bX,zfe as bY,Nfe as bZ,cL as b_,Tde as ba,Pde as bb,Nw as bc,Hde as bd,Kq as be,IM as bf,Hq as bg,oo as bh,Ge as bi,VC as bj,kM as bk,Ode as bl,Zq as bm,bV as bn,KC as bo,HC as bp,eV as bq,Ide as br,Ude as bs,b7 as bt,Tq as bu,hl as bv,vt as bw,pH as bx,TL as by,xw as bz,no as c,Ree as c$,Ffe as c0,xde as c1,kde as c2,u7 as c3,d7 as c4,rw as c5,l2 as c6,aw as c7,Wg as c8,GM as c9,YS as cA,QS as cB,ZS as cC,Yde as cD,l_ as cE,Cn as cF,t_ as cG,Zde as cH,Jde as cI,Qde as cJ,Gde as cK,coe as cL,uoe as cM,loe as cN,cX as cO,rX as cP,uX as cQ,iX as cR,dX as cS,sX as cT,XN as cU,xee as cV,zw as cW,VN as cX,Fw as cY,Tee as cZ,vfe as c_,x7 as ca,WM as cb,S7 as cc,I7 as cd,qV as ce,HV as cf,WV as cg,a7 as ch,_7 as ci,VV as cj,GV as ck,YV as cl,ZV as cm,i7 as cn,h7 as co,ofe as cp,tfe as cq,Bee as cr,tF as cs,zee as ct,kfe as cu,_2 as cv,Kde as cw,EH as cx,Wde as cy,CV as cz,_p as d,_de as d$,aX as d0,dN as d1,oN as d2,jw as d3,Bw as d4,rf as d5,qj as d6,HM as d7,YM as d8,JM as d9,gq as dA,Ade as dB,Mde as dC,pi as dD,GC as dE,Dde as dF,Gte as dG,Kte as dH,Zte as dI,Wte as dJ,Yte as dK,Sfe as dL,_fe as dM,xfe as dN,Tfe as dO,Rfe as dP,Pfe as dQ,Cfe as dR,wfe as dS,Efe as dT,sQ as dU,iQ as dV,jL as dW,Rde as dX,cfe as dY,yfe as dZ,bfe as d_,e2 as da,t2 as db,n2 as dc,zde as dd,jde as de,Fde as df,Bde as dg,wV as dh,Nde as di,ZM as dj,XM as dk,o2 as dl,qde as dm,QM as dn,NV as dp,Lde as dq,VM as dr,a9 as ds,m7 as dt,Vde as du,Q7 as dv,e9 as dw,L7 as dx,M7 as dy,$de as dz,nv as e,Sde as e0,RI as e1,Mf as e2,Rf as e3,hte as e4,yte as e5,Ete as e6,pte as e7,gte as e8,mte as e9,sF as ea,vte as eb,bte as ec,Ste as ed,_te as ee,Cte as ef,wte as eg,xte as eh,Rte as ei,Pte as ej,Ife as f,Dfe as g,Mfe as h,Bf as i,P as j,IE as k,aue as l,Xce as m,PI as n,Bg as o,Bfe as p,Cle as q,D as r,hfe as s,cs as t,Cw as u,pl as v,pfe as w,EB as x,SB as y,OE as z};
|
|
185
|
+
{plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.queueTray.queuedMessages":"{count} mensagem(ns) na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.runtimeSwitcher.cloudSandbox":"Sandbox em nuvem","chat.runtimeSwitcher.notAvailableOnThisDeployment":"Não disponível nesta implantação","chat.runtimeSwitcher.runDecocmsLinkOnYourDesktop":"Execute `decocms link` em seu desktop","chat.runtimeSwitcher.runOn":"Executar em","chat.runtimeSwitcher.runningOn":"Executando em {label}","chat.runtimeSwitcher.runsInDecosCloud":"Executa na nuvem do deco","chat.runtimeSwitcher.runsOnYourMachineViaDecoLink":"Executa em sua máquina via deco link","chat.runtimeSwitcher.runtime":"Tempo de execução: {label}","chat.runtimeSwitcher.thisDevice":"Dispositivo","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}"},qce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},Vce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},Hce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},Gce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.blocks":"Blocos","sandbox.preview.blocksEditor":"Editor de blocos","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.hardReload":"Recarregamento forçado","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.siteSeo":"SEO do site","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Kce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},Wce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Yce={...pce,...gce,...vce,...bce,...yce,...Sce,..._ce,...Cce,...wce,...Ece,...xce,...Tce,...Rce,...Pce,...Ace,...kce,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce,...zce,...jce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Wce,...Kce},Zce={en:mce,"pt-BR":Yce};function Bf(){const e=no.c(2),[t]=EB(),o=Zce[t.language];let n;return e[0]!==o?(n=(r,i)=>hce(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const zf=new Dz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});cle(zf);ule(zf);ole(zf);nle(zf);function Qce(e){const t=no.c(2),{children:o}=e,n=Bf();vj({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=P.jsx(P.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function Jce(e){const t=no.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=P.jsx(gj,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=P.jsx(ME,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=P.jsxs(Oz,{client:zf,children:[n,P.jsx(D.Suspense,{fallback:r,children:P.jsx(Ole,{children:P.jsx(VH,{children:P.jsx(Hae,{children:P.jsx(wle,{children:P.jsx(Qce,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function LE(){const e=no.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=P.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:P.jsx(IE,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Xce(...e){return TL(xw(e))}const eue=ZL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function gf(e){const t=no.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?Nw:"button";let f;t[6]!==o||t[7]!==r||t[8]!==l?(f=Xce(eue({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=f):f=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==f?(h=P.jsx(d,{"data-slot":"button",className:f,...n}),t[10]=d,t[11]=n,t[12]=f,t[13]=h):h=t[13],h}const tue=["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 oue(e){const t=no.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=P.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:tue}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=P.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,P.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function xB(e){const t=no.c(20),{orgName:o}=e,n=Bf(),r=nue;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=P.jsx("div",{className:"bg-muted p-3 rounded-full",children:P.jsx(yB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=P.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let f;t[8]!==d?(f=P.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=f):f=t[9];let h;t[10]!==c||t[11]!==f?(h=P.jsxs("div",{className:"space-y-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=h):h=t[12];let m;t[13]!==n?(m=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=m):m=t[14];let g;t[15]!==m?(g=P.jsx(gf,{onClick:r,children:m}),t[15]=m,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=P.jsxs(oue,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function nue(){window.location.href="/"}function rue(){const e=no.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=nv(t);let n;return e[1]!==o?(n=P.jsx(gf,{variant:"outline",size:"sm",asChild:!0,children:P.jsx(xf,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function aue(e){const t=no.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=P.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:P.jsx(SB,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=P.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let f;t[3]!==l?(f=P.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=f):f=t[4];let h;t[5]!==d||t[6]!==f?(h=P.jsxs("div",{className:"space-y-1",children:[d,f]}),t[5]=d,t[6]=f,t[7]=h):h=t[7];let m;t[8]!==r?(m=r??P.jsx(rue,{}),t[8]=r,t[9]=m):m=t[9];let g;return t[10]!==h||t[11]!==m?(g=P.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,m]}),t[10]=h,t[11]=m,t[12]=g):g=t[12],g}const lI="__mesh_chunk_reload_ts";function TB(e){return e?.message==="Organization is archived"}function iue(e){return!!e?.message?.includes("Access denied")}function cI(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class sue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),bB(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:TB(this.state.error)?P.jsx(xB,{}):iue(this.state.error)?P.jsx(aue,{}):P.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:P.jsx(OE,{className:"h-6 w-6 text-destructive"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),P.jsx(gf,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function qfe(e){const t=no.c(3),o=Bf();let n;return t[0]!==e||t[1]!==o?(n=P.jsx(sue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class lue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=cI(t);if(bB(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(lI),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(lI,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&cI(this.state.error)?P.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:P.jsx(_B,{className:"h-6 w-6 text-primary"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),P.jsx(gf,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?TB(this.state.error)?P.jsx(xB,{}):P.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[P.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:P.jsx(OE,{className:"h-6 w-6 text-destructive"})}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),P.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),P.jsx(gf,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function cue(e){const t=no.c(3),o=Bf();let n;return t[0]!==e||t[1]!==o?(n=P.jsx(lue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}function RB(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function uue(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Vfe(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,uI=!1;const OC=new Set;function Fg(){for(const e of OC)e()}function due(){uI||typeof window>"u"||(uI=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Fg()}),window.addEventListener("appinstalled",()=>{ui=null,Fg()}))}function Hfe(){ui!==null&&(ui=null,Fg())}function fue(e){return OC.add(e),()=>{OC.delete(e)}}function mue(){return ui}function hue(){return null}function pue(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function gue(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Gfe(){const e=no.c(5),t=D.useSyncExternalStore(fue,mue,hue);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=pue(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=gue(),l=vue,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function vue(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Fg(),e.outcome}const Hr=_K({component:()=>P.jsx(cue,{children:P.jsx(D.Suspense,{fallback:P.jsx(ME,{}),children:P.jsx(J2,{})})})}),bue=rt({getParentRoute:()=>Hr,path:"/login",component:ct(()=>lt(()=>import("./login-4_3ws-KS.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>Se({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),yue=rt({getParentRoute:()=>Hr,path:"/cli/auth-success",component:ct(()=>lt(()=>import("./cli-auth-success-C8PJDHgg.js"),__vite__mapDeps([7,6])))}),Sue=rt({getParentRoute:()=>Hr,path:"/reset-password",component:ct(()=>lt(()=>import("./reset-password-BbJbIECY.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>Se({token:F().optional(),error:F().optional()}))}),_ue=rt({getParentRoute:()=>Hr,path:"/auth/$pathname",component:ct(()=>lt(()=>import("./auth-catchall-EXC_8C7r.js"),[]))}),Cue=rt({getParentRoute:()=>Hr,path:"/oauth/callback",component:ct(()=>lt(()=>import("./oauth-callback-Dvq5W1_N.js"),__vite__mapDeps([9,10,11])))}),wue=rt({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:ct(()=>lt(()=>import("./oauth-callback-ai-provider-DbmJB-Oh.js"),[]))}),xv=rt({getParentRoute:()=>Hr,path:"/_admin",component:ct(()=>lt(()=>import("./layout-BL3WnOhQ.js"),__vite__mapDeps([12,13,14,15])))}),Eue=rt({getParentRoute:()=>xv,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),xue=rt({getParentRoute:()=>xv,path:"/users",component:ct(()=>lt(()=>import("./users-K-MwRA9n.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),Tue=rt({getParentRoute:()=>xv,path:"/orgs",component:ct(()=>lt(()=>import("./orgs-DzN52fjP.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),Rue=xv.addChildren([Eue,xue,Tue]),NE=rt({getParentRoute:()=>Hr,id:"shell",component:ct(()=>lt(()=>import("./shell-layout-Mucs34pV.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,55,4,5,56,57,58,59])))}),Pue=rt({getParentRoute:()=>NE,path:"/",beforeLoad:async()=>{const e=uue();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await uL();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),Aue=rt({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await uL();if(e&&e.length>0)throw is({to:"/"})},component:ct(()=>lt(()=>import("./onboarding-C8unJq0w.js"),__vite__mapDeps([60,14,6,61,29,30,2,38,62,45,49,63,64,65])))}),kue=rt({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:ct(()=>lt(()=>import("./commerce-onboarding-C645w_Mz.js"),__vite__mapDeps([66,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,21,51,39,22,100,101,102,103,38,2,32,104,105,10,1,3,4,5,6,61,29,106]))),validateSearch:pi(()=>Se({org:F().optional(),siteUrl:F().optional()}))}),Due=rt({getParentRoute:()=>Hr,path:"/report/$domain",component:ct(()=>lt(()=>import("./reports-Ch_0FWNX.js"),__vite__mapDeps([107,1,2,3,4,5,71,25,74,76,49,83,89,93,46,96,97,51,108]))),validateSearch:pi(()=>Se({key:F().optional()}))}),Tv=rt({getParentRoute:()=>NE,path:"/$org",beforeLoad:({params:e})=>{RB({org:e.org})},component:ct(()=>lt(()=>import("./org-layout-A8-sPwxd.js"),[]))}),jf=rt({getParentRoute:()=>Tv,id:"org-shell",component:ct(()=>lt(()=>import("./index-CDy6bFpC.js"),__vite__mapDeps([109,18,19,20,21,22,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,39,100,101,102,103,38,2,32,104,105,10,56,110,111,112,113,114,52,54,55,4,5,58,115,116,117,57,118,119,120,121,122,123,124,125,126,44,29,14,59,127,128,129,130,131,3,132,133,40,134,135,136,31,137,15,138,139,140,141,142,143,144,145,146,147,148,149,34,35,150])))}),PB=rt({getParentRoute:()=>jf,id:"agent-shell",pendingComponent:LE,component:ct(()=>lt(()=>import("./index-DkqrfhJp.js").then(e=>e.b2),__vite__mapDeps([151,25,114,52,54,53,11,55,4,5,58,111,115,116,56,117,57,152,40,22,41,42,43,130,131,124,133,18,19,20,21,24,26,153,140,149,71,49,80,70,72,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,154,137,29,34,35,142,155,39,156,157,158,159,44,14,59,68,125,126,160,103,38,2,119,123,161,36,112,120,121,102,105,10,101,106,146,147,100,162,145,127,128,129,3,132,134,135,136,31,144,163,164,110,165,166,167,113,150,32,168,169,170,118,171,172,17,27,173,62,122,104,174,175,176,177])))}),Oue=Se({virtualmcpid:F().optional(),tab:F().optional(),sidepanel:oo([Ge("chat"),Ge(0)]).optional(),main:oo([F(),Ge(0)]).optional(),preview:F().optional(),id:F().optional(),toolName:F().optional(),tasks:mt().optional(),mainOpen:mt().optional(),autosend:F().optional(),runLocally:F().optional(),connect:BM().optional(),siteUrl:F().optional()}),Iue=rt({getParentRoute:()=>PB,path:"/$taskId",validateSearch:Oue,beforeLoad:({params:e,search:t})=>{RB({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Mue=Se({main:F().optional(),connect:BM().optional(),siteUrl:F().optional()}),Lue=rt({getParentRoute:()=>jf,path:"/",validateSearch:Mue,pendingComponent:LE,component:ct(()=>lt(()=>import("./index-CAwc9d0_.js"),__vite__mapDeps([178,53,11,54,55,4,5,126])))}),Nue=Se({path:F().optional(),preview:F().optional(),skill:F().optional()}),Fue=rt({getParentRoute:()=>jf,path:"/files",validateSearch:Nue,pendingComponent:LE,component:ct(()=>lt(()=>import("./index-DXU-zOnf.js").then(e=>e.Y),__vite__mapDeps([167,83,64,95,46,65,48,51,20,113,39,21,2,155,41,81,82,78,56,150,93,32,116,110,134,42,43,112,22,88,90,157,87,106,79,80,19,97,98])))}),Bue=Se({task:F().optional()}),zue=rt({getParentRoute:()=>jf,path:"/board",validateSearch:Bue,component:ct(()=>lt(()=>import("./index-BZKh5x8S.js").then(e=>e.n),__vite__mapDeps([161,36,29,30,70,71,72,25,73,69,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,99,48,21,51,112,53,11,120,121,39,124,102,105,10,101,153,140,58,55,4,117,34,35,106,159,142,146,147,119,44,14,52,54,5,56,57,59,100])))}),Ro=rt({getParentRoute:()=>Tv,path:"/settings",component:ct(()=>lt(()=>import("./settings-layout-DenVW1V_.js"),__vite__mapDeps([179,13,18,19,20,21,22,17,77,45,86,88,90,96,30,51,170,180,58,169,168,117,55,4,150,148,118])))}),jue=rt({getParentRoute:()=>Tv,path:"/install",component:ct(()=>lt(()=>import("./org-install--ffHoCdp.js"),[]))}),Uue=rt({getParentRoute:()=>Ro,path:"/",component:ct(()=>lt(()=>import("./index-redirect-Bsk6Qi8z.js"),__vite__mapDeps([181,170,182])))}),$ue=rt({getParentRoute:()=>Ro,path:"/connections",component:ct(()=>lt(()=>import("./connections-CLeMA5sw.js"),__vite__mapDeps([183,101,53,11,184,106,41,79,80,25,85,22,185,31,27,28,136,128,129,124,57,58,130,131,3,4,5,132,133,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,86,87,88,19,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,21,51,26,17,18,20,186,113,170,187,39,119,103,38,2,40,134,111,135,105,10,164]))),validateSearch:pi(()=>Se({action:so(["create"]).optional(),tab:so(["all","connected"]).optional()}))}),que=rt({getParentRoute:()=>Ro,path:"/connections/$appSlug",component:ct(()=>lt(()=>import("./connection-detail-DbXXUV2H.js"),__vite__mapDeps([188,101,53,11,26,135,2,95,98,189,17,18,19,20,21,22,121,78,88,124,129,57,58,40,41,42,43,158,190,147,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,83,50,84,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,65,30,99,48,51,112,111,191,125,54,55,4,5,126,173,31,10,153,140,29,160,68,103,38,186,113,192,162,132,123,133,106]))),validateSearch:pi(()=>Se({tab:F().optional()}))}),Vue=rt({getParentRoute:()=>Ro,path:"/connections/$appSlug/$collectionName/$itemId",component:ct(()=>lt(()=>import("./collection-detail-DFnnR_Ed.js"),__vite__mapDeps([193,26,53,11,103,38,2,134,189,17,18,19,20,21,22,121,78,88,124,101,129,57,58,95,40,41,42,43,158,190,147,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,83,50,84,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,98,65,30,99,48,51,112,111,191,125,54,55,4,5,126,194,132,173,31,10,156,157,114,52,115,116,56,117,68,44,29,39,14,59]))),validateSearch:pi(()=>Se({replayId:F().optional()}))}),Hue=rt({getParentRoute:()=>Ro,path:"/monitor",component:ct(()=>lt(()=>import("./index-_4qsQ90U.js"),__vite__mapDeps([195,27,28,17,18,19,20,21,22,26,196,170,197,182,152,40,41,42,43,130,131,124,53,11,111,133,24,153,140,149,71,49,80,70,72,25,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,51,154,58,137,29,34,35,142,155,39,56,54,55,4,5,114,52,115,116,117,57,156,157,158,159,44,14,59,68,125,126,160,103,38,2,132,31,112,198,164,146,147,134,136,62,194,192]))),validateSearch:pi(()=>Se({tab:so(["overview","audit","dashboards","threads","automations"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:xe(F()).optional().default([]),virtualMcpId:xe(F()).optional().default([]),tool:F().default(""),status:so(["all","success","errors"]).default("all"),search:F().default(""),page:mt().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Gue=rt({getParentRoute:()=>Ro,path:"/general",component:ct(()=>lt(()=>import("./general-BcJnDe6x.js"),__vite__mapDeps([199,17,18,19,20,21,22,194,74,90,48,140,172,29,30,2,166,133,75,200,58,31,40,41,42,43,113,196,170,197,182])))}),Kue=rt({getParentRoute:()=>Ro,path:"/connect",component:ct(()=>lt(()=>import("./connect-D8942-MM.js"),__vite__mapDeps([201,194,133,162,142,41,81,88,90,98,17,18,19,20,21,22,166,75,143,53,11])))}),Wue=rt({getParentRoute:()=>Ro,path:"/brand-context",component:ct(()=>lt(()=>import("./brand-context-CG5th-2x.js"),__vite__mapDeps([202,42,79,95,84,98,113,17,18,19,20,21,22,58,172,90,51,2,134,196,170,197,182])))}),Yue=rt({getParentRoute:()=>Ro,path:"/ai-providers",component:ct(()=>lt(()=>import("./ai-providers-C3odtRrl.js"),__vite__mapDeps([203,71,17,18,19,20,21,22,110,166,133,75,115,58,49,114,52,54,53,11,55,4,5,111,116,56,117,57,163,39,119,164,41,2,40,42,43,73,72,88,28,165,91,79,29,30,83,144,81,87,97,172,145,113,95,171,35,98,196,170,197,182])))}),Zue=rt({getParentRoute:()=>Ro,path:"/secrets",component:ct(()=>lt(()=>import("./secrets-BzFJ43TI.js"),__vite__mapDeps([204,71,95,30,99,39,21,2,38,40,22,41,42,43,110,134,17,18,19,20,166,133,75,174,58,196,170,197,182])))}),Que=rt({getParentRoute:()=>Ro,path:"/files",component:ct(()=>lt(()=>import("./files-PO932eji.js"),[]))}),Jue=rt({getParentRoute:()=>Ro,path:"/buckets",component:ct(()=>lt(()=>import("./buckets-t5T7X7Zi.js"),__vite__mapDeps([205,71,86,95,98,113,39,21,2,38,40,22,41,42,43,62,110,134,17,18,19,20,166,133,75,175,58,196,170,197,182])))}),Xue=rt({getParentRoute:()=>Ro,path:"/members",component:ct(()=>lt(()=>import("./members-DBEjnYOy.js"),__vite__mapDeps([206,184,106,41,79,80,25,85,22,185,31,27,28,17,18,19,20,21,23,24,26,139,39,103,38,40,42,43,134,140,141,166,133,75,180,170,58,29,30,34,35,36,153,207,113,88,96,98,48,164,146,147,112,95,196,197,182])))}),ede=rt({getParentRoute:()=>Ro,path:"/roles",component:ct(()=>lt(()=>import("./roles-BNyb78Mb.js"),__vite__mapDeps([208,141,140,207,31,113,106,41,79,80,95,98,23,24,25,17,18,19,20,21,22,26,27,28,165,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,51,131,164,137,53,11,123,153,36,124,115,58,29,62,166,133,170,197,182]))),validateSearch:pi(()=>Se({role:F().optional()}))}),tde=rt({getParentRoute:()=>Ro,path:"/sso",component:ct(()=>lt(()=>import("./sso-NPY_FcmV.js"),__vite__mapDeps([209,200,58,166,133,75,31,2,40,22,41,42,43,17,18,19,20,21,113,62,59,98,196,170,197,182])))}),ode=rt({getParentRoute:()=>Ro,path:"/profile",component:ct(()=>lt(()=>import("./profile-D7z_2Q-S.js"),__vite__mapDeps([210,17,18,19,20,21,22,29,30,62,40,41,42,43,145,2,91,92,94,172,168,138,166,133,75])))}),nde=rt({getParentRoute:()=>Ro,path:"/store",component:ct(()=>lt(()=>import("./store-DvLImTcn.js"),__vite__mapDeps([211,71,79,95,98,2,62,110,29,30,112,124,53,11,17,18,19,20,21,22,129,57,58,166,133,75,196,170,197,182])))}),rde=rt({getParentRoute:()=>Ro,path:"/registry",component:ct(()=>lt(()=>import("./registry-BeUPIlNQ.js"),__vite__mapDeps([212,196,170,197,182])))}),ade=rt({getParentRoute:()=>Ro,path:"/store/registry",component:ct(()=>lt(()=>import("./store-registry-DkfCPpEE.js"),__vite__mapDeps([213,196,170,197,182])))}),ide=rt({getParentRoute:()=>Ro,path:"/agents",component:ct(()=>lt(()=>import("./agents-list-B2pe35L-.js"),__vite__mapDeps([214,106,41,79,80,45,120,53,11,121,111,17,18,19,20,21,22,73,98,171,35,70,71,72,25,69,74,75,76,77,78,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,65,30,99,48,51,125,54,55,4,5,126,133,170,26,191,124,122,39,123,32,105,10,101,104,102,113,27])))}),sde=rt({getParentRoute:()=>Ro,path:"/automations",component:ct(()=>lt(()=>import("./automations-Dd_qxkUk.js"),__vite__mapDeps([215,95,51,27,28,17,18,19,20,21,22,26,154,53,11,58,125,111,54,55,4,5,126,176,113,106,41,79,80,47,98,70,71,72,25,73,69,74,75,76,77,78,45,49,42,43,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,196,170,197,182])))}),lde=Ro.addChildren([Uue,$ue,que,Vue,ide,sde,Hue,Gue,Kue,Wue,Yue,Zue,Que,Jue,Xue,ede,tde,ode,nde,ade,rde]),cde=PB.addChildren([Iue]),ude=jf.addChildren([Lue,Fue,zue,cde]),dde=Tv.addChildren([ude,lde,jue]),fde=NE.addChildren([Pue,dde]),mde=Hr.addChildren([fde,Rue,Aue,kue,Due,bue,yue,Sue,_ue,Cue,wue]);function hde(){const e=no.c(16),t=Bf();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=P.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=P.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=P.jsx("button",{type:"button",onClick:pde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=P.jsx("div",{className:"flex h-full items-center justify-center",children:P.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function pde(){return window.history.back()}const gde=OK({routeTree:mde,defaultPendingComponent:ME,defaultPendingMs:200,defaultNotFoundComponent:hde});due();const vde=document.getElementById("root");X6.createRoot(vde).render(P.jsx(D.StrictMode,{children:P.jsx(Jce,{children:P.jsx(LK,{router:gde})})}));export{Qo as $,Ofe as A,gf as B,mfe as C,dfe as D,qfe as E,qz as F,uu as G,lX as H,xle as I,Se as J,x2 as K,xf as L,F as M,ffe as N,J2 as O,Aa as P,wde as Q,Pa as R,ME as S,_l as T,bt as U,Cs as V,rae as W,dle as X,yB as Y,LE as Z,ru as _,rv as a,Sr as a$,Bp as a0,mI as a1,_I as a2,Iz as a3,Mz as a4,zz as a5,Lz as a6,Nz as a7,Yo as a8,Uz as a9,ON as aA,uee as aB,mee as aC,dee as aD,JX as aE,PH as aF,v2 as aG,Xde as aH,sfe as aI,nQ as aJ,gfe as aK,NH as aL,_B as aM,ee as aN,afe as aO,wo as aP,PN as aQ,yl as aR,Pf as aS,en as aT,AN as aU,dt as aV,ds as aW,mt as aX,lt as aY,yde as aZ,jn as a_,YR as aa,Fz as ab,Bz as ac,lfe as ad,xe as ae,so as af,Dt as ag,It as ah,aQ as ai,Ufe as aj,rQ as ak,$fe as al,au as am,T2 as an,ife as ao,mD as ap,IC as aq,lee as ar,ia as as,af as at,zg as au,Ww as av,Zc as aw,vs as ax,bi as ay,sa as az,Ef as b,xB as b$,nl as b0,ufe as b1,Hfe as b2,Gfe as b3,Gt as b4,rfe as b5,efe as b6,nfe as b7,Lfe as b8,b2 as b9,ZL as bA,jre as bB,o3 as bC,r3 as bD,Xte as bE,$N as bF,xoe as bG,vi as bH,ra as bI,Ede as bJ,aa as bK,bde as bL,ooe as bM,iK as bN,kI as bO,eue as bP,Yg as bQ,Qd as bR,bs as bS,oue as bT,uue as bU,Vfe as bV,CB as bW,jfe as bX,zfe as bY,Nfe as bZ,cL as b_,Tde as ba,Pde as bb,Nw as bc,Hde as bd,Kq as be,IM as bf,Hq as bg,oo as bh,Ge as bi,VC as bj,kM as bk,Ode as bl,Zq as bm,bV as bn,KC as bo,HC as bp,eV as bq,Ide as br,Ude as bs,b7 as bt,Tq as bu,hl as bv,vt as bw,pH as bx,TL as by,xw as bz,no as c,Ree as c$,Ffe as c0,xde as c1,kde as c2,u7 as c3,d7 as c4,rw as c5,l2 as c6,aw as c7,Wg as c8,GM as c9,YS as cA,QS as cB,ZS as cC,Yde as cD,l_ as cE,Cn as cF,t_ as cG,Zde as cH,Jde as cI,Qde as cJ,Gde as cK,coe as cL,uoe as cM,loe as cN,cX as cO,rX as cP,uX as cQ,iX as cR,dX as cS,sX as cT,XN as cU,xee as cV,zw as cW,VN as cX,Fw as cY,Tee as cZ,vfe as c_,x7 as ca,WM as cb,S7 as cc,I7 as cd,qV as ce,HV as cf,WV as cg,a7 as ch,_7 as ci,VV as cj,GV as ck,YV as cl,ZV as cm,i7 as cn,h7 as co,ofe as cp,tfe as cq,Bee as cr,tF as cs,zee as ct,kfe as cu,_2 as cv,Kde as cw,EH as cx,Wde as cy,CV as cz,_p as d,_de as d$,aX as d0,dN as d1,oN as d2,jw as d3,Bw as d4,rf as d5,qj as d6,HM as d7,YM as d8,JM as d9,gq as dA,Ade as dB,Mde as dC,pi as dD,GC as dE,Dde as dF,Gte as dG,Kte as dH,Zte as dI,Wte as dJ,Yte as dK,Sfe as dL,_fe as dM,xfe as dN,Tfe as dO,Rfe as dP,Pfe as dQ,Cfe as dR,wfe as dS,Efe as dT,sQ as dU,iQ as dV,jL as dW,Rde as dX,cfe as dY,yfe as dZ,bfe as d_,e2 as da,t2 as db,n2 as dc,zde as dd,jde as de,Fde as df,Bde as dg,wV as dh,Nde as di,ZM as dj,XM as dk,o2 as dl,qde as dm,QM as dn,NV as dp,Lde as dq,VM as dr,a9 as ds,m7 as dt,Vde as du,Q7 as dv,e9 as dw,L7 as dx,M7 as dy,$de as dz,nv as e,Sde as e0,RI as e1,Mf as e2,Rf as e3,hte as e4,yte as e5,Ete as e6,pte as e7,gte as e8,mte as e9,sF as ea,vte as eb,bte as ec,Ste as ed,_te as ee,Cte as ef,wte as eg,xte as eh,Rte as ei,Pte as ej,Ife as f,Dfe as g,Mfe as h,Bf as i,P as j,IE as k,aue as l,Xce as m,PI as n,Bg as o,Bfe as p,Cle as q,D as r,hfe as s,cs as t,Cw as u,pl as v,pfe as w,EB as x,SB as y,OE as z};
|