decocms 4.406.0 → 4.406.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.
Files changed (349) hide show
  1. package/dist/client/assets/{AlertCircle-CgujCznd.js → AlertCircle-BQVXEKUc.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Dl87CKFl.js → AreaChart-B_KOVsWH.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DYz0WE09.js → ArrowLeft-BeFq6jod.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CWiigebn.js → ArrowRight-DVxyJd1l.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DBpBKFdD.js → ArrowUp-MMes236V.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CQtCbOPS.js → CartesianChart-4nAUsvcH.js} +1 -1
  7. package/dist/client/assets/{Check-BO0tsZXP.js → Check-DjwzpZIC.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-DppxuNa7.js → CheckCircle-CflfIWoL.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-WgMV95Wl.js → ChevronUp-BYWuf4SY.js} +1 -1
  10. package/dist/client/assets/{Copy01-CP89x_RS.js → Copy01-CjQc-Ykz.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-H8jUQWxs.js → CreditCard01-Cl8DBAML.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-4TEj21cV.js → DotsVertical-BV4Cp92F.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-qNEZftpi.js → ErrorBarContext-DMbtuZnP.js} +1 -1
  14. package/dist/client/assets/{Eye-ARN8W0OA.js → Eye-CEZdPSLz.js} +1 -1
  15. package/dist/client/assets/{Globe04-CdU3biQC.js → Globe04-t1_NZ4S5.js} +1 -1
  16. package/dist/client/assets/{Image01-l9PMSSY0.js → Image01-Bed8faGM.js} +1 -1
  17. package/dist/client/assets/{Key01-QkJYBYv-.js → Key01-DDYGtlfn.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-CgYc0js8.js → LayoutLeft-CZkz1jNL.js} +1 -1
  19. package/dist/client/assets/{Line-Bv4GUfne.js → Line-CXvxeuZf.js} +1 -1
  20. package/dist/client/assets/{Link01-CmwuZgWx.js → Link01-BbIArCE_.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-DQ25aknz.js → LinkExternal01-DpNDkCnx.js} +1 -1
  22. package/dist/client/assets/{Monitor01-BVwwAtM6.js → Monitor01-Ah5De9w0.js} +1 -1
  23. package/dist/client/assets/{Palette-Bjt7HH4h.js → Palette-ChnBuAtH.js} +1 -1
  24. package/dist/client/assets/{Plus-TU-OKHt0.js → Plus-BICk297J.js} +1 -1
  25. package/dist/client/assets/{SearchMd-Cm4pXgfM.js → SearchMd-v8QAVRjQ.js} +1 -1
  26. package/dist/client/assets/{Sector-BdyQFYKV.js → Sector-Ch6wxiVl.js} +1 -1
  27. package/dist/client/assets/{Share07-DyeTiScB.js → Share07-CmuXKCN5.js} +1 -1
  28. package/dist/client/assets/{Sun-DgGlHV06.js → Sun-DTRl56RH.js} +1 -1
  29. package/dist/client/assets/{Tool01-CQ5Xc26A.js → Tool01-Bdvuj8zb.js} +1 -1
  30. package/dist/client/assets/{Trash01-B9y1vShv.js → Trash01-B5wUzx2c.js} +1 -1
  31. package/dist/client/assets/{Upload01-DAXWNq7T.js → Upload01-Cu-9L0qW.js} +1 -1
  32. package/dist/client/assets/{User01-p3MXVQ0Z.js → User01-DaLqt8Zu.js} +1 -1
  33. package/dist/client/assets/{UserSquare-C7aUR_aW.js → UserSquare-C7TikGGO.js} +1 -1
  34. package/dist/client/assets/{Users01-CohEKYSh.js → Users01-BGfUl9Z9.js} +1 -1
  35. package/dist/client/assets/{X-qOHqlxey.js → X-CRCA8SGk.js} +1 -1
  36. package/dist/client/assets/{XClose-hPk1Hqkr.js → XClose-DJgtnkEc.js} +1 -1
  37. package/dist/client/assets/{Zap-CyBIW8px.js → Zap-DHslHQ0t.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-DZCavZ8o.js → ZoomOut-DIggrZVG.js} +1 -1
  39. package/dist/client/assets/{access-gate-DNEAyv2j.js → access-gate-Cco763GH.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-bRZtyL-b.js → add-connection-dialog-CvOk-16j.js} +1 -1
  41. package/dist/client/assets/{agent-analytics-tSEQzJqV.js → agent-analytics-BuShy2lS.js} +1 -1
  42. package/dist/client/assets/agent-app-D6Tp5vlj.js +1 -0
  43. package/dist/client/assets/{agent-assets-B0UpGeZB.js → agent-assets-R_wphq7p.js} +1 -1
  44. package/dist/client/assets/{agent-automation-BnqBubMi.js → agent-automation-C6iPqVOP.js} +1 -1
  45. package/dist/client/assets/{agent-automations-Bhwn57Bu.js → agent-automations-CLIHaUQn.js} +1 -1
  46. package/dist/client/assets/{agent-connect-sources-e0UYTGJa.js → agent-connect-sources-tobP9soC.js} +1 -1
  47. package/dist/client/assets/agent-deck-DtlpMciC.js +1 -0
  48. package/dist/client/assets/{agent-e2e-nAUWbLbx.js → agent-e2e-DakaaNs8.js} +1 -1
  49. package/dist/client/assets/{agent-experiments-BolDhf_W.js → agent-experiments-BhEpxS1S.js} +1 -1
  50. package/dist/client/assets/{agent-file-C1aTOAN-.js → agent-file-B7S5_-vD.js} +1 -1
  51. package/dist/client/assets/{agent-git-BjUtQS3j.js → agent-git-so-osFz0.js} +1 -1
  52. package/dist/client/assets/{agent-hosting-DIjx0dPc.js → agent-hosting-BXsuvmaY.js} +1 -1
  53. package/dist/client/assets/{agent-icon-Bd0IZ2xl.js → agent-icon-DZc84vtW.js} +1 -1
  54. package/dist/client/assets/agent-library-file-BbHf83br.js +1 -0
  55. package/dist/client/assets/{agent-monitor-DKKZFNMi.js → agent-monitor-Y-y8WkNo.js} +1 -1
  56. package/dist/client/assets/{agent-overview-lYvI4Nyl.js → agent-overview-Bxx3mqx3.js} +1 -1
  57. package/dist/client/assets/agent-settings-BdnQNFuI.js +1 -0
  58. package/dist/client/assets/{agent-site-editor-CdJOqKVu.js → agent-site-editor-CPf68n1p.js} +1 -1
  59. package/dist/client/assets/agent-site-editor-code-C5W28gjl.js +2 -0
  60. package/dist/client/assets/{agent-site-editor-content-DXhW4uZI.js → agent-site-editor-content-Dbmoy-9X.js} +3 -3
  61. package/dist/client/assets/{agent-site-editor-preview-CWf5w5wW.js → agent-site-editor-preview-GS0ijSSp.js} +3 -3
  62. package/dist/client/assets/agent-view-BjdG_eVV.js +1 -0
  63. package/dist/client/assets/{agent-view-guard-yKF0ckjL.js → agent-view-guard-RZaWWh8q.js} +1 -1
  64. package/dist/client/assets/{agents-list-BGbR4Gn2.js → agents-list-BRhXk1wX.js} +1 -1
  65. package/dist/client/assets/{ai-providers-D6lyG4Rj.js → ai-providers-DsuBk_lC.js} +1 -1
  66. package/dist/client/assets/{alert-D1vpzkWd.js → alert-CyFB5Q7g.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-EQsgmpuA.js → alert-dialog-Cp1oRtvU.js} +1 -1
  68. package/dist/client/assets/{analytics-sections-YNBdLO_f.js → analytics-sections-BvlUaDYV.js} +1 -1
  69. package/dist/client/assets/api-keys-C2GXQUdc.js +1 -0
  70. package/dist/client/assets/{api-keys-Buj2Mg4T.js → api-keys-CClkqBtA.js} +1 -1
  71. package/dist/client/assets/app-editor-BXC1buiG.js +1 -0
  72. package/dist/client/assets/{asset-utils-9XLqBp-Q.js → asset-utils-DmV7MwAi.js} +1 -1
  73. package/dist/client/assets/{auth-B4tHClP5.js → auth-DewE0vsZ.js} +1 -1
  74. package/dist/client/assets/{auth-catchall-BA6qJurQ.js → auth-catchall-CnLOzh6z.js} +1 -1
  75. package/dist/client/assets/{auth-entry--UoEULta.js → auth-entry-BYurZCL8.js} +1 -1
  76. package/dist/client/assets/{auth-split-layout-C2Z78rym.js → auth-split-layout-cVJzCAIz.js} +1 -1
  77. package/dist/client/assets/{authenticate-and-persist-oauth-EABJT3_J.js → authenticate-and-persist-oauth-C0spMpLN.js} +1 -1
  78. package/dist/client/assets/{automation-list-row-C62I8jHw.js → automation-list-row-D9W4FguS.js} +1 -1
  79. package/dist/client/assets/{automation-runs-CvKbK1mn.js → automation-runs-pUjgCSfr.js} +1 -1
  80. package/dist/client/assets/{automations-KmRW23R-.js → automations-BWboyFGA.js} +1 -1
  81. package/dist/client/assets/{autosend-BwqeYDrP.js → autosend-BOLn22FP.js} +1 -1
  82. package/dist/client/assets/{avatar-DNbeZQMl.js → avatar-BXB8p0uZ.js} +1 -1
  83. package/dist/client/assets/{badge-Dn4B9MPM.js → badge-L3Pfb7lT.js} +1 -1
  84. package/dist/client/assets/{block-document-BcubOVW1.js → block-document-CZmZt_GS.js} +1 -1
  85. package/dist/client/assets/{blocks-preview-workspace-context-CiPsRjF4.js → blocks-preview-workspace-context-C6-ILFRy.js} +1 -1
  86. package/dist/client/assets/{buckets-DuU1P-Pt.js → buckets-C_5U-zUS.js} +1 -1
  87. package/dist/client/assets/{build-improve-prompt-doc-l2J5lTda.js → build-improve-prompt-doc-CYmkt9A_.js} +1 -1
  88. package/dist/client/assets/{calendar-Bd64vnKI.js → calendar-mQVeScA0.js} +1 -1
  89. package/dist/client/assets/{capability-load-error-D7kLzc_F.js → capability-load-error-BjPwGIMH.js} +1 -1
  90. package/dist/client/assets/{cards-CJ0w9n3U.js → cards-CfITToen.js} +1 -1
  91. package/dist/client/assets/{category-editor-Ye7w61VX.js → category-editor-_XlPQ_JR.js} +1 -1
  92. package/dist/client/assets/{chart-YCh8lrvr.js → chart-B_RS6v6i.js} +1 -1
  93. package/dist/client/assets/{chat-context-BNtTPn2v.js → chat-context-IHDWgDQ6.js} +1 -1
  94. package/dist/client/assets/{chat-draft-BrbpfreL.js → chat-draft-bxwRcHk2.js} +1 -1
  95. package/dist/client/assets/{checkbox-CzVzwj4A.js → checkbox-WzAY3JJD.js} +1 -1
  96. package/dist/client/assets/{choose-editor-DTAKYLOA.js → choose-editor-DHuVN8EQ.js} +1 -1
  97. package/dist/client/assets/{claim-phase-copy-DQok8asH.js → claim-phase-copy-BXZD4tAp.js} +1 -1
  98. package/dist/client/assets/{cli-auth-success-CtopuIcy.js → cli-auth-success-BekLnyCd.js} +1 -1
  99. package/dist/client/assets/{client-icons-C8ttTPrI.js → client-icons-BEF-E-JI.js} +1 -1
  100. package/dist/client/assets/{collapsible-DlWH4-1Q.js → collapsible-BKe2_9O7.js} +1 -1
  101. package/dist/client/assets/{collection-detail-DZ5ZAb4J.js → collection-detail-FqVAo6sr.js} +1 -1
  102. package/dist/client/assets/{collection-display-button-CT2-bXQw.js → collection-display-button-B-NPFUs4.js} +1 -1
  103. package/dist/client/assets/{collection-search-CCzn1jJM.js → collection-search-66MPCgMJ.js} +1 -1
  104. package/dist/client/assets/{collection-table-wrapper-DCyUxWRM.js → collection-table-wrapper-C04p-A9X.js} +1 -1
  105. package/dist/client/assets/{collection-tabs-CZs317SQ.js → collection-tabs-PNDYs7Tm.js} +1 -1
  106. package/dist/client/assets/{combobox-DhpMW_Q6.js → combobox-yM7XxeWn.js} +1 -1
  107. package/dist/client/assets/{command-C24f7Kyz.js → command-Dz5qWruW.js} +1 -1
  108. package/dist/client/assets/{companion-mcps-section-DLTvOHE6.js → companion-mcps-section-CseZP29y.js} +1 -1
  109. package/dist/client/assets/{connect-Dx9YF6jh.js → connect-BbrTSpN5.js} +1 -1
  110. package/dist/client/assets/{connect-layout-Cs5G1BKf.js → connect-layout-CDDVbEzl.js} +1 -1
  111. package/dist/client/assets/{connection-DSaol0Ng.js → connection-D_Ad-k2g.js} +1 -1
  112. package/dist/client/assets/{connection-card-DxtmlEpf.js → connection-card-D84FLYUf.js} +1 -1
  113. package/dist/client/assets/{connection-detail-D3B1Lmjt.js → connection-detail-CpZDxB7F.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-DCcCOjwY.js → connection-form-helpers-5k0v0Re8.js} +1 -1
  115. package/dist/client/assets/{connections-DupmsXsG.js → connections-ByYjvA85.js} +1 -1
  116. package/dist/client/assets/{context-B7GvP0a5.js → context-DzVAzWtC.js} +1 -1
  117. package/dist/client/assets/{create-organization-dialog-DjT0FfLO.js → create-organization-dialog-DzedjPhW.js} +1 -1
  118. package/dist/client/assets/{decopilot-CdSUSOau.js → decopilot-OImya6-h.js} +1 -1
  119. package/dist/client/assets/{dialog-BWmqK6vg.js → dialog-Cz2_YOoM.js} +1 -1
  120. package/dist/client/assets/{discover-BVVbBxyt.js → discover-BekL4zcZ.js} +1 -1
  121. package/dist/client/assets/{domain-settings-B-eYE41J.js → domain-settings-BNV22Gio.js} +1 -1
  122. package/dist/client/assets/{download-app-dialog-ZwXjVAnk.js → download-app-dialog-CLcZY4uQ.js} +1 -1
  123. package/dist/client/assets/{drawer-DNfsLwl_.js → drawer-BVbxEc-U.js} +1 -1
  124. package/dist/client/assets/{editor-C4W1ZTll.js → editor-zQPoF7nF.js} +1 -1
  125. package/dist/client/assets/{empty-state-BCQvGGl1.js → empty-state-BMXb2rB5.js} +1 -1
  126. package/dist/client/assets/{empty-state-CQWpCNEd.js → empty-state-Da-fHzIT.js} +1 -1
  127. package/dist/client/assets/{extract-connection-data-fRjq1au-.js → extract-connection-data-BvsecQuq.js} +1 -1
  128. package/dist/client/assets/{feature-gate-CfqoPyXH.js → feature-gate-DkU3CxuK.js} +1 -1
  129. package/dist/client/assets/{feature-paywall-BwEH2JPL.js → feature-paywall-D6H1XrEk.js} +1 -1
  130. package/dist/client/assets/{file-explorer-BpNCsQeN.js → file-explorer-CiVqz-p-.js} +1 -1
  131. package/dist/client/assets/{file-preview-CPwvdgRN.js → file-preview-BCzcW5IM.js} +1 -1
  132. package/dist/client/assets/{file-share-button-CNqX1uKM.js → file-share-button-BCbyDdG4.js} +1 -1
  133. package/dist/client/assets/{file-type-icon-UKBN2uy0.js → file-type-icon-DnKDJ8Kn.js} +1 -1
  134. package/dist/client/assets/{folder-icon-BUWRYFGK.js → folder-icon-gl7W6Tvq.js} +1 -1
  135. package/dist/client/assets/{form-Dd8uuw3Z.js → form-BFyytVo6.js} +1 -1
  136. package/dist/client/assets/{gateway-client-CND_0J2Q.js → gateway-client-C_Ex0ISa.js} +1 -1
  137. package/dist/client/assets/{general-tgZjCrGf.js → general-D6tjE2j7.js} +1 -1
  138. package/dist/client/assets/{github-icon-xYGi4_zU.js → github-icon-DWXYv1Ij.js} +1 -1
  139. package/dist/client/assets/github-repo-B15wwZ1g.js +1 -0
  140. package/dist/client/assets/{home-Dyn_f2jZ.js → home-CZA4NVdc.js} +1 -1
  141. package/dist/client/assets/{hooks-57fUVc8E.js → hooks-ClyBk0k_.js} +1 -1
  142. package/dist/client/assets/{icon-button-CDtcbOEr.js → icon-button-a1oHWXnD.js} +1 -1
  143. package/dist/client/assets/{index-DG-VU0NB.js → index-B0_orRJ4.js} +1 -1
  144. package/dist/client/assets/{index-B6Tu7EzF.js → index-BF_gwFuP.js} +1 -1
  145. package/dist/client/assets/{index-D2aZ-FY9.js → index-CenNUKjy.js} +1 -1
  146. package/dist/client/assets/{index-DXiYogYY.js → index-CyuU6yZd.js} +1 -1
  147. package/dist/client/assets/{index-OsBQe2QB.js → index-Cz9e3Wwk.js} +1 -1
  148. package/dist/client/assets/{index-BRtQvkRe.js → index-D6fwXcTM.js} +1 -1
  149. package/dist/client/assets/{index-CZmAPBsQ.js → index-D7HYUfJC.js} +1 -1
  150. package/dist/client/assets/{index-DJL19bsX.js → index-DUDizWti.js} +1 -1
  151. package/dist/client/assets/{index-D88UyMf8.js → index-Dhz79JsH.js} +1 -1
  152. package/dist/client/assets/{index-DXnvqmcL.js → index-DuAhWQOd.js} +1 -1
  153. package/dist/client/assets/{index-a8XScFmZ.js → index-K4Vfh2kg.js} +2 -2
  154. package/dist/client/assets/{index-_tZ6iIAI.js → index-XQdvud1d.js} +1 -1
  155. package/dist/client/assets/{index-CGM1QhoP.js → index-q4Xl54Dx.js} +1 -1
  156. package/dist/client/assets/{index-redirect-B0jTPPl2.js → index-redirect-B6p9S-WJ.js} +1 -1
  157. package/dist/client/assets/{index-BhOqFKQs.js → index-wc3LsJ73.js} +1 -1
  158. package/dist/client/assets/{infiniteQueryObserver-vADGuTxL.js → infiniteQueryObserver-DrFl4m2S.js} +1 -1
  159. package/dist/client/assets/{infra-billing-C_vV8Zpq.js → infra-billing-HCI22mTY.js} +1 -1
  160. package/dist/client/assets/{input-HBy0gWnZ.js → input-CjG0yUIG.js} +1 -1
  161. package/dist/client/assets/{input-5OigQZTm.js → input-DfvZ3ikK.js} +1 -1
  162. package/dist/client/assets/{input-DBK_w2ku.js → input-JwI18_DS.js} +1 -1
  163. package/dist/client/assets/{integration-icon-Dz6rheZV.js → integration-icon-DrJdUHVx.js} +1 -1
  164. package/dist/client/assets/{label-xjEYWx7p.js → label-CbL3uHGW.js} +1 -1
  165. package/dist/client/assets/{last-preview-page-B6g9UIg-.js → last-preview-page-DEzwzCp-.js} +1 -1
  166. package/dist/client/assets/{layout-DXU0Xubq.js → layout-DMcycabY.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-VUIOxOMz.js → legacy-agents-deep-C3Zyezst.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-Vdn7ugUH.js → legacy-main-redirect-COndmWyH.js} +1 -1
  169. package/dist/client/assets/{library-Cu0rCSTQ.js → library-DbAgblb-.js} +1 -1
  170. package/dist/client/assets/{login-BMhzWIRn.js → login-CXY1yuZY.js} +1 -1
  171. package/dist/client/assets/{markdown-W3XRuNet.js → markdown-DOZYcDNd.js} +1 -1
  172. package/dist/client/assets/{mcp-app-renderer-DkVBLMEl.js → mcp-app-renderer-DRfDWjg6.js} +1 -1
  173. package/dist/client/assets/{mcp-oauth-3u1U11Wr.js → mcp-oauth-BTDQqGE0.js} +1 -1
  174. package/dist/client/assets/{members-v5L4AjzR.js → members-BEiKQ73m.js} +1 -1
  175. package/dist/client/assets/{message-templates-BvUtBueU.js → message-templates-CzGF1cA9.js} +1 -1
  176. package/dist/client/assets/{mini-report-page-BmsRKdKM.js → mini-report-page-D2baj09A.js} +1 -1
  177. package/dist/client/assets/{mock-board-DTt1aI29.js → mock-board-C8LOIHzu.js} +3 -3
  178. package/dist/client/assets/{monaco-editor-BHGY_yVV.js → monaco-editor-_MEmcrMi.js} +1 -1
  179. package/dist/client/assets/{monitoring-stats-row-CMukw8SN.js → monitoring-stats-row-B5_lpP36.js} +1 -1
  180. package/dist/client/assets/{multi-select-DEfDPvag.js → multi-select-CdvqIvqU.js} +1 -1
  181. package/dist/client/assets/{mustache-uYJjGzq3.js → mustache-CPcQeOG0.js} +1 -1
  182. package/dist/client/assets/{oauth-callback-e_uxEp2U.js → oauth-callback-C3bvGl4h.js} +1 -1
  183. package/dist/client/assets/{oauth-callback-ai-provider-CJR_fnOb.js → oauth-callback-ai-provider-BFMT3UdD.js} +1 -1
  184. package/dist/client/assets/{onboarding-C_MoLVsp.js → onboarding-DtANDRsT.js} +1 -1
  185. package/dist/client/assets/{optimistic-project-sidebar-views-D8HlHK3x.js → optimistic-project-sidebar-views-DEWSMOzi.js} +1 -1
  186. package/dist/client/assets/{org-file-open-context-DP3MZUa1.js → org-file-open-context-Cej-kKNF.js} +1 -1
  187. package/dist/client/assets/{organization-choice-8-I0dE_H.js → organization-choice-DJxOpcPs.js} +1 -1
  188. package/dist/client/assets/{orgs-uAbNfBwh.js → orgs-6Wa09XqX.js} +1 -1
  189. package/dist/client/assets/{page-seo-form-BOJVpgo6.js → page-seo-form-DJY4lle7.js} +1 -1
  190. package/dist/client/assets/{pair-DwgUrqzM.js → pair-Bs4OFZd1.js} +1 -1
  191. package/dist/client/assets/{plan-ladder-DLxu0Wxh.js → plan-ladder-8vg2rlwa.js} +1 -1
  192. package/dist/client/assets/{popover-DKjcSfLB.js → popover-BhNcAD5X.js} +1 -1
  193. package/dist/client/assets/{post-calendar-CX7RLqUU.js → post-calendar-8dVtvspR.js} +1 -1
  194. package/dist/client/assets/{post-editor-DQy-xLxP.js → post-editor-B3pGOrms.js} +1 -1
  195. package/dist/client/assets/{preview-content-Ch72-5__.js → preview-content-D9TR_OCi.js} +1 -1
  196. package/dist/client/assets/{preview-dialog-Kdnb3KQ2.js → preview-dialog-uefldvQJ.js} +1 -1
  197. package/dist/client/assets/{profile-IGVv2rJN.js → profile-BOPnUUUc.js} +1 -1
  198. package/dist/client/assets/{project-app-view-x_-e_Lbw.js → project-app-view-CXTxnzE0.js} +1 -1
  199. package/dist/client/assets/{project-feed-DwfoXmCH.js → project-feed-B8QXSSsQ.js} +1 -1
  200. package/dist/client/assets/{project-icon-DtlCoOxs.js → project-icon-BK7It3uv.js} +1 -1
  201. package/dist/client/assets/project-reports-CU7shTBi.js +1 -0
  202. package/dist/client/assets/project-tasks-DFi0AJKe.js +1 -0
  203. package/dist/client/assets/{prompts-9Ciu0DHj.js → prompts-Cp6MUNg1.js} +1 -1
  204. package/dist/client/assets/record-editor-BFnZqKUj.js +1 -0
  205. package/dist/client/assets/{redirect-editor-DhoJUB71.js → redirect-editor-BooBJZnR.js} +1 -1
  206. package/dist/client/assets/reports-BW-QoVax.js +1 -0
  207. package/dist/client/assets/{reports-DGmWaCFr.js → reports-DpNr3YR6.js} +1 -1
  208. package/dist/client/assets/{reports-onboarding-BpRkFZDN.js → reports-onboarding-D8veE4dS.js} +1 -1
  209. package/dist/client/assets/{reports-tab-DxWEYXL_.js → reports-tab-BrMcs3Pf.js} +2 -2
  210. package/dist/client/assets/{repositories-CJ6hjTj5.js → repositories-D_tmdpJ8.js} +1 -1
  211. package/dist/client/assets/{repository-import-picker-CcnsKtpd.js → repository-import-picker-BrVrNQp2.js} +1 -1
  212. package/dist/client/assets/{repository-picker-72QfMFWx.js → repository-picker-5veCw3bv.js} +1 -1
  213. package/dist/client/assets/{require-capability-DH6k_3fM.js → require-capability-BXbVP8Te.js} +1 -1
  214. package/dist/client/assets/{required-auth-layout-DMazcHjn.js → required-auth-layout-q7AyqreJ.js} +1 -1
  215. package/dist/client/assets/{reset-password-B_iQOKSQ.js → reset-password-BV_oLArt.js} +1 -1
  216. package/dist/client/assets/{resizable-CDXwX1EQ.js → resizable-D5h_i3Cv.js} +1 -1
  217. package/dist/client/assets/{resolve-tab-icon-D_xtoMYK.js → resolve-tab-icon-BRqSZn8F.js} +1 -1
  218. package/dist/client/assets/{review-settings-OW0K00fh.js → review-settings-CUXs59zb.js} +1 -1
  219. package/dist/client/assets/{rich-text-link-control-BhCauUBJ.js → rich-text-link-control-hCgf6vwY.js} +1 -1
  220. package/dist/client/assets/{roles-mbHqfQsN.js → roles-92Mfuaie.js} +1 -1
  221. package/dist/client/assets/{route-jTfsMPRt.js → route-B07-zVJy.js} +1 -1
  222. package/dist/client/assets/{route-DP3hx43s.js → route-Cq_E3u9y.js} +1 -1
  223. package/dist/client/assets/{route-CFY-8tGH.js → route-DzLLBN_l.js} +1 -1
  224. package/dist/client/assets/{route-page-header-CGZ8hlbE.js → route-page-header-D2v-N63X.js} +1 -1
  225. package/dist/client/assets/{runnable-block-editor-a1foluPz.js → runnable-block-editor-D5Om2hS9.js} +1 -1
  226. package/dist/client/assets/{sandbox-lifecycle-context-C_uX5vaY.js → sandbox-lifecycle-context-DDvqjx4F.js} +1 -1
  227. package/dist/client/assets/{schema-C0UHuNyx.js → schema-OZ6y31ku.js} +1 -1
  228. package/dist/client/assets/{scroll-area-TOykm0pn.js → scroll-area-CrFzneCm.js} +1 -1
  229. package/dist/client/assets/{search-input-DX8Af1_h.js → search-input-MXvNbubn.js} +1 -1
  230. package/dist/client/assets/{search-toggle-CpNXm-HK.js → search-toggle-OXNBAfan.js} +1 -1
  231. package/dist/client/assets/{secret-picker-BDwnJCqm.js → secret-picker-olJPqPoi.js} +1 -1
  232. package/dist/client/assets/{secrets-C8P9K06C.js → secrets-Cttvdk2_.js} +1 -1
  233. package/dist/client/assets/{sections-editor-BVD7-dMM.js → sections-editor-BkzNFswN.js} +1 -1
  234. package/dist/client/assets/{select-Bqp_U1ks.js → select-DxOzi3UD.js} +1 -1
  235. package/dist/client/assets/{select-model-CwN0uiJw.js → select-model-N7bwAuKh.js} +1 -1
  236. package/dist/client/assets/{seo-editor-Z7UEKCep.js → seo-editor-BbScE4FO.js} +1 -1
  237. package/dist/client/assets/{separator-CRMA5Wms.js → separator-CmRrTp4P.js} +1 -1
  238. package/dist/client/assets/{settings-tab-gQ1sYUFr.js → settings-tab-F5_VZsFA.js} +1 -1
  239. package/dist/client/assets/{sheet-CnG_30Tu.js → sheet-AhK1Q4GA.js} +1 -1
  240. package/dist/client/assets/{shell-layout-C1ofRTSy.js → shell-layout-BbZrykxM.js} +1 -1
  241. package/dist/client/assets/{skill-preview-D2C3TdbC.js → skill-preview-D2tUoLmU.js} +1 -1
  242. package/dist/client/assets/{skills-BkdXpy6f.js → skills-8G1WBDrj.js} +1 -1
  243. package/dist/client/assets/{sso-DS1IZ-Cy.js → sso-D1j1eaaw.js} +1 -1
  244. package/dist/client/assets/{suggestion-BKo4wcW5.js → suggestion-D2LW2rth.js} +1 -1
  245. package/dist/client/assets/{switch-CAv8chXa.js → switch-Dxukqc0d.js} +1 -1
  246. package/dist/client/assets/{synced-repos-BAz91gxb.js → synced-repos-QFrSnbHa.js} +1 -1
  247. package/dist/client/assets/{tab-icon-glyph-C7PcdX64.js → tab-icon-glyph-BJ5K3vOh.js} +1 -1
  248. package/dist/client/assets/{table-BQzAWihK.js → table-DQGBCTGl.js} +1 -1
  249. package/dist/client/assets/{tabs-BB69CAa_.js → tabs-CgudHfJv.js} +1 -1
  250. package/dist/client/assets/{task-board-DAXz0qcI.js → task-board-Bc_5nEh1.js} +1 -1
  251. package/dist/client/assets/task-route-DMhHeGp_.js +1 -0
  252. package/dist/client/assets/{task-status-DsuZMZki.js → task-status-CxrGIdHQ.js} +1 -1
  253. package/dist/client/assets/{taskboard-analytics-CnhQSjI5.js → taskboard-analytics-CkQr3tK7.js} +1 -1
  254. package/dist/client/assets/tasks-BLCuiNcA.js +1 -0
  255. package/dist/client/assets/{tasks-EhOSvMOE.js → tasks-Bnn9RQl1.js} +1 -1
  256. package/dist/client/assets/{textarea-CQB0iWWu.js → textarea-C4Fl7vcj.js} +1 -1
  257. package/dist/client/assets/{thread-analytics-BxOFKU_J.js → thread-analytics-CE0WviO_.js} +1 -1
  258. package/dist/client/assets/{thread-button-C9DbsgYC.js → thread-button-EQmrPg3s.js} +1 -1
  259. package/dist/client/assets/{thread-intent-BVf_UeqN.js → thread-intent-DxlkHtay.js} +1 -1
  260. package/dist/client/assets/{thread-route-iDCB4hcC.js → thread-route-DC9aU1My.js} +1 -1
  261. package/dist/client/assets/{thread-route-B1ZSIzzT.js → thread-route-TxjlZd1E.js} +1 -1
  262. package/dist/client/assets/{thread-sheet-body-D0e7nDaM.js → thread-sheet-body-BrDhZq1Z.js} +1 -1
  263. package/dist/client/assets/{toggle-group-DN5pA1xA.js → toggle-group-NfZmEEmD.js} +1 -1
  264. package/dist/client/assets/{toolbar-icon-button-DggL__pK.js → toolbar-icon-button-B_lHRucJ.js} +1 -1
  265. package/dist/client/assets/{tooltip-DG5CnGag.js → tooltip-Cy80lI1Y.js} +1 -1
  266. package/dist/client/assets/{track-DtcT0XLB.js → track-CKzt_alj.js} +1 -1
  267. package/dist/client/assets/{types-BuaOQs2H.js → types-mQyngwgP.js} +1 -1
  268. package/dist/client/assets/{usage-stats-CfoUXIit.js → usage-stats-B-kd-KGd.js} +1 -1
  269. package/dist/client/assets/{use-ai-providers-DmDozsCa.js → use-ai-providers-zjIftbuA.js} +1 -1
  270. package/dist/client/assets/{use-automations-DlcqQAT-.js → use-automations-Bos3c2CS.js} +1 -1
  271. package/dist/client/assets/{use-autosave-Dnad_LVj.js → use-autosave-BPZqx8ru.js} +1 -1
  272. package/dist/client/assets/{use-connect-companion-De4fpUyT.js → use-connect-companion-DWeMHoIU.js} +1 -1
  273. package/dist/client/assets/{use-connection-B62IVwoq.js → use-connection-DT6Y_sWB.js} +1 -1
  274. package/dist/client/assets/{use-copy-PMhIFi8m.js → use-copy-CCt9uq_y.js} +1 -1
  275. package/dist/client/assets/{use-create-virtual-mcp-CaljxpC7.js → use-create-virtual-mcp-D8BgGLo0.js} +1 -1
  276. package/dist/client/assets/{use-date-fns-locale-C_k-ZNvB.js → use-date-fns-locale-8-Vndgvf.js} +1 -1
  277. package/dist/client/assets/{use-debounced-autosave-8--WWWFZ.js → use-debounced-autosave-CVGhSw1y.js} +1 -1
  278. package/dist/client/assets/{use-debounced-value-JsQcnlEX.js → use-debounced-value-CQxBbX3z.js} +1 -1
  279. package/dist/client/assets/{use-deco-credits-D7jE3Gb7.js → use-deco-credits-Bbxg62mu.js} +1 -1
  280. package/dist/client/assets/{use-decopilot-events-CXHHAExG.js → use-decopilot-events-C-TjDtpG.js} +1 -1
  281. package/dist/client/assets/{use-delete-connection-CQADYnj0.js → use-delete-connection-DoGBhXiK.js} +1 -1
  282. package/dist/client/assets/{use-deployment-admin-BeJp7zBn.js → use-deployment-admin-CMAr5-sz.js} +1 -1
  283. package/dist/client/assets/{use-entitlements-e5g60LFP.js → use-entitlements-OYbyxqXu.js} +1 -1
  284. package/dist/client/assets/{use-fast-preview-draft-url-BoXMuGAj.js → use-fast-preview-draft-url-H9Q-1XHg.js} +1 -1
  285. package/dist/client/assets/{use-file-configs-DzDjWDbA.js → use-file-configs-C3rsyIax.js} +1 -1
  286. package/dist/client/assets/{use-in-settings-DF5a-yr6.js → use-in-settings-DTfVU5gG.js} +1 -1
  287. package/dist/client/assets/{use-infinite-scroll-BWjbZqkI.js → use-infinite-scroll-CitEQv_Q.js} +1 -1
  288. package/dist/client/assets/{use-join-requests-C-vRDubL.js → use-join-requests-DURmdBJt.js} +1 -1
  289. package/dist/client/assets/{use-main-panel-tabs-COSZEEJN.js → use-main-panel-tabs-DCZX5mxy.js} +1 -1
  290. package/dist/client/assets/{use-mcp-auth-status-cOXVTEWe.js → use-mcp-auth-status-DcPv-6wk.js} +1 -1
  291. package/dist/client/assets/{use-mcp-client-QkI6RUae.js → use-mcp-client-CR19JjtG.js} +1 -1
  292. package/dist/client/assets/{use-mcp-prompts-CTv5hWKn.js → use-mcp-prompts-C9ZSqhtN.js} +1 -1
  293. package/dist/client/assets/{use-mcp-tools-CRxMLxmD.js → use-mcp-tools-NQLn3o-8.js} +1 -1
  294. package/dist/client/assets/{use-members-DJtmQ5I0.js → use-members-DGHnBAVp.js} +1 -1
  295. package/dist/client/assets/{use-mobile-BR3euFAT.js → use-mobile-rtsj2MZ1.js} +1 -1
  296. package/dist/client/assets/{use-navigate-to-agent-CATWBqpJ.js → use-navigate-to-agent-DYgqDFZF.js} +1 -1
  297. package/dist/client/assets/use-new-blocks-editor-xOOrbCjh.js +1 -0
  298. package/dist/client/assets/{use-open-billing-url-CssGGbOV.js → use-open-billing-url-1mXCzVjQ.js} +1 -1
  299. package/dist/client/assets/{use-org-auth-client-DD1x9ZUx.js → use-org-auth-client-Dq37iZE-.js} +1 -1
  300. package/dist/client/assets/{use-org-fs-CUzmVYxO.js → use-org-fs-mfYIenam.js} +1 -1
  301. package/dist/client/assets/{use-org-sso-C4Rm3HPT.js → use-org-sso-C8N9NZ6V.js} +1 -1
  302. package/dist/client/assets/{use-organization-roles-CbALx4Il.js → use-organization-roles-B1Y6_86t.js} +1 -1
  303. package/dist/client/assets/{use-organization-settings-Chk2oNMp.js → use-organization-settings-CY6osCto.js} +1 -1
  304. package/dist/client/assets/{use-panel-navigate-BvXmhCXE.js → use-panel-navigate-BqFBzSWd.js} +1 -1
  305. package/dist/client/assets/{use-project-native-view-presence-eLIweUr6.js → use-project-native-view-presence-7vj8rIc7.js} +1 -1
  306. package/dist/client/assets/{use-project-scope-Dg5JkMxK.js → use-project-scope-CdGBXW9U.js} +1 -1
  307. package/dist/client/assets/{use-releases-DFTelrXq.js → use-releases-DRDVY8Xc.js} +1 -1
  308. package/dist/client/assets/{use-reports-diagnostic-DpBTdRcc.js → use-reports-diagnostic-D48-pm_p.js} +1 -1
  309. package/dist/client/assets/{use-route-default-main-RAA9Xu9b.js → use-route-default-main-CG99dur1.js} +1 -1
  310. package/dist/client/assets/{use-secrets-Be7dbg8N.js → use-secrets-BQr1wgkC.js} +1 -1
  311. package/dist/client/assets/{use-section-preview-base-BsBwRpxR.js → use-section-preview-base-Be_ffjg-.js} +1 -1
  312. package/dist/client/assets/{use-session-runtime-16mMZo3B.js → use-session-runtime-epDsfla0.js} +1 -1
  313. package/dist/client/assets/{use-tags-TXZWvSN2.js → use-tags-BDr8xPIF.js} +1 -1
  314. package/dist/client/assets/{use-task-board-analytics-B3jA7fHY.js → use-task-board-analytics-DyOwTb8x.js} +1 -1
  315. package/dist/client/assets/{use-task-metadata-fbwKPdOL.js → use-task-metadata-B625VJsm.js} +1 -1
  316. package/dist/client/assets/{use-thread-analytics-U5Jj6xFb.js → use-thread-analytics-D4T2O8XJ.js} +1 -1
  317. package/dist/client/assets/{use-thread-outputs-fY2YVo4L.js → use-thread-outputs-CfLMzkB9.js} +1 -1
  318. package/dist/client/assets/{use-virtual-mcp-B22df3lH.js → use-virtual-mcp-gM6wRQv6.js} +1 -1
  319. package/dist/client/assets/useInfiniteQuery-Bdkrqs8P.js +1 -0
  320. package/dist/client/assets/{useQueries-B7hWegsL.js → useQueries-MatxMDm4.js} +1 -1
  321. package/dist/client/assets/useSuspenseInfiniteQuery-6_TWTeTT.js +1 -0
  322. package/dist/client/assets/{users-B1mD9fdQ.js → users-DSJ7gYEW.js} +1 -1
  323. package/dist/client/assets/{utils-BvSnSvcy.js → utils-D2l1844I.js} +1 -1
  324. package/dist/client/assets/{variant-calendar-CpWcO1WH.js → variant-calendar-DP0eqUJc.js} +1 -1
  325. package/dist/client/assets/{variant-matcher-override-CqVph4cp.js → variant-matcher-override-CHhx77jc.js} +1 -1
  326. package/dist/client/assets/{view-mode-toggle-D6C4LcX3.js → view-mode-toggle-DSnYHXmD.js} +1 -1
  327. package/dist/client/assets/{virtual-mcp-CZOMxd4f.js → virtual-mcp-BLyxO2qI.js} +1 -1
  328. package/dist/client/index.html +1 -1
  329. package/dist/server/cli.js +1 -1
  330. package/dist/server/server.js +1 -1
  331. package/package.json +1 -1
  332. package/dist/client/assets/agent-app-D_LRMpO5.js +0 -1
  333. package/dist/client/assets/agent-deck-1Gy5jl1Q.js +0 -1
  334. package/dist/client/assets/agent-library-file-C6HS0CDW.js +0 -1
  335. package/dist/client/assets/agent-settings-Braq0K0j.js +0 -1
  336. package/dist/client/assets/agent-site-editor-code-_pcbcBCM.js +0 -2
  337. package/dist/client/assets/agent-view-B5TTa9Fr.js +0 -1
  338. package/dist/client/assets/api-keys-BIsdKQsQ.js +0 -1
  339. package/dist/client/assets/app-editor-Bc6BpUGO.js +0 -1
  340. package/dist/client/assets/github-repo-BknN0SVI.js +0 -1
  341. package/dist/client/assets/project-reports-Dc50o0bW.js +0 -1
  342. package/dist/client/assets/project-tasks-BTlGW7tU.js +0 -1
  343. package/dist/client/assets/record-editor-QZJr0INE.js +0 -1
  344. package/dist/client/assets/reports-CAO0dNuU.js +0 -1
  345. package/dist/client/assets/task-route-Dfyu6KvD.js +0 -1
  346. package/dist/client/assets/tasks-CNDczBnp.js +0 -1
  347. package/dist/client/assets/use-new-blocks-editor-DQBU1F-m.js +0 -1
  348. package/dist/client/assets/useInfiniteQuery-kTLnckn3.js +0 -1
  349. package/dist/client/assets/useSuspenseInfiniteQuery-D3KJwbuZ.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BMhzWIRn.js","assets/auth-entry--UoEULta.js","assets/input-HBy0gWnZ.js","assets/use-is-desktop-app-BNujXJc_.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-C2Z78rym.js","assets/cli-auth-success-CtopuIcy.js","assets/reset-password-B_iQOKSQ.js","assets/oauth-callback-e_uxEp2U.js","assets/mcp-oauth-3u1U11Wr.js","assets/auth-B4tHClP5.js","assets/layout-DXU0Xubq.js","assets/required-auth-layout-DMazcHjn.js","assets/use-deployment-admin-BeJp7zBn.js","assets/users-B1mD9fdQ.js","assets/collection-table-wrapper-DCyUxWRM.js","assets/table-BQzAWihK.js","assets/ArrowUp-DBpBKFdD.js","assets/empty-state-CQWpCNEd.js","assets/search-input-DX8Af1_h.js","assets/SearchMd-Cm4pXgfM.js","assets/avatar-DNbeZQMl.js","assets/User01-p3MXVQ0Z.js","assets/badge-Dn4B9MPM.js","assets/use-debounced-value-JsQcnlEX.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-uAbNfBwh.js","assets/label-xjEYWx7p.js","assets/dialog-BWmqK6vg.js","assets/X-qOHqlxey.js","assets/select-Bqp_U1ks.js","assets/index-D88UyMf8.js","assets/Check-BO0tsZXP.js","assets/ChevronUp-WgMV95Wl.js","assets/switch-CAv8chXa.js","assets/textarea-CQB0iWWu.js","assets/schema-C0UHuNyx.js","assets/site-slug-DebpOoQq.js","assets/prompts-9Ciu0DHj.js","assets/shell-layout-C1ofRTSy.js","assets/Globe04-CdU3biQC.js","assets/UserSquare-C7aUR_aW.js","assets/agent-icon-Bd0IZ2xl.js","assets/AlertCircle-CgujCznd.js","assets/Tool01-CQ5Xc26A.js","assets/ArrowLeft-DYz0WE09.js","assets/ArrowRight-CWiigebn.js","assets/ZoomOut-DZCavZ8o.js","assets/CheckCircle-DppxuNa7.js","assets/Copy01-CP89x_RS.js","assets/CreditCard01-H8jUQWxs.js","assets/DotsVertical-4TEj21cV.js","assets/Eye-ARN8W0OA.js","assets/Share07-DyeTiScB.js","assets/XClose-hPk1Hqkr.js","assets/Image01-l9PMSSY0.js","assets/Key01-QkJYBYv-.js","assets/LayoutLeft-CgYc0js8.js","assets/Link01-CmwuZgWx.js","assets/LinkExternal01-DQ25aknz.js","assets/Monitor01-BVwwAtM6.js","assets/Sun-DgGlHV06.js","assets/Palette-Bjt7HH4h.js","assets/Plus-TU-OKHt0.js","assets/Trash01-B9y1vShv.js","assets/Upload01-DAXWNq7T.js","assets/Users01-CohEKYSh.js","assets/Zap-CyBIW8px.js","assets/download-app-dialog-ZwXjVAnk.js","assets/use-project-scope-Dg5JkMxK.js","assets/use-virtual-mcp-B22df3lH.js","assets/use-mcp-client-QkI6RUae.js","assets/github-repo-BknN0SVI.js","assets/use-panel-navigate-BvXmhCXE.js","assets/thread-route-B1ZSIzzT.js","assets/command-C24f7Kyz.js","assets/index-CZmAPBsQ.js","assets/integration-icon-Dz6rheZV.js","assets/project-icon-DtlCoOxs.js","assets/hooks-57fUVc8E.js","assets/task-board-DAXz0qcI.js","assets/autosend-BwqeYDrP.js","assets/use-org-sso-C4Rm3HPT.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-C_MoLVsp.js","assets/organization-choice-8-I0dE_H.js","assets/reports-onboarding-BpRkFZDN.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DjT0FfLO.js","assets/alert-dialog-EQsgmpuA.js","assets/form-Dd8uuw3Z.js","assets/companion-mcps-section-DLTvOHE6.js","assets/use-connect-companion-De4fpUyT.js","assets/tooltip-DG5CnGag.js","assets/companions-core-BnuxEm_5.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C8GSbvaz.js","assets/provision-repo-scoped-github-connection-B6zdkC6p.js","assets/useQueries-B7hWegsL.js","assets/authenticate-and-persist-oauth-EABJT3_J.js","assets/track-DtcT0XLB.js","assets/extract-connection-data-fRjq1au-.js","assets/connection-DSaol0Ng.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DTAKYLOA.js","assets/reports-DGmWaCFr.js","assets/reports-Dl0n8WK0.css","assets/route-CFY-8tGH.js","assets/use-in-settings-DF5a-yr6.js","assets/use-mobile-BR3euFAT.js","assets/sheet-CnG_30Tu.js","assets/thread-button-C9DbsgYC.js","assets/use-route-default-main-RAA9Xu9b.js","assets/toolbar-icon-button-DggL__pK.js","assets/popover-DKjcSfLB.js","assets/drawer-DNfsLwl_.js","assets/use-join-requests-C-vRDubL.js","assets/use-org-auth-client-DD1x9ZUx.js","assets/use-organization-roles-CbALx4Il.js","assets/use-deco-credits-D7jE3Gb7.js","assets/use-ai-providers-DmDozsCa.js","assets/use-entitlements-e5g60LFP.js","assets/plan-ladder-DLxu0Wxh.js","assets/use-organization-settings-Chk2oNMp.js","assets/scroll-area-TOykm0pn.js","assets/useInfiniteQuery-kTLnckn3.js","assets/infiniteQueryObserver-vADGuTxL.js","assets/task-route-Dfyu6KvD.js","assets/use-decopilot-events-CXHHAExG.js","assets/use-thread-analytics-U5Jj6xFb.js","assets/use-project-native-view-presence-eLIweUr6.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-DzDjWDbA.js","assets/optimistic-project-sidebar-views-D8HlHK3x.js","assets/use-navigate-to-agent-CATWBqpJ.js","assets/thread-intent-BVf_UeqN.js","assets/slugify-CEUa2lfQ.js","assets/resolve-tab-icon-D_xtoMYK.js","assets/tab-icon-glyph-C7PcdX64.js","assets/repository-import-picker-CcnsKtpd.js","assets/repository-picker-72QfMFWx.js","assets/github-icon-xYGi4_zU.js","assets/collection-search-CCzn1jJM.js","assets/question-004-sINsf4GQ.js","assets/thread-route-iDCB4hcC.js","assets/chat-context-BNtTPn2v.js","assets/location-oTTXFrSF.js","assets/use-reports-diagnostic-DpBTdRcc.js","assets/connect-layout-Cs5G1BKf.js","assets/route-DP3hx43s.js","assets/index-BhOqFKQs.js","assets/gateway-client-CND_0J2Q.js","assets/use-mcp-prompts-CTv5hWKn.js","assets/index-_tZ6iIAI.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-DP3MZUa1.js","assets/input-DBK_w2ku.js","assets/chat-draft-BrbpfreL.js","assets/use-session-runtime-16mMZo3B.js","assets/usage-stats-CfoUXIit.js","assets/use-copy-PMhIFi8m.js","assets/markdown-W3XRuNet.js","assets/tabs-BB69CAa_.js","assets/toggle-group-DN5pA1xA.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-CssGGbOV.js","assets/decopilot-CdSUSOau.js","assets/checkbox-CzVzwj4A.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-BRtQvkRe.js","assets/input-5OigQZTm.js","assets/suggestion-BKo4wcW5.js","assets/use-org-fs-CUzmVYxO.js","assets/use-members-DJtmQ5I0.js","assets/feature-paywall-BwEH2JPL.js","assets/add-connection-dialog-bRZtyL-b.js","assets/connection-card-DxtmlEpf.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-B62IVwoq.js","assets/connection-form-helpers-DCcCOjwY.js","assets/collection-tabs-CZs317SQ.js","assets/use-infinite-scroll-BWjbZqkI.js","assets/useSuspenseInfiniteQuery-D3KJwbuZ.js","assets/pair-DwgUrqzM.js","assets/collapsible-DlWH4-1Q.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DkVBLMEl.js","assets/types-BuaOQs2H.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-fY2YVo4L.js","assets/file-type-icon-UKBN2uy0.js","assets/use-releases-DFTelrXq.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-C_uX5vaY.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-DXiYogYY.js","assets/resizable-CDXwX1EQ.js","assets/route-page-header-CGZ8hlbE.js","assets/task-status-DsuZMZki.js","assets/use-main-panel-tabs-COSZEEJN.js","assets/use-mcp-tools-CRxMLxmD.js","assets/use-task-metadata-fbwKPdOL.js","assets/virtual-mcp-CZOMxd4f.js","assets/legacy-main-redirect-Vdn7ugUH.js","assets/preview-dialog-Kdnb3KQ2.js","assets/preview-content-Ch72-5__.js","assets/file-preview-CPwvdgRN.js","assets/utils-BvSnSvcy.js","assets/editor-C4W1ZTll.js","assets/file-share-button-CNqX1uKM.js","assets/blocks-preview-workspace-context-CiPsRjF4.js","assets/home-Dyn_f2jZ.js","assets/client-icons-C8ttTPrI.js","assets/project-feed-DwfoXmCH.js","assets/agent-overview-lYvI4Nyl.js","assets/mini-report-page-BmsRKdKM.js","assets/project-tasks-BTlGW7tU.js","assets/mock-board-DTt1aI29.js","assets/rich-text-link-control-BhCauUBJ.js","assets/use-task-board-analytics-B3jA7fHY.js","assets/combobox-DhpMW_Q6.js","assets/search-toggle-CpNXm-HK.js","assets/icon-button-CDtcbOEr.js","assets/use-tags-TXZWvSN2.js","assets/calendar-Bd64vnKI.js","assets/alert-D1vpzkWd.js","assets/index-DJL19bsX.js","assets/index-CGM1QhoP.js","assets/thread-sheet-body-D0e7nDaM.js","assets/separator-CRMA5Wms.js","assets/feature-gate-CfqoPyXH.js","assets/project-reports-Dc50o0bW.js","assets/reports-tab-DxWEYXL_.js","assets/agent-site-editor-CdJOqKVu.js","assets/claim-phase-copy-DQok8asH.js","assets/message-templates-BvUtBueU.js","assets/last-preview-page-B6g9UIg-.js","assets/use-fast-preview-draft-url-BoXMuGAj.js","assets/section-preview-url-Csj0_ZDg.js","assets/sandbox-git-api-B1R0585s.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-CWf5w5wW.js","assets/agent-view-guard-yKF0ckjL.js","assets/runnable-block-editor-a1foluPz.js","assets/monaco-editor-BHGY_yVV.js","assets/use-new-blocks-editor-DQBU1F-m.js","assets/asset-utils-9XLqBp-Q.js","assets/variant-matcher-override-CqVph4cp.js","assets/agent-site-editor-content-DXhW4uZI.js","assets/mustache-uYJjGzq3.js","assets/empty-state-BCQvGGl1.js","assets/agent-site-editor-code-_pcbcBCM.js","assets/agent-automations-Bhwn57Bu.js","assets/use-automations-DlcqQAT-.js","assets/automation-list-row-C62I8jHw.js","assets/agent-automation-BnqBubMi.js","assets/select-model-CwN0uiJw.js","assets/build-improve-prompt-doc-l2J5lTda.js","assets/use-debounced-autosave-8--WWWFZ.js","assets/automation-runs-CvKbK1mn.js","assets/agent-settings-Braq0K0j.js","assets/settings-tab-gQ1sYUFr.js","assets/use-date-fns-locale-C_k-ZNvB.js","assets/use-mcp-auth-status-cOXVTEWe.js","assets/secret-picker-BDwnJCqm.js","assets/use-secrets-Be7dbg8N.js","assets/agent-assets-B0UpGeZB.js","assets/agent-git-BjUtQS3j.js","assets/agent-hosting-DIjx0dPc.js","assets/agent-e2e-nAUWbLbx.js","assets/agent-analytics-tSEQzJqV.js","assets/chart-YCh8lrvr.js","assets/index-OsBQe2QB.js","assets/CartesianChart-CQtCbOPS.js","assets/AreaChart-Dl87CKFl.js","assets/agent-experiments-BolDhf_W.js","assets/agent-monitor-DKKZFNMi.js","assets/Line-Bv4GUfne.js","assets/ErrorBarContext-qNEZftpi.js","assets/Sector-BdyQFYKV.js","assets/agent-app-D_LRMpO5.js","assets/project-app-view-x_-e_Lbw.js","assets/agent-view-B5TTa9Fr.js","assets/agent-file-C1aTOAN-.js","assets/agent-deck-1Gy5jl1Q.js","assets/agent-library-file-C6HS0CDW.js","assets/agent-connect-sources-e0UYTGJa.js","assets/legacy-agents-deep-VUIOxOMz.js","assets/tasks-CNDczBnp.js","assets/taskboard-analytics-CnhQSjI5.js","assets/analytics-sections-YNBdLO_f.js","assets/thread-analytics-BxOFKU_J.js","assets/reports-CAO0dNuU.js","assets/library-Cu0rCSTQ.js","assets/cards-CJ0w9n3U.js","assets/folder-icon-BUWRYFGK.js","assets/skill-md-ChfVs4uF.js","assets/skill-preview-D2C3TdbC.js","assets/discover-BVVbBxyt.js","assets/index-DG-VU0NB.js","assets/route-jTfsMPRt.js","assets/index-redirect-B0jTPPl2.js","assets/capability-load-error-D7kLzc_F.js","assets/connections-DupmsXsG.js","assets/collection-display-button-CT2-bXQw.js","assets/view-mode-toggle-D6C4LcX3.js","assets/use-delete-connection-CQADYnj0.js","assets/connection-detail-D3B1Lmjt.js","assets/index-DXnvqmcL.js","assets/index-D2aZ-FY9.js","assets/use-create-virtual-mcp-CaljxpC7.js","assets/monitoring-stats-row-CMukw8SN.js","assets/collection-detail-DZ5ZAb4J.js","assets/index-B6Tu7EzF.js","assets/require-capability-DH6k_3fM.js","assets/access-gate-DNEAyv2j.js","assets/multi-select-DEfDPvag.js","assets/general-tgZjCrGf.js","assets/review-settings-OW0K00fh.js","assets/domain-settings-B-eYE41J.js","assets/connect-Dx9YF6jh.js","assets/api-keys-Buj2Mg4T.js","assets/ai-providers-D6lyG4Rj.js","assets/infra-billing-C_vV8Zpq.js","assets/secrets-C8P9K06C.js","assets/api-keys-BIsdKQsQ.js","assets/buckets-DuU1P-Pt.js","assets/repositories-CJ6hjTj5.js","assets/synced-repos-BAz91gxb.js","assets/tasks-EhOSvMOE.js","assets/members-v5L4AjzR.js","assets/role-color-Dn2tXDDF.js","assets/roles-mbHqfQsN.js","assets/sso-DS1IZ-Cy.js","assets/profile-IGVv2rJN.js","assets/agents-list-BGbR4Gn2.js","assets/automations-KmRW23R-.js","assets/skills-BkdXpy6f.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CXY1yuZY.js","assets/auth-entry-BYurZCL8.js","assets/input-CjG0yUIG.js","assets/use-is-desktop-app-BNujXJc_.js","assets/backoff-8mStPHYB.js","assets/auth-split-layout-cVJzCAIz.js","assets/cli-auth-success-BekLnyCd.js","assets/reset-password-BV_oLArt.js","assets/oauth-callback-C3bvGl4h.js","assets/mcp-oauth-BTDQqGE0.js","assets/auth-DewE0vsZ.js","assets/layout-DMcycabY.js","assets/required-auth-layout-q7AyqreJ.js","assets/use-deployment-admin-CMAr5-sz.js","assets/users-DSJ7gYEW.js","assets/collection-table-wrapper-C04p-A9X.js","assets/table-DQGBCTGl.js","assets/ArrowUp-MMes236V.js","assets/empty-state-Da-fHzIT.js","assets/search-input-MXvNbubn.js","assets/SearchMd-v8QAVRjQ.js","assets/avatar-BXB8p0uZ.js","assets/User01-DaLqt8Zu.js","assets/badge-L3Pfb7lT.js","assets/use-debounced-value-CQxBbX3z.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/get-initials-D-f_fDFw.js","assets/orgs-6Wa09XqX.js","assets/label-CbL3uHGW.js","assets/dialog-Cz2_YOoM.js","assets/X-CRCA8SGk.js","assets/select-DxOzi3UD.js","assets/index-Dhz79JsH.js","assets/Check-DjwzpZIC.js","assets/ChevronUp-BYWuf4SY.js","assets/switch-Dxukqc0d.js","assets/textarea-C4Fl7vcj.js","assets/schema-OZ6y31ku.js","assets/site-slug-DebpOoQq.js","assets/prompts-Cp6MUNg1.js","assets/shell-layout-BbZrykxM.js","assets/Globe04-t1_NZ4S5.js","assets/UserSquare-C7TikGGO.js","assets/agent-icon-DZc84vtW.js","assets/AlertCircle-BQVXEKUc.js","assets/Tool01-Bdvuj8zb.js","assets/ArrowLeft-BeFq6jod.js","assets/ArrowRight-DVxyJd1l.js","assets/ZoomOut-DIggrZVG.js","assets/CheckCircle-CflfIWoL.js","assets/Copy01-CjQc-Ykz.js","assets/CreditCard01-Cl8DBAML.js","assets/DotsVertical-BV4Cp92F.js","assets/Eye-CEZdPSLz.js","assets/Share07-CmuXKCN5.js","assets/XClose-DJgtnkEc.js","assets/Image01-Bed8faGM.js","assets/Key01-DDYGtlfn.js","assets/LayoutLeft-CZkz1jNL.js","assets/Link01-BbIArCE_.js","assets/LinkExternal01-DpNDkCnx.js","assets/Monitor01-Ah5De9w0.js","assets/Sun-DTRl56RH.js","assets/Palette-ChnBuAtH.js","assets/Plus-BICk297J.js","assets/Trash01-B5wUzx2c.js","assets/Upload01-Cu-9L0qW.js","assets/Users01-BGfUl9Z9.js","assets/Zap-DHslHQ0t.js","assets/download-app-dialog-CLcZY4uQ.js","assets/use-project-scope-CdGBXW9U.js","assets/use-virtual-mcp-gM6wRQv6.js","assets/use-mcp-client-CR19JjtG.js","assets/github-repo-B15wwZ1g.js","assets/use-panel-navigate-BqFBzSWd.js","assets/thread-route-TxjlZd1E.js","assets/command-Dz5qWruW.js","assets/index-D7HYUfJC.js","assets/integration-icon-DrJdUHVx.js","assets/project-icon-BK7It3uv.js","assets/hooks-ClyBk0k_.js","assets/task-board-Bc_5nEh1.js","assets/autosend-BOLn22FP.js","assets/use-org-sso-C8N9NZ6V.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-DtANDRsT.js","assets/organization-choice-DJxOpcPs.js","assets/reports-onboarding-D8veE4dS.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DzedjPhW.js","assets/alert-dialog-Cp1oRtvU.js","assets/form-BFyytVo6.js","assets/companion-mcps-section-CseZP29y.js","assets/use-connect-companion-DWeMHoIU.js","assets/tooltip-Cy80lI1Y.js","assets/companions-core-BnuxEm_5.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C8GSbvaz.js","assets/provision-repo-scoped-github-connection-B6zdkC6p.js","assets/useQueries-MatxMDm4.js","assets/authenticate-and-persist-oauth-C0spMpLN.js","assets/track-CKzt_alj.js","assets/extract-connection-data-BvsecQuq.js","assets/connection-D_Ad-k2g.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-DHuVN8EQ.js","assets/reports-DpNr3YR6.js","assets/reports-Dl0n8WK0.css","assets/route-DzLLBN_l.js","assets/use-in-settings-DTfVU5gG.js","assets/use-mobile-rtsj2MZ1.js","assets/sheet-AhK1Q4GA.js","assets/thread-button-EQmrPg3s.js","assets/use-route-default-main-CG99dur1.js","assets/toolbar-icon-button-B_lHRucJ.js","assets/popover-BhNcAD5X.js","assets/drawer-BVbxEc-U.js","assets/use-join-requests-DURmdBJt.js","assets/use-org-auth-client-Dq37iZE-.js","assets/use-organization-roles-B1Y6_86t.js","assets/use-deco-credits-Bbxg62mu.js","assets/use-ai-providers-zjIftbuA.js","assets/use-entitlements-OYbyxqXu.js","assets/plan-ladder-8vg2rlwa.js","assets/use-organization-settings-CY6osCto.js","assets/scroll-area-CrFzneCm.js","assets/useInfiniteQuery-Bdkrqs8P.js","assets/infiniteQueryObserver-DrFl4m2S.js","assets/task-route-DMhHeGp_.js","assets/use-decopilot-events-C-TjDtpG.js","assets/use-thread-analytics-D4T2O8XJ.js","assets/use-project-native-view-presence-7vj8rIc7.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-C3rsyIax.js","assets/optimistic-project-sidebar-views-DEWSMOzi.js","assets/use-navigate-to-agent-DYgqDFZF.js","assets/thread-intent-DxlkHtay.js","assets/slugify-CEUa2lfQ.js","assets/resolve-tab-icon-BRqSZn8F.js","assets/tab-icon-glyph-BJ5K3vOh.js","assets/repository-import-picker-BrVrNQp2.js","assets/repository-picker-5veCw3bv.js","assets/github-icon-DWXYv1Ij.js","assets/collection-search-66MPCgMJ.js","assets/question-004-sINsf4GQ.js","assets/thread-route-DC9aU1My.js","assets/chat-context-IHDWgDQ6.js","assets/location-oTTXFrSF.js","assets/use-reports-diagnostic-D48-pm_p.js","assets/connect-layout-CDDVbEzl.js","assets/route-Cq_E3u9y.js","assets/index-wc3LsJ73.js","assets/gateway-client-C_Ex0ISa.js","assets/use-mcp-prompts-C9ZSqhtN.js","assets/index-XQdvud1d.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-Cej-kKNF.js","assets/input-JwI18_DS.js","assets/chat-draft-bxwRcHk2.js","assets/use-session-runtime-epDsfla0.js","assets/usage-stats-B-kd-KGd.js","assets/use-copy-CCt9uq_y.js","assets/markdown-DOZYcDNd.js","assets/tabs-CgudHfJv.js","assets/toggle-group-NfZmEEmD.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-1mXCzVjQ.js","assets/decopilot-OImya6-h.js","assets/checkbox-WzAY3JJD.js","assets/ai-providers-logos-DD3qZ33J.js","assets/index-D6fwXcTM.js","assets/input-DfvZ3ikK.js","assets/suggestion-D2LW2rth.js","assets/use-org-fs-mfYIenam.js","assets/use-members-DGHnBAVp.js","assets/feature-paywall-D6H1XrEk.js","assets/add-connection-dialog-CvOk-16j.js","assets/connection-card-D84FLYUf.js","assets/connection-slug-CITJ0kGN.js","assets/use-connection-DT6Y_sWB.js","assets/connection-form-helpers-5k0v0Re8.js","assets/collection-tabs-PNDYs7Tm.js","assets/use-infinite-scroll-CitEQv_Q.js","assets/useSuspenseInfiniteQuery-6_TWTeTT.js","assets/pair-Bs4OFZd1.js","assets/collapsible-BKe2_9O7.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-DRfDWjg6.js","assets/types-mQyngwgP.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-thread-outputs-CfLMzkB9.js","assets/file-type-icon-DnKDJ8Kn.js","assets/use-releases-DRDVY8Xc.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-DDvqjx4F.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-CyuU6yZd.js","assets/resizable-D5h_i3Cv.js","assets/route-page-header-D2v-N63X.js","assets/task-status-CxrGIdHQ.js","assets/use-main-panel-tabs-DCZX5mxy.js","assets/use-mcp-tools-NQLn3o-8.js","assets/use-task-metadata-B625VJsm.js","assets/virtual-mcp-BLyxO2qI.js","assets/legacy-main-redirect-COndmWyH.js","assets/preview-dialog-uefldvQJ.js","assets/preview-content-D9TR_OCi.js","assets/file-preview-BCzcW5IM.js","assets/utils-D2l1844I.js","assets/editor-zQPoF7nF.js","assets/file-share-button-BCbyDdG4.js","assets/blocks-preview-workspace-context-C6-ILFRy.js","assets/home-CZA4NVdc.js","assets/client-icons-BEF-E-JI.js","assets/project-feed-B8QXSSsQ.js","assets/agent-overview-Bxx3mqx3.js","assets/mini-report-page-D2baj09A.js","assets/project-tasks-DFi0AJKe.js","assets/mock-board-C8LOIHzu.js","assets/rich-text-link-control-hCgf6vwY.js","assets/use-task-board-analytics-DyOwTb8x.js","assets/combobox-yM7XxeWn.js","assets/search-toggle-OXNBAfan.js","assets/icon-button-a1oHWXnD.js","assets/use-tags-BDr8xPIF.js","assets/calendar-mQVeScA0.js","assets/alert-CyFB5Q7g.js","assets/index-DUDizWti.js","assets/index-q4Xl54Dx.js","assets/thread-sheet-body-BrDhZq1Z.js","assets/separator-CmRrTp4P.js","assets/feature-gate-DkU3CxuK.js","assets/project-reports-CU7shTBi.js","assets/reports-tab-BrMcs3Pf.js","assets/agent-site-editor-CPf68n1p.js","assets/claim-phase-copy-BXZD4tAp.js","assets/message-templates-CzGF1cA9.js","assets/last-preview-page-DEzwzCp-.js","assets/use-fast-preview-draft-url-H9Q-1XHg.js","assets/section-preview-url-Csj0_ZDg.js","assets/sandbox-git-api-B1R0585s.js","assets/save-changes-debug-nBi-n9eV.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-preview-GS0ijSSp.js","assets/agent-view-guard-RZaWWh8q.js","assets/runnable-block-editor-D5Om2hS9.js","assets/monaco-editor-_MEmcrMi.js","assets/use-new-blocks-editor-xOOrbCjh.js","assets/asset-utils-DmV7MwAi.js","assets/variant-matcher-override-CHhx77jc.js","assets/agent-site-editor-content-Dbmoy-9X.js","assets/mustache-CPcQeOG0.js","assets/empty-state-BMXb2rB5.js","assets/agent-site-editor-code-C5W28gjl.js","assets/agent-automations-CLIHaUQn.js","assets/use-automations-Bos3c2CS.js","assets/automation-list-row-D9W4FguS.js","assets/agent-automation-C6iPqVOP.js","assets/select-model-N7bwAuKh.js","assets/build-improve-prompt-doc-CYmkt9A_.js","assets/use-debounced-autosave-CVGhSw1y.js","assets/automation-runs-pUjgCSfr.js","assets/agent-settings-BdnQNFuI.js","assets/settings-tab-F5_VZsFA.js","assets/use-date-fns-locale-8-Vndgvf.js","assets/use-mcp-auth-status-DcPv-6wk.js","assets/secret-picker-olJPqPoi.js","assets/use-secrets-BQr1wgkC.js","assets/agent-assets-R_wphq7p.js","assets/agent-git-so-osFz0.js","assets/agent-hosting-BXsuvmaY.js","assets/agent-e2e-DakaaNs8.js","assets/agent-analytics-BuShy2lS.js","assets/chart-B_RS6v6i.js","assets/index-Cz9e3Wwk.js","assets/CartesianChart-4nAUsvcH.js","assets/AreaChart-B_KOVsWH.js","assets/agent-experiments-BhEpxS1S.js","assets/agent-monitor-Y-y8WkNo.js","assets/Line-CXvxeuZf.js","assets/ErrorBarContext-DMbtuZnP.js","assets/Sector-Ch6wxiVl.js","assets/agent-app-D6Tp5vlj.js","assets/project-app-view-CXTxnzE0.js","assets/agent-view-BjdG_eVV.js","assets/agent-file-B7S5_-vD.js","assets/agent-deck-DtlpMciC.js","assets/agent-library-file-BbHf83br.js","assets/agent-connect-sources-tobP9soC.js","assets/legacy-agents-deep-C3Zyezst.js","assets/tasks-BLCuiNcA.js","assets/taskboard-analytics-CkQr3tK7.js","assets/analytics-sections-BvlUaDYV.js","assets/thread-analytics-CE0WviO_.js","assets/reports-BW-QoVax.js","assets/library-DbAgblb-.js","assets/cards-CfITToen.js","assets/folder-icon-gl7W6Tvq.js","assets/skill-md-ChfVs4uF.js","assets/skill-preview-D2tUoLmU.js","assets/discover-BekL4zcZ.js","assets/index-B0_orRJ4.js","assets/route-B07-zVJy.js","assets/index-redirect-B6p9S-WJ.js","assets/capability-load-error-BjPwGIMH.js","assets/connections-ByYjvA85.js","assets/collection-display-button-B-NPFUs4.js","assets/view-mode-toggle-DSnYHXmD.js","assets/use-delete-connection-DoGBhXiK.js","assets/connection-detail-CpZDxB7F.js","assets/index-DuAhWQOd.js","assets/index-CenNUKjy.js","assets/use-create-virtual-mcp-D8BgGLo0.js","assets/monitoring-stats-row-B5_lpP36.js","assets/collection-detail-FqVAo6sr.js","assets/index-BF_gwFuP.js","assets/require-capability-BXbVP8Te.js","assets/access-gate-Cco763GH.js","assets/multi-select-CdvqIvqU.js","assets/general-D6tjE2j7.js","assets/review-settings-CUXs59zb.js","assets/domain-settings-BNV22Gio.js","assets/connect-BbrTSpN5.js","assets/api-keys-CClkqBtA.js","assets/ai-providers-DsuBk_lC.js","assets/infra-billing-HCI22mTY.js","assets/secrets-Cttvdk2_.js","assets/api-keys-C2GXQUdc.js","assets/buckets-C_5U-zUS.js","assets/repositories-D_tmdpJ8.js","assets/synced-repos-QFrSnbHa.js","assets/tasks-Bnn9RQl1.js","assets/members-BEiKQ73m.js","assets/role-color-Dn2tXDDF.js","assets/roles-92Mfuaie.js","assets/sso-D1j1eaaw.js","assets/profile-BOPnUUUc.js","assets/agents-list-BRhXk1wX.js","assets/automations-BWboyFGA.js","assets/skills-8G1WBDrj.js"])))=>i.map(i=>d[i]);
2
2
  function vz(e,t){for(var o=0;o<t.length;o++){const a=t[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();const bz="modulepreload",yz=function(e){return"/"+e},h1={},ze=function(t,o,a){let n=Promise.resolve();if(o&&o.length>0){let l=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");n=l(o.map(p=>{if(p=yz(p),p in h1)return;h1[p]=!0;const m=p.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":bz,m||(f.as="script"),f.crossOrigin="",f.href=p,u&&f.setAttribute("nonce",u),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(Error(`Unable to preload CSS for ${p}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return n.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var Lge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var h0={exports:{}},xu={};var m1;function Sz(){if(m1)return xu;m1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(a,n,i){var l=null;if(i!==void 0&&(l=""+i),n.key!==void 0&&(l=""+n.key),"key"in n){i={};for(var c in n)c!=="key"&&(i[c]=n[c])}else i=n;return n=i.ref,{$$typeof:e,type:a,key:l,ref:n!==void 0?n:null,props:i}}return xu.Fragment=t,xu.jsx=o,xu.jsxs=o,xu}var g1;function Tz(){return g1||(g1=1,h0.exports=Sz()),h0.exports}var T=Tz(),m0={exports:{}},ct={};var f1;function wz(){if(f1)return ct;f1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=f&&N[f]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function w(N,G,q){this.props=N,this.context=G,this.refs=x,this.updater=q||b}w.prototype.isReactComponent={},w.prototype.setState=function(N,G){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,G,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function _(){}_.prototype=w.prototype;function E(N,G,q){this.props=N,this.context=G,this.refs=x,this.updater=q||b}var C=E.prototype=new _;C.constructor=E,S(C,w.prototype),C.isPureReactComponent=!0;var k=Array.isArray;function R(){}var D={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(N,G,q){var I=q.ref;return{$$typeof:e,type:N,key:G,ref:I!==void 0?I:null,props:q}}function $(N,G){return L(N.type,G,N.props)}function B(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function U(N){var G={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(q){return G[q]})}var j=/\/+/g;function K(N,G){return typeof N=="object"&&N!==null&&N.key!=null?U(""+N.key):G.toString(36)}function ne(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(R,R):(N.status="pending",N.then(function(G){N.status==="pending"&&(N.status="fulfilled",N.value=G)},function(G){N.status==="pending"&&(N.status="rejected",N.reason=G)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function H(N,G,q,I,z){var J=typeof N;(J==="undefined"||J==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(J){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case e:case t:pe=!0;break;case m:return pe=N._init,H(pe(N._payload),G,q,I,z)}}if(pe)return z=z(N),pe=I===""?"."+K(N,0):I,k(z)?(q="",pe!=null&&(q=pe.replace(j,"$&/")+"/"),H(z,G,q,"",function($e){return $e})):z!=null&&(B(z)&&(z=$(z,q+(z.key==null||N&&N.key===z.key?"":(""+z.key).replace(j,"$&/")+"/")+pe)),G.push(z)),1;pe=0;var me=I===""?".":I+":";if(k(N))for(var xe=0;xe<N.length;xe++)I=N[xe],J=me+K(I,xe),pe+=H(I,G,q,J,z);else if(xe=v(N),typeof xe=="function")for(N=xe.call(N),xe=0;!(I=N.next()).done;)I=I.value,J=me+K(I,xe++),pe+=H(I,G,q,J,z);else if(J==="object"){if(typeof N.then=="function")return H(ne(N),G,q,I,z);throw G=String(N),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Z(N,G,q){if(N==null)return N;var I=[],z=0;return H(N,I,"","",function(J){return G.call(q,J,z++)}),I}function te(N){if(N._status===-1){var G=N._result;G=G(),G.then(function(q){(N._status===0||N._status===-1)&&(N._status=1,N._result=q)},function(q){(N._status===0||N._status===-1)&&(N._status=2,N._result=q)}),N._status===-1&&(N._status=0,N._result=G)}if(N._status===1)return N._result.default;throw N._result}var le=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Q={map:Z,forEach:function(N,G,q){Z(N,function(){G.apply(this,arguments)},q)},count:function(N){var G=0;return Z(N,function(){G++}),G},toArray:function(N){return Z(N,function(G){return G})||[]},only:function(N){if(!B(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ct.Activity=h,ct.Children=Q,ct.Component=w,ct.Fragment=o,ct.Profiler=n,ct.PureComponent=E,ct.StrictMode=a,ct.Suspense=u,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return D.H.useMemoCache(N)}},ct.cache=function(N){return function(){return N.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(N,G,q){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=S({},N.props),z=N.key;if(G!=null)for(J in G.key!==void 0&&(z=""+G.key),G)!O.call(G,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&G.ref===void 0||(I[J]=G[J]);var J=arguments.length-2;if(J===1)I.children=q;else if(1<J){for(var pe=Array(J),me=0;me<J;me++)pe[me]=arguments[me+2];I.children=pe}return L(N.type,z,I)},ct.createContext=function(N){return N={$$typeof:l,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:i,_context:N},N},ct.createElement=function(N,G,q){var I,z={},J=null;if(G!=null)for(I in G.key!==void 0&&(J=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(z[I]=G[I]);var pe=arguments.length-2;if(pe===1)z.children=q;else if(1<pe){for(var me=Array(pe),xe=0;xe<pe;xe++)me[xe]=arguments[xe+2];z.children=me}if(N&&N.defaultProps)for(I in pe=N.defaultProps,pe)z[I]===void 0&&(z[I]=pe[I]);return L(N,J,z)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(N){return{$$typeof:c,render:N}},ct.isValidElement=B,ct.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:te}},ct.memo=function(N,G){return{$$typeof:p,type:N,compare:G===void 0?null:G}},ct.startTransition=function(N){var G=D.T,q={};D.T=q;try{var I=N(),z=D.S;z!==null&&z(q,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(R,le)}catch(J){le(J)}finally{G!==null&&q.types!==null&&(G.types=q.types),D.T=G}},ct.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ct.use=function(N){return D.H.use(N)},ct.useActionState=function(N,G,q){return D.H.useActionState(N,G,q)},ct.useCallback=function(N,G){return D.H.useCallback(N,G)},ct.useContext=function(N){return D.H.useContext(N)},ct.useDebugValue=function(){},ct.useDeferredValue=function(N,G){return D.H.useDeferredValue(N,G)},ct.useEffect=function(N,G){return D.H.useEffect(N,G)},ct.useEffectEvent=function(N){return D.H.useEffectEvent(N)},ct.useId=function(){return D.H.useId()},ct.useImperativeHandle=function(N,G,q){return D.H.useImperativeHandle(N,G,q)},ct.useInsertionEffect=function(N,G){return D.H.useInsertionEffect(N,G)},ct.useLayoutEffect=function(N,G){return D.H.useLayoutEffect(N,G)},ct.useMemo=function(N,G){return D.H.useMemo(N,G)},ct.useOptimistic=function(N,G){return D.H.useOptimistic(N,G)},ct.useReducer=function(N,G,q){return D.H.useReducer(N,G,q)},ct.useRef=function(N){return D.H.useRef(N)},ct.useState=function(N){return D.H.useState(N)},ct.useSyncExternalStore=function(N,G,q){return D.H.useSyncExternalStore(N,G,q)},ct.useTransition=function(){return D.H.useTransition()},ct.version="19.2.6",ct}var v1;function Is(){return v1||(v1=1,m0.exports=wz()),m0.exports}var A=Is();const X=Nl(A),g_=vz({__proto__:null,default:X},[A]);var g0={exports:{}},Pu={},f0={exports:{}},v0={};var b1;function _z(){return b1||(b1=1,(function(e){function t(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<n(Q,Z))H[le]=Z,H[te]=Q,te=le;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var le=0,Q=H.length,N=Q>>>1;le<N;){var G=2*(le+1)-1,q=H[G],I=G+1,z=H[I];if(0>n(q,te))I<Q&&0>n(z,q)?(H[le]=z,H[I]=te,le=I):(H[le]=q,H[G]=te,le=G);else if(I<Q&&0>n(z,te))H[le]=z,H[I]=te,le=I;else break e}}return Z}function n(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],p=[],m=1,h=null,f=3,v=!1,b=!1,S=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var Z=o(p);Z!==null;){if(Z.callback===null)a(p);else if(Z.startTime<=H)a(p),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=o(p)}}function k(H){if(S=!1,C(H),!b)if(o(u)!==null)b=!0,R||(R=!0,U());else{var Z=o(p);Z!==null&&ne(k,Z.startTime-H)}}var R=!1,D=-1,O=5,L=-1;function $(){return x?!0:!(e.unstable_now()-L<O)}function B(){if(x=!1,R){var H=e.unstable_now();L=H;var Z=!0;try{e:{b=!1,S&&(S=!1,_(D),D=-1),v=!0;var te=f;try{t:{for(C(H),h=o(u);h!==null&&!(h.expirationTime>H&&$());){var le=h.callback;if(typeof le=="function"){h.callback=null,f=h.priorityLevel;var Q=le(h.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){h.callback=Q,C(H),Z=!0;break t}h===o(u)&&a(u),C(H)}else a(u);h=o(u)}if(h!==null)Z=!0;else{var N=o(p);N!==null&&ne(k,N.startTime-H),Z=!1}}break e}finally{h=null,f=te,v=!1}Z=void 0}}finally{Z?U():R=!1}}}var U;if(typeof E=="function")U=function(){E(B)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,K=j.port2;j.port1.onmessage=B,U=function(){K.postMessage(null)}}else U=function(){w(B,0)};function ne(H,Z){D=w(function(){H(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(H){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var te=f;f=Z;try{return H()}finally{f=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=f;f=H;try{return Z()}finally{f=te}},e.unstable_scheduleCallback=function(H,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,H={id:m++,callback:Z,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(p,H),o(u)===null&&H===o(p)&&(S?(_(D),D=-1):S=!0,ne(k,te-le))):(H.sortIndex=Q,t(u,H),b||v||(b=!0,R||(R=!0,U()))),H},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(H){var Z=f;return function(){var te=f;f=Z;try{return H.apply(this,arguments)}finally{f=te}}}})(v0)),v0}var y1;function xz(){return y1||(y1=1,f0.exports=_z()),f0.exports}var b0={exports:{}},Ra={};var S1;function Pz(){if(S1)return Ra;S1=1;var e=Is();function t(u){var p="https://react.dev/errors/"+u;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(u,p,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:u,containerInfo:p,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,p){if(u==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ra.createPortal=function(u,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return i(u,p,null,m)},Ra.flushSync=function(u){var p=l.T,m=a.p;try{if(l.T=null,a.p=2,u)return u()}finally{l.T=p,a.p=m,a.d.f()}},Ra.preconnect=function(u,p){typeof u=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(u,p))},Ra.prefetchDNS=function(u){typeof u=="string"&&a.d.D(u)},Ra.preinit=function(u,p){if(typeof u=="string"&&p&&typeof p.as=="string"){var m=p.as,h=c(m,p.crossOrigin),f=typeof p.integrity=="string"?p.integrity:void 0,v=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?a.d.S(u,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(u,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ra.preinitModule=function(u,p){if(typeof u=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=c(p.as,p.crossOrigin);a.d.M(u,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(u)},Ra.preload=function(u,p){if(typeof u=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,h=c(m,p.crossOrigin);a.d.L(u,m,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ra.preloadModule=function(u,p){if(typeof u=="string")if(p){var m=c(p.as,p.crossOrigin);a.d.m(u,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(u)},Ra.requestFormReset=function(u){a.d.r(u)},Ra.unstable_batchedUpdates=function(u,p){return u(p)},Ra.useFormState=function(u,p,m){return l.H.useFormState(u,p,m)},Ra.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ra.version="19.2.6",Ra}var T1;function Z2(){if(T1)return b0.exports;T1=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(),b0.exports=Pz(),b0.exports}var w1;function Cz(){if(w1)return Pu;w1=1;var e=xz(),t=Is(),o=Z2();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)s+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function i(r){var s=r,d=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(d=s.return),r=s.return;while(r)}return s.tag===3?d:null}function l(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function c(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function u(r){if(i(r)!==r)throw Error(a(188))}function p(r){var s=r.alternate;if(!s){if(s=i(r),s===null)throw Error(a(188));return s!==r?null:r}for(var d=r,g=s;;){var y=d.return;if(y===null)break;var P=y.alternate;if(P===null){if(g=y.return,g!==null){d=g;continue}break}if(y.child===P.child){for(P=y.child;P;){if(P===d)return u(y),r;if(P===g)return u(y),s;P=P.sibling}throw Error(a(188))}if(d.return!==g.return)d=y,g=P;else{for(var M=!1,F=y.child;F;){if(F===d){M=!0,d=y,g=P;break}if(F===g){M=!0,g=y,d=P;break}F=F.sibling}if(!M){for(F=P.child;F;){if(F===d){M=!0,d=P,g=y;break}if(F===g){M=!0,g=P,d=y;break}F=F.sibling}if(!M)throw Error(a(189))}}if(d.alternate!==g)throw Error(a(190))}if(d.tag!==3)throw Error(a(188));return d.stateNode.current===d?r:s}function m(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=m(r),s!==null)return s;r=r.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function U(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var j=Symbol.for("react.client.reference");function K(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===j?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case R:return"SuspenseList";case L:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case E:return r.displayName||"Context";case _:return(r._context.displayName||"Context")+".Consumer";case C:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case D:return s=r.displayName||null,s!==null?s:K(r.type)||"Memo";case O:s=r._payload,r=r._init;try{return K(r(s))}catch{}}return null}var ne=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function N(r){return{current:r}}function G(r){0>Q||(r.current=le[Q],le[Q]=null,Q--)}function q(r,s){Q++,le[Q]=r.current,r.current=s}var I=N(null),z=N(null),J=N(null),pe=N(null);function me(r,s){switch(q(J,s),q(z,r),q(I,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?LE(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=LE(s),r=BE(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}G(I),q(I,r)}function xe(){G(I),G(z),G(J)}function $e(r){r.memoizedState!==null&&q(pe,r);var s=I.current,d=BE(s,r.type);s!==d&&(q(z,r),q(I,d))}function Y(r){z.current===r&&(G(I),G(z)),pe.current===r&&(G(pe),Su._currentValue=te)}var ae,ve;function ie(r){if(ae===void 0)try{throw Error()}catch(d){var s=d.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",ve=-1<d.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ae+r+ve}var Te=!1;function Ce(r,s){if(!r||Te)return"";Te=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={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(fe){var he=fe}Reflect.construct(r,[],we)}else{try{we.call()}catch(fe){he=fe}r.call(we.prototype)}}else{try{throw Error()}catch(fe){he=fe}(we=r())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var P=g.DetermineComponentFrameRoot(),M=P[0],F=P[1];if(M&&F){var ee=M.split(`
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
165
165
  .block-interactivity-`.concat(e,` {pointer-events: none;}
166
166
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
167
167
  `)},Toe=0,Ic=[];function woe(e){var t=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(Toe++)[0],i=A.useState(hB)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var S=qte([e.lockRef.current],(e.shards||[]).map(jD),!0).filter(Boolean);return S.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(S,x){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var w=Ag(S),_=o.current,E="deltaX"in S?S.deltaX:_[0]-w[0],C="deltaY"in S?S.deltaY:_[1]-w[1],k,R=S.target,D=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in S&&D==="h"&&R.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,$=L?L===R||L.contains(R):!1;if($)return!1;var B=BD(D,R);if(!B)return!0;if(B?k=D:(k=D==="v"?"h":"v",B=BD(D,R)),!B)return!1;if(!a.current&&"changedTouches"in S&&(E||C)&&(a.current=k),!k)return!0;var U=a.current||k;return boe(U,x,S,U==="h"?E:C)},[]),u=A.useCallback(function(S){var x=S;if(!(!Ic.length||Ic[Ic.length-1]!==i)){var w="deltaY"in x?FD(x):Ag(x),_=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&yoe(k.delta,w)})[0];if(_&&_.should){x.cancelable&&x.preventDefault();return}if(!_){var E=(l.current.shards||[]).map(jD).filter(Boolean).filter(function(k){return k.contains(x.target)}),C=E.length>0?c(x,E[0]):!l.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),p=A.useCallback(function(S,x,w,_){var E={name:S,delta:x,target:w,should:_,shadowParent:_oe(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(C){return C!==E})},1)},[]),m=A.useCallback(function(S){o.current=Ag(S),a.current=void 0},[]),h=A.useCallback(function(S){p(S.type,FD(S),S.target,c(S,e.lockRef.current))},[]),f=A.useCallback(function(S){p(S.type,Ag(S),S.target,c(S,e.lockRef.current))},[]);A.useEffect(function(){return Ic.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,Nc),document.addEventListener("touchmove",u,Nc),document.addEventListener("touchstart",m,Nc),function(){Ic=Ic.filter(function(S){return S!==i}),document.removeEventListener("wheel",u,Nc),document.removeEventListener("touchmove",u,Nc),document.removeEventListener("touchstart",m,Nc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(i,{styles:Soe(n)}):null,v?A.createElement(uoe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _oe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xoe=Jte(pB,woe);var wx=A.forwardRef(function(e,t){return A.createElement(Mv,zr({},e,{ref:t,sideCar:xoe}))});wx.classNames=Mv.classNames;var iw=["Enter"," "],Poe=["ArrowDown","PageUp","Home"],vB=["ArrowUp","PageDown","End"],Coe=[...Poe,...vB],koe={ltr:[...iw,"ArrowRight"],rtl:[...iw,"ArrowLeft"]},Eoe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eh="Menu",[kp,Aoe,Roe]=xL(eh),[Ul,bB]=zl(eh,[Roe,GL,aB]),th=GL(),yB=aB(),[SB,zs]=Ul(eh),[Doe,oh]=Ul(eh),TB=e=>{const{__scopeMenu:t,open:o=!1,children:a,dir:n,onOpenChange:i,modal:l=!0}=e,c=th(t),[u,p]=A.useState(null),m=A.useRef(!1),h=Sr(i),f=PL(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),T.jsx(tB,{...c,children:T.jsx(SB,{scope:t,open:o,onOpenChange:h,content:u,onContentChange:p,children:T.jsx(Doe,{scope:t,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:l,children:a})})})};TB.displayName=eh;var Ooe="MenuAnchor",_x=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=th(o);return T.jsx(Tte,{...n,...a,ref:t})});_x.displayName=Ooe;var xx="MenuPortal",[Moe,wB]=Ul(xx,{forceMount:void 0}),_B=e=>{const{__scopeMenu:t,forceMount:o,children:a,container:n}=e,i=zs(xx,t);return T.jsx(Moe,{scope:t,forceMount:o,children:T.jsx(Mi,{present:o||i.open,children:T.jsx(Tx,{asChild:!0,container:n,children:a})})})};_B.displayName=xx;var Jn="MenuContent",[Noe,Px]=Ul(Jn),xB=A.forwardRef((e,t)=>{const o=wB(Jn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Jn,e.__scopeMenu),l=oh(Jn,e.__scopeMenu);return T.jsx(kp.Provider,{scope:e.__scopeMenu,children:T.jsx(Mi,{present:a||i.open,children:T.jsx(kp.Slot,{scope:e.__scopeMenu,children:l.modal?T.jsx(Ioe,{...n,ref:t}):T.jsx(Loe,{...n,ref:t})})})})}),Ioe=A.forwardRef((e,t)=>{const o=zs(Jn,e.__scopeMenu),a=A.useRef(null),n=sa(t,a);return A.useEffect(()=>{const i=a.current;if(i)return cB(i)},[]),T.jsx(Cx,{...e,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:ht(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Loe=A.forwardRef((e,t)=>{const o=zs(Jn,e.__scopeMenu);return T.jsx(Cx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Boe=Pp("MenuContent.ScrollLock"),Cx=A.forwardRef((e,t)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:b,...S}=e,x=zs(Jn,o),w=oh(Jn,o),_=th(o),E=yB(o),C=Aoe(o),[k,R]=A.useState(null),D=A.useRef(null),O=sa(t,D,x.onContentChange),L=A.useRef(0),$=A.useRef(""),B=A.useRef(0),U=A.useRef(null),j=A.useRef("right"),K=A.useRef(0),ne=b?wx:A.Fragment,H=b?{as:Boe,allowPinchZoom:!0}:void 0,Z=le=>{const Q=$.current+le,N=C().filter(pe=>!pe.disabled),G=document.activeElement,q=N.find(pe=>pe.ref.current===G)?.textValue,I=N.map(pe=>pe.textValue),z=Yoe(I,Q,q),J=N.find(pe=>pe.textValue===z)?.ref.current;(function pe(me){$.current=me,window.clearTimeout(L.current),me!==""&&(L.current=window.setTimeout(()=>pe(""),1e3))})(Q),J&&setTimeout(()=>J.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),EL();const te=A.useCallback(le=>j.current===U.current?.side&&Qoe(le,U.current?.area),[]);return T.jsx(Noe,{scope:o,searchRef:$,onItemEnter:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),onItemLeave:A.useCallback(le=>{te(le)||(D.current?.focus(),R(null))},[te]),onTriggerLeave:A.useCallback(le=>{te(le)&&le.preventDefault()},[te]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(le=>{U.current=le},[]),children:T.jsx(ne,{...H,children:T.jsx(ux,{asChild:!0,trapped:n,onMountAutoFocus:ht(i,le=>{le.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:T.jsx(dx,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:T.jsx(Fte,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:a,currentTabStopId:k,onCurrentTabStopIdChange:R,onEntryFocus:ht(u,le=>{w.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:T.jsx(wte,{role:"menu","aria-orientation":"vertical","data-state":UB(x.open),"data-radix-menu-content":"",dir:w.dir,..._,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:ht(S.onKeyDown,le=>{const N=le.target.closest("[data-radix-menu-content]")===le.currentTarget,G=le.ctrlKey||le.altKey||le.metaKey,q=le.key.length===1;N&&(le.key==="Tab"&&le.preventDefault(),!G&&q&&Z(le.key));const I=D.current;if(le.target!==I||!Coe.includes(le.key))return;le.preventDefault();const J=C().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);vB.includes(le.key)&&J.reverse(),Koe(J)}),onBlur:ht(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(L.current),$.current="")}),onPointerMove:ht(e.onPointerMove,Ep(le=>{const Q=le.target,N=K.current!==le.clientX;if(le.currentTarget.contains(Q)&&N){const G=le.clientX>K.current?"right":"left";j.current=G,K.current=le.clientX}}))})})})})})})});xB.displayName=Jn;var Foe="MenuGroup",kx=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{role:"group",...a,ref:t})});kx.displayName=Foe;var joe="MenuLabel",PB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{...a,ref:t})});PB.displayName=joe;var Df="MenuItem",zD="menu.itemSelect",Nv=A.forwardRef((e,t)=>{const{disabled:o=!1,onSelect:a,...n}=e,i=A.useRef(null),l=oh(Df,e.__scopeMenu),c=Px(Df,e.__scopeMenu),u=sa(t,i),p=A.useRef(!1),m=()=>{const h=i.current;if(!o&&h){const f=new CustomEvent(zD,{bubbles:!0,cancelable:!0});h.addEventListener(zD,v=>a?.(v),{once:!0}),_L(h,f),f.defaultPrevented?p.current=!1:l.onClose()}};return T.jsx(CB,{...n,ref:u,disabled:o,onClick:ht(e.onClick,m),onPointerDown:h=>{e.onPointerDown?.(h),p.current=!0},onPointerUp:ht(e.onPointerUp,h=>{p.current||h.currentTarget?.click()}),onKeyDown:ht(e.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||iw.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Nv.displayName=Df;var CB=A.forwardRef((e,t)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...i}=e,l=Px(Df,o),c=yB(o),u=A.useRef(null),p=sa(t,u),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=u.current;b&&v((b.textContent??"").trim())},[i.children]),T.jsx(kp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:T.jsx(jte,{asChild:!0,...c,focusable:!a,children:T.jsx(Eo.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:p,onPointerMove:ht(e.onPointerMove,Ep(b=>{a?l.onItemLeave(b):(l.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ht(e.onPointerLeave,Ep(b=>l.onItemLeave(b))),onFocus:ht(e.onFocus,()=>h(!0)),onBlur:ht(e.onBlur,()=>h(!1))})})})}),zoe="MenuCheckboxItem",kB=A.forwardRef((e,t)=>{const{checked:o=!1,onCheckedChange:a,...n}=e;return T.jsx(OB,{scope:e.__scopeMenu,checked:o,children:T.jsx(Nv,{role:"menuitemcheckbox","aria-checked":Of(o)?"mixed":o,...n,ref:t,"data-state":Rx(o),onSelect:ht(n.onSelect,()=>a?.(Of(o)?!0:!o),{checkForDefaultPrevented:!1})})})});kB.displayName=zoe;var EB="MenuRadioGroup",[Uoe,$oe]=Ul(EB,{value:void 0,onValueChange:()=>{}}),AB=A.forwardRef((e,t)=>{const{value:o,onValueChange:a,...n}=e,i=Sr(a);return T.jsx(Uoe,{scope:e.__scopeMenu,value:o,onValueChange:i,children:T.jsx(kx,{...n,ref:t})})});AB.displayName=EB;var RB="MenuRadioItem",DB=A.forwardRef((e,t)=>{const{value:o,...a}=e,n=$oe(RB,e.__scopeMenu),i=o===n.value;return T.jsx(OB,{scope:e.__scopeMenu,checked:i,children:T.jsx(Nv,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":Rx(i),onSelect:ht(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});DB.displayName=RB;var Ex="MenuItemIndicator",[OB,qoe]=Ul(Ex,{checked:!1}),MB=A.forwardRef((e,t)=>{const{__scopeMenu:o,forceMount:a,...n}=e,i=qoe(Ex,o);return T.jsx(Mi,{present:a||Of(i.checked)||i.checked===!0,children:T.jsx(Eo.span,{...n,ref:t,"data-state":Rx(i.checked)})})});MB.displayName=Ex;var Voe="MenuSeparator",NB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e;return T.jsx(Eo.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});NB.displayName=Voe;var Hoe="MenuArrow",IB=A.forwardRef((e,t)=>{const{__scopeMenu:o,...a}=e,n=th(o);return T.jsx(_te,{...n,...a,ref:t})});IB.displayName=Hoe;var Ax="MenuSub",[Goe,LB]=Ul(Ax),BB=e=>{const{__scopeMenu:t,children:o,open:a=!1,onOpenChange:n}=e,i=zs(Ax,t),l=th(t),[c,u]=A.useState(null),[p,m]=A.useState(null),h=Sr(n);return A.useEffect(()=>(i.open===!1&&h(!1),()=>h(!1)),[i.open,h]),T.jsx(tB,{...l,children:T.jsx(SB,{scope:t,open:a,onOpenChange:h,content:p,onContentChange:m,children:T.jsx(Goe,{scope:t,contentId:As(),triggerId:As(),trigger:c,onTriggerChange:u,children:o})})})};BB.displayName=Ax;var Ju="MenuSubTrigger",FB=A.forwardRef((e,t)=>{const o=zs(Ju,e.__scopeMenu),a=oh(Ju,e.__scopeMenu),n=LB(Ju,e.__scopeMenu),i=Px(Ju,e.__scopeMenu),l=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,p={__scopeMenu:e.__scopeMenu},m=A.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),u(null)}},[c,u]),T.jsx(_x,{asChild:!0,...p,children:T.jsx(CB,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":UB(o.open),...e,ref:Zp(t,n.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:ht(e.onPointerMove,Ep(h=>{i.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!o.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:ht(e.onPointerLeave,Ep(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,x=f[b?"left":"right"],w=f[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(h),h.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ht(e.onKeyDown,h=>{const f=i.searchRef.current!=="";e.disabled||f&&h.key===" "||koe[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});FB.displayName=Ju;var jB="MenuSubContent",zB=A.forwardRef((e,t)=>{const o=wB(Jn,e.__scopeMenu),{forceMount:a=o.forceMount,...n}=e,i=zs(Jn,e.__scopeMenu),l=oh(Jn,e.__scopeMenu),c=LB(jB,e.__scopeMenu),u=A.useRef(null),p=sa(t,u);return T.jsx(kp.Provider,{scope:e.__scopeMenu,children:T.jsx(Mi,{present:a||i.open,children:T.jsx(kp.Slot,{scope:e.__scopeMenu,children:T.jsx(Cx,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:p,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{l.isUsingKeyboardRef.current&&u.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ht(e.onFocusOutside,m=>{m.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ht(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:ht(e.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=Eoe[l.dir].includes(m.key);h&&f&&(i.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});zB.displayName=jB;function UB(e){return e?"open":"closed"}function Of(e){return e==="indeterminate"}function Rx(e){return Of(e)?"indeterminate":e?"checked":"unchecked"}function Koe(e){const t=document.activeElement;for(const o of e)if(o===t||(o.focus(),document.activeElement!==t))return}function Woe(e,t){return e.map((o,a)=>e[(t+a)%e.length])}function Yoe(e,t,o){const n=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,i=o?e.indexOf(o):-1;let l=Woe(e,Math.max(i,0));n.length===1&&(l=l.filter(p=>p!==o));const u=l.find(p=>p.toLowerCase().startsWith(n.toLowerCase()));return u!==o?u:void 0}function Zoe(e,t){const{x:o,y:a}=e;let n=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],p=c.x,m=c.y,h=u.x,f=u.y;m>a!=f>a&&o<(h-p)*(a-m)/(f-m)+p&&(n=!n)}return n}function Qoe(e,t){if(!t)return!1;const o={x:e.clientX,y:e.clientY};return Zoe(o,t)}function Ep(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Joe=TB,Xoe=_x,eae=_B,tae=xB,oae=kx,aae=PB,nae=Nv,rae=kB,iae=AB,sae=DB,lae=MB,cae=NB,dae=IB,uae=BB,pae=FB,hae=zB,Iv="DropdownMenu",[mae]=zl(Iv,[bB]),ja=bB(),[gae,$B]=mae(Iv),qB=e=>{const{__scopeDropdownMenu:t,children:o,dir:a,open:n,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=ja(t),p=A.useRef(null),[m,h]=Qp({prop:n,defaultProp:i??!1,onChange:l,caller:Iv});return T.jsx(gae,{scope:t,triggerId:As(),triggerRef:p,contentId:As(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:T.jsx(Joe,{...u,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};qB.displayName=Iv;var VB="DropdownMenuTrigger",HB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=e,i=$B(VB,o),l=ja(o);return T.jsx(Xoe,{asChild:!0,...l,children:T.jsx(Eo.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:Zp(t,i.triggerRef),onPointerDown:ht(e.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:ht(e.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});HB.displayName=VB;var fae="DropdownMenuPortal",GB=e=>{const{__scopeDropdownMenu:t,...o}=e,a=ja(t);return T.jsx(eae,{...a,...o})};GB.displayName=fae;var KB="DropdownMenuContent",WB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=$B(KB,o),i=ja(o),l=A.useRef(!1);return T.jsx(tae,{id:n.contentId,"aria-labelledby":n.triggerId,...i,...a,ref:t,onCloseAutoFocus:ht(e.onCloseAutoFocus,c=>{l.current||n.triggerRef.current?.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:ht(e.onInteractOutside,c=>{const u=c.detail.originalEvent,p=u.button===0&&u.ctrlKey===!0,m=u.button===2||p;(!n.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});WB.displayName=KB;var vae="DropdownMenuGroup",bae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(oae,{...n,...a,ref:t})});bae.displayName=vae;var yae="DropdownMenuLabel",YB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(aae,{...n,...a,ref:t})});YB.displayName=yae;var Sae="DropdownMenuItem",ZB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(nae,{...n,...a,ref:t})});ZB.displayName=Sae;var Tae="DropdownMenuCheckboxItem",wae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(rae,{...n,...a,ref:t})});wae.displayName=Tae;var _ae="DropdownMenuRadioGroup",QB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(iae,{...n,...a,ref:t})});QB.displayName=_ae;var xae="DropdownMenuRadioItem",JB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(sae,{...n,...a,ref:t})});JB.displayName=xae;var Pae="DropdownMenuItemIndicator",XB=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(lae,{...n,...a,ref:t})});XB.displayName=Pae;var Cae="DropdownMenuSeparator",eF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(cae,{...n,...a,ref:t})});eF.displayName=Cae;var kae="DropdownMenuArrow",Eae=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(dae,{...n,...a,ref:t})});Eae.displayName=kae;var Aae=e=>{const{__scopeDropdownMenu:t,children:o,open:a,onOpenChange:n,defaultOpen:i}=e,l=ja(t),[c,u]=Qp({prop:a,defaultProp:i??!1,onChange:n,caller:"DropdownMenuSub"});return T.jsx(uae,{...l,open:c,onOpenChange:u,children:o})},Rae="DropdownMenuSubTrigger",tF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(pae,{...n,...a,ref:t})});tF.displayName=Rae;var Dae="DropdownMenuSubContent",oF=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:o,...a}=e,n=ja(o);return T.jsx(hae,{...n,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});oF.displayName=Dae;var aF=qB,nF=HB,rF=GB,iF=WB,Oae=YB,sF=ZB,Mae=QB,Nae=JB,Iae=XB,Lae=eF,Bae=Aae,Fae=tF,jae=oF;const Dx=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));Dx.displayName="AlertTriangle";const lF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));lF.displayName="Archive";const cF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));cF.displayName="ArrowUpRight";const Ox=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));Ox.displayName="ChevronRight";const dF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));dF.displayName="Circle";const uF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));uF.displayName="CpuChip01";const pF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));pF.displayName="DotsHorizontal";const hF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));hF.displayName="GitBranch01";const mF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M2.5 12h19M6 16h4M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));mF.displayName="HardDrive";const gF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));gF.displayName="Lock01";const fF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));fF.displayName="RefreshCw01";const vF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));vF.displayName="Server01";const bF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));bF.displayName="Shield01";const yF=({size:e=24,color:t="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));yF.displayName="Users03";function zae(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(aF,{"data-slot":"dropdown-menu",...o}),t[2]=o,t[3]=a):a=t[3],a}function Uae(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(nF,{"data-slot":"dropdown-menu-trigger",...o}),t[2]=o,t[3]=a):a=t[3],a}function $ae(e){const t=Le.c(10);let o,a,n;t[0]!==e?({className:o,sideOffset:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?4:n;let l;t[4]!==o?(l=qt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",o),t[4]=o,t[5]=l):l=t[5];let c;return t[6]!==a||t[7]!==i||t[8]!==l?(c=T.jsx(rF,{children:T.jsx(iF,{"data-slot":"dropdown-menu-content",sideOffset:i,translate:"no",className:l,...a})}),t[6]=a,t[7]=i,t[8]=l,t[9]=c):c=t[9],c}function qae(e){const t=Le.c(12);let o,a,n,i;t[0]!==e?({className:o,inset:a,variant:i,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?"default":i;let c;t[5]!==o?(c=qt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),t[5]=o,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==n||t[9]!==c||t[10]!==l?(u=T.jsx(sF,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":l,className:c,...n}),t[7]=a,t[8]=n,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Gfe(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(Mae,{"data-slot":"dropdown-menu-radio-group",...o}),t[2]=o,t[3]=a):a=t[3],a}function Kfe(e){const t=Le.c(11);let o,a,n;t[0]!==e?({className:a,children:o,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==a?(i=qt("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),t[4]=a,t[5]=i):i=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=T.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:T.jsx(Iae,{children:T.jsx(dF,{className:"size-2 fill-current"})})}),t[6]=l):l=t[6];let c;return t[7]!==o||t[8]!==n||t[9]!==i?(c=T.jsxs(Nae,{"data-slot":"dropdown-menu-radio-item",className:i,...n,children:[l,o]}),t[7]=o,t[8]=n,t[9]=i,t[10]=c):c=t[10],c}function Wfe(e){const t=Le.c(10);let o,a,n;t[0]!==e?({className:o,inset:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);let i;t[4]!==o?(i=qt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),t[4]=o,t[5]=i):i=t[5];let l;return t[6]!==a||t[7]!==n||t[8]!==i?(l=T.jsx(Oae,{"data-slot":"dropdown-menu-label","data-inset":a,className:i,...n}),t[6]=a,t[7]=n,t[8]=i,t[9]=l):l=t[9],l}function Yfe(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("bg-border -mx-1 my-1 h-px",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx(Lae,{"data-slot":"dropdown-menu-separator",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Zfe(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx(Bae,{"data-slot":"dropdown-menu-sub",...o}),t[2]=o,t[3]=a):a=t[3],a}function Qfe(e){const t=Le.c(13);let o,a,n,i;t[0]!==e?({className:a,inset:n,children:o,...i}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);let l;t[5]!==a?(l=qt("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",a),t[5]=a,t[6]=l):l=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx(Ox,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let u;return t[8]!==o||t[9]!==n||t[10]!==i||t[11]!==l?(u=T.jsxs(Fae,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:l,...i,children:[o,c]}),t[8]=o,t[9]=n,t[10]=i,t[11]=l,t[12]=u):u=t[12],u}function Jfe(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx(jae,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function Vae(){const e=Le.c(3),[t,o]=A.useState(-1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l=>{if(!l)return;const c=()=>o(l.clientWidth);c();const u=new ResizeObserver(c);return u.observe(l),()=>u.disconnect()},e[0]=a):a=e[0];const n=a;let i;return e[1]!==t?(i=[t,n],e[1]=t,e[2]=i):i=e[2],i}function Hae(){let e=new Map;const t=new Set,o=()=>t.forEach(a=>a());return{getSnapshot:()=>e,subscribe(a){return t.add(a),()=>{t.delete(a)}},register(a){if(e.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return e=new Map(e).set(a.after,a),o(),()=>{if(e.get(a.after)!==a)return;const n=new Map(e);n.delete(a.after),e=n,o()}}}}const SF=A.createContext(null);function Gae(e){const t=Le.c(3),{children:o}=e,[a]=A.useState(Hae);let n;return t[0]!==o||t[1]!==a?(n=T.jsx(SF,{value:a,children:o}),t[0]=o,t[1]=a,t[2]=n):n=t[2],n}function Lv(){return A.use(SF)}function TF(e){const t=Le.c(3),o=Lv();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return t[0]!==e||t[1]!==o?(a=T.jsx("span",{hidden:!0,ref:n=>n?o.register(e):void 0}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Kae(e,t){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const i=t.get(n.key);return[{...n,...i?.parent},...i?.items?.flatMap(a)??[]]};return e.flatMap(a)}const wF=5;function Wae(e,t=!1,o=wF){const a=e.map(l=>({type:"item",item:l}));if(e.length<=(t?1:o))return a;const n=t?0:1,i=e.length-(t?1:2);return a.splice(n,i-n,{type:"menu",items:e.slice(n,i)}),a}const _F=o$(function(t){return T.jsx("a",{...t,"aria-current":void 0})});function Yae(e){const t=Le.c(12),{items:o}=e,a=Cr();let n;t[0]!==a?(n=a("page.breadcrumbMenu"),t[0]=a,t[1]=n):n=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(pF,{"aria-hidden":"true",className:"size-4"}),t[2]=i):i=t[2];let l;t[3]!==n?(l=T.jsx(Uae,{asChild:!0,children:T.jsx(Al,{variant:"ghost",size:"icon-sm",className:"size-6 shrink-0","aria-label":n,children:i})}),t[3]=n,t[4]=l):l=t[4];let c;t[5]!==o?(c=o.map(Zae),t[5]=o,t[6]=c):c=t[6];let u;t[7]!==c?(u=T.jsx($ae,{align:"start",children:c}),t[7]=c,t[8]=u):u=t[8];let p;return t[9]!==l||t[10]!==u?(p=T.jsxs(zae,{children:[l,u]}),t[9]=l,t[10]=u,t[11]=p):p=t[11],p}function Zae(e){const t=T.jsx("span",{className:"max-w-64 truncate",title:typeof e.label=="string"?e.label:void 0,children:e.label});return T.jsx(qae,{asChild:!!e.link&&!e.onSelect,onSelect:e.onSelect,disabled:!e.onSelect&&!e.link,children:e.link&&!e.onSelect?T.jsx(_F,{...e.link,children:t}):t},e.key)}function Qae(e){const t=Le.c(14),{item:o,current:a}=e,n=typeof o.label=="string"?o.label:void 0;if(a){let l;return t[0]!==o.label||t[1]!==n?(l=T.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),t[0]=o.label,t[1]=n,t[2]=l):l=t[2],l}if(o.onSelect){let l;return t[3]!==o.label||t[4]!==o.onSelect||t[5]!==n?(l=T.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[3]=o.label,t[4]=o.onSelect,t[5]=n,t[6]=l):l=t[6],l}if(o.link){let l;return t[7]!==o.label||t[8]!==o.link||t[9]!==n?(l=T.jsx(_F,{...o.link,title:n,className:"block max-w-40 truncate rounded-lg hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:o.label}),t[7]=o.label,t[8]=o.link,t[9]=n,t[10]=l):l=t[10],l}let i;return t[11]!==o.label||t[12]!==n?(i=T.jsx("span",{title:n,className:"block max-w-40 truncate",children:o.label}),t[11]=o.label,t[12]=n,t[13]=i):i=t[13],i}function xF(e){const t=Le.c(21),{items:o}=e,a=Cr(),[n,i]=Vae();let l,c,u,p,m,h;if(t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==n){const b=Wae(o,n>=0&&n<320,wF);p=i,t[10]!==a?(m=a("page.breadcrumbs"),t[10]=a,t[11]=m):m=t[11],h="min-w-0 flex-1",l="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",u=b.map((S,x)=>T.jsxs("li",{className:qt("flex min-w-0 items-center gap-2",x>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&T.jsx(Ox,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?T.jsx(Qae,{item:S.item,current:x===b.length-1}):T.jsx(Yae,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),t[0]=o,t[1]=i,t[2]=a,t[3]=n,t[4]=l,t[5]=c,t[6]=u,t[7]=p,t[8]=m,t[9]=h}else l=t[4],c=t[5],u=t[6],p=t[7],m=t[8],h=t[9];let f;t[12]!==l||t[13]!==c||t[14]!==u?(f=T.jsx("ol",{"data-slot":l,className:c,children:u}),t[12]=l,t[13]=c,t[14]=u,t[15]=f):f=t[15];let v;return t[16]!==p||t[17]!==m||t[18]!==h||t[19]!==f?(v=T.jsx("nav",{ref:p,"aria-label":m,className:h,children:f}),t[16]=p,t[17]=m,t[18]=h,t[19]=f,t[20]=v):v=t[20],v}function Jae(e){const t=Le.c(5),{items:o}=e,a=Lv();if(!a)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const n=A.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot);let i;t[0]!==n||t[1]!==o?(i=Kae(o,n),t[0]=n,t[1]=o,t[2]=i):i=t[2];let l;return t[3]!==i?(l=T.jsx(xF,{items:i}),t[3]=i,t[4]=l):l=t[4],l}function Xae(e){const t=Le.c(3),o=Lv();let a;return t[0]!==e||t[1]!==o?(a=o?T.jsx(TF,{...e}):T.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:T.jsx(xF,{items:e.items??[]})}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}const ene=Object.assign(Xae,{Provider:Gae});function tne(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{...a,"data-slot":"page",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function one(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("min-h-0 min-w-0 flex-1 overflow-auto",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{...a,"data-slot":"page-content",className:n}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}const ane={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"};function nne(e){const t=Le.c(11);let o,a,n;t[0]!==e?({className:o,width:n,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n):(o=t[1],a=t[2],n=t[3]);const i=n===void 0?"wide":n,l=ane[i];let c;t[4]!==o||t[5]!==l?(c=qt("mx-auto w-full px-4 py-6 md:px-8 md:py-8",l,o),t[4]=o,t[5]=l,t[6]=c):c=t[6];let u;return t[7]!==a||t[8]!==c||t[9]!==i?(u=T.jsx("div",{...a,"data-slot":"page-container","data-width":i,className:c}),t[7]=a,t[8]=c,t[9]=i,t[10]=u):u=t[10],u}function rne(e){const t=Le.c(9),{children:o,actions:a,className:n}=e,i=Lv();let l;t[0]!==o||t[1]!==n||t[2]!==i?(l=i?T.jsx(TF,{after:"page",parent:{label:o}}):T.jsx("div",{"data-slot":"page-title",className:qt("flex flex-wrap items-center justify-between gap-3",n),children:T.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),t[0]=o,t[1]=n,t[2]=i,t[3]=l):l=t[3];let c;t[4]!==a?(c=a&&T.jsx(PF,{children:a}),t[4]=a,t[5]=c):c=t[5];let u;return t[6]!==l||t[7]!==c?(u=T.jsxs(T.Fragment,{children:[l,c]}),t[6]=l,t[7]=c,t[8]=u):u=t[8],u}function PF(e){const t=Le.c(3),{children:o,secondary:a}=e;let n;if(t[0]!==o||t[1]!==a){const i=T.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=T.jsx(nn.Topbar.Right.Portal,{fallback:i,children:i}),t[0]=o,t[1]=a,t[2]=n}else n=t[2];return n}function ine(e){const t=Le.c(26),{breadcrumbs:o,leading:a,actions:n,navigation:i}=e;let l;t[0]!==o?(l=T.jsx(Jae,{items:o}),t[0]=o,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx(nn.Topbar.Left.Target,{}),t[2]=c):c=t[2];let u;t[3]!==a||t[4]!==l?(u=T.jsxs(nn.Topbar.Left,{className:"flex-1 gap-2",children:[a,l,c]}),t[3]=a,t[4]=l,t[5]=u):u=t[5];let p;t[6]!==n?(p=T.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:n}),t[6]=n,t[7]=p):p=t[7];let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=T.jsx(nn.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),t[8]=m):m=t[8];let h;t[9]!==p?(h=T.jsxs(nn.Topbar.Right,{className:"shrink-0 gap-2",children:[p,m]}),t[9]=p,t[10]=h):h=t[10];let f;t[11]!==u||t[12]!==h?(f=T.jsxs(nn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[u,h]}),t[11]=u,t[12]=h,t[13]=f):f=t[13];let v;t[14]!==i?(v=T.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),t[14]=i,t[15]=v):v=t[15];let b;t[16]===Symbol.for("react.memo_cache_sentinel")?(b=T.jsx(nn.Toolbar.Left.Target,{}),t[16]=b):b=t[16];let S;t[17]!==v?(S=T.jsxs(nn.Toolbar.Left,{children:[v,b]}),t[17]=v,t[18]=S):S=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=T.jsx(nn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:T.jsx(nn.Toolbar.Center.Target,{})}),t[19]=x):x=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=T.jsx(nn.Toolbar.Right,{children:T.jsx(nn.Toolbar.Right.Target,{})}),t[20]=w):w=t[20];let _;t[21]!==S?(_=T.jsxs(nn.Toolbar,{children:[S,x,w]}),t[21]=S,t[22]=_):_=t[22];let E;return t[23]!==_||t[24]!==f?(E=T.jsxs(T.Fragment,{children:[f,_]}),t[23]=_,t[24]=f,t[25]=E):E=t[25],E}function sne(e){const t=Le.c(11);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);const n=Cr();let i;t[3]!==n?(i=n("page.views"),t[3]=n,t[4]=i):i=t[4];let l;t[5]!==o?(l=qt("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),t[5]=o,t[6]=l):l=t[6];let c;return t[7]!==a||t[8]!==i||t[9]!==l?(c=T.jsx("nav",{"aria-label":i,...a,"data-slot":"page-tabs",className:l}),t[7]=a,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function lne(e){const t=Le.c(14);let o,a,n,i;t[0]!==e?({active:o,asChild:i,className:a,...n}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=n,t[4]=i):(o=t[1],a=t[2],n=t[3],i=t[4]);const l=i===void 0?!1:i,c=l?void 0:"button",u=l&&o?"page":void 0,p=l?void 0:o;let m;t[5]!==a?(m=qt("shrink-0",a),t[5]=a,t[6]=m):m=t[6];let h;return t[7]!==l||t[8]!==n||t[9]!==c||t[10]!==u||t[11]!==p||t[12]!==m?(h=T.jsx(Al,{asChild:l,variant:"tab",size:"sm",...n,type:c,"aria-current":u,"aria-pressed":p,"data-slot":"page-tab",className:m}),t[7]=l,t[8]=n,t[9]=c,t[10]=u,t[11]=p,t[12]=m,t[13]=h):h=t[13],h}const ld=Object.assign(tne,{Header:ine,Tabs:sne,Tab:lne,Actions:PF,Content:one,Container:nne,Title:rne,Breadcrumbs:ene});var ge=typeof window<"u"?window:void 0,ra=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ra.self=ra),typeof File>"u"&&(ra.File=function(){});var kn=ra?.navigator,Fe=ra?.document,Ta=ra?.location,sw=ra?.fetch,lw=ra!=null&&ra.XMLHttpRequest&&"withCredentials"in new ra.XMLHttpRequest?ra.XMLHttpRequest:void 0,UD=ra?.AbortController,cne=ra?.CompressionStream,rn=kn?.userAgent,et=ge??{},$D="1.372.3",Ga={DEBUG:!1,LIB_VERSION:$D,LIB_NAME:"web",JS_SDK_VERSION:$D};function qD(e,t,o,a,n,i,l){try{var c=e[i](l),u=c.value}catch(p){return void o(p)}c.done?t(u):Promise.resolve(u).then(a,n)}function Wn(e){return function(){var t=this,o=arguments;return new Promise((function(a,n){var i=e.apply(t,o);function l(u){qD(i,a,n,l,c,"next",u)}function c(u){qD(i,a,n,l,c,"throw",u)}l(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},Oe.apply(null,arguments)}function CF(e,t){if(e==null)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;o[a]=e[a]}return o}function cw(){return cw=Wn((function*(e,t,o){t===void 0&&(t=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),i=n.write(new TextEncoder().encode(e)).then((()=>n.close())).catch((function(){var u=Wn((function*(p){try{yield n.abort(p)}catch{}throw p}));return function(p){return u.apply(this,arguments)}})()),l=new Response(a.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(u){if(o!=null&&o.rethrow)throw u;return t&&console.error("Failed to gzip compress data",u),null}})),cw.apply(this,arguments)}var dne=["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"],VD=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return dne.concat(t).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},une=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function xt(e,t){return e.indexOf(t)!==-1}var Bv=function(e){return e.trim()},dw=function(e){return e.replace(/^\$/,"")},kF=Object.prototype,EF=kF.hasOwnProperty,Fv=kF.toString,Nt=Array.isArray||function(e){return Fv.call(e)==="[object Array]"},_i=e=>typeof e=="function",Lo=e=>e===Object(e)&&!Nt(e),Xc=e=>{if(Lo(e)){for(var t in e)if(EF.call(e,t))return!1;return!0}return!1},qe=e=>e===void 0,xo=e=>Fv.call(e)=="[object String]",ef=e=>xo(e)&&e.trim().length===0,Ni=e=>e===null,Pt=e=>qe(e)||Ni(e),er=e=>Fv.call(e)=="[object Number]"&&e==e,Gc=e=>er(e)&&e>0,$r=e=>Fv.call(e)==="[object Boolean]",pne=e=>e instanceof FormData,hne=e=>xt(une,e);function AF(e){return e===null||typeof e!="object"}function Mf(e,t){return{}.toString.call(e)==="[object "+t+"]"}function Mx(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var mne=[!0,"true",1,"1","yes"],pS=e=>xt(mne,e),gne=[!1,"false",0,"0","no"];function qr(e,t,o,a,n){return t>o&&(a.warn("min cannot be greater than max."),t=o),er(e)?e>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(a.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),qr(n||o,t,o,a))}let fne=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=qr(t.bucketSize,0,100,t.Gt),this.Wt=qr(t.refillRate,0,this.Ut,t.Gt),this.Xt=qr(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var a=Math.floor((o-t.lastAccess)/this.Xt);a>0&&(t.tokens=Math.min(t.tokens+a*this.Wt,this.Ut),t.lastAccess=t.lastAccess+a*this.Xt)}consumeRateLimit(t){var o,a=Date.now(),n=String(t),i=this.$t[n];return i?this.Jt(i,a):this.$t[n]=i={tokens:this.Ut,lastAccess:a},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}};var Rg,HD,hS,An="Mobile",Nf="iOS",ki="Android",Td="Tablet",RF=ki+" "+Td,DF="iPad",OF="Apple",MF=OF+" Watch",cp="Safari",wd="BlackBerry",NF="Samsung",IF=NF+"Browser",LF=NF+" Internet",Cl="Chrome",vne=Cl+" OS",BF=Cl+" "+Nf,Nx="Internet Explorer",FF=Nx+" "+An,Ix="Opera",bne=Ix+" Mini",Lx="Edge",jF="Microsoft "+Lx,cd="Firefox",zF=cd+" "+Nf,Ap="Nintendo",Rp="PlayStation",dd="Xbox",UF=ki+" "+An,$F=An+" "+cp,Xu="Windows",uw=Xu+" Phone",GD="Nokia",pw="Ouya",qF="Generic",yne=qF+" "+An.toLowerCase(),VF=qF+" "+Td.toLowerCase(),hw="Konqueror",Ha="(\\d+(\\.\\d+)?)",mS=new RegExp("Version/"+Ha),Sne=new RegExp(dd,"i"),Tne=new RegExp(Rp+" \\w+","i"),wne=new RegExp(Ap+" \\w+","i"),Bx=new RegExp(wd+"|PlayBook|BB10","i"),_ne={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},HF=function(e,t){return t=t||"",xt(e," OPR/")&&xt(e,"Mini")?bne:xt(e," OPR/")?Ix:Bx.test(e)?wd:xt(e,"IE"+An)||xt(e,"WPDesktop")?FF:xt(e,IF)?LF:xt(e,Lx)||xt(e,"Edg/")?jF:xt(e,"FBIOS")?"Facebook "+An:xt(e,"UCWEB")||xt(e,"UCBrowser")?"UC Browser":xt(e,"CriOS")?BF:xt(e,"CrMo")||xt(e,Cl)?Cl:xt(e,ki)&&xt(e,cp)?UF:xt(e,"FxiOS")?zF:xt(e.toLowerCase(),hw.toLowerCase())?hw:((o,a)=>a&&xt(a,OF)||(function(n){return xt(n,cp)&&!xt(n,Cl)&&!xt(n,ki)})(o))(e,t)?xt(e,An)?$F:cp:xt(e,cd)?cd:xt(e,"MSIE")||xt(e,"Trident/")?Nx:xt(e,"Gecko")?cd:""},xne={[FF]:[new RegExp("rv:"+Ha)],[jF]:[new RegExp(Lx+"?\\/"+Ha)],[Cl]:[new RegExp("("+Cl+"|CrMo)\\/"+Ha)],[BF]:[new RegExp("CriOS\\/"+Ha)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Ha)],[cp]:[mS],[$F]:[mS],[Ix]:[new RegExp("(Opera|OPR)\\/"+Ha)],[cd]:[new RegExp(cd+"\\/"+Ha)],[zF]:[new RegExp("FxiOS\\/"+Ha)],[hw]:[new RegExp("Konqueror[:/]?"+Ha,"i")],[wd]:[new RegExp(wd+" "+Ha),mS],[UF]:[new RegExp("android\\s"+Ha,"i")],[LF]:[new RegExp(IF+"\\/"+Ha)],[Nx]:[new RegExp("(rv:|MSIE )"+Ha)],Mozilla:[new RegExp("rv:"+Ha)]},Pne=function(e,t){var o=HF(e,t),a=xne[o];if(qe(a))return null;for(var n=0;a.length>n;n++){var i=e.match(a[n]);if(i)return parseFloat(i[i.length-2])}return null},KD=[[new RegExp(dd+"; "+dd+" (.*?)[);]","i"),e=>[dd,e&&e[1]||""]],[new RegExp(Ap,"i"),[Ap,""]],[new RegExp(Rp,"i"),[Rp,""]],[Bx,[wd,""]],[new RegExp(Xu,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[uw,""];if(new RegExp(An).test(t)&&!/IEMobile\b/.test(t))return[Xu+" "+An,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var a=_ne[o[1]]||"";return/arm/i.test(t)&&(a="RT"),[Xu,a]}return[Xu,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Nf,[e[3],e[4],e[5]||"0"].join(".")]:[Nf,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=qe(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ki+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ki+")","i"),e=>e&&e[2]?[ki,[e[2],e[3],e[4]||"0"].join(".")]:[ki,""]],[/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/,[vne,""]],[/Linux|debian/i,["Linux",""]]],WD=function(e){return wne.test(e)?Ap:Tne.test(e)?Rp:Sne.test(e)?dd:new RegExp(pw,"i").test(e)?pw:new RegExp("("+uw+"|WPDesktop)","i").test(e)?uw:/iPad/.test(e)?DF:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?MF:Bx.test(e)?wd:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(GD,"i").test(e)?GD:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(An).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ki:RF:new RegExp("(pda|"+An+")","i").test(e)?yne:new RegExp(Td,"i").test(e)&&!new RegExp(Td+" pc","i").test(e)?VF:""},Cne=e=>e instanceof Error,GF={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},kne=GF.info;function KF(e){if($r(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Nt(e))return{arrayValue:{values:e.map((t=>KF(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function YD(e){var t=[];for(var o in e){var a=e[o];Ni(a)||qe(a)||t.push({key:o,value:KF(a)})}return t}function Ene(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return hS&&o.length===HD||(HD=o.length,hS=o.reduce(((a,n)=>{Rg||(Rg={});var i=Rg[n];if(i)a[i[0]]=i[1];else for(var l=e(n),c=l.length-1;c>=0;c--){var u=l[c],p=u?.filename,m=t[n];if(p&&m){a[p]=m,Rg[n]=[p,m];break}}return a}),{})),hS}}class Ane{constructor(t,o,a){a===void 0&&(a=[]),this.coercers=t,this.stackParser=o,this.modifiers=a}buildFromUnknown(t,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(n,i);return{$exception_list:this.convertToExceptionList(l,a),$exception_level:"error"}}modifyFrames(t){var o=this;return Wn((function*(){for(var a of t)a.stacktrace&&a.stacktrace.frames&&Nt(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var a,n;return t.cause!=null&&(a=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(n=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Oe({},t,{cause:a,stack:n})}applyChunkIds(t,o){return t.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(t,o){for(var a of this.coercers)if(a.match(t))return a.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Wn((function*(){var a=t;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(t,o){var a,n,i,l={type:t.type,value:t.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Oe({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:Ene(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,a){a===void 0&&(a=0);var n=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Oe({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:t,apply:i=>n(i,a),next:i=>n(i,a+1)})}}var _d="?";function mw(e,t,o,a,n){var i={platform:e,filename:t,function:o==="<anonymous>"?_d:o,in_app:!0};return qe(a)||(i.lineno=a),qe(n)||(i.colno=n),i}var WF=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,a=e.indexOf("safari-web-extension")!==-1;return o||a?[e.indexOf("@")!==-1?e.split("@")[0]:_d,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},Rne=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Dne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,One=/\((\S*)(?::(\d+))(?::(\d+))\)/,Mne=(e,t)=>{var o=Rne.exec(e);if(o){var[,a,n,i]=o;return mw(t,a,_d,+n,+i)}var l=Dne.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=One.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[u,p]=WF(l[1]||_d,l[2]);return mw(t,p,u,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},Nne=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ine=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Lne=(e,t)=>{var o=Nne.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=Ine.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],i=o[1]||_d;return[i,n]=WF(i,n),mw(t,n,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},ZD=/\(error: (.*)\)/;let Bne=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var a=xo(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:a?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return Mf(t,"DOMException")}isDOMError(t){return Mf(t,"DOMError")}};class Fne{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var a=t.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(t){return t.stacktrace||t.stack||void 0}}let jne=class{constructor(){}match(t){return Mf(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var a;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var zne=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Une=class{match(t){return typeof t=="string"}coerce(t,o){var a,[n,i]=this.getInfos(t);return{type:n??"Error",value:i??t,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(t){var o="Error",a=t,n=t.match(zne);return n&&(o=n[1],a=n[2]),[o,a]}};var $ne=["fatal","error","warning","log","info","debug"];function YF(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var a=o.length;a>0;a--){var n=o.slice(0,a).join(", ");if(t>=n.length)return a===o.length?n:n.length>t?n.slice(0,t)+"...":n}return""}let qne=class{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var a,n=this.getErrorPropertyFromObject(t);return n?o.apply(n):{type:this.getType(t),value:this.getValue(t),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Mx(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var a=this.getObjectClassName(t);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+YF(t)}isSeverityLevel(t){return xo(t)&&!ef(t)&&$ne.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var a=t[o];if(Cne(a))return a}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}},Vne=class{match(t){return Mx(t)}coerce(t,o){var a,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+YF(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Hne=class{match(t){return AF(t)}coerce(t,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Gne=class{match(t){return Mf(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!Mx(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var a,n=this.getUnhandledRejectionReason(t);return AF(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}:o.apply(n)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var If="$message",Lf="$timestamp",Kne=new Set([If,Lf]),gS={enabled:!0,max_bytes:32768};function Bf(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:gS.enabled,max_bytes:Yne(e.max_bytes,gS.max_bytes)}:Oe({},gS)}let Wne=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=Bf(t)}setConfig(t){this.Bt=Bf(t),this.er()}add(t){var o=(function(n){var i=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(i)try{var l=JSON.parse(i);if(!Lo(l))return;var c=l,u=c[If],p=c[Lf];return!xo(u)||u.trim().length===0||!xo(p)&&!er(p)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var i=encodeURIComponent(n),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);a>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:a}),this.Qt+=a,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}};function Yne(e,t){if(!er(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var ZF=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,a={C(n){if(ge&&(Ga.DEBUG||et.POSTHOG_DEBUG||o)&&!qe(ge.console)&&ge.console){for(var i=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],l=arguments.length,c=new Array(l>1?l-1:0),u=1;l>u;u++)c[u-1]=arguments[u];i(e,...c)}},info(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("log",...i)},warn(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("warn",...i)},error(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];a.C("error",...i)},critical(){for(var n=arguments.length,i=new Array(n),l=0;n>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,i)=>ZF(e+" "+n,i)};return a},je=ZF("[PostHog.js]"),So=je.createLogger,Zne=So("[ExternalScriptsLoader]"),fS=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return Zne.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=Fe?.querySelectorAll("script");if(a){for(var n,i=function(){if(a[l].src===t){var u=a[l];return u.__posthog_loading_callback_fired?{v:o()}:(u.addEventListener("load",(p=>{u.__posthog_loading_callback_fired=!0,o(void 0,p)})),u.onerror=p=>o(p),{v:void 0})}},l=0;a.length>l;l++)if(n=i())return n.v}var c=()=>{if(!Fe)return o("document not found");var u=Fe.createElement("script");if(u.type="text/javascript",u.crossOrigin="anonymous",u.src=t,u.onload=h=>{u.__posthog_loading_callback_fired=!0,o(void 0,h)},u.onerror=h=>o(h),e.config.prepare_external_dependency_script&&(u=e.config.prepare_external_dependency_script(u)),!u)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Fe.head.appendChild(u);else{var p,m=Fe.querySelectorAll("body > script");m.length>0?(p=m[0].parentNode)==null||p.insertBefore(u,m[0]):Fe.body.appendChild(u)}};Fe!=null&&Fe.body?c():Fe?.addEventListener("DOMContentLoaded",c)};et.__PosthogExtensions__=et.__PosthogExtensions__||{},et.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var a;if(e.config.__preview_external_dependency_versioned_paths)a=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}a=e.requestRouter.endpointFor("assets",n)}fS(e,a,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");fS(e,l,o)}},et.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var a=e.requestRouter.endpointFor("api",t);fS(e,a,o)};var QF="$people_distinct_id",Ff="$device_id",ep="__alias",tp="__timers",gw="$autocapture_disabled_server_side",fw="$heatmaps_enabled_server_side",vw="$exception_capture_enabled_server_side",bw="$error_tracking_suppression_rules",yw="$error_tracking_capture_extension_exceptions",Sw="$web_vitals_enabled_server_side",Fx="$dead_clicks_enabled_server_side",Tw="$product_tours_enabled_server_side",ww="$web_vitals_allowed_metrics",op="$session_recording_remote_config",JF="$replay_override_sampling",XF="$replay_override_linked_flag",e3="$replay_override_url_trigger",t3="$replay_override_event_trigger",jf="$sesid",jx="$session_is_sampled",ed="$enabled_feature_flags",tf="$active_feature_flags",ap="$early_access_features",_w="$feature_flag_details",xw="$feature_flag_payloads",Pw="$feature_flag_request_id",wi="$override_feature_flags",Kc="$override_feature_flag_payloads",np="$stored_person_properties",fl="$stored_group_properties",Cw="$surveys",kw="$surveys_activated",of="ph_product_tours",dp="$flag_call_reported",Ew="$flag_call_reported_session_id",Aw="$feature_flag_errors",zf="$feature_flag_evaluated_at",pr="$user_state",Rw="$client_session_props",Dw="$capture_rate_limit",Ow="$initial_campaign_params",Mw="$initial_referrer_info",Uf="$initial_person_info",$f="$epp",o3="__POSTHOG_TOOLBAR__",Dg="$posthog_cookieless",a3="$sdk_debug_extensions_init_method",n3="$sdk_debug_extensions_init_time_ms",r3="$sdk_debug_recording_script_not_loaded",zx="PostHog loadExternalDependency extension not found.",vl="on_reject",xi="always",Lc="anonymous",Bc="identified",Nw="identified_only",qf="visibilitychange",Vf="beforeunload",Wc="$pageview",vS="$pageleave",bS="$identify",QD="$groupidentify";function Og(e,t){Nt(e)&&e.forEach(t)}function mo(e,t){if(!Pt(e))if(Nt(e))e.forEach(t);else if(pne(e))e.forEach(((a,n)=>t(a,n)));else for(var o in e)EF.call(e,o)&&t(e[o],o)}var Do=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;t>a;a++)o[a-1]=arguments[a];for(var n of o)for(var i in n)n[i]!==void 0&&(e[i]=n[i]);return e};function af(e){for(var t=Object.keys(e),o=t.length,a=new Array(o);o--;)a[o]=[t[o],e[t[o]]];return a}var JD=function(e){try{return e()}catch{return}},Qne=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),a=0;t>a;a++)o[a]=arguments[a];return e.apply(this,o)}catch(n){je.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),je.critical(n)}}},Ux=function(e){var t={};return mo(e,(function(o,a){(xo(o)&&o.length>0||er(o))&&(t[a]=o)})),t},Jne=["herokuapp.com","vercel.app","netlify.app"];function Xne(e){var t=e?.hostname;if(!xo(t))return!1;var o=t.split(".").slice(-2).join(".");for(var a of Jne)if(o===a)return!1;return!0}function Yo(e,t,o,a){var{capture:n=!1,passive:i=!0}=a??{};e?.addEventListener(t,o,{capture:n,passive:i})}function i3(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return er(e)&&isFinite(e)&&Math.floor(e)===e});class Hf{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,a,n){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>t||0>o||0>a||0>n||t>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|a>>>24,i[9]=a>>>16,i[10]=a>>>8,i[11]=a,i[12]=n>>>24,i[13]=n>>>16,i[14]=n>>>8,i[15]=n,new Hf(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Hf(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var a=this.bytes[o]-t.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class ere{constructor(){this.I=0,this.S=0,this.k=new tre}generate(){var t=this.generateOrAbort();if(qe(t)){this.I=0;var o=this.generateOrAbort();if(qe(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Hf.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var XD,s3=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!qe(ge.crypto)&&crypto.getRandomValues&&(s3=e=>crypto.getRandomValues(e));class tre{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(s3(this.T),this.N=0),this.T[this.N++]}}var Ts=()=>ore().toString(),ore=()=>(XD||(XD=new ere)).generate(),Lu="",are=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Ur={R:()=>!!Fe,B(e){je.error("cookieStore error: "+e)},O(e){if(Fe){try{for(var t=e+"=",o=Fe.cookie.split(";").filter((i=>i.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(Ur.O(e))||{}}catch{}return t},M(e,t,o,a,n){if(Fe)try{var i="",l="",c=(function(m,h){if(h){var f=(function(b,S){if(S===void 0&&(S=Fe),Lu)return Lu;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var x=b.split("."),w=Math.min(x.length,8),_="dmn_chk_"+Ts();!Lu&&w--;){var E=x.slice(w).join("."),C=_+"=1;domain=."+E+";path=/";S.cookie=C+";max-age=3",S.cookie.includes(_)&&(S.cookie=C+";max-age=0",Lu=E)}return Lu})(m);if(!f){var v=(b=>{var S=b.match(are);return S?S[0]:""})(m);v!==f&&je.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(Fe.location.hostname,a);if(o){var u=new Date;u.setTime(u.getTime()+864e5*o),i="; expires="+u.toUTCString()}n&&(l="; secure");var p=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return p.length>3686.4&&je.warn("cookieStore warning: large cookie, len="+p.length),Fe.cookie=p,p}catch{return}},F(e,t){if(Fe!=null&&Fe.cookie)try{Ur.M(e,"",-1,t)}catch{return}}},yS=null,_o={R(){if(!Ni(yS))return yS;var e=!0;if(qe(ge))e=!1;else try{var t="__mplssupport__";_o.M(t,"xyz"),_o.O(t)!=='"xyz"'&&(e=!1),_o.F(t)}catch{e=!1}return e||je.error("localStorage unsupported; falling back to cookie store"),yS=e,e},B(e){je.error("localStorage error: "+e)},O(e){try{return ge?.localStorage.getItem(e)}catch(t){_o.B(t)}return null},Z(e){try{return JSON.parse(_o.O(e))||{}}catch{}return null},M(e,t){try{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(o){_o.B(o)}},F(e){try{ge?.localStorage.removeItem(e)}catch(t){_o.B(t)}}},nre=[Ff,"distinct_id",jf,jx,$f,Uf,pr],Mg={},rre={R:()=>!0,B(e){je.error("memoryStorage error: "+e)},O:e=>Mg[e]||null,Z:e=>Mg[e]||null,M(e,t){Mg[e]=t},F(e){delete Mg[e]}},dl=null,wa={R(){if(!Ni(dl))return dl;if(dl=!0,qe(ge))dl=!1;else try{var e="__support__";wa.M(e,"xyz"),wa.O(e)!=='"xyz"'&&(dl=!1),wa.F(e)}catch{dl=!1}return dl},B(e){je.error("sessionStorage error: ",e)},O(e){try{return ge?.sessionStorage.getItem(e)}catch(t){wa.B(t)}return null},Z(e){try{return JSON.parse(wa.O(e))||null}catch{}return null},M(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){wa.B(o)}},F(e){try{ge?.sessionStorage.removeItem(e)}catch(t){wa.B(t)}}};class ire{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===xi||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===vl}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return pS(t)?1:xt(gne,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?_o:Ur;if(!this.ar||this.ar!==o){this.ar=o;var a=t==="localStorage"?Ur:_o;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(pS(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[kn?.doNotTrack,kn?.msDoNotTrack,et.doNotTrack].some((t=>pS(t)))}}var Ng=So("[Dead Clicks]"),sre=()=>!0,lre=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(Fx)),a=e.instance.config.capture_dead_clicks;return $r(a)?a:!!Lo(a)||o};class eO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,a){this.instance=t,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[Fx]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Ng.error("failed to load script",n):t()}))}hr(){var t;if(Fe){if(!this.lr&&(t=et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Lo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=et.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Fe),Ng.info("starting...")}}else Ng.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Ng.info("stopping..."))}}var SS=So("[SegmentIntegration]"),l3="posthog-js";function c3(e,t){var{organization:o,projectId:a,prefix:n,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var u,p,m,h,f;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var b,S=((u=c.exception)==null?void 0:u.values)||[],x=S.map((_=>Oe({},_,{stacktrace:_.stacktrace?Oe({},_.stacktrace,{type:"raw",frames:(_.stacktrace.frames||[]).map((E=>Oe({},E,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((p=S[0])==null?void 0:p.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=S[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=S[0])==null?void 0:f.type,$sentry_tags:c.tags};return o&&a&&(w.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),l&&((b=e.exceptions)==null||b.sendExceptionEvent(w)),c}}class cre{constructor(t,o,a,n,i,l){this.name=l3,this.setupOnce=function(c){c(c3(t,{organization:o,projectId:a,prefix:n,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class tO{constructor(t){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(je.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var a,n=this.gr(t,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),n}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:u,maxContentHeight:p,lastContentY:m,maxContentY:h}=i;if(!(qe(l)||qe(c)||qe(u)||qe(p)||qe(m)||qe(h))){l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),p=Math.ceil(p),m=Math.ceil(m),h=Math.ceil(h);var f=l>1?qr(c/l,0,1,je):1,v=l>1?qr(u/l,0,1,je):1,b=p>1?qr(m/p,0,1,je):1,S=p>1?qr(h/p,0,1,je):1;n=Do(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:u,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(t.getTime()-a.timestamp.getTime())/1e3),n}}var dre={[QF]:{exposure:"hidden"},[ep]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[tp]:{exposure:"hidden"},[gw]:{exposure:"event"},[fw]:{exposure:"hidden"},[vw]:{exposure:"event"},[bw]:{exposure:"hidden"},[yw]:{exposure:"event"},[Sw]:{exposure:"event"},[Fx]:{exposure:"event"},[Tw]:{exposure:"hidden"},[ww]:{exposure:"event"},[op]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[jf]:{exposure:"hidden"},[jx]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[ed]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Lo(e))return{};for(var t={},o=Object.keys(e),a=0;o.length>a;a++)t["$feature/"+o[a]]=e[o[a]];return t}},[tf]:{exposure:"event"},[ap]:{exposure:"hidden"},[_w]:{exposure:"hidden"},[xw]:{exposure:"event"},[Pw]:{exposure:"event"},[wi]:{exposure:"event"},[Kc]:{exposure:"hidden"},[np]:{exposure:"hidden"},[fl]:{exposure:"hidden"},[Cw]:{exposure:"hidden"},[kw]:{exposure:"event"},[of]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[dp]:{exposure:"hidden"},[Ew]:{exposure:"hidden"},[Aw]:{exposure:"hidden"},[zf]:{exposure:"hidden"},[pr]:{exposure:"hidden"},[Rw]:{exposure:"hidden"},[Dw]:{exposure:"hidden"},[Ow]:{exposure:"hidden"},[Mw]:{exposure:"hidden"},[Uf]:{exposure:"hidden"},[$f]:{exposure:"hidden"},[JF]:{exposure:"event"},[XF]:{exposure:"event"},[e3]:{exposure:"event"},[t3]:{exposure:"event"},[a3]:{exposure:"event"},[n3]:{exposure:"event"},[r3]:{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"}},ure=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Gf=e=>{var t=Fe?.createElement("a");return qe(t)?null:(t.href=e,t)},Kf=function(e,t){for(var o,a=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var i=a[n].split("=");if(i[0]===t){o=i;break}}if(!Nt(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{je.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},Dp=function(e,t,o){if(!e||!t||!t.length)return e;for(var a=e.split("#"),n=a[1],i=(a[0]||"").split("?"),l=i[1],c=i[0],u=(l||"").split("&"),p=[],m=0;u.length>m;m++){var h=u[m].split("=");Nt(h)&&(t.includes(h[0])?p.push(h[0]+"="+o):p.push(u[m]))}var f=c;return l!=null&&(f+="?"+p.join("&")),n!=null&&(f+="#"+n),f},Wf=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},Ig="https?://(.*)",xd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],pre=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...xd],Op="<masked>",hre=["li_fat_id"];function d3(e,t,o){if(!Fe)return{};var a,n=t?[...xd,...o||[]]:[],i=u3(Dp(Fe.URL,n,Op),e),l=(a={},mo(hre,(function(c){var u=Ur.O(c);a[c]=u||null})),a);return Do(l,i)}function u3(e,t){var o=pre.concat(t||[]),a={};return mo(o,(function(n){var i=Kf(e,n);a[n]=i||null})),a}function p3(e){var t=(function(i){return i?i.search(Ig+"google.([^/?]*)")===0?"google":i.search(Ig+"bing.com")===0?"bing":i.search(Ig+"yahoo.com")===0?"yahoo":i.search(Ig+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",a={};if(!Ni(t)){a.$search_engine=t;var n=Fe?Kf(Fe.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function oO(){return navigator.language||navigator.userLanguage}var Yf="$direct";function h3(){return Fe?.referrer||Yf}function m3(e,t){var o=e?[...xd,...t||[]]:[],a=Ta?.href.substring(0,1e3);return{r:h3().substring(0,1e3),u:a?Dp(a,o,Op):void 0}}function g3(e){var t,{r:o,u:a}=e,n={$referrer:o,$referring_domain:o==null?void 0:o==Yf?Yf:(t=Gf(o))==null?void 0:t.host};if(a){n.$current_url=a;var i=Gf(a);n.$host=i?.host,n.$pathname=i?.pathname;var l=u3(a);Do(n,l)}if(o){var c=p3(o);Do(n,c)}return n}function f3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function mre(){try{return new Date().getTimezoneOffset()}catch{return}}var gre=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class TS{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(a=>{var n="";return a.token&&(n=a.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),a.persistence_name?"ph_"+a.persistence_name:"ph_"+n+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&je.info("Persistence loaded",t.persistence,Oe({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){gre.indexOf(t.persistence.toLowerCase())===-1&&(je.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var i=[...nre,...n];return Oe({},_o,{Z(l){try{var c={};try{c=Ur.Z(l)||{}}catch{}var u=Do(c,JSON.parse(_o.O(l)||"{}"));return _o.M(l,u),u}catch{}return null},M(l,c,u,p,m,h){try{_o.M(l,c,void 0,void 0,h);var f={};i.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Ur.M(l,f,u,p,m,h)}catch(v){_o.B(v)}},F(l,c){try{ge?.localStorage.removeItem(l),Ur.F(l,c)}catch(u){_o.B(u)}}})})(t.cookie_persisted_properties||[]),a=t.persistence.toLowerCase();return a==="localstorage"&&_o.R()?_o:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&wa.R()?wa:a==="memory"?rre:a==="cookie"?Ur:o.R()?o:Ur}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[zf];return!a||typeof a!="number"||Date.now()-a>o}properties(){var t={};return mo(this.props,((o,a)=>{var n=(i=>{var l=dre[i];if(l)return l;for(var[c,u]of ure)if(i.indexOf(c)===0)return u})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===ed?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Do(t,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(t[a]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=Do({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,a){if(Lo(t)){qe(o)&&(o="None"),this.Ir=qe(a)?this.kr:a;var n=!1;if(mo(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),n=!0)})),n)return this.save(),!0}return!1}register(t,o){if(Lo(t)){this.Ir=qe(o)?this.kr:o;var a=!1;if(mo(t,((n,i)=>{t.hasOwnProperty(i)&&this.props[i]!==n&&(this.Tr(i,n),a=!0)})),a)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=d3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Xc(Ux(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Fe?.referrer)?p3(t):{})}update_referrer_info(){var t;this.register_once({$referrer:h3(),$referring_domain:Fe!=null&&Fe.referrer&&((t=Gf(Fe.referrer))==null?void 0:t.host)||Yf},void 0)}set_initial_person_info(){this.props[Ow]||this.props[Mw]||this.register_once({[Uf]:m3(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};mo([Mw,Ow],(l=>{var c=this.props[l];c&&mo(c,(function(u,p){t["$initial_"+dw(p)]=u}))}));var o,a,n=this.props[Uf];if(n){var i=(o=g3(n),a={},mo(o,(function(l,c){a["$initial_"+dw(c)]=l})),a);Do(t,i)}return t}safe_merge(t){return mo(this.props,(function(o,a){a in t||(t[a]=o)})),t}update_config(t,o,a){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!a),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var u=[...l].sort(),p=[...c].sort();return u.every(((m,h)=>m===p[h]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(t),i=this.props;this.clear(),this.nr=n,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var a=this.props[tp]||{};a[t]=o,this.Tr(tp,a),this.save()}remove_event_timer(t){var o=this.props[tp]||{},a=o[t];return qe(a)||(delete o[t],this.Tr(tp,o),this.save()),a}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var Bu={Activation:"events",Cancellation:"cancelEvents"},wS={Popover:"popover",API:"api",Widget:"widget"},rp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},_S={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Iw={Popover:"popover",Inline:"inline"},fre={SHOWN:"product tour shown"},aO={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},nO=So("[RateLimiter]");class vre{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{nO.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void nO.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,a,n;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),u=(o=(a=this.instance.persistence)==null?void 0:a.get_property(Dw))!==null&&o!==void 0?o:{tokens:i,last:c};u.tokens+=(c-u.last)/1e3*l,u.last=c,u.tokens>i&&(u.tokens=i);var p=1>u.tokens;return p||t||(u.tokens=Math.max(0,u.tokens-1)),!p||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=p,(n=this.instance.persistence)==null||n.set_property(Dw,u),{isRateLimited:p,remainingTokens:u.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var Fu=So("[RemoteConfig]");class v3{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,a;(o=et.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return Fu.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void Fu.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return Fu.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){Fu.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Fe?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||Fu.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var Br={GZipJS:"gzip-js",Base64:"base64"},Xn=Uint8Array,cn=Uint16Array,Pd=Uint32Array,$x=new Xn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),qx=new Xn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),rO=new Xn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),b3=function(e,t){for(var o=new cn(31),a=0;31>a;++a)o[a]=t+=1<<e[a-1];var n=new Pd(o[30]);for(a=1;30>a;++a)for(var i=o[a];o[a+1]>i;++i)n[i]=i-o[a]<<5|a;return[o,n]},y3=b3($x,2),Lw=y3[1];y3[0][28]=258,Lw[258]=28;for(var iO=b3(qx,0)[1],S3=new cn(32768),go=0;32768>go;++go){var Fc=(43690&go)>>>1|(21845&go)<<1;S3[go]=((65280&(Fc=(61680&(Fc=(52428&Fc)>>>2|(13107&Fc)<<2))>>>4|(3855&Fc)<<4))>>>8|(255&Fc)<<8)>>>1}var up=function(e,t,o){for(var a=e.length,n=0,i=new cn(t);a>n;++n)++i[e[n]-1];var l,c=new cn(t);for(n=0;t>n;++n)c[n]=c[n-1]+i[n-1]<<1;for(l=new cn(a),n=0;a>n;++n)l[n]=S3[c[e[n]-1]++]>>>15-e[n];return l},Dl=new Xn(288);for(go=0;144>go;++go)Dl[go]=8;for(go=144;256>go;++go)Dl[go]=9;for(go=256;280>go;++go)Dl[go]=7;for(go=280;288>go;++go)Dl[go]=8;var Zf=new Xn(32);for(go=0;32>go;++go)Zf[go]=5;var bre=up(Dl,9),yre=up(Zf,5),T3=function(e){return(e/8>>0)+(7&e&&1)},w3=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var a=new(e instanceof cn?cn:e instanceof Pd?Pd:Xn)(o-t);return a.set(e.subarray(t,o)),a},Si=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8},ju=function(e,t,o){var a=t/8>>0;e[a]|=o<<=7&t,e[a+1]|=o>>>8,e[a+2]|=o>>>16},xS=function(e,t){for(var o=[],a=0;e.length>a;++a)e[a]&&o.push({s:a,f:e[a]});var n=o.length,i=o.slice();if(!n)return[new Xn(0),0];if(n==1){var l=new Xn(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(k,R){return k.f-R.f})),o.push({s:-1,f:25001});var c=o[0],u=o[1],p=0,m=1,h=2;for(o[0]={s:-1,f:c.f+u.f,l:c,r:u};m!=n-1;)c=o[o[h].f>o[p].f?p++:h++],u=o[p!=m&&o[h].f>o[p].f?p++:h++],o[m++]={s:-1,f:c.f+u.f,l:c,r:u};var f=i[0].s;for(a=1;n>a;++a)i[a].s>f&&(f=i[a].s);var v=new cn(f+1),b=Bw(o[m-1],v,0);if(b>t){a=0;var S=0,x=b-t,w=1<<x;for(i.sort((function(k,R){return v[R.s]-v[k.s]||k.f-R.f}));n>a;++a){var _=i[a].s;if(t>=v[_])break;S+=w-(1<<b-v[_]),v[_]=t}for(S>>>=x;S>0;){var E=i[a].s;t>v[E]?S-=1<<t-v[E]++-1:++a}for(;a>=0&&S;--a){var C=i[a].s;v[C]==t&&(--v[C],++S)}b=t}return[new Xn(v),b]},Bw=function(e,t,o){return e.s==-1?Math.max(Bw(e.l,t,o+1),Bw(e.r,t,o+1)):t[e.s]=o},sO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new cn(++t),a=0,n=e[0],i=1,l=function(u){o[a++]=u},c=1;t>=c;++c)if(e[c]==n&&c!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(n),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(n);i=1,n=e[c]}return[o.subarray(0,a),t]},zu=function(e,t){for(var o=0,a=0;t.length>a;++a)o+=e[a]*t[a];return o},Fw=function(e,t,o){var a=o.length,n=T3(t+2);e[n]=255&a,e[n+1]=a>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var i=0;a>i;++i)e[n+i+4]=o[i];return 8*(n+4+a)},lO=function(e,t,o,a,n,i,l,c,u,p,m){Si(t,m++,o),++n[256];for(var h=xS(n,15),f=h[0],v=h[1],b=xS(i,15),S=b[0],x=b[1],w=sO(f),_=w[0],E=w[1],C=sO(S),k=C[0],R=C[1],D=new cn(19),O=0;_.length>O;++O)D[31&_[O]]++;for(O=0;k.length>O;++O)D[31&k[O]]++;for(var L=xS(D,7),$=L[0],B=L[1],U=19;U>4&&!$[rO[U-1]];--U);var j,K,ne,H,Z=p+5<<3,te=zu(n,Dl)+zu(i,Zf)+l,le=zu(n,f)+zu(i,S)+l+14+3*U+zu(D,$)+(2*D[16]+3*D[17]+7*D[18]);if(te>=Z&&le>=Z)return Fw(t,m,e.subarray(u,u+p));if(Si(t,m,1+(te>le)),m+=2,te>le){j=up(f,v),K=f,ne=up(S,x),H=S;var Q=up($,B);for(Si(t,m,E-257),Si(t,m+5,R-1),Si(t,m+10,U-4),m+=14,O=0;U>O;++O)Si(t,m+3*O,$[rO[O]]);m+=3*U;for(var N=[_,k],G=0;2>G;++G){var q=N[G];for(O=0;q.length>O;++O)Si(t,m,Q[I=31&q[O]]),m+=$[I],I>15&&(Si(t,m,q[O]>>>5&127),m+=q[O]>>>12)}}else j=bre,K=Dl,ne=yre,H=Zf;for(O=0;c>O;++O)if(a[O]>255){var I;ju(t,m,j[257+(I=a[O]>>>18&31)]),m+=K[I+257],I>7&&(Si(t,m,a[O]>>>23&31),m+=$x[I]);var z=31&a[O];ju(t,m,ne[z]),m+=H[z],z>3&&(ju(t,m,a[O]>>>5&8191),m+=qx[z])}else ju(t,m,j[a[O]]),m+=K[a[O]];return ju(t,m,j[256]),m+K[256]},Sre=new Pd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tre=(function(){for(var e=new Pd(256),t=0;256>t;++t){for(var o=t,a=9;--a;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),PS=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function wre(e,t){t===void 0&&(t={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=Tre[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=e.length;o.p(e);var n,i,l,c,u,p=(c=10+((n=t).filename&&n.filename.length+1||0),u=8,(function(h,f,v,b,S,x){var w=h.length,_=new Xn(b+w+5*(1+Math.floor(w/7e3))+S),E=_.subarray(b,_.length-S),C=0;if(!f||8>w)for(var k=0;w>=k;k+=65535){var R=k+65535;w>R?C=Fw(E,C,h.subarray(k,R)):(E[k]=!0,C=Fw(E,C,h.subarray(k,w)))}else{for(var D=Sre[f-1],O=D>>>13,L=8191&D,$=(1<<v)-1,B=new cn(32768),U=new cn($+1),j=Math.ceil(v/3),K=2*j,ne=function(He){return(h[He]^h[He+1]<<j^h[He+2]<<K)&$},H=new Pd(25e3),Z=new cn(288),te=new cn(32),le=0,Q=0,N=(k=0,0),G=0,q=0;w>k;++k){var I=ne(k),z=32767&k,J=U[I];if(B[z]=J,U[I]=z,k>=G){var pe=w-k;if((le>7e3||N>24576)&&pe>423){C=lO(h,E,0,H,Z,te,Q,N,q,k-q,C),N=le=Q=0,q=k;for(var me=0;286>me;++me)Z[me]=0;for(me=0;30>me;++me)te[me]=0}var xe=2,$e=0,Y=L,ae=z-J&32767;if(pe>2&&I==ne(k-ae))for(var ve=Math.min(O,pe)-1,ie=Math.min(32767,k),Te=Math.min(258,pe);ie>=ae&&--Y&&z!=J;){if(h[k+xe]==h[k+xe-ae]){for(var Ce=0;Te>Ce&&h[k+Ce]==h[k+Ce-ae];++Ce);if(Ce>xe){if(xe=Ce,$e=ae,Ce>ve)break;var it=Math.min(ae,Ce-2),lt=0;for(me=0;it>me;++me){var Ge=k-ae+me+32768&32767,tt=Ge-B[Ge]+32768&32767;tt>lt&&(lt=tt,J=Ge)}}}ae+=(z=J)-(J=B[z])+32768&32767}if($e){H[N++]=268435456|Lw[xe]<<18|iO[$e];var De=31&Lw[xe],Re=31&iO[$e];Q+=$x[De]+qx[Re],++Z[257+De],++te[Re],G=k+xe,++le}else H[N++]=h[k],++Z[h[k]]}}C=lO(h,E,!0,H,Z,te,Q,N,q,k-q,C)}return w3(_,0,b+T3(C)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,u)),m=p.length;return(function(h,f){var v=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&PS(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var b=0;v.length>=b;++b)h[b+10]=v.charCodeAt(b)}})(p,t),PS(p,m-8,o.d()),PS(p,m-4,a),p}var _re=!!lw||!!sw,_3="text/plain",cO=!1,jv=function(e,t,o){var a;o===void 0&&(o=!0);var[n,i]=e.split("?"),l=Oe({},t),c=(a=i?.split("&").map((p=>{var m,[h,f]=p.split("="),v=o&&(m=l[h])!==null&&m!==void 0?m:f;return delete l[h],h+"="+v})))!==null&&a!==void 0?a:[],u=(function(p,m){var h,f;m===void 0&&(m="&");var v=[];return mo(p,(function(b,S){qe(b)||qe(S)||S==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(l);return u&&c.push(u),n+"?"+c.join("&")},td=(e,t)=>JSON.stringify(e,((o,a)=>typeof a=="bigint"?a.toString():a),t),CS=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===Br.GZipJS){var a=wre((function(c,u){var p=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new Xn(c.length+(c.length>>>1)),h=0,f=function(x){m[h++]=x},v=0;p>v;++v){if(h+5>m.length){var b=new Xn(h+8+(p-v<<1));b.set(m),m=b}var S=c.charCodeAt(v);128>S?f(S):2048>S?(f(192|S>>>6),f(128|63&S)):S>55295&&57344>S?(f(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),f(128|S>>>12&63),f(128|S>>>6&63),f(128|63&S)):(f(224|S>>>12),f(128|S>>>6&63),f(128|63&S))}return w3(m,0,h)})(td(t)),{mtime:0});return{contentType:_3,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===Br.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((u,p)=>String.fromCharCode(parseInt(p,16)))))})(td(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:td(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=td(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},xre=(function(){var e=Wn((function*(t){var o=td(t.data),a=yield(function(i,l,c){return cw.apply(this,arguments)})(o,Ga.DEBUG,{rethrow:!0});if(!a)return t;var n=yield a.arrayBuffer();return Oe({},t,{tr:{contentType:_3,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),dO=(e,t)=>jv(e,{_:new Date().getTime().toString(),ver:Ga.JS_SDK_VERSION,compression:t}),nf=[];sw&&nf.push({transport:"fetch",method(e){var t,o,{contentType:a,body:n,estimatedSize:i}=(t=CS(e))!==null&&t!==void 0?t:{},l=new Headers;mo(e.headers,(function(m,h){l.append(h,m)})),a&&l.append("Content-Type",a);var c=e.url,u=null;if(UD){var p=new UD;u={signal:p.signal,timeout:setTimeout((()=>p.abort()),e.timeout)}}sw(c,Oe({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:n,signal:(o=u)==null?void 0:o.signal},e.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(v){je.error(v)}e.callback==null||e.callback(f)})))).catch((m=>{je.error(m),e.callback==null||e.callback({statusCode:0,error:m})})).finally((()=>u?clearTimeout(u.timeout):null))}}),lw&&nf.push({transport:"XHR",method(e){var t,o=new lw;o.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=(t=CS(e))!==null&&t!==void 0?t:{};mo(e.headers,(function(i,l){o.setRequestHeader(l,i)})),a&&o.setRequestHeader("Content-Type",a),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(n)}}),kn!=null&&kn.sendBeacon&&nf.push({transport:"sendBeacon",method(e){var t=jv(e.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=CS(e))!==null&&o!==void 0?o:{};if(!n)return;var i=n instanceof Blob?n:new Blob([n],{type:a});kn.sendBeacon(t,i)}catch{}}});var jw=3e3;class Pre{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=qr(o?.flush_interval_ms||jw,250,5e3,je.createLogger("flush interval"),jw),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Oe({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var i=o[n],l=new Date().getTime();i.data&&Nt(i.data)&&mo(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return mo(this.Lr,(o=>{var a,n=o,i=(n?n.batchKey:null)||n.url;qe(t[i])&&(t[i]=Oe({},n,{data:[]})),(a=t[i].data)==null||a.push(n.data)})),this.Lr=[],t}}var Cre=["retriesPerformedSoFar"];class kre{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!qe(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Yo(ge,"online",this.Ur),Yo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,a=CF(t,Cre);Gc(o)&&(a.url=jv(a.url,{retry_count:o})),this._instance._send_request(Oe({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Oe({retriesPerformedSoFar:o},a))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var a=(function(l){var c=3e3*Math.pow(2,l),u=c/2,p=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(p+m*(p-u))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:t});var i="Enqueued failed request for retry in "+a;navigator.onLine||(i+=" (Browser is offline)"),je.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],a=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,qe(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Oe({},t,{transport:"sendBeacon"}))}catch(o){je.error(o)}this.Lr=[]}}class Ere{constructor(t){this.Kr=()=>{var o,a,n,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),u=l?Math.max(0,l.scrollHeight-l.clientHeight):0,p=c+(l?.clientHeight||0),m=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(u,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=p,this.Qr.maxContentY=Math.max(p,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(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(){Yo(ge,"scroll",this.Kr,{capture:!0}),Yo(ge,"scrollend",this.Kr,{capture:!0}),Yo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var t=Nt(this.ei)?this.ei:[this.ei];for(var o of t){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Are=e=>m3(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class uO{constructor(t,o,a,n){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[Rw]:c})}},this._instance=t,this.si=o,this.ni=a,this.ii=n||Are,this.si.onSessionId(this.ti)}ri(){return this.ni.props[Rw]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?g3(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 mo(Ux(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),t["$session_entry_"+dw(a)]=o})),t}}class Vx{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((a=>a!==o))}}emit(t,o){for(var a of this.oi[t]||[])a(o);for(var n of this.oi["*"]||[])n(t,o)}}var kS=So("[SessionId]");class pO{on(t,o){return this.ai.on(t,o)}constructor(t,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new Vx,this.hi=(p,m)=>!(!Gc(p)||!Gc(m))&&Math.abs(p-m)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===xi)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||Ts,this.fi=a||Ts;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*qr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,kS.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=wa.Z(this.gi),c=wa.Z(this.mi);l&&!c?this.ci=l:wa.F(this.gi),wa.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var u=(p=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),u)}catch(p){kS.error("Invalid sessionID in bootstrap",p)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return qe(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&wa.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&wa.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?wa.Z(this.gi):null}bi(t,o,a){t===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[jf]:[o,t,a]}))}Si(){var t=this.ni.props[jf];return Nt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(Vf,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&wa.F(this.mi)},Yo(ge,Vf,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===xi)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,i,l]=this.Si(),c=this.Ci(),u=Gc(l)&&Math.abs(a-l)>864e5,p=!1,m=!i,h=!m&&!t&&this.hi(a,n);m||h||u?(i=this.vi(),c=this.fi(),kS.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:u}}),l=a,p=!0):c||(c=this.fi(),p=!0);var f=Gc(n)&&t&&!u?n:a,v=Gc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,f,v),t||this.pi(),p&&this.li.forEach((b=>b(i,c,p?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:u}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:p?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:u}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var x3=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&VD(o,t))return!0;try{var a=e?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>VD(n?.brand,t))))return!0}catch{}return!!e.webdriver},Qf=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function hO(e,t,o){return td({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var P3={exact:(e,t)=>t.some((o=>e.some((a=>o===a)))),is_not:(e,t)=>t.every((o=>e.every((a=>o!==a)))),regex:(e,t)=>t.some((o=>e.some((a=>Qf(o,a))))),not_regex:(e,t)=>t.every((o=>e.every((a=>!Qf(o,a))))),icontains:(e,t)=>t.map(Lg).some((o=>e.map(Lg).some((a=>o.includes(a))))),not_icontains:(e,t)=>t.map(Lg).every((o=>e.map(Lg).every((a=>!o.includes(a))))),gt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a>parseFloat(n)))})),lt:(e,t)=>t.some((o=>{var a=parseFloat(o);return!isNaN(a)&&e.some((n=>a<parseFloat(n)))}))},Lg=e=>e.toLowerCase();function C3(e,t){return!e||Object.entries(e).every((o=>{var[a,n]=o,i=t?.[a];if(qe(i)||Ni(i))return!1;var l=[String(i)],c=P3[n.operator];return!!c&&c(n.values,l)}))}var zw="custom",mO="i.posthog.com",Rre=/^\/static\//;class Dre{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("."+mO,".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":zw),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&Rre.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===zw)return this.apiHost+o;var n=mO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var eo=So("[Surveys]"),Uw="seenSurvey_",Ore=[wS.Popover,wS.Widget,wS.API],Mre={ignoreConditions:!1,ignoreDelay:!1,displayType:Iw.Popover},Nre=So("[PostHog ExternalIntegrations]"),Ire={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Lre{constructor(t){this._instance=t}ur(t,o){var a;(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,t,(n=>{if(n)return Nre.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,u,p;!n||(c=et.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Ire[l],(()=>{var m;(m=et.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[l])==null||m.start(t._instance)})),!n&&(u=et.__PosthogExtensions__)!=null&&(u=u.integrations)!=null&&u[l]&&((p=et.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[l])==null||p.stop())};for(var[a,n]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(a)}}}var jc,pp={},ES=0,$w=()=>{},gO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Uu="Surveys module not available",fO="sanitize_properties is deprecated. Use before_send instead",k3="Invalid value for property_denylist config: ",Yc="posthog",E3=!_re&&rn?.indexOf("MSIE")===-1&&rn?.indexOf("Mozilla")===-1,vO=e=>{var t;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Xne(Fe?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:$w,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:Ta&&xo(Ta?.search)&&Ta.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(t=ge.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){je.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:Nw,before_send:void 0,request_queue_config:{flush_interval_ms:jw},error_tracking:{},_onCapture:$w,__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))},Bre=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],bO=e=>{var t={};for(var[o,a]of Bre)qe(e[o])||(t[a]=e[o]);var n=Do({},t,e);return Nt(e.property_blacklist)&&(qe(e.property_denylist)?n.property_denylist=e.property_blacklist:Nt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:je.error(k3+e.property_denylist)),n};class Fre{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){je.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Zn{Ei(t,o){if(t){var a=this.Ri.indexOf(t);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===xi||this.config.cookieless_mode===vl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Fre,this.Mi=!1,this.version=Ga.LIB_VERSION,this.Fi=new Vx,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=vO(),this.SentryIntegration=cre,this.sentryIntegration=a=>(function(n,i){var l=c3(n,i);return{name:l3,processEvent:c=>l(c)}})(this,a),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Ere(this),this.pageViewManager=new tO(this),this.rateLimiter=new vre(this),this.requestRouter=new Dre(this),this.consent=new ire(this),this.externalIntegrations=new Lre(this);var o=(t=Zn.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(a,n,i)=>{var l=xo(a)?{[a]:n}:a;this.setPersonProperties(l),i?.({})},set_once:(a,n,i)=>{var l=xo(a)?{[a]:n}:a;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(a=>je.info('send "'+a?.event+'"',a)))}init(t,o,a){if(a&&a!==Yc){var n,i=(n=pp[a])!==null&&n!==void 0?n:new Zn;return i._init(t,o,a),pp[a]=i,pp[Yc][a]=i,i}return this._init(t,o,a)}_init(t,o,a){var n,i;if(o===void 0&&(o={}),qe(t)||ef(t))return je.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(Do({},vO(o.defaults),bO(o),{name:a,token:t})),this.config.on_xhr_error&&je.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:Br.GZipJS;var l=this.qi();this.persistence=new TS(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new TS(Oe({},this.config,{persistence:"sessionStorage"}),l);var c=Oe({},this.persistence.props),u=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Pre((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new kre(this),this.__request_queue=[];var p=this.Ni();if(p||(this.sessionManager=new pO(this),this.sessionPropsManager=new uO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(je.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(p)}),0)):(je.info("Initializing extensions synchronously"),this.zi(p)),Ga.DEBUG=Ga.DEBUG||this.config.debug,Ga.DEBUG&&je.info("Starting in debug mode",{this:this,config:o,thisC:Oe({},this.config),p:c,s:u}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Oe({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(pr);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Lc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Bc)je.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(Ts()),b=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(pr,o.bootstrap.isIdentifiedID?Bc:Lc),this.register({distinct_id:m,$device_id:b})}}if(p)this.register_once({distinct_id:Dg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Ts());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(pr,Lc)}return Yo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(x,w){var _=x.config.segment;if(!_)return w();(function(E,C){var k=E.config.segment;if(!k)return C();var R=O=>{var L=()=>O.anonymousId()||Ts();E.config.get_device_id=L,O.id()&&(E.register({distinct_id:O.id(),$device_id:L()}),E.persistence.set_property(pr,Bc)),C()},D=k.user();"then"in D&&_i(D.then)?D.then(R):R(D)})(x,(()=>{_.register((E=>{Promise&&Promise.resolve||SS.warn("This browser does not have Promise support, and can not use the segment integration");var C=(k,R)=>{if(!R)return k;k.event.userId||k.event.anonymousId===E.get_distinct_id()||(SS.info("No userId set, resetting PostHog"),E.reset()),k.event.userId&&k.event.userId!==E.get_distinct_id()&&(SS.info("UserId set, identifying with PostHog"),E.identify(k.event.userId));var D=E.calculateEventProperties(R,k.event.properties);return k.event.properties=Object.assign({},D,k.event.properties),k};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:k=>C(k,k.event.event),page:k=>C(k,Wc),identify:k=>C(k,bS),screen:k=>C(k,"$screen")}})(x)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),_i(this.config._onCapture)&&this.config._onCapture!==$w&&(je.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&je.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,a,n,i,l,c,u,p=performance.now(),m=Oe({},Zn.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new m.conversations(this)),m.productTours&&this.Ri.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.Ri.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.Ri.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,lre)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(u=this.experiments)!==null&&u!==void 0?u:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,p)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var a=t.shift();if(a)try{a()}catch(i){je.error("Error initializing extension:",i)}}var n=Math.round(performance.now()-o);this.register_for_session({[a3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[n3]:n}),this.config.__preview_deferred_init_extensions&&je.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var o;if(!Fe||!Fe.body)return je.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=xt(t.supportedCompression,Br.GZipJS)?Br.GZipJS:xt(t.supportedCompression,Br.Base64)?Br.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:Nw}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(a){je.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&Ta!=null&&Ta.hostname){var t=Ta.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 v3(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Og(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,a,n;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(vS),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(vS,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(E3?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=jv(t.url,{ip:this.config.ip?1:0}),t.headers=Oe({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var a,n,i,l=Oe({},o);l.timeout=l.timeout||6e4,l.url=dO(l.url,l.compression);var c=(a=l.transport)!==null&&a!==void 0?a:"fetch",u=nf.filter((m=>!l.disableTransport||!m.transport||!l.disableTransport.includes(m.transport))),p=(n=(i=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(u))==null?void 0:i.method)!==null&&n!==void 0?n:u[0].method;if(!p)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===Br.GZipJS&&cne&&!cO?xre(l).then((m=>{p(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return cO=!0,void p(Oe({},l,{compression:void 0,url:dO(o.url,void 0)}));p(l)})):p(l)})(Oe({},t,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){ES++;try{var o,a=[],n=[],i=[];Og(t,(c=>{c&&(Nt(o=c[0])?i.push(c):_i(c)?c.call(this):Nt(c)&&o==="alias"?a.push(c):Nt(c)&&o.indexOf("capture")!==-1&&_i(this[o])?i.push(c):n.push(c))}));var l=function(c,u){Og(c,(function(p){if(Nt(p[0])){var m=u;mo(p,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else u[p[0]].apply(u,p.slice(1))}))};l(a,this),l(n,this),l(i,this)}finally{ES--}}push(t){if(ES>0&&Nt(t)&&xo(t[0])){var o=Zn.prototype[t[0]];_i(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,a){var n,i,l,c,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!qe(t)&&xo(t)){var p=!this.config.opt_out_useragent_filter&&this._is_bot();if(!p||this.config.__preview_capture_bot_pageviews){var m=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){o!=null&&o.$current_url&&!xo(o?.$current_url)&&(je.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||a!=null&&a.en||je.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,f=a?.timestamp||h,v=Ts(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},f,v)};t===Wc&&this.config.__preview_capture_bot_pageviews&&p&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),m&&(b.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(b.$set=a?.$set);var S,x,w,_=this.tn(a?.$set_once,t!==QD,t===bS);if(_&&(b.$set_once=_),a!=null&&a._noTruncate||(i=this.config.properties_string_max_length,l=b,c=L=>xo(L)?L.slice(0,i):L,u=new Set,b=(function L($,B){return $!==Object($)?c?c($):$:u.has($)?void 0:(u.add($),Nt($)?(U=[],Og($,(j=>{U.push(L(j))}))):(U={},mo($,((j,K)=>{u.has(j)||(U[K]=L(j))}))),U);var U})(l)),b.timestamp=f,qe(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),t===rp.DISMISSED||t===rp.SENT){var E=o?.[_S.SURVEY_ID],C=o?.[_S.SURVEY_ITERATION];(L=>{try{var $=(B=>((U,j)=>{var K=""+Uw+j.id;return j.current_iteration&&j.current_iteration>0&&(K=""+Uw+j.id+"_"+j.current_iteration),K})(0,B))(L);if(localStorage.getItem($))return;localStorage.setItem($,"true")}catch(B){eo.error("Failed to persist survey seen state",B)}})({id:E,current_iteration:C}),b.$set=Oe({},b.$set,{[(S={id:E,current_iteration:C},x=t===rp.SENT?"responded":"dismissed",w="$survey_"+x+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(w="$survey_"+x+"/"+S.id+"/"+S.current_iteration),w)]:!0})}else t===rp.SHOWN&&(b.$set=Oe({},b.$set,{[_S.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===fre.SHOWN){var k=o?.[aO.TOUR_TYPE];k&&(b.$set=Oe({},b.$set,{[aO.TOUR_LAST_SEEN_DATE+"/"+k]:new Date().toISOString()}))}var R=Oe({},b.properties.$set,b.$set);if(Xc(R)||this.setPersonPropertiesForFlags(R),!Pt(this.config.before_send)){var D=this.rn(b);if(!D)return;b=D}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),b}je.critical("This capture call is ignored due to client rate limiting.")}}else je.error("No event name provided to posthog.capture")}else je.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,a,n,i){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Oe({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var u=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=u.distinct_id,(!xo(c.distinct_id)&&!er(c.distinct_id)||ef(c.distinct_id))&&je.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var p,m=(function(w,_){var E,C,k,R;if(!rn)return{};var D,O,L,$,B,U,j,K,ne=w?[...xd,..._||[]]:[],[H,Z]=(function(te){for(var le=0;KD.length>le;le++){var[Q,N]=KD[le],G=Q.exec(te),q=G&&(_i(N)?N(G,te):N);if(q)return q}return["",""]})(rn);return Do(Ux({$os:H,$os_version:Z,$browser:HF(rn,navigator.vendor),$device:WD(rn),$device_type:(O=rn,L={userAgentDataPlatform:(E=navigator)==null||(E=E.userAgentData)==null?void 0:E.platform,maxTouchPoints:(C=navigator)==null?void 0:C.maxTouchPoints,screenWidth:ge==null||(k=ge.screen)==null?void 0:k.width,screenHeight:ge==null||(R=ge.screen)==null?void 0:R.height,devicePixelRatio:ge?.devicePixelRatio},K=WD(O),K===DF||K===RF||K==="Kobo"||K==="Kindle Fire"||K===VF?Td:K===Ap||K===dd||K===Rp||K===pw?"Console":K===MF?"Wearable":K?An:L?.userAgentDataPlatform==="Android"&&(($=L?.maxTouchPoints)!==null&&$!==void 0?$:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(U=L?.screenHeight)!==null&&U!==void 0?U:0)/((j=L?.devicePixelRatio)!==null&&j!==void 0?j:1)?An:Td:"Desktop"),$timezone:f3(),$timezone_offset:mre()}),{$current_url:Dp(Ta?.href,ne,Op),$host:Ta?.host,$pathname:Ta?.pathname,$raw_user_agent:rn.length>1e3?rn.substring(0,997)+"...":rn,$browser_version:Pne(rn,navigator.vendor),$browser_language:oO(),$browser_language_prefix:(D=oO(),typeof D=="string"?D.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Ga.LIB_NAME,$lib_version:Ga.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(i,a.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Do(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Do(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===zw&&(c.$lib_custom_api_host=this.config.api_host),p=t!==Wc||i?t!==vS||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Do(c,p),t===Wc&&Fe&&(c.title=Fe.title),!qe(l)){var b=a.getTime()-l;c.$duration=parseFloat((b/1e3).toFixed(3))}rn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Do({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Nt(this.config.property_denylist)?mo(this.config.property_denylist,(function(w){delete c[w]})):je.error(k3+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(je.error(fO),c=S(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return t;var i=this.persistence.get_initial_props(),l=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Do({},i,l||{},t||{}),u=this.config.sanitize_properties;return u&&(je.error(fO),c=u(c,"$set_once")),o&&(this.Mi=!0),Xc(c)?void 0:c}register(t,o){var a;(a=this.persistence)==null||a.register(t,o)}register_once(t,o,a){var n;(n=this.persistence)==null||n.register_once(t,o,a)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(t,o,a)}updateEarlyAccessFeatureEnrollment(t,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(t,o,a)}getEarlyAccessFeatures(t,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(t,o,a)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Uu}),()=>{})}onSessionId(t){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:Uu})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:Uu})}renderSurvey(t,o){var a;(a=this.surveys)==null||a.renderSurvey(t,o)}displaySurvey(t,o){var a;o===void 0&&(o=Mre),(a=this.surveys)==null||a.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:Uu}}canRenderSurveyAsync(t,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(t,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:Uu})}ln(t){return!t||ef(t)?(je.critical("Unique user id has not been set in posthog.identify"),!1):t===Dg?(je.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())||(je.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,a){if(!this.__loaded||!this.persistence)return je.uninitializedWarning("posthog.identify");if(er(t)&&(t=t.toString(),je.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Ff)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),t!==n&&t!==this.get_property(ep)&&(this.unregister(ep),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(pr)||Lc)===Lc;t!==n&&l?(this.persistence.set_property(pr,Bc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(bS,{distinct_id:t,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=hO(t,o,a),(i=this.featureFlags)==null||i.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),t!==n&&(this.reloadFeatureFlags(),this.unregister(dp))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var a=hO(this.get_distinct_id(),t,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=a):je.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,a){if(t&&o){var n=this.getGroups(),i=n[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Oe({},n,{[t]:o})}),i||a){var l={$group_type:t,$group_key:o};a&&(l.$group_set=a),this.capture(QD,l)}a&&this.setGroupPropertiesForFlags({[t]:a}),i&&!a&&this.reloadFeatureFlags()}else je.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,a,n,i,l,c,u,p;if(je.info("reset"),!this.__loaded)return je.uninitializedWarning("posthog.reset");var m=this.get_property(Ff);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(u=this.persistence)==null||u.set_property(pr,Lc),(p=this.sessionManager)==null||p.resetSessionId(),this.Di=null,this.config.cookieless_mode===xi)this.register_once({distinct_id:Dg,$device_id:null},"");else{var h=this.config.get_device_id(Ts());this.register_once({distinct_id:h,$device_id:t?h:m},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var a;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(a=this.conversations)==null||a.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:a}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&a){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-l,0)}return n}alias(t,o){return t===this.get_property(QF)?(je.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(qe(o)&&(o=this.get_distinct_id()),t!==o?(this.an(ep,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(je.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Oe({},this.config);if(Lo(t)){var a,n,i,l,c,u,p,m,h,f;Do(this.config,bO(t));var v=this.qi();(a=this.persistence)==null||a.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new TS(Oe({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);$r(b)&&(this.config.debug=b),$r(this.config.debug)&&(this.config.debug?(Ga.DEBUG=!0,_o.R()&&_o.M("ph_debug",!0),je.info("set_config",{config:t,oldConfig:o,newConfig:Oe({},this.config)})):(Ga.DEBUG=!1,_o.R()&&_o.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(u=this.heatmaps)==null||u.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Ga.LIB_NAME=t,Ga.LIB_VERSION=o}startSessionRecording(t){var o,a,n,i,l,c=t===!0,u={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(u).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),u.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),u.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),u.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),u.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(t,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Oe({},n,o))}}addExceptionStep(t,o){var a;(a=this.exceptions)==null||a.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Zn.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Yc;return o!==Yc&&(o=Yc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(pr))===Bc||((o=this.sessionPersistence)==null?void 0:o.get_property(pr))===Bc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===Nw&&!this._isIdentified()&&Xc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[ep])&&((o=this.persistence)==null||(o=o.props)==null||!o[$f]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(je.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an($f,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==vl)}cn(){var t,o,a,n,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((a=this.persistence)==null||a.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((n=this.sessionPersistence)==null||n.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==xi){if(this.Ni()){var a,n,i,l,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new pO(this),this.pageViewManager=new tO(this),this.persistence&&(this.sessionPropsManager=new uO(this,this.sessionManager,this.persistence));var u,p=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Zn.__defaultExtensionClasses)==null?void 0:c.sessionRecording;p&&(this.sessionRecording=this.Ei(this.sessionRecording,new p(this)),this.Wi&&((u=this.sessionRecording)==null||u.onRemoteConfig==null||u.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==vl&&((m=this.surveys)==null||m.loadIfEnabled()),(qe(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((h=t?.captureEventName)!==null&&h!==void 0?h:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else je.warn(gO)}opt_out_capturing(){var t,o,a;this.config.cookieless_mode!==xi?(this.config.cookieless_mode===vl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===vl&&(this.register({distinct_id:Dg,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(a=this.sessionRecording)==null||a.stopRecording(),this.sessionRecording=void 0,this.Ji())):je.warn(gO)}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===xi||(this.config.cookieless_mode===vl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return kn?x3(kn,this.config.custom_blocked_useragents):void 0}Ji(){Fe&&(Fe.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Wc,{title:Fe.title},{send_instantly:!0}),this.Pi&&(Fe.removeEventListener(qf,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Yo(Fe,qf,this.Pi)))}debug(t){t===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,a,n,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(je.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=je,i=(o="advanced_disable_flags")in(t=c)&&!Pt(t[o]),l=a in t&&!Pt(t[a]),i?t[o]:!!l&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[a]))}rn(t){if(Pt(this.config.before_send))return t;var o=Nt(this.config.before_send)?this.config.before_send:[this.config.before_send],a=t;for(var n of o){if(a=n(a),Pt(a)){var i="Event '"+t.event+"' was rejected in beforeSend function";return hne(t.event)?je.warn(i+". This can cause unexpected behavior."):je.info(i),null}a.properties&&!Xc(a.properties)||je.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,a){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(t){var o=$r(t)&&!t,a=_o.R()&&_o.O("ph_debug")==="true";return!o&&(!!a||t)}}function yO(e){return e instanceof Element&&(e.id===o3||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function zv(e){return!!e&&e.nodeType===1}function Rs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function A3(e){return!!e&&e.nodeType===3}function R3(e){return!!e&&e.nodeType===11}function Hx(e){return e?Bv(e).split(/\s+/):[]}function SO(e){var t=ge?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Jf(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Hx(t)}function D3(e){return Pt(e)?null:Bv(e).split(/(\s+)/).filter((t=>hp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Mp(e){var t="";return Vw(e)&&!M3(e)&&e.childNodes&&e.childNodes.length&&mo(e.childNodes,(function(o){var a;A3(o)&&o.textContent&&(t+=(a=D3(o.textContent))!==null&&a!==void 0?a:"")})),Bv(t)}function TO(e){return qe(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Zn.__defaultExtensionClasses={},Zn.dn={trace:jc=()=>{},debug:jc,info:jc,warn:jc,error:jc,fatal:jc},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=Qne(e.prototype[t[o]])})(Zn,["identify"]);var Gx=["a","button","form","input","select","textarea","label"];function wO(e,t){if(qe(t))return!0;var o,a=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var n of e)if(o=a(n))return o.v;return!1}function O3(e){var t=e.parentNode;return!(!t||!zv(t))&&t}var jre=["next","previous","prev",">","<"],_O=[".ph-no-rageclick",".ph-no-capture"],qw=e=>!e||Rs(e,"html")||!zv(e),xO=(e,t)=>{if(!ge||qw(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[e],n=e;n.parentNode&&!Rs(n,"body");)if(R3(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var i=O3(n);if(!i)break;if(t||Gx.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=ge.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(i),n=i}return{parentIsUsefulElement:o,targetElementList:a}};function Vw(e){for(var t=e;t.parentNode&&!Rs(t,"body");t=t.parentNode){var o=Jf(t);if(xt(o,"ph-sensitive")||xt(o,"ph-no-capture"))return!1}if(xt(Jf(e),"ph-include"))return!0;var a=e.type||"";if(xo(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!xo(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function M3(e){return!!(Rs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Rs(e,"select")||Rs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var N3="(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})",zre=new RegExp("^(?:"+N3+")$"),Ure=new RegExp(N3),I3="\\d{3}-?\\d{2}-?\\d{4}",$re=new RegExp("^("+I3+")$"),qre=new RegExp("("+I3+")");function hp(e,t){return t===void 0&&(t=!0),!(Pt(e)||xo(e)&&(e=Bv(e),(t?zre:Ure).test((e||"").replace(/[- ]/g,""))||(t?$re:qre).test(e)))}function PO(e){var t=Mp(e);return hp(t=(t+" "+L3(e)).trim())?t:""}function L3(e){var t="";return e&&e.childNodes&&e.childNodes.length&&mo(e.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Mp(o);t=(t+" "+n).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+L3(o)).trim())}catch(i){je.error("[AutoCapture]",i)}})),t}function CO(e){return e.replace(/"|\\"/g,'\\"')}function Vre(e){var t=e.attr__class;return t?Nt(t)?t:Hx(t):void 0}class kO{constructor(t){this.disabled=t===!1;var o=Lo(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(t-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:t,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:a}];return!1}}var AS="$copy_autocapture",EO=So("[AutoCapture]");function RS(e,t){return t.length>e?t.slice(0,e)+"...":t}function Hre(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!zv(t));return t}function Gre(e,t){for(var o,a,{e:n,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:u}=t,p=[e],m=e;m.parentNode&&!Rs(m,"body");)R3(m.parentNode)?(p.push(m.parentNode.host),m=m.parentNode.host):(p.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},S=!1,x=!1;if(mo(p,(k=>{var R=Vw(k);k.tagName.toLowerCase()==="a"&&(S=k.getAttribute("href"),S=R&&S&&hp(S)&&S),xt(Jf(k),"ph-no-capture")&&(x=!0),v.push((function(O,L,$,B){var U=O.tagName.toLowerCase(),j={tag_name:U};Gx.indexOf(U)>-1&&!$&&(j.$el_text=U.toLowerCase()==="a"||U.toLowerCase()==="button"?RS(1024,PO(O)):RS(1024,Mp(O)));var K=Jf(O);K.length>0&&(j.classes=K.filter((function(te){return te!==""}))),mo(O.attributes,(function(te){var le;if((!M3(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(B==null||!B.includes(te.name))&&!L&&hp(te.value)&&(!xo(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=Hx(Q).join(" ")),j["attr__"+te.name]=RS(1024,Q)}}));for(var ne=1,H=1,Z=O;Z=Hre(Z);)ne++,Z.tagName===O.tagName&&H++;return j.nth_child=ne,j.nth_of_type=H,j})(k,i,l,c));var D=(function(O){if(!Vw(O))return{};var L={};return mo(O.attributes,(function($){if($.name&&$.name.indexOf("data-ph-capture-attribute")===0){var B=$.name.replace("data-ph-capture-attribute-",""),U=$.value;B&&U&&hp(U)&&(L[B]=U)}})),L})(k);Do(b,D)})),x)return{props:{},explicitNoCapture:x};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?PO(e):Mp(e)),S){var w,_;v[0].attr__href=S;var E=(w=Gf(S))==null?void 0:w.host,C=ge==null||(_=ge.location)==null?void 0:_.host;E&&C&&E!==C&&(h=S)}return{props:Do({$event_type:n.type,$ce_version:1},u?{}:{$elements:v},{$elements_chain:(f=v,(function(k){return k.map((R=>{var D,O,L="";if(R.tag_name&&(L+=R.tag_name),R.attr_class)for(var $ of(R.attr_class.sort(),R.attr_class))L+="."+$.replace(/"/g,"");var B=Oe({},R.text?{text:R.text}:{},{"nth-child":(D=R.nth_child)!==null&&D!==void 0?D:0,"nth-of-type":(O=R.nth_of_type)!==null&&O!==void 0?O:0},R.href?{href:R.href}:{},R.attr_id?{attr_id:R.attr_id}:{},R.attributes),U={};return af(B).sort(((j,K)=>{var[ne]=j,[H]=K;return ne.localeCompare(H)})).forEach((j=>{var[K,ne]=j;return U[CO(K.toString())]=CO(ne.toString())})),(L+=":")+af(U).map((j=>{var[K,ne]=j;return K+'="'+ne+'"'})).join("")})).join(";")})((function(k){return k.map((R=>{var D,O,L={text:(D=R.$el_text)==null?void 0:D.slice(0,400),tag_name:R.tag_name,href:(O=R.attr__href)==null?void 0:O.slice(0,2048),attr_class:Vre(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return af(R).filter(($=>{var[B]=$;return B.indexOf("attr__")===0})).forEach(($=>{var[B,U]=$;return L.attributes[B]=U})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},b)}}var $u=So("[ExceptionAutocapture]");function AO(e,t,o){try{if(!(t in e))return()=>{};var a=e[t],n=o(a);return _i(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var Kre=So("[TracingHeaders]"),us=So("[Web Vitals]"),RO=9e5,DO="disabled",OO="lazy_loading",qu="awaiting_config",Bg="missing_config";So("[SessionRecording]"),So("[SessionRecording]");var Hw="[SessionRecording]",ps=So(Hw),Wre=So("[Heatmaps]");function MO(e){return Lo(e)&&"clientX"in e&&"clientY"in e&&er(e.clientX)&&er(e.clientY)}var NO=So("[Product Tours]"),Yre=["$set_once","$set"],hs=So("[SiteApps]"),IO="Error while initializing PostHog app with config id ";function zc(e,t,o){if(Pt(e))return!1;switch(o){case"exact":return e===t;case"contains":var a=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class Zre{constructor(t){this.vn=new Vx,this.fn=(o,a)=>this.pn(o,a)&&this.gn(o,a)&&this.mn(o,a)&&this.yn(o,a),this.pn=(o,a)=>a==null||!a.event||o?.event===a?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;qe((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(t){var o,a;if(!qe((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,u;(c=this._n)==null||c.add(l),(u=l.steps)==null||u.forEach((p=>{var m;(m=this.bn)==null||m.add(p?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((u=>{u!=null&&u.selector&&i.add(u?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(i)}}on(t,o){var a;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((a=this._n)==null?void 0:a.size)>0&&this._n.forEach((n=>{this.wn(o,n)&&this.vn.emit("actionCaptured",n.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(t,a))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var a,n=t==null||(a=t.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!zc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var a;if(o==null||!o.href)return!0;var n=this.kn(t);if(n.length>0)return n.some((c=>zc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!l&&zc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var a;if(o==null||!o.text)return!0;var n=this.kn(t);if(n.length>0)return n.some((p=>zc(p.text,o.text,o.text_matching||"exact")||zc(p.$el_text,o.text,o.text_matching||"exact")));var i,l,c,u=(t==null||(a=t.properties)==null?void 0:a.$elements_chain)||"";return!!u&&(i=(function(p){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Pt(m=f.exec(p));)h.includes(m[1])||h.push(m[1]);return h})(u),l=o.text,c=o.text_matching||"exact",i.some((p=>zc(p,l,c))))}xn(t,o){var a,n;if(o==null||!o.selector)return!0;var i=t==null||(a=t.properties)==null?void 0:a.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||C3(o.properties.reduce(((a,n)=>{var i=Nt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:i,operator:n.operator||"exact"},a}),{}),t?.properties)}}class Qre{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&C3(t.propertyFilters,o?.properties)}Nn(t,o){var a=new Map;return t.forEach((n=>{var i;(i=n.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=a.get(l.name)||[];c.push(n.id),a.set(l.name,c)}}))})),a}Mn(t,o,a){var n=(a===Bu.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>n?.includes(c.id)))})),i.filter((l=>{var c,u=(c=l.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((p=>p.name===t));return this.Rn(u,o)}))}register(t){var o;qe((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((a=>{var n,i;return((n=a.conditions)==null?void 0:n.actions)&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Zre(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,i,l,c,u;a.conditions&&(n=a.conditions)!=null&&n.actions&&(i=a.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=a.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(u=a.conditions)==null||(u=u.actions)==null||(u=u.values)==null||u.forEach((p=>{if(p&&p.name){var m=this.En.get(p.name);m&&m.push(a.id),this.En.set(p.name,m||[a.id])}})))})))}On(t){var o,a=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));a.length===0&&n.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,Bu.Activation),this.An=this.Nn(t,Bu.Cancellation))}onEvent(t,o){var a,n=this.le(),i=this.Dn(),l=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[i])||[];if(l===t&&o&&c.length>0){var u,p;n.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var m=(o==null||(u=o.properties)==null?void 0:u.$survey_id)||(o==null||(p=o.properties)==null?void 0:p.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(t)){var f=this.Mn(t,o,Bu.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var S=c.indexOf(b.id);0>S||c.splice(S,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(t)){n.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,Bu.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(t){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(t)&&this.jn(n.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),a=[...new Set(t)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class Jre extends Qre{constructor(t){super(t)}Dn(){return kw}Bn(){return rp.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return eo}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[kw]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var DS="SDK is not enabled or survey functionality is not yet loaded",LO="Disabled. Not loading surveys.",Xre=ge!=null&&ge.location?Wf(ge.location.hash,"__posthog")||Wf(location.hash,"state"):null,BO="_postHogToolbarParams",FO=So("[Toolbar]"),qa=So("[FeatureFlags]"),ul=So("[FeatureFlags]",{debugEnabled:!0}),OS=`" failed. Feature flags didn't load in time.`,jO=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},zO=e=>{var t={};for(var[o,a]of af(e||{}))a&&(t[o]=a);return t},Ti=So("[Error tracking]"),UO="Refusing to render web experiment since the viewer is a likely bot",eie={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&Qf(t.href,e),not_regex:(e,t)=>!!ge&&!Qf(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Oa{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{Oa.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Oa.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);xo(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var u in i.variants){var p=i.variants[u];Oa.Yn(p)&&o.Un(i.name,u,p.transforms)}}))}),a)},this._instance=t,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Oa.Hn(UO);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Oa.Hn("applying feature flags",t),t.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,i=this._instance.getFeatureFlag(o),l=(n=this.zn)==null?void 0:n.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Oa.getWindowLocation();if(t!=null&&t.search){var o=Kf(t?.search,"__experiment_id"),a=Kf(t?.search,"__experiment_variant");o&&a&&(Oa.Hn("previewing web experiments "+o+" && "+a),this.getWebExperiments((n=>{this.Gn(parseInt(o),a,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,a){if(this.Bt.disable_web_experiments&&!a)return t([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,a){var n=a.filter((i=>i.id===t));n&&n.length>0&&(Oa.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(t){return!Pt(t.conditions)&&Oa.Wn(t)&&Oa.Xn(t)}static Wn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.url))return!0;var a,n,i,l=Oa.getWindowLocation();return!!l&&((a=t.conditions)==null||!a.url||eie[(n=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,l))}static getWindowLocation(){return ge?.location}static Xn(t){var o;if(Pt(t.conditions)||Pt((o=t.conditions)==null?void 0:o.utm))return!0;var a=d3();if(a.utm_source){var n,i,l,c,u,p,m,h,f=(n=t.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==a.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,b=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_medium||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_medium)==a.utm_medium,S=(m=t.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&b&&S&&v}return!1}static Hn(t){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];je.info("[WebExperiments] "+t,a)}Un(t,o,a){this._is_bot()?Oa.Hn(UO):o!=="control"?a.forEach((n=>{if(n.selector){var i;Oa.Hn("applying transform of variant "+o+" for experiment "+t+" ",n);var l=(i=document)==null?void 0:i.querySelectorAll(n.selector);l?.forEach((c=>{var u=c;n.html&&(u.innerHTML=n.html),n.css&&u.setAttribute("style",n.css)}))}})):Oa.Hn("Control variants leave the page unmodified.")}_is_bot(){return kn&&this._instance?x3(kn,this.Bt.custom_blocked_useragents):void 0}}var Hn=So("[Conversations]"),pl="Conversations not available yet.",Uv={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,qa.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(qa.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||qa.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,a=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(a).length){var n,i,l=(n=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((p=>!!a[p])).reduce(((p,m)=>(p[m]=a[m]||!1,p)),{}),u=Object.keys(l).filter((p=>c[p])).reduce(((p,m)=>(l[m]&&(p[m]=l[m]),p)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:u})}}updateFlags(e,t,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},i=Oe({},a,e),l=Oe({},n,t),c={};for(var[u,p]of Object.entries(i)){var m=typeof p=="string";c[u]={key:u,enabled:!!m||!!p,variant:m?p:void 0,reason:void 0,metadata:qe(l?.[u])?void 0:{id:0,version:void 0,description:void 0,payload:l[u]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(_w),t=this.os(wi),o=this.os(Kc);if(!o&&!t)return e||{};var a=Do({},e||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of n){var l,c,u=a[i],p=t?.[i],m=qe(p)?(l=u?.enabled)!==null&&l!==void 0&&l:!!p,h=qe(p)?u.variant:typeof p=="string"?p:void 0,f=o?.[i],v=Oe({},u,{enabled:m,variant:m?h??u?.variant:void 0});m!==u?.enabled&&(v.original_enabled=u?.enabled),h!==u?.variant&&(v.original_variant=u?.variant),f&&(v.metadata=Oe({},u?.metadata,{payload:f,original_payload:u==null||(c=u.metadata)==null?void 0:c.payload})),a[i]=v}return this.Jn||(qa.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var e=this.os(ed),t=this.os(wi);if(!t)return e||{};for(var o=Do({},e),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(qa.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(xw),t=this.os(Kc);if(!t)return e||{};for(var o=Do({},e||{}),a=Object.keys(t),n=0;a.length>n;n++)o[a[n]]=t[a[n]];return this.Jn||(qa.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(Ff),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(np)||{}),group_properties:this.os(fl),timezone:f3()};Ni(a)||qe(a)||(n.$device_id=a),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:n,compression:this.Bt.disable_compression?void 0:Br.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,u,p,m=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),m=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!m;var h=[];l.error?l.error instanceof Error?h.push(l.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):l.statusCode!==200&&h.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((u=l.json)==null||(u=u.quotaLimited)==null||!u.includes("feature_flags"));v&&h.push("quota_limited"),(p=this.ni)==null||p.register({[Aw]:h}),v?qa.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags((f=l.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(e,t);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else qa.warn('getFeatureFlag for key "'+e+OS)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=e in o,n=o[e],i=this.getFlagPayloads()[e],l=String(n),c=this.os(Pw)||void 0,u=this.os(zf)||void 0,p=this.os(dp)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(Ew);h&&h!==f&&(p={},(m=this.ni)==null||m.register({[dp]:p,[Ew]:h}))}if((t.send_event||!("send_event"in t))&&(!(e in p)||!p[e].includes(l))){var v,b,S,x,w,_,E,C,k,R;Nt(p[e])?p[e].push(l):p[e]=[l],(v=this.ni)==null||v.register({[dp]:p});var D=this.getFeatureFlagDetails(e),O=[...(b=this.os(Aw))!==null&&b!==void 0?b:[]];qe(n)&&O.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};qe(D==null||(w=D.metadata)==null?void 0:w.version)||(L.$feature_flag_version=D.metadata.version);var $,B=(_=D==null||(E=D.reason)==null?void 0:E.description)!==null&&_!==void 0?_:D==null||(C=D.reason)==null?void 0:C.code;B&&(L.$feature_flag_reason=B),D!=null&&(k=D.metadata)!=null&&k.id&&(L.$feature_flag_id=D.metadata.id),qe(D?.original_variant)&&qe(D?.original_enabled)||(L.$feature_flag_original_response=qe(D.original_variant)?D.original_enabled:D.original_variant),D!=null&&(R=D.metadata)!=null&&R.original_payload&&(L.$feature_flag_original_payload=D==null||($=D.metadata)==null?void 0:$.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var U=i;if(!qe(i))try{U=JSON.parse(i)}catch{}return{key:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:U}}}}else qa.warn('getFeatureFlagResult for key "'+e+OS)}getRemoteConfigPayload(e,t){var o=this.Bt.token,a={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(a.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this.Bt.disable_compression?void 0:Br.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var i,l=(i=n.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return qe(o)?void 0:!!o}qa.warn('isFeatureEnabled for key "'+e+OS)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,u,p,m,h){u===void 0&&(u={}),p===void 0&&(p={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map(($=>{var B;return[$,(B=L[$].variant)!==null&&B!==void 0?B:L[$].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter(($=>L[$].enabled)).filter(($=>{var B;return(B=L[$].metadata)==null?void 0:B.payload})).map(($=>{var B;return[$,(B=L[$].metadata)==null?void 0:B.payload]})))):qa.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=f.flags,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var x=l.requestId,w=l.evaluatedAt;if(Nt(b)){qa.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var _={};if(b)for(var E=0;b.length>E;E++)_[b[E]]=!0;c&&c.register({[tf]:b,[ed]:_})}else{var C=b,k=S,R=v;if(h!=null&&h.partialResponse)C=Oe({},u,C),k=Oe({},p,k),R=Oe({},m,R);else if(l.errorsWhileComputingFlags)if(v){var D=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));C=Oe({},u,Object.fromEntries(Object.entries(C).filter((O=>{var[L]=O;return D.has(L)})))),k=Oe({},p,Object.fromEntries(Object.entries(k||{}).filter((O=>{var[L]=O;return D.has(L)})))),R=Oe({},m,Object.fromEntries(Object.entries(R||{}).filter((O=>{var[L]=O;return D.has(L)}))))}else C=Oe({},u,C),k=Oe({},p,k),R=Oe({},m,R);c&&c.register(Oe({[tf]:Object.keys(zO(C)),[ed]:C||{},[xw]:k||{},[_w]:R||{}},x?{[Pw]:x}:{},w?{[zf]:w}:{}))}}})(e,this.ni,a,n,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),qa.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return qa.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(wi),this.ni.unregister(Kc),this.ps(),ul.info("All overrides cleared");if(Nt(e)){var t=jO(e);return this.ni.register({[wi]:t}),this.ps(),ul.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,a=e;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(wi),ul.info("Flag overrides cleared");else if(a.flags){if(Nt(a.flags)){var n=jO(a.flags);this.ni.register({[wi]:n})}else this.ni.register({[wi]:a.flags});ul.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(Kc),ul.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[Kc]:a.payloads}),ul.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[wi]:e}),this.ps(),ul.info("Flag overrides set",{flags:e});qa.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var a,n=(this.os(ap)||[]).find((u=>u.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};n&&(l.$early_access_feature_name=n.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Oe({},this.getFlagVariants(),{[e]:t});(a=this.ni)==null||a.register({[tf]:Object.keys(zO(c)),[ed]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var a=this.os(ap),n=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:i=>{var l,c;if(i.json){var u=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(ap),(c=this.ni)==null||c.register({[ap]:u}),e(u)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,a)=>(o[a]=t[a],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(np)||{},a=e?.$set||(e!=null&&e.$set_once?{}:e),n=e?.$set_once,i={};if(n)for(var l in n)({}).hasOwnProperty.call(n,l)&&(l in o||(i[l]=n[l]));this._instance.register({[np]:Oe({},o,i,a)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(np)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(fl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Oe({},o[a],e[a]),delete e[a]})),this._instance.register({[fl]:Oe({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(fl)||{};this._instance.register({[fl]:Oe({},t,{[e]:{}})})}else this._instance.unregister(fl)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},tie={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===qu||this.bs===Bg?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=DO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw ps.error("started without valid sessionManager"),new Error(Hw+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===xi)throw new Error(Hw+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(op))==null||!e.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&t&&o&&!a}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!qe(Object.assign)&&!qe(Array.from);this.ws&&o?(this.Is(e),ps.info("starting")):(this.bs=DO,this.stopRecording())}}Is(e){var t,o,a;this.ws&&(this.bs!==qu&&this.bs!==Bg&&(this.bs=OO),et!=null&&(t=et.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=et.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(a=et.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return ps.error("could not load recorder",n);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(jx)}Ts(e,t){if(Pt(e))return null;var o,a=er(e)?e:parseFloat(e);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(ps.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):a}As(e){if(this.ni){var t,o,a=this.ni,n=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),u=this.Ts(l?.sampleRate,"remote config sampleRate"),p=c??u;Pt(p)&&this.ks();var m=l?.minimumDurationMilliseconds;a.register({[op]:Oe({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Oe({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:p,minimumDurationMilliseconds:qe(m)?null:m,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};n(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===qu&&(this.bs=Bg,ps.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):ps.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(op);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(op);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=et.__PosthogExtensions__)==null||!t.initSessionRecording)return ps.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[r3]:!0});if(this.ys||(this.ys=(o=et.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===Bg||this.bs===qu?void 0:(this.bs=qu,ps.info("persisted remote config is stale, requesting fresh config before starting"),void new v3(this._instance).load());this.bs=OO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[XF]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[JF]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?e3:t3]:!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))}}},oie={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new kO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Lo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((a=>new RegExp(a))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&Fe){var e=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){EO.error("Failed to capture event",a)}};if(Yo(Fe,"submit",e,{capture:!0}),Yo(Fe,"change",e,{capture:!0}),Yo(Fe,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||ge?.event,AS)};Yo(Fe,"copy",t,{capture:!0}),Yo(Fe,"cut",t,{capture:!0})}}}else EO.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({[gw]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((a=>{var n=Fe?.querySelectorAll(a);n?.forEach((i=>{e===i&&o.push(a)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[gw];if(Ni(this.Ns)&&!$r(o)&&!this.instance.Fr())return!1;var a=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!a}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,a=TO(e);A3(a)&&(a=a.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||qw(h))return!1;var v,b,S;if($r(f)?(v=!!f&&_O,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:_O,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=xO(h,!1);return!(function(w,_){if(w===!1||qe(w))return!1;var E;if(w===!0)E=jre;else{if(!Nt(w))return!1;if(w.length>10)return je.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;E=w.map((C=>C.toLowerCase()))}return _.some((C=>{var{safeText:k,ariaLabel:R}=C;return E.some((D=>k.includes(D)||R.includes(D)))}))})(b,x.map((w=>{var _;return{safeText:Mp(w).toLowerCase(),ariaLabel:((_=w.getAttribute("aria-label"))==null?void 0:_.toLowerCase().trim())||""}})))&&!wO(x,v)})(a,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===AS;if(a&&(function(h,f,v,b,S){var x,w,_,E;if(v===void 0&&(v=void 0),!ge||qw(h)||(x=v)!=null&&x.url_allowlist&&!SO(v.url_allowlist)||(w=v)!=null&&w.url_ignorelist&&SO(v.url_ignorelist))return!1;if((_=v)!=null&&_.dom_event_allowlist){var C=v.dom_event_allowlist;if(C&&!C.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:k,targetElementList:R}=xO(h,b);if(!(function(L,$){var B=$?.element_allowlist;if(qe(B))return!0;var U,j=function(ne){if(B.some((H=>ne.tagName.toLowerCase()===H)))return{v:!0}};for(var K of L)if(U=j(K))return U.v;return!1})(R,v)||!wO(R,(E=v)==null?void 0:E.css_selector_allowlist))return!1;var D=ge.getComputedStyle(h);if(D&&D.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(f.type)>=0;default:return k?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(Gx.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=Gre(a,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(i.$element_selectors=c),t===AS){var u,p=D3(ge==null||(u=ge.getSelection())==null?void 0:u.toString()),m=e.type||"clipboard";if(!p)return!1;i.$selected_content=p,i.$copy_type=m}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return _i(Fe?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(ge==null||(t=ge.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(je.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,je.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(ge&&ge.history){var o=this;(e=ge.history.pushState)!=null&&e.__posthog_wrapped__||AO(ge.history,"pushState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("pushState")})),(t=ge.history.replaceState)!=null&&t.__posthog_wrapped__||AO(ge.history,"replaceState",(a=>function(n,i,l){a.call(this,n,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=ge==null||(t=ge.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Wc,{navigation_type:e}),this.Ls=o}catch(a){je.error("Error capturing "+e+" pageview",a)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Yo(ge,"popstate",e),this.Ds=()=>{ge&&ge.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[fw]),this.rageclicks=new kO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Lo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Wre.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({[fw]: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=Fe?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&Fe&&(this.zs=this.Yr.bind(this),Yo(ge,Vf,this.zs),this.Us=e=>this.Tt(e||ge?.event),Yo(Fe,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||ge?.event),Yo(Fe,"mousemove",this.Ys,{capture:!0}),this.Ws=new eO(this.instance,sre,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Yo(Fe,qf,this.Xs),this.Rs=!0)}Vs(){var e;ge&&Fe&&(this.zs&&ge.removeEventListener(Vf,this.zs),this.Us&&Fe.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Fe.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Fe.removeEventListener(qf,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),i=(function(l,c,u){for(var p=l;p&&zv(p)&&!Rs(p,"body");){if(p===u)return!1;if(xt(c,ge?.getComputedStyle(p).position))return!0;p=O3(p)}return!1})(TO(e),["fixed","sticky"],n);return{x:e.clientX+(i?0:a),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!yO(e.target)&&MO(e)){var a=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Oe({},a,{type:"rageclick"})),this.Qs(a)}}Gs(e){!yO(e.target)&&MO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(ge){var t=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...xd,...o||[]]:[],n=Dp(t,a,Op);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(e)}}Yr(){this.T&&!Xc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:eO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,a)=>Oe({},o,{["$web_vitals_"+a.name+"_event"]:Oe({},a),["$web_vitals_"+a.name+"_value"]:a.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var a,n=(a=this._instance.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0);if(qe(n))us.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();qe(i)||(Pt(o?.name)||Pt(o?.value)?us.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),qe(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=qe(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Oe({},o,{$current_url:i,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):us.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,i,l=et.__PosthogExtensions__;qe(l)||qe(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:i}=l.postHogWebVitalsCallbacks),o&&a&&n&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):us.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[Sw]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Lo(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Pt(o)?((t=this._instance.persistence)==null?void 0:t.props[ww])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Lo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Lo(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Lo(this.oo)&&er(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:RO;return e>0&&6e4>=e?RO:e}get isEnabled(){var e=Ta?.protocol;if(e!=="http:"&&e!=="https:")return us.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Lo(this.oo)?this.oo.web_vitals:$r(this.oo)?this.oo:void 0;return $r(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(us.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Lo(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Lo(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Sw]:t}),this._instance.persistence.register({[ww]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?us.error("failed to load script",a):e()}))}io(){var e=ge?ge.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...xd,...t||[]]:[];return Dp(e,o,Op)}us.error("Could not determine current URL")}}},aie={exceptionObserver:class{constructor(e){var t,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=et.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var i=et.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=et.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=et.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(u){$u.error("failed to start",u),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[vw]),this.do=new fne({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,Gt:$u}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Lo(e)?t=Oe({},t,e):(qe(e)?this.co:e)&&(t=Oe({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?($u.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return $u.error("failed to load script",a);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[vw]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,a,n=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(n)?$u.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new Ane([new Bne,new Gne,new jne,new Fne,new Vne,new qne,new Une,new Hne],(function(a){for(var n=arguments.length,i=new Array(n>1?n-1:0),l=1;n>l;l++)i[l-1]=arguments[l];return function(c,u){u===void 0&&(u=0);for(var p=[],m=c.split(`
168
- `),h=u;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=ZD.test(f)?f.replace(ZD,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(E=w,E[E.length-1]||{}).filename,function:_.function||_d});var E}))})(p)}})("web:javascript",Mne,Lne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(bw))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new Wne(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[bw]:this.fo,[yw]:i})}}get _o(){var e,t=!!this._instance.get_property(yw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!xo(e)||e.trim().length===0)return void Ti.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Kne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&Ti.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[If]:e,[Lf]:new Date().toISOString()},a))}catch(i){Ti.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Ti.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Ti.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ti.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ti.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ti.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return Ti.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[If]:e,[Lf]:new Date().toISOString()})}wo(e){return Lo(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return xo(n)&&n.length>0&&o.$exception_types.push(n),xo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=P3[n.operator],c=Nt(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&Nt(e)}}},nie=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[Tw]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(Tw)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?NO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Nt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[of];if(Nt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return NO.error(l),void e([],{isLoaded:!1,error:l})}var c=Nt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[of]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(of)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},Uv),rie={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))u[h]={id:p[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},CF(e,Yre),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(hs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,hs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){hs.error(IO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){hs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){hs.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void hs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(m=>{if(m)return hs.error(IO+u,m)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else hs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},iie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];qe(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Kre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},sie=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=Nt(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(Uw)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(LO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(zx);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Jre(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(LO),e([]);var o,a=this._instance.get_property(Cw);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((p=this._surveyEventReceiver)==null||p.register(h)),(i=this._instance.persistence)==null||i.register({[Cw]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:DS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:DS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:DS})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Ore.includes(n.type)){var i=Fe?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Iw.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==Iw.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Uv),lie={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),i3(this.instance.config)||!ge||!Fe)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=Xre||Wf(e.hash,"__posthog")||Wf(e.hash,"state"),i=n?JD((()=>JSON.parse(atob(decodeURIComponent(n)))))||JD((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(BO)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Pt(t)&&_i(t)?t(e,this.instance):FO.warn("No toolbar load function found")}loadToolbar(e){var t=!(Fe==null||!Fe.getElementById(o3));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(BO,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return FO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Yo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},cie=Oe({experiments:Oa},Uv),die={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;Pt(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||i3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(zx);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Wn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Wn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Wn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},uie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(zx)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:S}=GF[v]||kne,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var _=Oe({},w,h.attributes||{}),E={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:YD(_)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),qe(h.trace_flags)||(E.flags=h.trace_flags),E})(e,this.ua());this.sa.push({record:m}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:YD(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},pie=Oe({},Uv,tie,oie,aie,nie,rie,sie,iie,lie,cie,die,uie);Zn.__defaultExtensionClasses=Oe({},pie);var $O,Ii=($O=pp[Yc]=new Zn,(function(){function e(){e.done||(e.done=!0,E3=!1,mo(pp,(function(t){t._dom_loaded()})))}Fe!=null&&Fe.addEventListener?Fe.readyState==="complete"?e():Yo(Fe,"DOMContentLoaded",e,{capture:!1}):ge&&je.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),$O);const hie="studio-ui-resources",Xf="html",mie=10080*60*1e3,gie=50,fie=16*1024*1024;function vie(e){return e[0]==="mcp"&&e[1]===MI}function $v(){return new Promise((e,t)=>{const o=indexedDB.open(hie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function Cd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Gw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function bie(e){if(!(typeof indexedDB>"u"))try{const t=await $v(),o=Cd(t,"readonly"),a=await Gw(o.getAllKeys()),n=await Gw(o.getAll()),i=Date.now(),l=a.map((p,m)=>({key:p,value:n[m]})).sort((p,m)=>(m.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:m}of l){if(!m||i-m.updatedAt>mie||u>=gie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=Cd(t,"readwrite");for(const m of c)p.delete(m)}}catch{}}function yie(e){if(typeof indexedDB>"u")return()=>{};const t=$v().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!vie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>fie||t.then(i=>{if(i)try{Cd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function Sie(){typeof indexedDB>"u"||$v().then(e=>Cd(e,"readwrite").clear()).catch(()=>{})}async function lve(e){if(!(typeof indexedDB>"u"))try{const t=await $v(),o=await Gw(Cd(t,"readonly").getAllKeys()),a=Cd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===MI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Kx=1440*60*1e3,Tie=1e3,wie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),_ie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let B3=!1,F3=!1;function xie(e){const t=e[0];return typeof t=="string"&&wie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&_ie.has(e[4])}function Pie(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Kx;if(o.buster!=="4.406.0"||a||!o.state){window.localStorage.removeItem(ev);return}$$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),B3=!0}catch{Aie()}}function Cie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=U$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&xie(l.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.406.0",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,Tie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const j3="studio:org-cache:",kie=20;function Eie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Kx);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>kie;)o.shift();return Object.fromEntries(o)}function z3(e){return`${j3}${e}`}function cve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(z3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Kx?null:(F3=!0,a)}catch{return null}}function dve(e,t,o){if(!(typeof window>"u"))try{const a=z3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(Eie(i)))}catch{}}function Aie(){if(Sie(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(j3)&&window.localStorage.removeItem(t)}}catch{}}function Rie(){return B3}function Die(){return F3}let Ai=!1,Kw=null,qO=!1;const Wx="studio:lp-distinct-id",U3="mesh:lp-distinct-id",MS="/api/_reports/link-token/",Oie=1440*60*1e3;function $3(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(MS)&&n.pathname!==MS&&(n.pathname=`${MS}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function NS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?$3(o):o]))}const Mie=e=>e?(e.properties=NS(e.properties),e.$set&&(e.$set=NS(e.$set)),e.$set_once&&(e.$set_once=NS(e.$set_once)),e):null;function q3(){try{const e=window.localStorage.getItem(Wx)??window.localStorage.getItem(U3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Oie?t:void 0}catch{return}}function Nie(){try{window.localStorage.removeItem(Wx),window.localStorage.removeItem(U3)}catch{}}function Iie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Wx,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??q3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Lie(e){const t=q3();if(t&&(Nie(),t!==e))try{Ii.alias(t)}catch{}}function Bie(e,t){if(Ai||typeof window>"u")return;const o=Iie();Ii.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Mie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:$3(a.name)}:{}})},person_profiles:"identified_only"}),Ai=!0}function Fie(e,t){Ai&&(Ii.identify(e,t),Lie(e))}function jie(){Ai&&(Ii.reset(),Kw=null)}function V3(e,t){Ai&&Ii.capture(e,t)}function uve(){return Ai}function pve(){if(!Ai||qO||typeof performance>"u")return;qO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};V3("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Rie(),org_cache_restored:Die()})}function hve(e,t){Ai&&e!==Kw&&(Ii.group("organization",e,t),Kw=e)}function H3(e,t){if(Ai)try{Ii.captureException(e,t)}catch{}}const zie=["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 Uie(e){const t=Le.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:zie}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=T.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,T.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function G3(e){const t=Le.c(20),{orgName:o}=e,a=Cr(),n=$ie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"bg-muted p-3 rounded-full",children:T.jsx(lF,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=T.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=T.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let m;t[10]!==c||t[11]!==p?(m=T.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.archivedOrgScreen.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=T.jsx(Al,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=T.jsxs(Uie,{children:[i,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function $ie(){window.location.href="/"}function qie(){const e=Le.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=jp(t);let a;return e[1]!==o?(a=T.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:T.jsx(Il,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Vie(e){const t=Le.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:T.jsx(gF,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=T.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=T.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let m;t[5]!==u||t[6]!==p?(m=T.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??T.jsx(qie,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=T.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const VO="__studio_chunk_reload_ts";function K3(e){return e?.message===FZ}function Hie(e){return!!e?.message?.includes("Access denied")}function HO(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 Gie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),H3(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:K3(this.state.error)?T.jsx(G3,{}):Hie(this.state.error)?T.jsx(Vie,{}):T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(Dx,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kie(e){const t=Le.c(3),o=Cr();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Gie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Wie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=HO(t);if(H3(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(VO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(VO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&HO(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(fF,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),T.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?K3(this.state.error)?T.jsx(G3,{}):T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(Dx,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Yie(e){const t=Le.c(3),o=Cr();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Wie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Zie(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--studio-surface-radius,var(--radius-xl))] card-shadow",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function mve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function gve(e){const t=Le.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=qt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let m;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(m=(o||a||n||i)&&T.jsxs("div",{className:qt("flex items-center justify-between gap-3 px-4",c),children:[T.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&T.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&T.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&T.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",T.jsx(cF,{size:12})]})]})]}),i&&T.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=m):m=t[7];let h;return t[8]!==u||t[9]!==p||t[10]!==m?(h=T.jsxs("section",{className:p,children:[m,u]}),t[8]=u,t[9]=p,t[10]=m,t[11]=h):h=t[11],h}function fve(e){const t=Le.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=Zie,t[5]!==o?(i=qt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map(Qie),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=T.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function Qie(e,t){return T.jsxs("div",{children:[t>0&&T.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function vve(e){const t=Le.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=l&&"hover:bg-muted/50 cursor-pointer";let h;t[0]!==c||t[1]!==p||t[2]!==m?(h=qt(p,m,c),t[0]=c,t[1]=p,t[2]=m,t[3]=h):h=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?k=>{k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&T.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let x;t[8]!==a?(x=T.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let w;t[10]!==n?(w=n&&T.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=w):w=t[11];let _;t[12]!==u||t[13]!==x||t[14]!==w?(_=T.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,u]}),t[12]=u,t[13]=x,t[14]=w,t[15]=_):_=t[15];let E;t[16]!==i?(E=i&&T.jsx("div",{className:"shrink-0",onClick:Jie,children:i}),t[16]=i,t[17]=E):E=t[17];let C;return t[18]!==l||t[19]!==_||t[20]!==E||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(C=T.jsxs("div",{className:h,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,E]}),t[18]=l,t[19]=_,t[20]=E,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=C):C=t[26],C}function Jie(e){return e.stopPropagation()}function bve(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function yve(e){const t=Le.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=qt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=T.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Xie(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const qv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:yF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:bF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:uF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:vF,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:mF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:hF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Sve(e){const t=qv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function Tve(e){return qv[e].tabs.length>0}const ese=new Set(["owner","admin"]);function W3(){const e=Le.c(11),{org:t,locator:o}=Wp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Rd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function wve(e){const t=Le.c(8),{data:o,loading:a,error:n}=W3();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Y3(){const e=Le.c(10),{data:t,loading:o,error:a}=W3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?ese.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function tse(){const e=Le.c(13),{org:t}=Wp(),o=tx(),{capabilities:a,isPrivileged:n}=Y3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:m,isLoading:h}=Rd(p);let f;e[8]!==m?.sites?(f=m?.sites.map(ose)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function ose(e){return e.slug}function _ve(){const e=Le.c(7),t=tx(),o=Cr();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:ase,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],sp(i)}function ase(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function xve(e,t){const o=Le.c(14),{org:a}=Wp(),n=tx();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let m;return o[10]!==l||o[11]!==u||o[12]!==p?(m={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=m):m=o[13],c(m)}function nse(){const e=Le.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Y3(),{sites:i,isLoading:l}=tse(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=m=>m.requiresOwnedSites&&!c&&!l?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;u=Object.fromEntries(Object.values(qv).map(m=>[m.key,m.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function rse(e){const t=Le.c(16),{group:o}=e,a=Cr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=jp(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:ise},t[1]=l):l=t[1];const c=C_(l),u=nse()[o],{titleKey:p}=qv[o];let m;t[2]!==a||t[3]!==p?(m=a(p),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]!==m?(h=T.jsx(ld.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx(nn.Toolbar.Left.Portal,{children:T.jsx(ld.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),x=c===S||c.startsWith(`${S}/`);return T.jsx(ld.Tab,{active:x,asChild:!0,children:T.jsx(Il,{to:b.to,params:{org:i},onClick:()=>V3("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=T.jsxs(T.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function ise(e){return e.location.pathname}function Z3(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[T.jsx(hD,{className:"h-32 w-full"}),T.jsx(hD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function sse(e){const t=Le.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=T.jsx(rse,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??T.jsx(Z3,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=T.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let m;t[7]!==n||t[8]!==p?(m=T.jsx(Kie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;return t[10]!==i||t[11]!==c||t[12]!==m?(h=T.jsx(ld,{children:T.jsx(ld.Content,{children:T.jsx(ld.Container,{children:T.jsxs(Xie,{className:i,children:[c,m]})})})}),t[10]=i,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Li(e){return function(){return T.jsx(sse,{group:e,children:T.jsx(Z3,{})})}}function lse(e){try{localStorage.setItem(Fl.lastLocation(),JSON.stringify(e))}catch{}}function cse(){try{const e=localStorage.getItem(Fl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function Pve(){try{localStorage.removeItem(Fl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",orgIndex:"/$org/"},nt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",git:"/$org/projects/$agentId/git",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Cve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:dse},e[0]=t):t=e[0],C_(t)}function dse(e){return e.matches.at(-1)?.fullPath??""}const use=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"],[Ot.threadAnalytics,"org-only"]]);function kve(e,t){const o=use.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Eve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:pse},e[0]=t):t=e[0],C_(t)}function pse(e){return e.matches.findLast(hse)?.staticData.mainView}function hse(e){return e.staticData.mainView}function rf(e){return`agent-view:${encodeURIComponent(e)}`}function mse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function Q3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function Yx(e,t){return`app:${e}:${t}`}function gse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function J3(e){return`deck:${encodeURIComponent(e)}`}function fse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function X3(e){return`file:${encodeURIComponent(e)}`}function vse(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function e4(e){return`library-file:${encodeURIComponent(e)}`}function bse(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t4(e){return`code:${encodeURIComponent(e)}`}function yse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const o4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn","git"],Sse=new Set(o4),a4=new Set(["hosting","e2e","analytics","cdn"]),Tse=new Set(["board","files","connect-sources","reports"]);function Ave(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const wse=new Map([["preview","site-editor"]]);function Vv(e){return wse.get(e)??e}const Zx=new Set(["instructions","connections","layout","settings"]);function _se(e){return!!e&&Zx.has(e)}const xse=new Set(["overview","board","reports"]);function Rve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return n4(e??null)}function n4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Vv(t.type);if(Zx.has(o))return"settings";if(Sse.has(o)||xse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return Yx(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?rf(t.id):n[0]?rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?rf(a):"settings"}function Dve(e){const t=e.routeDefaultMain||n4(e.metadata),o=e.panelTabId&&Zx.has(e.panelTabId)?"settings":e.panelTabId?Vv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Ove(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Mve(e){return e.mainOpen?e.activeTab==="automations"?!0:Q3(e.activeTab)!==null:!1}const Pse=new Set([...o4.filter(e=>!a4.has(e)),...Tse,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Cse(e){return!!e&&Pse.has(e)}function kse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?Yx(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?X3(t.key):void 0;case"deck":return t.deck?J3(t.deck):void 0;case"library-file":return t.path?e4(t.path):void 0;case"code":return t.file?t4(t.file):"code";default:{const o=Vv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Nve(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?t4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?Yx(t.connectionId,t.toolName):void 0;case"view":return t.viewId?rf(t.viewId):void 0;case"file":return o.key?X3(o.key):void 0;case"deck":return o.path?J3(o.path):void 0;case"library-file":return o.path?e4(o.path):void 0;default:return e.mainView}}const Ese={files:"library",discover:"discover"},Ase={board:"tasks",reports:"reports"},Rse={settings:"settings",assets:"assets",git:"git",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function r4(e){const t=mse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=gse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=Q3(e);if(a)return{kind:"automations",automationId:a.id};const n=vse(e);if(n)return{kind:"output-file",key:n.key};const i=fse(e);if(i)return{kind:"output-deck",path:i.path};const l=bse(e);if(l)return{kind:"library-file",path:l.path};const c=yse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(_se(e))return{kind:"agent-section",section:"settings"};const u=Vv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=Ase[u];if(p)return{kind:"project-destination",destination:p};const m=Ese[u];if(m)return{kind:"org-destination",destination:m};const h=Rse[u];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:u}}function Ol(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=r4(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:void 0},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:nt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:nt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:nt.siteEditorCode,params:a,search:{file:n.file}}:{to:nt.siteEditor,params:a,search:{}};case"agent-section":return{to:nt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:nt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:nt.automations,params:a,search:{}};case"app":return{to:nt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:nt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:nt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:nt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:nt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:nt.connectSources,params:a,search:{}}}}function Ive(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&r4(t).kind==="org-destination"?"overview":t;return Ol({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Dse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case nt.root:e({to:nt.root,params:t.params,search:a,replace:n});return;case nt.tasks:e({to:nt.tasks,params:t.params,search:a,replace:n});return;case nt.reports:e({to:nt.reports,params:t.params,search:a,replace:n});return;case nt.siteEditor:e({to:nt.siteEditor,params:t.params,search:a,replace:n});return;case nt.siteEditorContent:e({to:nt.siteEditorContent,params:t.params,search:a,replace:n});return;case nt.siteEditorCode:e({to:nt.siteEditorCode,params:t.params,search:a,replace:n});return;case nt.automations:e({to:nt.automations,params:t.params,search:a,replace:n});return;case nt.automation:e({to:nt.automation,params:t.params,search:a,replace:n});return;case nt.app:e({to:nt.app,params:t.params,search:a,replace:n});return;case nt.view:e({to:nt.view,params:t.params,search:a,replace:n});return;case nt.outputFile:e({to:nt.outputFile,params:t.params,search:a,replace:n});return;case nt.outputDeck:e({to:nt.outputDeck,params:t.params,search:a,replace:n});return;case nt.libraryFile:e({to:nt.libraryFile,params:t.params,search:a,replace:n});return;case nt.connectSources:e({to:nt.connectSources,params:t.params,search:a,replace:n});return;case nt.settings:case nt.assets:case nt.git:case nt.hosting:case nt.e2e:case nt.analytics:case nt.experiments:case nt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Lve(e,t){Dse(e,Ol(t),t)}function Ose(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Mse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Nse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),i4=new Set(["main"]),Ise=new Set(["virtualmcpid"]);function Hv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function kl(e,t){return{...Hv(e,Nse),...t.search}}function Lse(e){return Hv(e,Ise)}function Bve(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Ol({org:e.org,agentId:t,tabId:o}):kd(e.org,t);return{kind:"canonical",route:a,search:kl(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:Lse(e.search)}:null}function br(e){return e?.trim()||void 0}function s4(e){return Cse(e)||e!==void 0&&a4.has(e)}function l4(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oK(t)!==null||nK(t)!==null||rK(t)!==null||iK(t)||cK(t):!1}function Bse(e){const t=br(e.agentIdParam),o=s4(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Fve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=Ww({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||Mse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!l4(t);if(!(s4(t)||o))return null;const n=Bse({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=Ww({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Fse(e,t,o,a){const n=br(a);switch(e){case"board":return n?Ol({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Ol({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Np(e){const t=Fse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return kd(e.org,e.agentId);const o=br(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:nt.root,params:{org:e.org,agentId:o},search:{}}:Ol({org:e.org,agentId:o,tabId:e.tabId}):null}function kd(e,t){const o=br(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function jse(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Hv(o,i4),mainpanel:!1}};if(t==="chat"){const n=kd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...kl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Np({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:kl(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function Ww(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=Ww({...e,search:Hv(t,i4)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return jse({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=kd(e.org,o);return{kind:"canonical",route:l,search:kl(t,l)}}const n=kse(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Ol({org:e.org,agentId:o,tabId:n}):Np({org:e.org,agentId:o,tabId:n,search:t}):Np({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...kl(t,i),sidepanel:!0,mainpanel:!1}:kl(t,i)}:null}function jve(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=kd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Np({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Np({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=kd(e.org,o);return{route:i,search:{...kl(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function c4(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const zse={contentPageId:V().optional(),contentPath:V().optional(),contentPathTemplate:V().optional(),contentCollection:V().optional(),contentItem:V().optional()},d4=zse,Qx={view:V().optional(),group:V().optional(),subgroup:V().optional(),q:V().optional(),assignee:V().optional(),priority:V().optional(),due:V().optional(),tags:V().optional(),repo:V().optional(),boardOrg:V().optional()},Yw={fileView:ia(["all","documents","media"]).catch("all").optional(),path:V().optional(),preview:V().optional(),skill:V().optional(),brand:V().optional()},Use={file:V().optional(),key:V().optional(),deck:V().optional(),path:V().optional(),connection:V().optional(),tool:V().optional(),automation:V().optional(),section:V().optional(),preview:V().optional(),autosend:V().optional(),connect:Tv().optional(),siteUrl:V().optional(),...d4},u4={...Use,task:V().optional(),...Qx,skill:Yw.skill,brand:Yw.brand},ah=_e(u4),pn=s$({component:()=>T.jsx(Yie,{children:T.jsx(P_,{})})}),$se=Ie({getParentRoute:()=>pn,path:"/login",component:Ue(()=>ze(()=>import("./login-BMhzWIRn.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:Di(()=>_e({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional(),src:V().optional(),ref:V().optional()}))}),qse=Ie({getParentRoute:()=>pn,path:"/cli/auth-success",component:Ue(()=>ze(()=>import("./cli-auth-success-CtopuIcy.js"),__vite__mapDeps([6,5])))}),Vse=Ie({getParentRoute:()=>pn,path:"/reset-password",component:Ue(()=>ze(()=>import("./reset-password-B_iQOKSQ.js"),__vite__mapDeps([7,2]))),validateSearch:Di(()=>_e({token:V().optional(),error:V().optional()}))}),Hse=Ie({getParentRoute:()=>pn,path:"/auth/$pathname",component:Ue(()=>ze(()=>import("./auth-catchall-BA6qJurQ.js"),[]))}),Gse=Ie({getParentRoute:()=>pn,path:"/oauth/callback",component:Ue(()=>ze(()=>import("./oauth-callback-e_uxEp2U.js"),__vite__mapDeps([8,9,10])))}),Kse=Ie({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:Ue(()=>ze(()=>import("./oauth-callback-ai-provider-CJR_fnOb.js"),[]))}),nh=Ie({getParentRoute:()=>pn,path:"/_admin",component:Ue(()=>ze(()=>import("./layout-DXU0Xubq.js"),__vite__mapDeps([11,12,13])))}),Wse=Ie({getParentRoute:()=>nh,path:"/",beforeLoad:()=>{throw Qo({to:"/_admin/users"})}}),Yse=Ie({getParentRoute:()=>nh,path:"/users",component:Ue(()=>ze(()=>import("./users-B1mD9fdQ.js"),__vite__mapDeps([14,15,16,17,18,19,20,21,22,23,24,25,26,27,28])))}),Zse=Ie({getParentRoute:()=>nh,path:"/orgs",component:Ue(()=>ze(()=>import("./orgs-uAbNfBwh.js"),__vite__mapDeps([29,15,16,17,18,19,20,2,30,24,31,32,33,34,35,36,37,38,23,39,40,25,26,27])))}),Qse=Ie({getParentRoute:()=>nh,path:"/prompts",component:Ue(()=>ze(()=>import("./prompts-9Ciu0DHj.js"),__vite__mapDeps([41,18,2,30,38,25])))}),Jse=nh.addChildren([Wse,Yse,Zse,Qse]),Jx=Ie({getParentRoute:()=>pn,id:"shell",component:Ue(()=>ze(()=>import("./shell-layout-C1ofRTSy.js").then(e=>e.g),__vite__mapDeps([42,21,22,43,44,45,46,47,17,48,49,50,51,35,36,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,69,32,70,71,31,72,73,74,10,75,76,77,78,79,80,81,82,4,83,39,3,12,84,85,86])))}),Xse=Ie({getParentRoute:()=>Jx,path:"/",beforeLoad:async()=>{const e=cse();if(e)throw Qo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Fl.lastOrgSlug());if(t)throw Qo({to:"/$org",params:{org:t}});const{data:o}=await ZI();if(!o)return;const a=o[0];throw Qo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),ele=Ie({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await ZI();if(e&&e.length>0)throw Qo({to:"/"})},component:Ue(()=>ze(()=>import("./onboarding-C_MoLVsp.js"),__vite__mapDeps([87,12,5,88,21,22,66,2,30,37,43,51,65,68])))}),p4=Di(()=>_e({org:V().optional(),siteUrl:V().optional(),fix:V().optional()})),tle=Ie({getParentRoute:()=>pn,path:"/reports-onboarding",component:Ue(()=>ze(()=>import("./reports-onboarding-BpRkFZDN.js"),__vite__mapDeps([89,90,1,2,3,4,5,88,21,22,66,91,92,93,30,94,74,10,95,80,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,20,67,68,69,32,70,31,96,34,97,98,99,24,100,101,102,9,103,104,105,106,107]))),validateSearch:p4}),ole=Ie({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:p4,beforeLoad:({search:e})=>{throw Qo({to:"/reports-onboarding",search:e})}}),ale=Ie({getParentRoute:()=>pn,path:"/choose-editor",component:Ue(()=>ze(()=>import("./choose-editor-DTAKYLOA.js"),__vite__mapDeps([108,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,32,70,12]))),validateSearch:Di(()=>_e({site:V().optional(),domain:V().optional(),pageId:V().optional(),path:V().optional(),pathTemplate:V().optional()}))}),nle=Ie({getParentRoute:()=>pn,path:"/report/$domain",component:Ue(()=>ze(()=>import("./reports-DGmWaCFr.js"),__vite__mapDeps([109,103,4,1,2,3,110])))}),Gv=Ie({getParentRoute:()=>Jx,path:"/$org",beforeLoad:({params:e})=>{lse({org:e.org})},component:Ue(()=>ze(()=>import("./route-CFY-8tGH.js"),__vite__mapDeps([111,112,113,114,32,96,34,115,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,118,119,13,120,93,30,33,38,121,122,123,124,125,126,127,128,129,130,131,132,28,26,27,91,92,2,133,134,135,136,40,137,138,139,140,141,142,143,144,145,146,24,147])))}),Kv=Ie({getParentRoute:()=>Gv,id:"org-shell",pendingComponent:Md,component:Ue(()=>ze(()=>import("./thread-route-iDCB4hcC.js"),__vite__mapDeps([148,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,90,31,32,151,97,98,99,49,94,95,80,45,46,47,17,48,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,96,34,93,30,2,24,100,101,102,9,103,104,105,152,106])))}),rle=_e({sidepanel:bL,mainpanel:yL,main:ro([V(),Ze(0)]).optional(),thread:V().optional(),autosend:V().optional(),preview:V().optional(),virtualmcpid:V().optional()}),Mn=Ie({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:rle,search:{middlewares:[DU(["sidepanel"])]},pendingComponent:Md,component:Ue(()=>ze(()=>import("./route-DP3hx43s.js"),__vite__mapDeps([153,46,60,112,113,114,32,96,34,117,154,17,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,155,31,119,146,20,156,157,93,30,2,158,159,160,42,21,22,43,44,45,47,48,49,50,51,35,36,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,182,183,102,9,184,23,185,186,187,188,189,190,191,192,138,193,194,195,196,197,198,199,18,115,116,200,201,202,92,203,204,205,141,206,134,135,136,40,207,142,208,209,210,211,212,213,214,215])))}),ile=ah.extend({virtualmcpid:V().optional()}),sle=Ie({getParentRoute:()=>Mn,path:"/$taskId",validateSearch:ile,component:()=>null}),io=Ue(()=>ze(()=>import("./index-DXiYogYY.js"),__vite__mapDeps([200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202])),"ChatLayoutPending"),to=Ue(()=>ze(()=>import("./index-DXiYogYY.js"),__vite__mapDeps([200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202])),"ChatLayoutError"),lle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./home-Dyn_f2jZ.js"),__vite__mapDeps([216,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,160,157,155,93,30,2,158,159,161,162,139,140,149,125,124,150,132,127,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,119,173,174,175,156,176,147,177,121,178,126,179,146,104,98,105,180,129,130,181,38,182,183,102,9,184,23,185,186,18,143,138,144,145,24,217,218,131,28])))}),cle=Ie({getParentRoute:()=>Mn,path:"/projects",validateSearch:ah,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Oo=Ie({errorComponent:to,getParentRoute:()=>Mn,path:"/projects/$agentId",validateSearch:ah,component:P_}),dle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ue(()=>ze(()=>import("./agent-overview-lYvI4Nyl.js"),__vite__mapDeps([219,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,151,97,98,99,220,131,132,218,145,138,139,140,28,177,121,26,27])))}),ule=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...Qx}),beforeLoad:({params:e,search:t})=>{const o=c4(e.taskKey,t);if(o)throw Qo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./project-tasks-BTlGW7tU.js"),__vite__mapDeps([221,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,222,223,224,225,118,28,226,227,131,132,143,138,139,140,144,2,30,145,129,130,146,24,177,121,26,27,228,127,229,230,188,164,165,159,231,157,155,93,158,175,232,176,199,182,99,233,186,187,163,125,149,124,150,189,190,191,192,168,156,193,194,185,203,169,161,23,234,235,178,126])))}),ple=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./project-reports-Dc50o0bW.js"),__vite__mapDeps([236,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,237,90,2,151,97,98,99,220,106,107])))}),Wv=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:V().optional(),...d4}),component:Ue(()=>ze(()=>import("./agent-site-editor-CdJOqKVu.js"),__vite__mapDeps([238,234,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,42,21,22,43,44,45,46,47,17,48,49,50,51,35,36,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,69,32,70,71,31,78,79,80,81,12,85,86,117,118,96,34,92,166,195,196,177,121,239,240,213,212,24,129,130,138,207,145,162,241,197,198,199,242,243,154,155,119,146,113,156,157,93,30,2,158,159,160,161,33,163,164,165,26,27,123,167,168,169,170,171,172,173,174,175,176,147,178,126,179,104,98,105,180,181,38,182,183,102,9,184,23,185,186,187,188,189,190,191,192,114,193,194,244,245,200,115,112,116,201,202,246])))}),hle=Ie({getParentRoute:()=>Wv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ue(()=>ze(()=>import("./agent-site-editor-preview-CWf5w5wW.js"),__vite__mapDeps([247,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,239,117,249,212,128,250,213,229,251,223,37,225,92,19,24,252,244,253,243,242,241,101,215,18,201,145,143,144])))}),mle=Ie({getParentRoute:()=>Wv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ue(()=>ze(()=>import("./agent-site-editor-content-DXhW4uZI.js").then(e=>e.a0),__vite__mapDeps([254,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,92,128,249,239,212,250,213,229,251,223,37,225,19,24,252,244,255,256,18,145,143,144])))}),gle=Ie({getParentRoute:()=>Wv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:V().optional()}),component:Ue(()=>ze(()=>import("./agent-site-editor-code-_pcbcBCM.js"),__vite__mapDeps([257,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,18])))}),fle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Qo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./agent-automations-Bhwn57Bu.js"),__vite__mapDeps([258,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,19,18,259,260,92])))}),vle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:ia(["settings","runs"]).optional()}),component:Ue(()=>ze(()=>import("./agent-automation-BnqBubMi.js"),__vite__mapDeps([261,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,171,37,118,155,182,205,262,119,149,139,140,125,124,150,132,127,170,2,33,172,173,263,259,188,264,174,175,157,93,30,158,159,156,176,166,250,213,92,265,129,130,16,18,185,177,121,203,233,186,187,26,27,164,163,165,189,190,191,192,168,138,193,194,184])))}),ble=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ue(()=>ze(()=>import("./agent-settings-Braq0K0j.js"),__vite__mapDeps([266,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),yle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ue(()=>ze(()=>import("./agent-assets-B0UpGeZB.js"),__vite__mapDeps([272,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,248,204,182,205,191,158,154,149,139,140,125,124,150,132,127,155,119,146,156,157,93,30,2,159,160,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,138,193,194,197,198,199,141,206,134,135,136,40,207,92,19,24,252])))}),Sle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/git",staticData:{pageTitle:"common.mainPanelTabs.reviewChanges",defaultMain:"git",mainView:"git"},component:Ue(()=>ze(()=>import("./agent-git-BjUtQS3j.js"),__vite__mapDeps([273,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,248,204,182,205,191,158,154,149,139,140,125,124,150,132,127,155,119,146,156,157,93,30,2,159,160,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,138,193,194,197,198,199,141,206,134,135,136,40,207,240,213,212,244])))}),Tle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ue(()=>ze(()=>import("./agent-hosting-DIjx0dPc.js"),__vite__mapDeps([274,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,256,40,92,227,16,188,2,30,33,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),wle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ue(()=>ze(()=>import("./agent-e2e-nAUWbLbx.js"),__vite__mapDeps([275,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,2,30,92,33,16,256,40,188,166,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),_le=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:Ue(()=>ze(()=>import("./agent-analytics-tSEQzJqV.js"),__vite__mapDeps([276,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,171,2,30,16,277,278,279,92,256,40,280,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,33,183,102,184,185,186,194,176,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),xle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/experiments",staticData:{defaultMain:"experiments",mainView:"experiments"},component:Ue(()=>ze(()=>import("./agent-experiments-BolDhf_W.js"),__vite__mapDeps([281,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,2,30,16,33,256,40,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),Ple=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ue(()=>ze(()=>import("./agent-monitor-DKKZFNMi.js"),__vite__mapDeps([282,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,277,278,279,256,118,40,280,283,284,285,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,194,176,171,19,269,191,205,156,158,37,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196,235,178,126])))}),Cle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ue(()=>ze(()=>import("./agent-app-D_LRMpO5.js"),__vite__mapDeps([286,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,206,287,155,168,205,197,162,139,140,149,125,124,150,132,127,198,199,189,190,191,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105])))}),kle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ue(()=>ze(()=>import("./agent-view-B5TTa9Fr.js"),__vite__mapDeps([288,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,287,155,168,205,197,162,139,140,149,125,124,150,132,127,198,199,189,190,191,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105,267,263,18,268,27,182,92,38,264,179,146,180,129,130,181,119,33,183,184,23,185,186,194,176,171,19,269,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,270,271,192,196])))}),Ele=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:V().optional()}),component:Ue(()=>ze(()=>import("./agent-file-C1aTOAN-.js"),__vite__mapDeps([289,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,194,211,176,212,213,165,159,193,149,139,140,125,124,150,132,127,267,104,98,105,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,171,19,269,191,205,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Ale=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:V().optional()}),component:Ue(()=>ze(()=>import("./agent-deck-1Gy5jl1Q.js"),__vite__mapDeps([290,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,214,176,2,118,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,33,183,102,184,23,185,186,194,171,19,269,191,205,156,158,37,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Rle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:V().optional()}),component:Ue(()=>ze(()=>import("./agent-library-file-C6HS0CDW.js"),__vite__mapDeps([291,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,210,211,176,212,213,194,165,159,214,2,118,150,267,104,98,105,149,139,140,125,124,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,33,183,102,184,23,185,186,171,19,269,191,205,156,158,37,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Dle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ue(()=>ze(()=>import("./agent-connect-sources-e0UYTGJa.js"),__vite__mapDeps([292,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,94,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105,152,106])))}),Ole=Ie({getParentRoute:()=>Oo,path:"/$legacyView",component:()=>null}),Mle=Ie({getParentRoute:()=>Mn,path:"/agents",validateSearch:ah,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),Nle=Ie({getParentRoute:()=>Mn,path:"/agents/$",validateSearch:ah,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!l4(o))return;const a=Ose(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Qo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ue(()=>ze(()=>import("./legacy-agents-deep-VUIOxOMz.js"),__vite__mapDeps([293,208,77])))}),Ile=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...Qx}),beforeLoad:({params:e,search:t})=>{const o=c4(e.taskKey,t);if(o)throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./tasks-CNDczBnp.js"),__vite__mapDeps([294,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,222,223,224,225,118,28,226,227,131,132,143,138,139,140,144,2,30,145,129,130,146,24,177,121,26,27,228,127,229,230,188,164,165,159,231,157,155,93,158,175,232,176,199,182,99,233,186,187,163,125,149,124,150,189,190,191,192,168,156,193,194,185,203,169,161,23,234,235,178,126])))}),Lle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>ze(()=>import("./taskboard-analytics-CnhQSjI5.js"),__vite__mapDeps([295,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,296,277,278,279,16,283,284,285,224,225,118,33,166])))}),Ble=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>ze(()=>import("./thread-analytics-BxOFKU_J.js"),__vite__mapDeps([297,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,296,277,278,279,16,283,284,285,133,23,225,118,33,166,233,186,130,187,26,27,188,164,163,165,159,125,149,139,140,124,150,132,127,189,190,191,192,155,168,158,182,138,156,157,93,30,2,193,194,185,203])))}),Fle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./reports-CAO0dNuU.js"),__vite__mapDeps([298,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,237,90,2,151,97,98,99,220,106,107])))}),jle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(Yw),component:Ue(()=>ze(()=>import("./library-Cu0rCSTQ.js"),__vite__mapDeps([299,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,227,226,92,2,150,24,176,300,194,301,302,38,165,159,214,118,209,210,211,212,213,303])))}),zle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ue(()=>ze(()=>import("./discover-BVVbBxyt.js"),__vite__mapDeps([304,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,145,182,177,121,136,135,40,207])))}),Ule=Ie({getParentRoute:()=>Gv,path:"/members",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/members",params:{org:e.org}})}}),$le=_e({main:ro([V(),Ze(0)]).optional(),virtualmcpid:V().optional(),...u4,sidepanel:bL,mainpanel:yL,thread:V().optional()}),qle=Ie({getParentRoute:()=>Kv,path:"/",validateSearch:$le,pendingComponent:Md,component:Ue(()=>ze(()=>import("./index-DG-VU0NB.js"),__vite__mapDeps([305,208,77])))}),Vle=Ie({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),vo=Ie({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Gv,path:"/settings",pendingComponent:Md,component:Ue(()=>ze(()=>import("./route-jTfsMPRt.js"),__vite__mapDeps([306,113,202,60,112,114,32,96,34,117,72,73,74,10,75])))}),Hle=Ie({getParentRoute:()=>vo,path:"/",component:Ue(()=>ze(()=>import("./index-redirect-B0jTPPl2.js"),__vite__mapDeps([307,308])))}),Gle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>vo,path:"/connections",component:Ue(()=>ze(()=>import("./connections-DupmsXsG.js"),__vite__mapDeps([309,104,98,105,310,17,35,57,96,34,311,23,19,20,184,180,129,130,181,140,80,45,46,47,48,49,50,43,51,36,44,52,53,54,55,56,58,59,60,61,62,63,64,65,66,67,68,22,69,32,70,18,312,92,185,113,31,119,93,30,2,33,38,182,74,10,73,191,183,102,9,171]))),validateSearch:Di(()=>_e({action:ia(["create"]).optional(),tab:ia(["all","connected"]).optional()}))}),Kle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>vo,path:"/connections/$appSlug",component:Ue(()=>ze(()=>import("./connection-detail-D3B1Lmjt.js"),__vite__mapDeps([313,104,98,105,18,183,2,66,67,314,74,10,205,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,20,68,22,69,32,70,182,33,34,278,315,79,118,96,73,113,316,138,82,4,83,39,139,140,75,269,23,191,9,177,121,21,156,80,114,93,30,312,92,317,277,279,280,284,285,166,181,190,146]))),validateSearch:Di(()=>_e({tab:V().optional()}))}),Wle=Ie({staticData:{pageTitle:"page.item"},getParentRoute:()=>vo,path:"/connections/$appSlug/$collectionName/$itemId",component:Ue(()=>ze(()=>import("./collection-detail-DZ5ZAb4J.js"),__vite__mapDeps([318,18,74,10,93,30,2,38,314,205,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,32,70,182,104,98,105,33,34,278,315,79,118,96,73,113,316,138,82,4,83,39,139,140,75,190,191,230,181,269,23,9,189,80,149,76,77,72,84,3,125,124,150,132,127,42,21,71,31,78,81,12,85,86,250,213,256]))),validateSearch:Di(()=>_e({replayId:V().optional()}))}),Yle=Ie({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>vo,path:"/monitor",component:Ue(()=>ze(()=>import("./index-B6Tu7EzF.js"),__vite__mapDeps([319,19,20,18,320,321,308,187,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,22,69,32,70,26,27,188,164,163,165,31,159,113,76,77,72,73,74,10,75,96,34,125,149,84,139,140,82,4,83,39,3,124,150,132,127,42,21,71,78,79,80,81,12,85,86,189,190,191,192,155,168,158,114,182,138,156,157,93,30,2,193,194,181,23,118,250,213,177,121,322,171,33,128,229,38,184,37,230,317,277,278,279,280,284,285,233,186,130,185,203,16,265,129,259]))),validateSearch:Di(()=>_e({tab:ia(["overview","audit","dashboards","threads","automations"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Be(V()).optional().default([]),virtualMcpId:Be(V()).optional().default([]),tool:V().default(""),status:ia(["all","success","errors"]).default("all"),search:V().default(""),page:Mt().optional(),streaming:Ut().default(!0),propertyFilters:V().default(""),hideSystem:Ut().default(!1)}))}),Zle=Ie({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>vo,path:"/general",component:Ue(()=>ze(()=>import("./general-tgZjCrGf.js"),__vite__mapDeps([323,121,264,21,22,2,324,37,44,127,39,83,251,182,74,10,325,23,33,34,35,36,92,308])))}),Qle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>vo,path:"/connect",pendingComponent:Li("connect"),component:Ue(()=>ze(()=>import("./connect-Dx9YF6jh.js"),__vite__mapDeps([326,230,33,34,35,36,166,164,52,59,61,217,327,46,66,67,92,31,32,2,30,74,10,320,321,308])))}),Jle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/ai-providers",pendingComponent:Li("billing"),component:Ue(()=>ze(()=>import("./ai-providers-D6lyG4Rj.js"),__vite__mapDeps([328,46,124,51,127,39,83,262,31,32,119,113,149,76,77,72,73,74,10,75,84,139,140,82,4,3,125,150,132,170,171,35,2,33,34,36,48,47,59,20,172,63,21,22,55,71,52,58,173,264,167,92,169,126,66,67,268,27,320,321,308])))}),Xle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/billing",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),ece=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/infra-billing",pendingComponent:Li("billing"),component:Ue(()=>ze(()=>import("./infra-billing-C_vV8Zpq.js"),__vite__mapDeps([329,53,62,23,322,171,35,36,78,79,31,32,20,118,33,34,16,279,278,285,280,320,321,308])))}),tce=Ie({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>vo,path:"/secrets",component:Ue(()=>ze(()=>import("./secrets-C8P9K06C.js"),__vite__mapDeps([330,46,66,22,69,31,32,2,30,33,34,35,36,38,271,320,321,308])))}),oce=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>vo,path:"/api-keys",pendingComponent:Li("connect"),component:Ue(()=>ze(()=>import("./api-keys-BIsdKQsQ.js"),__vite__mapDeps([331,327,46,52,59,66,67,92,31,32,2,30,74,10,320,321,308])))}),ace=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>vo,path:"/buckets",pendingComponent:Li("storage"),component:Ue(()=>ze(()=>import("./buckets-DuU1P-Pt.js"),__vite__mapDeps([332,46,66,67,92,31,32,2,30,33,34,35,36,37,38,136,320,321,308])))}),nce=Ie({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>vo,path:"/repositories",validateSearch:_e({git_error:V().optional().catch(void 0),git_flow:V().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Ut().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:Ue(()=>ze(()=>import("./repositories-CJ6hjTj5.js"),__vite__mapDeps([333,144,48,62,66,96,34,31,32,2,30,145,129,130,21,22,146,20,24,49,171,35,92,23,230,33,36,38,67,39,270,69,271,127,83,320,321,308])))}),rce=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>vo,path:"/synced-repos",pendingComponent:Li("storage"),component:Ue(()=>ze(()=>import("./synced-repos-BAz91gxb.js"),__vite__mapDeps([334,66,92,31,32,2,144,48,62,96,34,30,145,129,130,21,22,146,20,24,300,176,54,55,56,59,65,67,70,194,301,302,320,321,308])))}),ice=Ie({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>vo,path:"/task-board",component:Ue(()=>ze(()=>import("./tasks-EhOSvMOE.js"),__vite__mapDeps([335,171,35,2,38,47,64,66,67,225,78,79,31,32,20,118,37,174,175,157,155,93,30,158,159,113,76,77,72,73,74,10,75,96,34,45,46,17,48,49,50,43,51,36,44,52,53,54,55,56,57,58,59,60,61,62,63,65,68,22,69,70,149,84,139,140,82,4,83,39,3,125,124,150,132,127,170,33,172,21,71,156,176,302,92,324,251,182,320,321,308])))}),sce=Ie({getParentRoute:()=>vo,path:"/tasks",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/task-board",params:{org:e.org}})}}),lce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>vo,path:"/members",pendingComponent:Li("members"),component:Ue(()=>ze(()=>import("./members-v5L4AjzR.js"),__vite__mapDeps([336,310,17,35,57,96,34,311,23,19,20,15,16,18,120,31,32,93,30,33,36,38,121,122,21,22,26,27,28,177,337,92,54,59,67,171,78,79,118,66,228,320,321,308])))}),cce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>vo,path:"/roles",pendingComponent:Li("members"),component:Ue(()=>ze(()=>import("./roles-mbHqfQsN.js"),__vite__mapDeps([338,122,121,337,23,92,54,66,67,15,16,17,18,19,20,172,80,45,46,47,48,49,50,43,51,35,36,44,52,53,55,56,57,58,59,60,61,62,63,64,65,68,22,69,32,70,185,171,186,130,74,10,146,105,177,28,182,73,124,21,37,96,34,81,72,75,321,308]))),validateSearch:Di(()=>_e({role:V().optional()}))}),dce=Ie({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>vo,path:"/sso",component:Ue(()=>ze(()=>import("./sso-DS1IZ-Cy.js"),__vite__mapDeps([339,325,23,2,33,34,35,36,92,37,85,67,320,321,308])))}),uce=Ie({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>vo,path:"/profile",component:Ue(()=>ze(()=>import("./profile-IGVv2rJN.js"),__vite__mapDeps([340,21,22,31,32,315,33,34,35,36,67,68,37,167,2,63,64,264,147])))}),pce=Ie({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>vo,path:"/agents",component:Ue(()=>ze(()=>import("./agents-list-BGbR4Gn2.js"),__vite__mapDeps([341,73,74,10,54,47,67,45,46,17,48,49,50,43,51,35,36,44,52,53,55,56,57,58,59,60,61,62,63,64,65,66,20,68,22,69,32,70,268,27,138,82,4,83,39,139,140,75,127,18,316,182,102,9,104,98,105,99,100,31,146,145,92,19,143,144,96,34,2,30,129,130,21,24])))}),hce=Ie({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>vo,path:"/automations",component:Ue(()=>ze(()=>import("./automations-KmRW23R-.js"),__vite__mapDeps([342,66,70,19,20,18,259,74,10,138,73,82,4,83,39,139,140,75,260,92,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,22,69,32,320,321,308])))}),mce=Ie({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>vo,path:"/skills",component:Ue(()=>ze(()=>import("./skills-BkdXpy6f.js"),__vite__mapDeps([343,54,50,67,68,70,19,20,92,18,184,23,301,55,176,150,303,31,32,165,35,52,159,113,76,77,72,73,74,10,75,211,212,58,213,194,302])))}),gce=vo.addChildren([Hle,Gle,Kle,Wle,pce,hce,mce,Yle,Zle,Qle,Jle,Xle,ece,tce,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce]),fce=Wv.addChildren([hle,mle,gle]),vce=Oo.addChildren([dle,ule,ple,fce,fle,vle,ble,yle,Sle,Tle,wle,_le,xle,Ple,Cle,kle,Ele,Ale,Rle,Dle,Ole]),bce=Mn.addChildren([sle,lle,cle,vce,Mle,Nle,Ile,Lle,Ble,Fle,jle,zle]),yce=Kv.addChildren([qle,Vle,bce]),Sce=Gv.addChildren([yce,Ule,gce]),Tce=Jx.addChildren([Xse,Sce]),wce=pn.addChildren([Tce,Jse,ele,tle,ole,ale,nle,$se,qse,Vse,Hse,Gse,Kse]);function _ce(){const e=Le.c(16),t=Cr();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=T.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=T.jsx("button",{type:"button",onClick:xce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function xce(){return window.history.back()}const Yv=b$({routeTree:wce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:_ce});function ke(...e){return vL(rx(e))}function Pce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function Uo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function $l(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function Zw(e,t){for(const o in e)if(e[o]===t)return o}function Ip(e,t){let o=V().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Cce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},kce={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Ece={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Ace={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Rce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Oce={...Rce,...Dce},Mce={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Nce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ice={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Lce={INVALID_SESSION_TOKEN:"Invalid session token"},Bce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fce={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},jce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},zce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Uce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},$ce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},qce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Vce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Ace,...Cce,...kce,...Ece,...Oce,...Mce,...Nce,...Ice,...Lce,...Bce,...Fce,...jce,...zce,...Uce,...$ce,...qce},Hce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},GO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},KO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const h4=A.createContext({});function m4(){return A.useContext(h4)}var IS,WO;function Gce(){if(WO)return IS;WO=1;var e=function(){};return IS=e,IS}var Kce=Gce();const Wce=Nl(Kce);function Yce({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var Zce=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let mp=null,Lp=!1;const tv=new Set,ov=new Set,Qce=typeof window<"u",ud="___grecaptcha_cfg",g4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jce(){if(!Qce)return;function e(o){if(Lp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Lp=!0;for(const o of ov)o();ov.clear()}window[g4]=t}function Xce({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function ede({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Xce({language:e,onLoadCallbackName:g4,render:t,useEnterprise:a,useRecaptchaNet:n});if(mp){if(mp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}mp=l,Yce(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function tde(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function ode(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Zce(t,["onLoadCallback","onLoadCallbackName"]);if(tv.size===0&&Jce(),ede(n),tv.add(e),o&&(Lp?o():ov.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Lp?i():ov.add(i)}}function ade(e){var t,o,a;tv.delete(e),tv.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${mp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),mp=null,Lp=!1)}let YO=!1;function nde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,m,h,f,v;const b=A.useId(),[S,x]=A.useState(null),[w,_]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return ode(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{ade(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,L;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(YO||(Wce(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),YO=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),_(U),E.current=!0,()=>{_(null),E.current=!1,tde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!e?.element,k=C?w:a,R=A.useMemo(()=>k!==null&&S?.execute?D=>{if(k===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(k,{action:D})}:void 0,[k,S,C]);return T.jsx(h4.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var rde=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Gn=new rde;function ide(){return()=>{}}function Bi(){return A.useSyncExternalStore(ide,()=>!0,()=>!1)}function f4(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function Xx(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function sde({children:e}){const t=Bi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:T.jsxs(nde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&T.jsx("style",{children:`
168
+ `),h=u;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=ZD.test(f)?f.replace(ZD,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of i){var S=b(v,a);if(S){p.push(S);break}}if(p.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((_=>{return Oe({},_,{filename:_.filename||(E=w,E[E.length-1]||{}).filename,function:_.function||_d});var E}))})(p)}})("web:javascript",Mne,Lne)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(bw))!==null&&t!==void 0?t:[],this.mo=Bf(this.yo()),this.bo=new Wne(this.mo)}onConfigChange(){this.mo=Bf(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,a;if("errorTracking"in e){var n=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(a=e.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[bw]:this.fo,[yw]:i})}}get _o(){var e,t=!!this._instance.get_property(yw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!xo(e)||e.trim().length===0)return void Ti.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:a,droppedKeys:n}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,u)=>Kne.has(u)?(l.push(u),c):(c[u]=i[u],c)),{}),droppedKeys:l}})(o);n.length>0&&Ti.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Oe({[If]:e,[Lf]:new Date().toISOString()},a))}catch(i){Ti.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Ti.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Ti.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ti.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ti.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ti.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Oe({},e,{$exception_steps:t})}catch(o){return Ti.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[If]:e,[Lf]:new Date().toISOString()})}wo(e){return Lo(e)?Oe({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,a)=>{var{type:n,value:i}=a;return xo(n)&&n.length>0&&o.$exception_types.push(n),xo(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var i,l=P3[n.operator],c=Nt(n.value)?n.value:[n.value],u=(i=t[n.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,u)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,a;return(o=(a=t.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,a,n,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(a=l==null||(n=l.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(e){return!Pt(e)&&Nt(e)}}},nie=Oe({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[Tw]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(Tw)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?NO.error("Could not load product tours script",a):e()}))}Ro(){var e;!this.Ao&&(e=et.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=et.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Nt(this.Eo)||t){var o=this.ni;if(o){var a=o.props[of];if(Nt(a)&&!t)return this.Eo=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var i=n.statusCode;if(i!==200||!n.json){var l="Product Tours API could not be loaded, status: "+i;return NO.error(l),void e([],{isLoaded:!1,error:l})}var c=Nt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[of]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(of)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},Uv),rie={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=et._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,a,n,i,l,c;if(!e)throw new Error("Event payload is required");var u={},p=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))u[h]={id:p[h],type:h,properties:f};var{$set_once:v,$set:b}=e;return{event:Oe({},CF(e,Yre),{properties:Oe({},e.properties,b?{$set:Oe({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Oe({},(a=(n=e.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(hs.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},a=!1,n=l=>{t.errored=!l,t.loaded=!0,hs.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),a&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){n(l)}});i&&(t.processEvent=i),a=!0}catch(l){hs.error(IO+e.id,l),n(!1)}if(a&&t.loaded)try{o()}catch(l){hs.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(a){hs.error("Error while processing event "+e.event+" for site app "+o.id,a)}}}onRemoteConfig(e){var t,o,a,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(u=>this.Po(u)))):void hs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=e.siteApps)!=null&&a.length)if(this.isEnabled){var i=function(u){var p;et["__$$ph_site_app_"+u]=n._instance,(p=et.__PosthogExtensions__)==null||p.loadSiteApp==null||p.loadSiteApp(n._instance,c,(m=>{if(m)return hs.error(IO+u,m)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else hs.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},iie={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,a=this.Bo()||[];qe(this.Lo)&&((t=et.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),qe(this.Do)&&((o=et.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=et.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=et.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Kre.error("failed to load script",a);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},sie=Oe({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return eo.warn("Flags not loaded yet. Not loading surveys.");var o=Nt(t);this.jo=o?t.length>0:t,eo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(Uw)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)eo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)eo.info(LO);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())eo.info("Not loading surveys in cookieless mode without consent.");else{var e=et?.__PosthogExtensions__;if(e){if(!qe(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var a=e.loadExternalDependency;if(!a)return void this.Ho(zx);a(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else eo.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new Jre(this._instance),eo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){eo.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return eo.info(LO),e([]);var o,a=this._instance.get_property(Cw);if(a&&!t)return e(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:i,context:l}=n;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var i;this.Zo=null;var l=n.statusCode;if(l!==200||!n.json){var c="Surveys API could not be loaded, status: "+l;eo.error(c);var u={isLoaded:!1,error:c};return e([],u),void(o==null||o({surveys:[],context:u}))}var p,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((p=this._surveyEventReceiver)==null||p.register(h)),(i=this._instance.persistence)==null||i.register({[Cw]:m});var f={isLoaded:!0};e(m,f),o?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){eo.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);eo.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var a;t=(a=o.find((n=>n.id===e)))!==null&&a!==void 0?a:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:DS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return eo.warn("init was not called"),{visible:!1,disabledReason:DS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(eo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:DS})):new Promise((o=>{this.getSurveys((a=>{var n,i=(n=a.find((c=>c.id===e)))!==null&&n!==void 0?n:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var a;if(Pt(this._surveyManager))eo.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Ore.includes(n.type)){var i=Fe?.querySelector(t);if(i)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(eo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;eo.info("Rendering survey "+n.id+" with delay of "+((l=n.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,i,o),eo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,i,o);eo.warn("Survey element not found")}else eo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else eo.warn("Survey not found")}}displaySurvey(e,t){var o;if(Pt(this._surveyManager))eo.warn("init was not called");else{var a=this.Uo(e);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Oe({},a,{appearance:Oe({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==Iw.Popover&&t.initialResponses&&eo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(a);if(!i.visible)return void eo.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==Iw.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else eo.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?eo.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Uv),lie={toolbar:class{constructor(e){this.instance=e}Go(e){et.ph_toolbar_state=e}Wo(){var e;return(e=et.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),i3(this.instance.config)||!ge||!Fe)return!1;e=e??ge.location,o=o??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var a,n=Xre||Wf(e.hash,"__posthog")||Wf(e.hash,"state"),i=n?JD((()=>JSON.parse(atob(decodeURIComponent(n)))))||JD((()=>JSON.parse(decodeURIComponent(n)))):null;return i&&i.action==="ph_authorize"?((a=i).source="url",a&&Object.keys(a).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(BO)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(e){var t=et.ph_load_toolbar||et.ph_load_editor;!Pt(t)&&_i(t)?t(e,this.instance):FO.warn("No toolbar load function found")}loadToolbar(e){var t=!(Fe==null||!Fe.getElementById(o3));if(!ge||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Oe({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(BO,JSON.stringify(Oe({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=et.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return FO.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(a)})),Yo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},cie=Oe({experiments:Oa},Uv),die={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;Pt(t)||($r(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||i3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=et?.__PosthogExtensions__;if(e&&!qe(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(zx);o(this._instance,"conversations",(a=>{a||!e.initConversations?this.ra("Could not load conversations script",a):this.ta(e.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Hn.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Hn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Hn.error("Cannot complete initialization: remote config is null")}ra(e,t){Hn.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!Ni(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var a=this;return Wn((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,o):(Hn.warn(pl),null)}))()}getMessages(e,t){var o=this;return Wn((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Hn.warn(pl),null)}))()}markAsRead(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Hn.warn(pl),null)}))()}getTickets(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Hn.warn(pl),null)}))()}requestRestoreLink(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Hn.warn(pl),null)}))()}restoreFromToken(e){var t=this;return Wn((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Hn.warn(pl),null)}))()}restoreFromUrlToken(){var e=this;return Wn((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Hn.warn(pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},uie={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=So("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=et?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var a;o||(a=e.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(zx)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,a,n,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,u=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,p=Date.now();if(c>p-this.aa||(this.aa=p,this.oa=0,this.la=!1),u>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:b,number:S}=GF[v]||kne,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var _=Oe({},w,h.attributes||{}),E={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:YD(_)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),qe(h.trace_flags)||(E.flags=h.trace_flags),E})(e,this.ua());this.sa.push({record:m}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+u+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,a=Oe({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(l,c,u,p){return{resourceLogs:[{resource:{attributes:YD(c)},scopeLogs:[{scope:{name:u,version:p},logRecords:l}]}]}})(t.map((l=>l.record)),a,Ga.LIB_NAME,Ga.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:n,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(et!=null&&(e=et.location)!=null&&e.href&&(t.currentUrl=et.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(t.activeFeatureFlags=a)}return t}}},pie=Oe({},Uv,tie,oie,aie,nie,rie,sie,iie,lie,cie,die,uie);Zn.__defaultExtensionClasses=Oe({},pie);var $O,Ii=($O=pp[Yc]=new Zn,(function(){function e(){e.done||(e.done=!0,E3=!1,mo(pp,(function(t){t._dom_loaded()})))}Fe!=null&&Fe.addEventListener?Fe.readyState==="complete"?e():Yo(Fe,"DOMContentLoaded",e,{capture:!1}):ge&&je.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),$O);const hie="studio-ui-resources",Xf="html",mie=10080*60*1e3,gie=50,fie=16*1024*1024;function vie(e){return e[0]==="mcp"&&e[1]===MI}function $v(){return new Promise((e,t)=>{const o=indexedDB.open(hie,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function Cd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Gw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function bie(e){if(!(typeof indexedDB>"u"))try{const t=await $v(),o=Cd(t,"readonly"),a=await Gw(o.getAllKeys()),n=await Gw(o.getAll()),i=Date.now(),l=a.map((p,m)=>({key:p,value:n[m]})).sort((p,m)=>(m.value?.updatedAt??0)-(p.value?.updatedAt??0)),c=[];let u=0;for(const{key:p,value:m}of l){if(!m||i-m.updatedAt>mie||u>=gie){c.push(p);continue}u++;try{const f=JSON.parse(String(p));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(p)}}if(c.length>0){const p=Cd(t,"readwrite");for(const m of c)p.delete(m)}}catch{}}function yie(e){if(typeof indexedDB>"u")return()=>{};const t=$v().catch(()=>null);return e.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!vie(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>fie||t.then(i=>{if(i)try{Cd(i,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function Sie(){typeof indexedDB>"u"||$v().then(e=>Cd(e,"readwrite").clear()).catch(()=>{})}async function lve(e){if(!(typeof indexedDB>"u"))try{const t=await $v(),o=await Gw(Cd(t,"readonly").getAllKeys()),a=Cd(t,"readwrite");for(const n of o)try{const i=JSON.parse(String(n));i[1]===MI&&i[3]===e&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Kx=1440*60*1e3,Tie=1e3,wie=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),_ie=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let B3=!1,F3=!1;function xie(e){const t=e[0];return typeof t=="string"&&wie.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&_ie.has(e[4])}function Pie(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const o=JSON.parse(t),a=!o.timestamp||Date.now()-o.timestamp>Kx;if(o.buster!=="4.406.2"||a||!o.state){window.localStorage.removeItem(ev);return}$$(e,o.state),e.invalidateQueries({queryKey:On.publicConfig(),refetchType:"none"}),B3=!0}catch{Aie()}}function Cie(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const i=U$(e,{shouldDehydrateQuery:l=>l.state.status==="success"&&xie(l.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.406.2",timestamp:Date.now(),state:i}))}catch{}},a=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,Tie))}),n=()=>{t!=null&&(clearTimeout(t),o())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),a()}}const j3="studio:org-cache:",kie=20;function Eie(e){const t=Date.now(),o=Object.entries(e).filter(([,a])=>t-a.updatedAt<=Kx);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>kie;)o.shift();return Object.fromEntries(o)}function z3(e){return`${j3}${e}`}function cve(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(z3(e));if(!o)return null;const a=JSON.parse(o)[t];return!a||Date.now()-a.updatedAt>Kx?null:(F3=!0,a)}catch{return null}}function dve(e,t,o){if(!(typeof window>"u"))try{const a=z3(e),n=window.localStorage.getItem(a),i=n?JSON.parse(n):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(Eie(i)))}catch{}}function Aie(){if(Sie(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(j3)&&window.localStorage.removeItem(t)}}catch{}}function Rie(){return B3}function Die(){return F3}let Ai=!1,Kw=null,qO=!1;const Wx="studio:lp-distinct-id",U3="mesh:lp-distinct-id",MS="/api/_reports/link-token/",Oie=1440*60*1e3;function $3(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),a=e.startsWith("//");try{const n=new URL(e,t);let i=!1;for(const l of["key","d"])n.searchParams.has(l)&&(n.searchParams.delete(l),i=!0);return n.pathname.startsWith(MS)&&n.pathname!==MS&&(n.pathname=`${MS}redacted`,i=!0),i?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function NS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?$3(o):o]))}const Mie=e=>e?(e.properties=NS(e.properties),e.$set&&(e.$set=NS(e.$set)),e.$set_once&&(e.$set_once=NS(e.$set_once)),e):null;function q3(){try{const e=window.localStorage.getItem(Wx)??window.localStorage.getItem(U3);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=Oie?t:void 0}catch{return}}function Nie(){try{window.localStorage.removeItem(Wx),window.localStorage.removeItem(U3)}catch{}}function Iie(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Wx,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??q3();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function Lie(e){const t=q3();if(t&&(Nie(),t!==e))try{Ii.alias(t)}catch{}}function Bie(e,t){if(Ai||typeof window>"u")return;const o=Iie();Ii.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Mie,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:a=>({...a,...typeof a.name=="string"?{name:$3(a.name)}:{}})},person_profiles:"identified_only"}),Ai=!0}function Fie(e,t){Ai&&(Ii.identify(e,t),Lie(e))}function jie(){Ai&&(Ii.reset(),Kw=null)}function V3(e,t){Ai&&Ii.capture(e,t)}function uve(){return Ai}function pve(){if(!Ai||qO||typeof performance>"u")return;qO=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};V3("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:Rie(),org_cache_restored:Die()})}function hve(e,t){Ai&&e!==Kw&&(Ii.group("organization",e,t),Kw=e)}function H3(e,t){if(Ai)try{Ii.captureException(e,t)}catch{}}const zie=["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 Uie(e){const t=Le.c(3),{children:o}=e;let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=T.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:zie}}),t[0]=a):a=t[0];let n;return t[1]!==o?(n=T.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,T.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=n):n=t[2],n}function G3(e){const t=Le.c(20),{orgName:o}=e,a=Cr(),n=$ie;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx("div",{className:"bg-muted p-3 rounded-full",children:T.jsx(lF,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==a?(l=a("common.archivedOrgScreen.orgUnavailable"),t[1]=a,t[2]=l):l=t[2];let c;t[3]!==l?(c=T.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let u;t[5]!==o||t[6]!==a?(u=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=a,t[7]=u):u=t[7];let p;t[8]!==u?(p=T.jsx("p",{className:"text-sm text-muted-foreground",children:u}),t[8]=u,t[9]=p):p=t[9];let m;t[10]!==c||t[11]!==p?(m=T.jsxs("div",{className:"space-y-2",children:[c,p]}),t[10]=c,t[11]=p,t[12]=m):m=t[12];let h;t[13]!==a?(h=a("common.archivedOrgScreen.goHome"),t[13]=a,t[14]=h):h=t[14];let f;t[15]!==h?(f=T.jsx(Al,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=T.jsxs(Uie,{children:[i,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function $ie(){window.location.href="/"}function qie(){const e=Le.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=jp(t);let a;return e[1]!==o?(a=T.jsx(Al,{variant:"outline",size:"sm",asChild:!0,children:T.jsx(Il,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=a):a=e[2],a}function Vie(e){const t=Le.c(13),{area:o,description:a,action:n}=e,i=o?`No access to ${o}`:"No access",l=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=T.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:T.jsx(gF,{size:28})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=T.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==l?(p=T.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=p):p=t[4];let m;t[5]!==u||t[6]!==p?(m=T.jsxs("div",{className:"space-y-1",children:[u,p]}),t[5]=u,t[6]=p,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??T.jsx(qie,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=T.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const VO="__studio_chunk_reload_ts";function K3(e){return e?.message===FZ}function Hie(e){return!!e?.message?.includes("Access denied")}function HO(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 Gie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),H3(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:K3(this.state.error)?T.jsx(G3,{}):Hie(this.state.error)?T.jsx(Vie,{}):T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(Dx,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kie(e){const t=Le.c(3),o=Cr();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Gie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}class Wie extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const a=HO(t);if(H3(t,{boundary:"chunk_root",is_chunk_load_error:a,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(VO),i=Date.now();(!n||i-Number(n)>1e4)&&(sessionStorage.setItem(VO,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&HO(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(fF,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),T.jsx(Al,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?K3(this.state.error)?T.jsx(G3,{}):T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(Dx,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),T.jsx(Al,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function Yie(e){const t=Le.c(3),o=Cr();let a;return t[0]!==e||t[1]!==o?(a=T.jsx(Wie,{...e,t:o}),t[0]=e,t[1]=o,t[2]=a):a=t[2],a}function Zie(e){const t=Le.c(8);let o,a;t[0]!==e?({className:o,...a}=e,t[0]=e,t[1]=o,t[2]=a):(o=t[1],a=t[2]);let n;t[3]!==o?(n=qt("bg-card text-card-foreground flex flex-col gap-6 rounded-[var(--studio-surface-radius,var(--radius-xl))] card-shadow",o),t[3]=o,t[4]=n):n=t[4];let i;return t[5]!==a||t[6]!==n?(i=T.jsx("div",{"data-slot":"card",className:n,...a}),t[5]=a,t[6]=n,t[7]=i):i=t[7],i}function mve(e){const t=Le.c(4);let o;t[0]!==e?({...o}=e,t[0]=e,t[1]=o):o=t[1];let a;return t[2]!==o?(a=T.jsx("div",{"data-slot":"card-content",...o}),t[2]=o,t[3]=a):a=t[3],a}function gve(e){const t=Le.c(12),{title:o,description:a,docsHref:n,actions:i,className:l,headerClassName:c,children:u}=e;let p;t[0]!==l?(p=qt("flex flex-col gap-3",l),t[0]=l,t[1]=p):p=t[1];let m;t[2]!==i||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(m=(o||a||n||i)&&T.jsxs("div",{className:qt("flex items-center justify-between gap-3 px-4",c),children:[T.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&T.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:o}),(a||n)&&T.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&T.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",T.jsx(cF,{size:12})]})]})]}),i&&T.jsx("div",{className:"shrink-0",children:i})]}),t[2]=i,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=m):m=t[7];let h;return t[8]!==u||t[9]!==p||t[10]!==m?(h=T.jsxs("section",{className:p,children:[m,u]}),t[8]=u,t[9]=p,t[10]=m,t[11]=h):h=t[11],h}function fve(e){const t=Le.c(11),{className:o,children:a}=e;let n,i,l;if(t[0]!==a||t[1]!==o){const u=A.Children.toArray(a).filter(A.isValidElement);n=Zie,t[5]!==o?(i=qt("p-0 gap-0 overflow-hidden",o),t[5]=o,t[6]=i):i=t[6],l=u.map(Qie),t[0]=a,t[1]=o,t[2]=n,t[3]=i,t[4]=l}else n=t[2],i=t[3],l=t[4];let c;return t[7]!==n||t[8]!==i||t[9]!==l?(c=T.jsx(n,{className:i,children:l}),t[7]=n,t[8]=i,t[9]=l,t[10]=c):c=t[10],c}function Qie(e,t){return T.jsxs("div",{children:[t>0&&T.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function vve(e){const t=Le.c(27),{icon:o,title:a,description:n,action:i,onClick:l,className:c,children:u}=e,p=u?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=l&&"hover:bg-muted/50 cursor-pointer";let h;t[0]!==c||t[1]!==p||t[2]!==m?(h=qt(p,m,c),t[0]=c,t[1]=p,t[2]=m,t[3]=h):h=t[3];const f=l?"button":void 0,v=l?0:void 0;let b;t[4]!==l?(b=l?k=>{k.target===k.currentTarget&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),l())}:void 0,t[4]=l,t[5]=b):b=t[5];let S;t[6]!==o?(S=o&&T.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),t[6]=o,t[7]=S):S=t[7];let x;t[8]!==a?(x=T.jsx("div",{className:"text-sm font-medium",children:a}),t[8]=a,t[9]=x):x=t[9];let w;t[10]!==n?(w=n&&T.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=w):w=t[11];let _;t[12]!==u||t[13]!==x||t[14]!==w?(_=T.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,u]}),t[12]=u,t[13]=x,t[14]=w,t[15]=_):_=t[15];let E;t[16]!==i?(E=i&&T.jsx("div",{className:"shrink-0",onClick:Jie,children:i}),t[16]=i,t[17]=E):E=t[17];let C;return t[18]!==l||t[19]!==_||t[20]!==E||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==S?(C=T.jsxs("div",{className:h,onClick:l,role:f,tabIndex:v,onKeyDown:b,children:[S,_,E]}),t[18]=l,t[19]=_,t[20]=E,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=S,t[26]=C):C=t[26],C}function Jie(e){return e.stopPropagation()}function bve(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}function yve(e){const t=Le.c(5),{children:o,className:a}=e;let n;t[0]!==a?(n=qt("flex items-center justify-end gap-2 px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let i;return t[2]!==o||t[3]!==n?(i=T.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=i):i=t[4],i}function Xie(e){const t=Le.c(5),{className:o,children:a}=e;let n;t[0]!==o?(n=qt("flex flex-col gap-10",o),t[0]=o,t[1]=n):n=t[1];let i;return t[2]!==a||t[3]!==n?(i=T.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=i):i=t[4],i}const qv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:yF,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:bF,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:uF,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:vF,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:mF,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:hF,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function Sve(e){const t=qv[e];return[...t.tabs.map(o=>o.to),...t.ownedRoutes??[]]}function Tve(e){return qv[e].tabs.length>0}const ese=new Set(["owner","admin"]);function W3(){const e=Le.c(11),{org:t,locator:o}=Wp();let a;e[0]!==o?(a=On.myCapabilities(o),e[0]=o,e[1]=a):a=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let i;e[4]!==a||e[5]!==n?(i={queryKey:a,queryFn:n,staleTime:3e4,retry:2},e[4]=a,e[5]=n,e[6]=i):i=e[6];const{data:l,isLoading:c,isError:u}=Rd(i);let p;return e[7]!==l||e[8]!==u||e[9]!==c?(p={data:l,loading:c,error:u},e[7]=l,e[8]=u,e[9]=c,e[10]=p):p=e[10],p}function wve(e){const t=Le.c(8),{data:o,loading:a,error:n}=W3();if(a){let p;return t[0]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=p):p=t[0],p}if(n){let p;return t[1]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=p):p=t[1],p}const i=o?.role??null;if(!i){let p;return t[2]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=p):p=t[2],p}if(i==="owner"){let p;return t[3]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=p):p=t[3],p}if(i==="admin"){let p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(p={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=p):p=t[4],p}const l=o?.capabilities?.[e]===!0,c=l?"role":"denied";let u;return t[5]!==l||t[6]!==c?(u={granted:l,loading:!1,error:!1,reason:c},t[5]=l,t[6]=c,t[7]=u):u=t[7],u}function Y3(){const e=Le.c(10),{data:t,loading:o,error:a}=W3(),n=t?.role??void 0;let i;e[0]!==n?(i=n?ese.has(n):!1,e[0]=n,e[1]=i):i=e[1];const l=i;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const u=c;let p;return e[4]!==a||e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==u?(p={capabilities:u,loading:o,error:a,isPrivileged:l,roleSlug:n},e[4]=a,e[5]=l,e[6]=o,e[7]=n,e[8]=u,e[9]=p):p=e[9],p}function tse(){const e=Le.c(13),{org:t}=Wp(),o=tx(),{capabilities:a,isPrivileged:n}=Y3(),i=n||!!a["members:manage"];let l;e[0]!==t.id?(l=On.infraBillingSites(t.id),e[0]=t.id,e[1]=l):l=e[1];const c=!!t.id&&i;let u;e[2]!==o?(u=()=>o.call("INFRA_BILLING_SITES_LIST",{}),e[2]=o,e[3]=u):u=e[3];let p;e[4]!==l||e[5]!==c||e[6]!==u?(p={queryKey:l,staleTime:3e5,enabled:c,queryFn:u},e[4]=l,e[5]=c,e[6]=u,e[7]=p):p=e[7];const{data:m,isLoading:h}=Rd(p);let f;e[8]!==m?.sites?(f=m?.sites.map(ose)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function ose(e){return e.slug}function _ve(){const e=Le.c(7),t=tx(),o=Cr();let a;e[0]!==t?(a=l=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:l}),e[0]=t,e[1]=a):a=e[1];let n;e[2]!==o?(n=l=>Vr.error(o("settings.infraBilling.portalError",{message:l.message})),e[2]=o,e[3]=n):n=e[3];let i;return e[4]!==a||e[5]!==n?(i={mutationFn:a,onSuccess:ase,onError:n},e[4]=a,e[5]=n,e[6]=i):i=e[6],sp(i)}function ase(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function xve(e,t){const o=Le.c(14),{org:a}=Wp(),n=tx();let i,l,c;o[0]!==a.id||o[1]!==t||o[2]!==e?(i=[...e].sort(),c=Rd,l=On.infraBilling(a.id,i.join(","),t),o[0]=a.id,o[1]=t,o[2]=e,o[3]=i,o[4]=l,o[5]=c):(i=o[3],l=o[4],c=o[5]);const u=i.length>0;let p;o[6]!==t||o[7]!==i||o[8]!==n?(p=()=>n.call("INFRA_BILLING_GET",{siteSlugs:i,period:t}),o[6]=t,o[7]=i,o[8]=n,o[9]=p):p=o[9];let m;return o[10]!==l||o[11]!==u||o[12]!==p?(m={queryKey:l,enabled:u,staleTime:6e4,queryFn:p},o[10]=l,o[11]=u,o[12]=p,o[13]=m):m=o[13],c(m)}function nse(){const e=Le.c(7),{capabilities:t,isPrivileged:o,loading:a,error:n}=Y3(),{sites:i,isLoading:l}=tse(),c=i.length>0;let u;if(e[0]!==t||e[1]!==n||e[2]!==o||e[3]!==a||e[4]!==c||e[5]!==l){const p=m=>m.requiresOwnedSites&&!c&&!l?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||t[m.requires]:!0;u=Object.fromEntries(Object.values(qv).map(m=>[m.key,m.tabs.filter(p)])),e[0]=t,e[1]=n,e[2]=o,e[3]=a,e[4]=c,e[5]=l,e[6]=u}else u=e[6];return u}function rse(e){const t=Le.c(16),{group:o}=e,a=Cr();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:i}=jp(n);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={select:ise},t[1]=l):l=t[1];const c=C_(l),u=nse()[o],{titleKey:p}=qv[o];let m;t[2]!==a||t[3]!==p?(m=a(p),t[2]=a,t[3]=p,t[4]=m):m=t[4];let h;t[5]!==m?(h=T.jsx(ld.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==o||t[8]!==i||t[9]!==c||t[10]!==a||t[11]!==u?(f=u.length>1&&T.jsx(nn.Toolbar.Left.Portal,{children:T.jsx(ld.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:u.map(b=>{const S=b.to.replace("$org",i),x=c===S||c.startsWith(`${S}/`);return T.jsx(ld.Tab,{active:x,asChild:!0,children:T.jsx(Il,{to:b.to,params:{org:i},onClick:()=>V3("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.key)})})}),t[7]=o,t[8]=i,t[9]=c,t[10]=a,t[11]=u,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=T.jsxs(T.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function ise(e){return e.location.pathname}function Z3(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=T.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[T.jsx(hD,{className:"h-32 w-full"}),T.jsx(hD,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function sse(e){const t=Le.c(14),{group:o,fallback:a,errorFallback:n,className:i,children:l}=e;let c;t[0]!==o?(c=T.jsx(rse,{group:o}),t[0]=o,t[1]=c):c=t[1];let u;t[2]!==a?(u=a??T.jsx(Z3,{}),t[2]=a,t[3]=u):u=t[3];let p;t[4]!==l||t[5]!==u?(p=T.jsx(A.Suspense,{fallback:u,children:l}),t[4]=l,t[5]=u,t[6]=p):p=t[6];let m;t[7]!==n||t[8]!==p?(m=T.jsx(Kie,{fallback:n,children:p}),t[7]=n,t[8]=p,t[9]=m):m=t[9];let h;return t[10]!==i||t[11]!==c||t[12]!==m?(h=T.jsx(ld,{children:T.jsx(ld.Content,{children:T.jsx(ld.Container,{children:T.jsxs(Xie,{className:i,children:[c,m]})})})}),t[10]=i,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Li(e){return function(){return T.jsx(sse,{group:e,children:T.jsx(Z3,{})})}}function lse(e){try{localStorage.setItem(Fl.lastLocation(),JSON.stringify(e))}catch{}}function cse(){try{const e=localStorage.getItem(Fl.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function Pve(){try{localStorage.removeItem(Fl.lastLocation())}catch{}}const Ot={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",orgIndex:"/$org/"},nt={root:Ot.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",git:"/$org/projects/$agentId/git",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",monitor:"/$org/projects/$agentId/cdn"};function Cve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:dse},e[0]=t):t=e[0],C_(t)}function dse(e){return e.matches.at(-1)?.fullPath??""}const use=new Map([[Ot.reports,"project-only"],[Ot.library,"org-only"],[Ot.threadAnalytics,"org-only"]]);function kve(e,t){const o=use.get(e);return o===void 0?!0:o==="project-only"?t!==null:t===null}function Eve(){const e=Le.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:pse},e[0]=t):t=e[0],C_(t)}function pse(e){return e.matches.findLast(hse)?.staticData.mainView}function hse(e){return e.staticData.mainView}function rf(e){return`agent-view:${encodeURIComponent(e)}`}function mse(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const o=decodeURIComponent(t);return o?{id:o}:null}catch{return null}}function Q3(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function Yx(e,t){return`app:${e}:${t}`}function gse(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),o=t.indexOf(":");if(o<=0)return null;const a=t.slice(0,o),n=t.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function J3(e){return`deck:${encodeURIComponent(e)}`}function fse(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function X3(e){return`file:${encodeURIComponent(e)}`}function vse(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function e4(e){return`library-file:${encodeURIComponent(e)}`}function bse(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function t4(e){return`code:${encodeURIComponent(e)}`}function yse(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const o4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn","git"],Sse=new Set(o4),a4=new Set(["hosting","e2e","analytics","cdn"]),Tse=new Set(["board","files","connect-sources","reports"]);function Ave(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("library-file:")||e.startsWith("code:")}const wse=new Map([["preview","site-editor"]]);function Vv(e){return wse.get(e)??e}const Zx=new Set(["instructions","connections","layout","settings"]);function _se(e){return!!e&&Zx.has(e)}const xse=new Set(["overview","board","reports"]);function Rve(e){const t=e?.defaultMainView??null;if(!(!t||t.type==="chat"))return n4(e??null)}function n4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const o=Vv(t.type);if(Zx.has(o))return"settings";if(Sse.has(o)||xse.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(t.id&&t.toolName)return Yx(t.id,t.toolName);const n=e?.tabs?.map(i=>i.id)??[];return t.id&&n.includes(t.id)?rf(t.id):n[0]?rf(n[0]):"settings"}const a=e?.tabs?.[0]?.id;return a?rf(a):"settings"}function Dve(e){const t=e.routeDefaultMain||n4(e.metadata),o=e.panelTabId&&Zx.has(e.panelTabId)?"settings":e.panelTabId?Vv(e.panelTabId):e.panelTabId,a=e.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:e.mainPanelParam??(!!o||!!e.routeDefaultMain||!n),activeTab:o??t}}function Ove(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function Mve(e){return e.mainOpen?e.activeTab==="automations"?!0:Q3(e.activeTab)!==null:!1}const Pse=new Set([...o4.filter(e=>!a4.has(e)),...Tse,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Cse(e){return!!e&&Pse.has(e)}function kse(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?Yx(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?X3(t.key):void 0;case"deck":return t.deck?J3(t.deck):void 0;case"library-file":return t.path?e4(t.path):void 0;case"code":return t.file?t4(t.file):"code";default:{const o=Vv(e);return o==="site-editor"&&t.main==="content"?"content":o}}}function Nve(e){const t=e.params??{},o=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return o.file?t4(o.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?Yx(t.connectionId,t.toolName):void 0;case"view":return t.viewId?rf(t.viewId):void 0;case"file":return o.key?X3(o.key):void 0;case"deck":return o.path?J3(o.path):void 0;case"library-file":return o.path?e4(o.path):void 0;default:return e.mainView}}const Ese={files:"library",discover:"discover"},Ase={board:"tasks",reports:"reports"},Rse={settings:"settings",assets:"assets",git:"git",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",cdn:"monitor"};function r4(e){const t=mse(e);if(t)return{kind:"agent-view",viewId:t.id};const o=gse(e);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=Q3(e);if(a)return{kind:"automations",automationId:a.id};const n=vse(e);if(n)return{kind:"output-file",key:n.key};const i=fse(e);if(i)return{kind:"output-deck",path:i.path};const l=bse(e);if(l)return{kind:"library-file",path:l.path};const c=yse(e);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(_se(e))return{kind:"agent-section",section:"settings"};const u=Vv(e);if(u==="overview")return{kind:"agent-overview"};if(u==="site-editor")return{kind:"site-editor",view:"preview"};if(u==="content")return{kind:"site-editor",view:"content"};if(u==="automations")return{kind:"automations"};if(u==="connect-sources")return{kind:"connect-sources"};const p=Ase[u];if(p)return{kind:"project-destination",destination:p};const m=Ese[u];if(m)return{kind:"org-destination",destination:m};const h=Rse[u];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:u}}function Ol(e){const{org:t,agentId:o}=e,a={org:t,agentId:o},n=r4(e.tabId);switch(n.kind){case"project-destination":return e.destinationScope==="organization"?n.destination==="tasks"?{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}}:{to:Ot.reports,params:{org:t},search:{}}:n.destination==="tasks"?{to:nt.tasks,params:{...a,taskKey:void 0},search:{}}:{to:nt.reports,params:a,search:{}};case"org-destination":switch(n.destination){case"home":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};case"library":return{to:Ot.library,params:{org:t},search:{}}}case"agent-overview":return{to:nt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:nt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:nt.siteEditorCode,params:a,search:{file:n.file}}:{to:nt.siteEditor,params:a,search:{}};case"agent-section":return{to:nt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:nt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:nt.automations,params:a,search:{}};case"app":return{to:nt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:nt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:nt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:nt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:nt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:nt.connectSources,params:a,search:{}}}}function Ive(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ot.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",o=e.agentId!==e.superAgentId&&r4(t).kind==="org-destination"?"overview":t;return Ol({org:e.org,agentId:e.agentId,tabId:o,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Dse(e,t,o={}){const a=i=>({...o.search?.(i)??{},...t.search}),n=o.replace??!0;switch(t.to){case Ot.tasks:e({to:Ot.tasks,params:t.params,search:a,replace:n});return;case Ot.home:e({to:Ot.home,params:t.params,search:a,replace:n});return;case Ot.reports:e({to:Ot.reports,params:t.params,search:a,replace:n});return;case Ot.discover:e({to:Ot.discover,params:t.params,search:a,replace:n});return;case Ot.library:e({to:Ot.library,params:t.params,search:a,replace:n});return;case nt.root:e({to:nt.root,params:t.params,search:a,replace:n});return;case nt.tasks:e({to:nt.tasks,params:t.params,search:a,replace:n});return;case nt.reports:e({to:nt.reports,params:t.params,search:a,replace:n});return;case nt.siteEditor:e({to:nt.siteEditor,params:t.params,search:a,replace:n});return;case nt.siteEditorContent:e({to:nt.siteEditorContent,params:t.params,search:a,replace:n});return;case nt.siteEditorCode:e({to:nt.siteEditorCode,params:t.params,search:a,replace:n});return;case nt.automations:e({to:nt.automations,params:t.params,search:a,replace:n});return;case nt.automation:e({to:nt.automation,params:t.params,search:a,replace:n});return;case nt.app:e({to:nt.app,params:t.params,search:a,replace:n});return;case nt.view:e({to:nt.view,params:t.params,search:a,replace:n});return;case nt.outputFile:e({to:nt.outputFile,params:t.params,search:a,replace:n});return;case nt.outputDeck:e({to:nt.outputDeck,params:t.params,search:a,replace:n});return;case nt.libraryFile:e({to:nt.libraryFile,params:t.params,search:a,replace:n});return;case nt.connectSources:e({to:nt.connectSources,params:t.params,search:a,replace:n});return;case nt.settings:case nt.assets:case nt.git:case nt.hosting:case nt.e2e:case nt.analytics:case nt.experiments:case nt.monitor:e({to:t.to,params:t.params,search:a,replace:n})}}function Lve(e,t){Dse(e,Ol(t),t)}function Ose(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Mse(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Nse=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),i4=new Set(["main"]),Ise=new Set(["virtualmcpid"]);function Hv(e,t){return Object.fromEntries(Object.entries(e).filter(([o])=>!t.has(o)))}function kl(e,t){return{...Hv(e,Nse),...t.search}}function Lse(e){return Hv(e,Ise)}function Bve(e){if(e.search.virtualmcpid===void 0)return null;const t=br(e.search.virtualmcpid);if(t){const o=e.routePath===Ot.tasks?"board":e.routePath===Ot.reports?"reports":null;if(e.routePath===Ot.home||o){const a=o?Ol({org:e.org,agentId:t,tabId:o}):kd(e.org,t);return{kind:"canonical",route:a,search:kl(e.search,a)}}}return e.routePath===Ot.home||e.routePath===Ot.tasks||e.routePath===Ot.reports||e.routePath===Ot.library?{kind:"same-route",search:Lse(e.search)}:null}function br(e){return e?.trim()||void 0}function s4(e){return Cse(e)||e!==void 0&&a4.has(e)}function l4(e){const t=br(e);return t?t.startsWith("vir_")&&t.length>4||QG(t)!==null||oK(t)!==null||nK(t)!==null||rK(t)!==null||iK(t)||cK(t):!1}function Bse(e){const t=br(e.agentIdParam),o=s4(t);return t&&!o?t:br(e.virtualMcpIdSearch)??br(e.fallbackAgentId)}function Fve(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const l=Ww({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return l?.kind==="canonical"?{route:l.route,search:l.search}:null}if(!t||Mse(e.pathname))return null;const o=e.search.virtualmcpid!==void 0&&!l4(t);if(!(s4(t)||o))return null;const n=Bse({agentIdParam:o?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),i=Ww({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}function Fse(e,t,o,a){const n=br(a);switch(e){case"board":return n?Ol({org:t,agentId:n,tabId:"board"}):{to:Ot.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const i=bs(o.path);return{to:Ot.library,params:{org:t},search:i?{path:i}:{}}}case"reports":return n?Ol({org:t,agentId:n,tabId:"reports"}):{to:Ot.reports,params:{org:t},search:{}};case"overview":return{to:Ot.home,params:{org:t},search:{}};case"discover":return{to:Ot.discover,params:{org:t},search:{}};default:return null}}function Np(e){const t=Fse(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return kd(e.org,e.agentId);const o=br(e.agentId);return o?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:nt.root,params:{org:e.org,agentId:o},search:{}}:Ol({org:e.org,agentId:o,tabId:e.tabId}):null}function kd(e,t){const o=br(t);return o?{to:nt.root,params:{org:e,agentId:o},search:{}}:{to:Ot.home,params:{org:e},search:{}}}function jse(e){const{main:t}=e;if(t===void 0)return null;const o=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Hv(o,i4),mainpanel:!1}};if(t==="chat"){const n=kd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...kl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Np({org:e.org,agentId:e.agentId,tabId:t,search:o});return a?{kind:"canonical",route:a,search:kl(o,a)}:null}function bs(e){return typeof e=="string"&&e.length>0?e:void 0}function Ww(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const l=Ww({...e,search:Hv(t,i4)});return l?.kind!=="canonical"?l:{...l,search:{...l.search,mainpanel:!1}}}if(t.main!==void 0)return jse({org:e.org,agentId:e.agentId,main:t.main,search:t});const o=br(e.agentId),a=e.panel;if(!a){const l=kd(e.org,o);return{kind:"canonical",route:l,search:kl(t,l)}}const n=kse(a,{file:bs(t.file),key:bs(t.key),deck:bs(t.deck),path:bs(t.path),connection:bs(t.connection),tool:bs(t.tool),automation:bs(t.automation)}),i=n?e.source==="project-first"&&n==="overview"&&o?Ol({org:e.org,agentId:o,tabId:n}):Np({org:e.org,agentId:o,tabId:n,search:t}):Np({org:e.org,agentId:o,tabId:"",search:t});return i?{kind:"canonical",route:i,search:n==="chat"?{...kl(t,i),sidepanel:!0,mainpanel:!1}:kl(t,i)}:null}function jve(e){const t=e.search??{},o=br(t.virtualmcpid),a=br(e.fallbackAgentId),n=t.main;let i;if(n==="chat")i=kd(e.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const l=Np({org:e.org,agentId:o,tabId:n,search:t}),c=!l&&n.trim().length>0&&a?Np({org:e.org,agentId:a,tabId:n,search:t}):null;i=l??c??{to:Ot.home,params:{org:e.org},search:{}}}else i=kd(e.org,o);return{route:i,search:{...kl(t,i),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function c4(e,t){if(t.task===void 0)return null;const{task:o,...a}=t;return{taskKey:e??(o.trim()||void 0),search:a}}const zse={contentPageId:V().optional(),contentPath:V().optional(),contentPathTemplate:V().optional(),contentCollection:V().optional(),contentItem:V().optional()},d4=zse,Qx={view:V().optional(),group:V().optional(),subgroup:V().optional(),q:V().optional(),assignee:V().optional(),priority:V().optional(),due:V().optional(),tags:V().optional(),repo:V().optional(),boardOrg:V().optional()},Yw={fileView:ia(["all","documents","media"]).catch("all").optional(),path:V().optional(),preview:V().optional(),skill:V().optional(),brand:V().optional()},Use={file:V().optional(),key:V().optional(),deck:V().optional(),path:V().optional(),connection:V().optional(),tool:V().optional(),automation:V().optional(),section:V().optional(),preview:V().optional(),autosend:V().optional(),connect:Tv().optional(),siteUrl:V().optional(),...d4},u4={...Use,task:V().optional(),...Qx,skill:Yw.skill,brand:Yw.brand},ah=_e(u4),pn=s$({component:()=>T.jsx(Yie,{children:T.jsx(P_,{})})}),$se=Ie({getParentRoute:()=>pn,path:"/login",component:Ue(()=>ze(()=>import("./login-CXY1yuZY.js"),__vite__mapDeps([0,1,2,3,4,5]))),validateSearch:Di(()=>_e({next:V().optional(),client_id:V().optional(),redirect_uri:V().optional(),response_type:V().optional(),state:V().optional(),scope:V().optional(),code_challenge:V().optional(),code_challenge_method:V().optional(),src:V().optional(),ref:V().optional()}))}),qse=Ie({getParentRoute:()=>pn,path:"/cli/auth-success",component:Ue(()=>ze(()=>import("./cli-auth-success-BekLnyCd.js"),__vite__mapDeps([6,5])))}),Vse=Ie({getParentRoute:()=>pn,path:"/reset-password",component:Ue(()=>ze(()=>import("./reset-password-BV_oLArt.js"),__vite__mapDeps([7,2]))),validateSearch:Di(()=>_e({token:V().optional(),error:V().optional()}))}),Hse=Ie({getParentRoute:()=>pn,path:"/auth/$pathname",component:Ue(()=>ze(()=>import("./auth-catchall-CnLOzh6z.js"),[]))}),Gse=Ie({getParentRoute:()=>pn,path:"/oauth/callback",component:Ue(()=>ze(()=>import("./oauth-callback-C3bvGl4h.js"),__vite__mapDeps([8,9,10])))}),Kse=Ie({getParentRoute:()=>pn,path:"/oauth/callback/ai-provider",component:Ue(()=>ze(()=>import("./oauth-callback-ai-provider-BFMT3UdD.js"),[]))}),nh=Ie({getParentRoute:()=>pn,path:"/_admin",component:Ue(()=>ze(()=>import("./layout-DMcycabY.js"),__vite__mapDeps([11,12,13])))}),Wse=Ie({getParentRoute:()=>nh,path:"/",beforeLoad:()=>{throw Qo({to:"/_admin/users"})}}),Yse=Ie({getParentRoute:()=>nh,path:"/users",component:Ue(()=>ze(()=>import("./users-DSJ7gYEW.js"),__vite__mapDeps([14,15,16,17,18,19,20,21,22,23,24,25,26,27,28])))}),Zse=Ie({getParentRoute:()=>nh,path:"/orgs",component:Ue(()=>ze(()=>import("./orgs-6Wa09XqX.js"),__vite__mapDeps([29,15,16,17,18,19,20,2,30,24,31,32,33,34,35,36,37,38,23,39,40,25,26,27])))}),Qse=Ie({getParentRoute:()=>nh,path:"/prompts",component:Ue(()=>ze(()=>import("./prompts-Cp6MUNg1.js"),__vite__mapDeps([41,18,2,30,38,25])))}),Jse=nh.addChildren([Wse,Yse,Zse,Qse]),Jx=Ie({getParentRoute:()=>pn,id:"shell",component:Ue(()=>ze(()=>import("./shell-layout-BbZrykxM.js").then(e=>e.g),__vite__mapDeps([42,21,22,43,44,45,46,47,17,48,49,50,51,35,36,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,69,32,70,71,31,72,73,74,10,75,76,77,78,79,80,81,82,4,83,39,3,12,84,85,86])))}),Xse=Ie({getParentRoute:()=>Jx,path:"/",beforeLoad:async()=>{const e=cse();if(e)throw Qo({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Fl.lastOrgSlug());if(t)throw Qo({to:"/$org",params:{org:t}});const{data:o}=await ZI();if(!o)return;const a=o[0];throw Qo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),ele=Ie({getParentRoute:()=>pn,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await ZI();if(e&&e.length>0)throw Qo({to:"/"})},component:Ue(()=>ze(()=>import("./onboarding-DtANDRsT.js"),__vite__mapDeps([87,12,5,88,21,22,66,2,30,37,43,51,65,68])))}),p4=Di(()=>_e({org:V().optional(),siteUrl:V().optional(),fix:V().optional()})),tle=Ie({getParentRoute:()=>pn,path:"/reports-onboarding",component:Ue(()=>ze(()=>import("./reports-onboarding-D8veE4dS.js"),__vite__mapDeps([89,90,1,2,3,4,5,88,21,22,66,91,92,93,30,94,74,10,95,80,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,20,67,68,69,32,70,31,96,34,97,98,99,24,100,101,102,9,103,104,105,106,107]))),validateSearch:p4}),ole=Ie({getParentRoute:()=>pn,path:"/commerce-onboarding",validateSearch:p4,beforeLoad:({search:e})=>{throw Qo({to:"/reports-onboarding",search:e})}}),ale=Ie({getParentRoute:()=>pn,path:"/choose-editor",component:Ue(()=>ze(()=>import("./choose-editor-DHuVN8EQ.js"),__vite__mapDeps([108,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,32,70,12]))),validateSearch:Di(()=>_e({site:V().optional(),domain:V().optional(),pageId:V().optional(),path:V().optional(),pathTemplate:V().optional()}))}),nle=Ie({getParentRoute:()=>pn,path:"/report/$domain",component:Ue(()=>ze(()=>import("./reports-DpNr3YR6.js"),__vite__mapDeps([109,103,4,1,2,3,110])))}),Gv=Ie({getParentRoute:()=>Jx,path:"/$org",beforeLoad:({params:e})=>{lse({org:e.org})},component:Ue(()=>ze(()=>import("./route-DzLLBN_l.js"),__vite__mapDeps([111,112,113,114,32,96,34,115,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,118,119,13,120,93,30,33,38,121,122,123,124,125,126,127,128,129,130,131,132,28,26,27,91,92,2,133,134,135,136,40,137,138,139,140,141,142,143,144,145,146,24,147])))}),Kv=Ie({getParentRoute:()=>Gv,id:"org-shell",pendingComponent:Md,component:Ue(()=>ze(()=>import("./thread-route-DC9aU1My.js"),__vite__mapDeps([148,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,90,31,32,151,97,98,99,49,94,95,80,45,46,47,17,48,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,96,34,93,30,2,24,100,101,102,9,103,104,105,152,106])))}),rle=_e({sidepanel:bL,mainpanel:yL,main:ro([V(),Ze(0)]).optional(),thread:V().optional(),autosend:V().optional(),preview:V().optional(),virtualmcpid:V().optional()}),Mn=Ie({getParentRoute:()=>Kv,id:"agent-shell",validateSearch:rle,search:{middlewares:[DU(["sidepanel"])]},pendingComponent:Md,component:Ue(()=>ze(()=>import("./route-Cq_E3u9y.js"),__vite__mapDeps([153,46,60,112,113,114,32,96,34,117,154,17,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,155,31,119,146,20,156,157,93,30,2,158,159,160,42,21,22,43,44,45,47,48,49,50,51,35,36,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,182,183,102,9,184,23,185,186,187,188,189,190,191,192,138,193,194,195,196,197,198,199,18,115,116,200,201,202,92,203,204,205,141,206,134,135,136,40,207,142,208,209,210,211,212,213,214,215])))}),ile=ah.extend({virtualmcpid:V().optional()}),sle=Ie({getParentRoute:()=>Mn,path:"/$taskId",validateSearch:ile,component:()=>null}),io=Ue(()=>ze(()=>import("./index-CyuU6yZd.js"),__vite__mapDeps([200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202])),"ChatLayoutPending"),to=Ue(()=>ze(()=>import("./index-CyuU6yZd.js"),__vite__mapDeps([200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202])),"ChatLayoutError"),lle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./home-CZA4NVdc.js"),__vite__mapDeps([216,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,160,157,155,93,30,2,158,159,161,162,139,140,149,125,124,150,132,127,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,119,173,174,175,156,176,147,177,121,178,126,179,146,104,98,105,180,129,130,181,38,182,183,102,9,184,23,185,186,18,143,138,144,145,24,217,218,131,28])))}),cle=Ie({getParentRoute:()=>Mn,path:"/projects",validateSearch:ah,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0}:{to:"/$org/home",params:{org:e.org},search:a=>({...a,virtualmcpid:void 0}),hash:!0,replace:!0})}}),Oo=Ie({errorComponent:to,getParentRoute:()=>Mn,path:"/projects/$agentId",validateSearch:ah,component:P_}),dle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ue(()=>ze(()=>import("./agent-overview-Bxx3mqx3.js"),__vite__mapDeps([219,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,151,97,98,99,220,131,132,218,145,138,139,140,28,177,121,26,27])))}),ule=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...Qx}),beforeLoad:({params:e,search:t})=>{const o=c4(e.taskKey,t);if(o)throw Qo({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:o?.taskKey??e.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./project-tasks-DFi0AJKe.js"),__vite__mapDeps([221,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,222,223,224,225,118,28,226,227,131,132,143,138,139,140,144,2,30,145,129,130,146,24,177,121,26,27,228,127,229,230,188,164,165,159,231,157,155,93,158,175,232,176,199,182,99,233,186,187,163,125,149,124,150,189,190,191,192,168,156,193,194,185,203,169,161,23,234,235,178,126])))}),ple=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./project-reports-CU7shTBi.js"),__vite__mapDeps([236,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,237,90,2,151,97,98,99,220,106,107])))}),Wv=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:_e({autosend:V().optional(),...d4}),component:Ue(()=>ze(()=>import("./agent-site-editor-CPf68n1p.js"),__vite__mapDeps([238,234,149,76,77,72,73,74,10,75,84,139,140,82,4,83,39,3,125,124,150,132,127,42,21,22,43,44,45,46,47,17,48,49,50,51,35,36,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,69,32,70,71,31,78,79,80,81,12,85,86,117,118,96,34,92,166,195,196,177,121,239,240,213,212,24,129,130,138,207,145,162,241,197,198,199,242,243,154,155,119,146,113,156,157,93,30,2,158,159,160,161,33,163,164,165,26,27,123,167,168,169,170,171,172,173,174,175,176,147,178,126,179,104,98,105,180,181,38,182,183,102,9,184,23,185,186,187,188,189,190,191,192,114,193,194,244,245,200,115,112,116,201,202,246])))}),hle=Ie({getParentRoute:()=>Wv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ue(()=>ze(()=>import("./agent-site-editor-preview-GS0ijSSp.js"),__vite__mapDeps([247,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,239,117,249,212,128,250,213,229,251,223,37,225,92,19,24,252,244,253,243,242,241,101,215,18,201,145,143,144])))}),mle=Ie({getParentRoute:()=>Wv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ue(()=>ze(()=>import("./agent-site-editor-content-Dbmoy-9X.js").then(e=>e.a0),__vite__mapDeps([254,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,92,128,249,239,212,250,213,229,251,223,37,225,19,24,252,244,255,256,18,145,143,144])))}),gle=Ie({getParentRoute:()=>Wv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:_e({file:V().optional()}),component:Ue(()=>ze(()=>import("./agent-site-editor-code-C5W28gjl.js"),__vite__mapDeps([257,248,204,116,56,63,182,74,10,205,73,191,158,72,75,154,17,149,76,77,84,139,140,82,4,83,39,3,125,124,150,132,127,155,96,34,31,32,119,146,20,113,156,157,93,30,2,159,160,42,21,22,43,44,45,46,47,48,49,50,51,35,36,52,53,54,55,57,58,59,60,61,62,64,65,66,67,68,69,70,71,78,79,80,81,12,85,86,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,114,138,193,194,197,198,199,141,206,134,135,136,40,207,235,18])))}),fle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const o=t.automation;if(o)throw Qo({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./agent-automations-CLIHaUQn.js"),__vite__mapDeps([258,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,19,18,259,260,92])))}),vle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:_e({automationView:ia(["settings","runs"]).optional()}),component:Ue(()=>ze(()=>import("./agent-automation-C6iPqVOP.js"),__vite__mapDeps([261,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,171,37,118,155,182,205,262,119,149,139,140,125,124,150,132,127,170,2,33,172,173,263,259,188,264,174,175,157,93,30,158,159,156,176,166,250,213,92,265,129,130,16,18,185,177,121,203,233,186,187,26,27,164,163,165,189,190,191,192,168,138,193,194,184])))}),ble=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ue(()=>ze(()=>import("./agent-settings-BdnQNFuI.js"),__vite__mapDeps([266,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),yle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ue(()=>ze(()=>import("./agent-assets-R_wphq7p.js"),__vite__mapDeps([272,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,248,204,182,205,191,158,154,149,139,140,125,124,150,132,127,155,119,146,156,157,93,30,2,159,160,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,138,193,194,197,198,199,141,206,134,135,136,40,207,92,19,24,252])))}),Sle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/git",staticData:{pageTitle:"common.mainPanelTabs.reviewChanges",defaultMain:"git",mainView:"git"},component:Ue(()=>ze(()=>import("./agent-git-so-osFz0.js"),__vite__mapDeps([273,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,248,204,182,205,191,158,154,149,139,140,125,124,150,132,127,155,119,146,156,157,93,30,2,159,160,161,162,33,163,164,165,26,27,166,123,167,168,169,170,171,172,118,173,174,175,176,147,177,121,178,126,179,104,98,105,180,129,130,181,38,183,102,9,184,23,185,186,187,188,189,190,192,138,193,194,197,198,199,141,206,134,135,136,40,207,240,213,212,244])))}),Tle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ue(()=>ze(()=>import("./agent-hosting-BXsuvmaY.js"),__vite__mapDeps([274,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,256,40,92,227,16,188,2,30,33,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),wle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ue(()=>ze(()=>import("./agent-e2e-DakaaNs8.js"),__vite__mapDeps([275,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,2,30,92,33,16,256,40,188,166,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),_le=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},component:Ue(()=>ze(()=>import("./agent-analytics-BuShy2lS.js"),__vite__mapDeps([276,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,171,2,30,16,277,278,279,92,256,40,280,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,38,264,179,146,180,129,130,181,119,93,33,183,102,184,185,186,194,176,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),xle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/experiments",staticData:{defaultMain:"experiments",mainView:"experiments"},component:Ue(()=>ze(()=>import("./agent-experiments-BhEpxS1S.js"),__vite__mapDeps([281,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,23,2,30,16,33,256,40,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,183,102,184,185,186,194,176,171,19,269,191,205,156,158,37,118,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196])))}),Ple=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ue(()=>ze(()=>import("./agent-monitor-Y-y8WkNo.js"),__vite__mapDeps([282,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,277,278,279,256,118,40,280,283,284,285,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,194,176,171,19,269,191,205,156,158,37,128,134,135,136,137,207,143,138,144,145,24,198,270,271,192,196,235,178,126])))}),Cle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/apps/$connectionId/$toolName",staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ue(()=>ze(()=>import("./agent-app-D6Tp5vlj.js"),__vite__mapDeps([286,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,206,287,155,168,205,197,162,139,140,149,125,124,150,132,127,198,199,189,190,191,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105])))}),kle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/views/$viewId",staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ue(()=>ze(()=>import("./agent-view-BjdG_eVV.js"),__vite__mapDeps([288,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,287,155,168,205,197,162,139,140,149,125,124,150,132,127,198,199,189,190,191,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105,267,263,18,268,27,182,92,38,264,179,146,180,129,130,181,119,33,183,184,23,185,186,194,176,171,19,269,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,270,271,192,196])))}),Ele=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:_e({key:V().optional()}),component:Ue(()=>ze(()=>import("./agent-file-B7S5_-vD.js"),__vite__mapDeps([289,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,194,211,176,212,213,165,159,193,149,139,140,125,124,150,132,127,267,104,98,105,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,2,33,183,102,184,23,185,186,171,19,269,191,205,156,158,37,118,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Ale=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:_e({path:V().optional()}),component:Ue(()=>ze(()=>import("./agent-deck-DtlpMciC.js"),__vite__mapDeps([290,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,214,176,2,118,267,104,98,105,149,139,140,125,124,150,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,33,183,102,184,23,185,186,194,171,19,269,191,205,156,158,37,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Rle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:_e({path:V().optional()}),component:Ue(()=>ze(()=>import("./agent-library-file-BbHf83br.js"),__vite__mapDeps([291,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,210,211,176,212,213,194,165,159,214,2,118,150,267,104,98,105,149,139,140,125,124,132,127,263,18,268,27,182,9,92,38,264,179,146,180,129,130,181,119,93,30,33,183,102,184,23,185,186,171,19,269,191,205,156,158,37,128,134,135,136,40,137,207,143,138,144,145,24,198,270,271,192,196])))}),Dle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Oo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ue(()=>ze(()=>import("./agent-connect-sources-tobP9soC.js"),__vite__mapDeps([292,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,94,90,95,97,98,99,93,30,2,24,100,101,102,9,103,104,105,152,106])))}),Ole=Ie({getParentRoute:()=>Oo,path:"/$legacyView",component:()=>null}),Mle=Ie({getParentRoute:()=>Mn,path:"/agents",validateSearch:ah,beforeLoad:({params:e,search:t})=>{const o=t.virtualmcpid?.trim();throw Qo(o?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:a=>a,hash:!0,replace:!0})}}),Nle=Ie({getParentRoute:()=>Mn,path:"/agents/$",validateSearch:ah,beforeLoad:({params:e,location:t})=>{const o=e._splat?.split("/").find(Boolean);if(!l4(o))return;const a=Ose(t.pathname);if(!a)return;const n=t.hash?`#${t.hash}`:"";throw Qo({href:`${a}${t.searchStr}${n}`,replace:!0})},component:Ue(()=>ze(()=>import("./legacy-agents-deep-C3Zyezst.js"),__vite__mapDeps([293,208,77])))}),Ile=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:_e({task:V().optional(),...Qx}),beforeLoad:({params:e,search:t})=>{const o=c4(e.taskKey,t);if(o)throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Ue(()=>ze(()=>import("./tasks-BLCuiNcA.js"),__vite__mapDeps([294,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,222,223,224,225,118,28,226,227,131,132,143,138,139,140,144,2,30,145,129,130,146,24,177,121,26,27,228,127,229,230,188,164,165,159,231,157,155,93,158,175,232,176,199,182,99,233,186,187,163,125,149,124,150,189,190,191,192,168,156,193,194,185,203,169,161,23,234,235,178,126])))}),Lle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>ze(()=>import("./taskboard-analytics-CkQr3tK7.js"),__vite__mapDeps([295,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,296,277,278,279,16,283,284,285,224,225,118,33,166])))}),Ble=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ue(()=>ze(()=>import("./thread-analytics-CE0WviO_.js"),__vite__mapDeps([297,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,296,277,278,279,16,283,284,285,133,23,225,118,33,166,233,186,130,187,26,27,188,164,163,165,159,125,149,139,140,124,150,132,127,189,190,191,192,155,168,158,182,138,156,157,93,30,2,193,194,185,203])))}),Fle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:_e({connect:Tv().optional(),siteUrl:V().optional()}),component:Ue(()=>ze(()=>import("./reports-BW-QoVax.js"),__vite__mapDeps([298,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,237,90,2,151,97,98,99,220,106,107])))}),jle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:_e(Yw),component:Ue(()=>ze(()=>import("./library-DbAgblb-.js"),__vite__mapDeps([299,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,227,226,92,2,150,24,176,300,194,301,302,38,165,159,214,118,209,210,211,212,213,303])))}),zle=Ie({pendingComponent:io,errorComponent:to,getParentRoute:()=>Mn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ue(()=>ze(()=>import("./discover-BekL4zcZ.js"),__vite__mapDeps([304,200,113,115,112,114,32,96,34,77,76,72,73,74,10,75,116,82,4,83,39,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,70,117,42,21,71,31,78,79,80,81,3,12,84,85,86,201,202,145,182,177,121,136,135,40,207])))}),Ule=Ie({getParentRoute:()=>Gv,path:"/members",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/members",params:{org:e.org}})}}),$le=_e({main:ro([V(),Ze(0)]).optional(),virtualmcpid:V().optional(),...u4,sidepanel:bL,mainpanel:yL,thread:V().optional()}),qle=Ie({getParentRoute:()=>Kv,path:"/",validateSearch:$le,pendingComponent:Md,component:Ue(()=>ze(()=>import("./index-B0_orRJ4.js"),__vite__mapDeps([305,208,77])))}),Vle=Ie({getParentRoute:()=>Kv,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw Qo({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),vo=Ie({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Gv,path:"/settings",pendingComponent:Md,component:Ue(()=>ze(()=>import("./route-B07-zVJy.js"),__vite__mapDeps([306,113,202,60,112,114,32,96,34,117,72,73,74,10,75])))}),Hle=Ie({getParentRoute:()=>vo,path:"/",component:Ue(()=>ze(()=>import("./index-redirect-B6p9S-WJ.js"),__vite__mapDeps([307,308])))}),Gle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>vo,path:"/connections",component:Ue(()=>ze(()=>import("./connections-ByYjvA85.js"),__vite__mapDeps([309,104,98,105,310,17,35,57,96,34,311,23,19,20,184,180,129,130,181,140,80,45,46,47,48,49,50,43,51,36,44,52,53,54,55,56,58,59,60,61,62,63,64,65,66,67,68,22,69,32,70,18,312,92,185,113,31,119,93,30,2,33,38,182,74,10,73,191,183,102,9,171]))),validateSearch:Di(()=>_e({action:ia(["create"]).optional(),tab:ia(["all","connected"]).optional()}))}),Kle=Ie({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>vo,path:"/connections/$appSlug",component:Ue(()=>ze(()=>import("./connection-detail-CpZDxB7F.js"),__vite__mapDeps([313,104,98,105,18,183,2,66,67,314,74,10,205,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,20,68,22,69,32,70,182,33,34,278,315,79,118,96,73,113,316,138,82,4,83,39,139,140,75,269,23,191,9,177,121,21,156,80,114,93,30,312,92,317,277,279,280,284,285,166,181,190,146]))),validateSearch:Di(()=>_e({tab:V().optional()}))}),Wle=Ie({staticData:{pageTitle:"page.item"},getParentRoute:()=>vo,path:"/connections/$appSlug/$collectionName/$itemId",component:Ue(()=>ze(()=>import("./collection-detail-FqVAo6sr.js"),__vite__mapDeps([318,18,74,10,93,30,2,38,314,205,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,20,67,68,22,69,32,70,182,104,98,105,33,34,278,315,79,118,96,73,113,316,138,82,4,83,39,139,140,75,190,191,230,181,269,23,9,189,80,149,76,77,72,84,3,125,124,150,132,127,42,21,71,31,78,81,12,85,86,250,213,256]))),validateSearch:Di(()=>_e({replayId:V().optional()}))}),Yle=Ie({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>vo,path:"/monitor",component:Ue(()=>ze(()=>import("./index-BF_gwFuP.js"),__vite__mapDeps([319,19,20,18,320,321,308,187,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,22,69,32,70,26,27,188,164,163,165,31,159,113,76,77,72,73,74,10,75,96,34,125,149,84,139,140,82,4,83,39,3,124,150,132,127,42,21,71,78,79,80,81,12,85,86,189,190,191,192,155,168,158,114,182,138,156,157,93,30,2,193,194,181,23,118,250,213,177,121,322,171,33,128,229,38,184,37,230,317,277,278,279,280,284,285,233,186,130,185,203,16,265,129,259]))),validateSearch:Di(()=>_e({tab:ia(["overview","audit","dashboards","threads","automations"]).default("overview"),from:V().default("now-30m"),to:V().default("now"),connectionId:Be(V()).optional().default([]),virtualMcpId:Be(V()).optional().default([]),tool:V().default(""),status:ia(["all","success","errors"]).default("all"),search:V().default(""),page:Mt().optional(),streaming:Ut().default(!0),propertyFilters:V().default(""),hideSystem:Ut().default(!1)}))}),Zle=Ie({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>vo,path:"/general",component:Ue(()=>ze(()=>import("./general-D6tjE2j7.js"),__vite__mapDeps([323,121,264,21,22,2,324,37,44,127,39,83,251,182,74,10,325,23,33,34,35,36,92,308])))}),Qle=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>vo,path:"/connect",pendingComponent:Li("connect"),component:Ue(()=>ze(()=>import("./connect-BbrTSpN5.js"),__vite__mapDeps([326,230,33,34,35,36,166,164,52,59,61,217,327,46,66,67,92,31,32,2,30,74,10,320,321,308])))}),Jle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/ai-providers",pendingComponent:Li("billing"),component:Ue(()=>ze(()=>import("./ai-providers-DsuBk_lC.js"),__vite__mapDeps([328,46,124,51,127,39,83,262,31,32,119,113,149,76,77,72,73,74,10,75,84,139,140,82,4,3,125,150,132,170,171,35,2,33,34,36,48,47,59,20,172,63,21,22,55,71,52,58,173,264,167,92,169,126,66,67,268,27,320,321,308])))}),Xle=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/billing",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),ece=Ie({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>vo,path:"/infra-billing",pendingComponent:Li("billing"),component:Ue(()=>ze(()=>import("./infra-billing-HCI22mTY.js"),__vite__mapDeps([329,53,62,23,322,171,35,36,78,79,31,32,20,118,33,34,16,279,278,285,280,320,321,308])))}),tce=Ie({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>vo,path:"/secrets",component:Ue(()=>ze(()=>import("./secrets-Cttvdk2_.js"),__vite__mapDeps([330,46,66,22,69,31,32,2,30,33,34,35,36,38,271,320,321,308])))}),oce=Ie({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>vo,path:"/api-keys",pendingComponent:Li("connect"),component:Ue(()=>ze(()=>import("./api-keys-C2GXQUdc.js"),__vite__mapDeps([331,327,46,52,59,66,67,92,31,32,2,30,74,10,320,321,308])))}),ace=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>vo,path:"/buckets",pendingComponent:Li("storage"),component:Ue(()=>ze(()=>import("./buckets-C_5U-zUS.js"),__vite__mapDeps([332,46,66,67,92,31,32,2,30,33,34,35,36,37,38,136,320,321,308])))}),nce=Ie({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>vo,path:"/repositories",validateSearch:_e({git_error:V().optional().catch(void 0),git_flow:V().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Ut().optional().catch(void 0)}),pendingComponent:Li("repositories"),component:Ue(()=>ze(()=>import("./repositories-D_tmdpJ8.js"),__vite__mapDeps([333,144,48,62,66,96,34,31,32,2,30,145,129,130,21,22,146,20,24,49,171,35,92,23,230,33,36,38,67,39,270,69,271,127,83,320,321,308])))}),rce=Ie({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>vo,path:"/synced-repos",pendingComponent:Li("storage"),component:Ue(()=>ze(()=>import("./synced-repos-QFrSnbHa.js"),__vite__mapDeps([334,66,92,31,32,2,144,48,62,96,34,30,145,129,130,21,22,146,20,24,300,176,54,55,56,59,65,67,70,194,301,302,320,321,308])))}),ice=Ie({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>vo,path:"/task-board",component:Ue(()=>ze(()=>import("./tasks-Bnn9RQl1.js"),__vite__mapDeps([335,171,35,2,38,47,64,66,67,225,78,79,31,32,20,118,37,174,175,157,155,93,30,158,159,113,76,77,72,73,74,10,75,96,34,45,46,17,48,49,50,43,51,36,44,52,53,54,55,56,57,58,59,60,61,62,63,65,68,22,69,70,149,84,139,140,82,4,83,39,3,125,124,150,132,127,170,33,172,21,71,156,176,302,92,324,251,182,320,321,308])))}),sce=Ie({getParentRoute:()=>vo,path:"/tasks",beforeLoad:({params:e})=>{throw Qo({to:"/$org/settings/task-board",params:{org:e.org}})}}),lce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>vo,path:"/members",pendingComponent:Li("members"),component:Ue(()=>ze(()=>import("./members-BEiKQ73m.js"),__vite__mapDeps([336,310,17,35,57,96,34,311,23,19,20,15,16,18,120,31,32,93,30,33,36,38,121,122,21,22,26,27,28,177,337,92,54,59,67,171,78,79,118,66,228,320,321,308])))}),cce=Ie({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>vo,path:"/roles",pendingComponent:Li("members"),component:Ue(()=>ze(()=>import("./roles-92Mfuaie.js"),__vite__mapDeps([338,122,121,337,23,92,54,66,67,15,16,17,18,19,20,172,80,45,46,47,48,49,50,43,51,35,36,44,52,53,55,56,57,58,59,60,61,62,63,64,65,68,22,69,32,70,185,171,186,130,74,10,146,105,177,28,182,73,124,21,37,96,34,81,72,75,321,308]))),validateSearch:Di(()=>_e({role:V().optional()}))}),dce=Ie({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>vo,path:"/sso",component:Ue(()=>ze(()=>import("./sso-D1j1eaaw.js"),__vite__mapDeps([339,325,23,2,33,34,35,36,92,37,85,67,320,321,308])))}),uce=Ie({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>vo,path:"/profile",component:Ue(()=>ze(()=>import("./profile-BOPnUUUc.js"),__vite__mapDeps([340,21,22,31,32,315,33,34,35,36,67,68,37,167,2,63,64,264,147])))}),pce=Ie({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>vo,path:"/agents",component:Ue(()=>ze(()=>import("./agents-list-BRhXk1wX.js"),__vite__mapDeps([341,73,74,10,54,47,67,45,46,17,48,49,50,43,51,35,36,44,52,53,55,56,57,58,59,60,61,62,63,64,65,66,20,68,22,69,32,70,268,27,138,82,4,83,39,139,140,75,127,18,316,182,102,9,104,98,105,99,100,31,146,145,92,19,143,144,96,34,2,30,129,130,21,24])))}),hce=Ie({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>vo,path:"/automations",component:Ue(()=>ze(()=>import("./automations-BWboyFGA.js"),__vite__mapDeps([342,66,70,19,20,18,259,74,10,138,73,82,4,83,39,139,140,75,260,92,45,46,47,17,48,49,50,43,51,35,36,44,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,68,22,69,32,320,321,308])))}),mce=Ie({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>vo,path:"/skills",component:Ue(()=>ze(()=>import("./skills-8G1WBDrj.js"),__vite__mapDeps([343,54,50,67,68,70,19,20,92,18,184,23,301,55,176,150,303,31,32,165,35,52,159,113,76,77,72,73,74,10,75,211,212,58,213,194,302])))}),gce=vo.addChildren([Hle,Gle,Kle,Wle,pce,hce,mce,Yle,Zle,Qle,Jle,Xle,ece,tce,oce,ace,nce,rce,ice,sce,lce,cce,dce,uce]),fce=Wv.addChildren([hle,mle,gle]),vce=Oo.addChildren([dle,ule,ple,fce,fle,vle,ble,yle,Sle,Tle,wle,_le,xle,Ple,Cle,kle,Ele,Ale,Rle,Dle,Ole]),bce=Mn.addChildren([sle,lle,cle,vce,Mle,Nle,Ile,Lle,Ble,Fle,jle,zle]),yce=Kv.addChildren([qle,Vle,bce]),Sce=Gv.addChildren([yce,Ule,gce]),Tce=Jx.addChildren([Xse,Sce]),wce=pn.addChildren([Tce,Jse,ele,tle,ole,ale,nle,$se,qse,Vse,Hse,Gse,Kse]);function _ce(){const e=Le.c(16),t=Cr();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==o?(a=T.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=a):a=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let i;e[6]!==n?(i=T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=T.jsx("button",{type:"button",onClick:xce,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let u;return e[12]!==a||e[13]!==i||e[14]!==c?(u=T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,i,c]})}),e[12]=a,e[13]=i,e[14]=c,e[15]=u):u=e[15],u}function xce(){return window.history.back()}const Yv=b$({routeTree:wce,defaultPendingComponent:Md,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:_ce});function ke(...e){return vL(rx(e))}function Pce(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function Uo({error:e,localization:t,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return e?.message?e.message:(a=e?.error)!=null&&a.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function $l(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function Zw(e,t){for(const o in e)if(e[o]===t)return o}function Ip(e,t){let o=V().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var Cce={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},kce={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Ece={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Ace={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Rce={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Dce={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Oce={...Rce,...Dce},Mce={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Nce={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Ice={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Lce={INVALID_SESSION_TOKEN:"Invalid session token"},Bce={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},Fce={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},jce={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},zce={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Uce={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},$ce={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},qce={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},Vce={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Ace,...Cce,...kce,...Ece,...Oce,...Mce,...Nce,...Ice,...Lce,...Bce,...Fce,...jce,...zce,...Uce,...$ce,...qce},Hce={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},GO={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},KO={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const h4=A.createContext({});function m4(){return A.useContext(h4)}var IS,WO;function Gce(){if(WO)return IS;WO=1;var e=function(){};return IS=e,IS}var Kce=Gce();const Wce=Nl(Kce);function Yce({async:e,appendTo:t,defer:o,id:a,nonce:n,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),a&&(l.id=a),n&&l.setAttribute("nonce",n),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var Zce=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(o[a[n]]=e[a[n]]);return o};let mp=null,Lp=!1;const tv=new Set,ov=new Set,Qce=typeof window<"u",ud="___grecaptcha_cfg",g4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Jce(){if(!Qce)return;function e(o){if(Lp)o();else{window[ud]||(window[ud]={});const a=window[ud];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){Lp=!0;for(const o of ov)o();ov.clear()}window[g4]=t}function Xce({language:e,onLoadCallbackName:t,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const i=n?"recaptcha.net":"google.com",l=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function ede({language:e,render:t,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const i={id:"google-recaptcha-v3"},l=Xce({language:e,onLoadCallbackName:g4,render:t,useEnterprise:a,useRecaptchaNet:n});if(mp){if(mp!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}mp=l,Yce(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function tde(e){if(!window[ud])return;const t=window[ud];t.clients&&delete t.clients[e]}function ode(e,t){var{onLoadCallback:o,onLoadCallbackName:a}=t,n=Zce(t,["onLoadCallback","onLoadCallbackName"]);if(tv.size===0&&Jce(),ede(n),tv.add(e),o&&(Lp?o():ov.add(o)),a){let i=function(){if(!a)return;const l=window[a];typeof l=="function"&&l()};Lp?i():ov.add(i)}}function ade(e){var t,o,a;tv.delete(e),tv.size===0&&(window.grecaptcha=void 0,window[ud]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${mp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),mp=null,Lp=!1)}let YO=!1;function nde({container:e,children:t,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:i,useRecaptchaNet:l}){var c,u,p,m,h,f,v;const b=A.useId(),[S,x]=A.useState(null),[w,_]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function D(){var O;const L=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return ode(b,{language:o,onLoadCallback:D,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{ade(b),x(null)}},[e?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,i,l]),A.useEffect(()=>{var D,O,L;if(!e?.element||!S?.render)return;const $={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((D=e.parameters)===null||D===void 0?void 0:D.badge)||"inline",callback:e.parameters.callback,sitekey:a,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const U=S.render(B,$);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(YO||(Wce(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),YO=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),_(U),E.current=!0,()=>{_(null),E.current=!1,tde(U),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(u=e?.parameters)===null||u===void 0?void 0:u.hidden,(p=e?.parameters)===null||p===void 0?void 0:p.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!e?.element,k=C?w:a,R=A.useMemo(()=>k!==null&&S?.execute?D=>{if(k===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(k,{action:D})}:void 0,[k,S,C]);return T.jsx(h4.Provider,{value:{container:e?.element,executeRecaptcha:R,reCaptchaInstance:S},children:t})}var rde=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const a of o)a()}}},Gn=new rde;function ide(){return()=>{}}function Bi(){return A.useSyncExternalStore(ide,()=>!0,()=>!1)}function f4(){const[e,t]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");t(n??void 0)};o();const a=new MutationObserver(n=>{for(const i of n)i.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:e}}function Xx(){const[e,t]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const i=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));t(i?"dark":"light")};o();const a=new MutationObserver(n=>{for(const i of n)(i.attributeName==="style"||i.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:e}}function sde({children:e}){const t=Bi(),{captcha:o}=A.useContext(yt);return o?.provider!=="google-recaptcha-v3"?e:T.jsxs(nde,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&T.jsx("style",{children:`
169
169
  .grecaptcha-badge {
170
170
  visibility: hidden;
171
171
  border-radius: var(--radius) !important;