decocms 4.574.8 → 4.574.9

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 (388) hide show
  1. package/dist/client/assets/{AlertCircle-BAmHKKsU.js → AlertCircle-BrBujzmj.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Dzi9L-5c.js → AreaChart-Bs4ZyKEJ.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-gk0ZCHpe.js → ArrowLeft-B2qsUhAF.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Oow5hGQz.js → ArrowUp-Bq_XWrMf.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-GB7-WfQw.js → CartesianChart-BzQXSn72.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-BQlyLGsu.js → CategoricalChart-B34tgPab.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DmfFwydo.js → CheckCircle-BrU3KNn_.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-DhmNgA1s.js → ChevronSelectorVertical-C15U3mNk.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-h3R0LiST.js → ChevronUp-CxdkHAYX.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-opvzFjuh.js → CreditCard01-gy5ViYmH.js} +1 -1
  11. package/dist/client/assets/{Globe04-B7My-KRc.js → Globe04-Qb5La101.js} +1 -1
  12. package/dist/client/assets/{Key01-DtUFXCmn.js → Key01-XBNKfFAD.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-DbqgHdC0.js → LinkBroken01-BNA4t2nT.js} +1 -1
  14. package/dist/client/assets/{Minus-BrKkP3oW.js → Minus-BQ1U44OY.js} +1 -1
  15. package/dist/client/assets/{Monitor01-ZcR52K7T.js → Monitor01-CTMwaVR_.js} +1 -1
  16. package/dist/client/assets/{Play-CmLZLyOc.js → Play-oyq9OzZ5.js} +1 -1
  17. package/dist/client/assets/{Plus-Ci-A-fWx.js → Plus-B14W9n_P.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-k6lFOpoF.js → ReferenceLine-CBcoZK_U.js} +1 -1
  19. package/dist/client/assets/{SearchMd-DjJWIBOz.js → SearchMd-DDYfB5ME.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-DqYzokeC.js → ShoppingBag01-B4Qpz0kc.js} +1 -1
  21. package/dist/client/assets/{Sun-DRGxYgs4.js → Sun-SepDLWMM.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-BUmyYri2.js → SwitchHorizontal01-B1owjF7D.js} +1 -1
  23. package/dist/client/assets/{Tool01-BpRZdana.js → Tool01-D4V2T_mI.js} +1 -1
  24. package/dist/client/assets/{Tooltip-CiaiPRI1.js → Tooltip-BrxiV7qQ.js} +1 -1
  25. package/dist/client/assets/{Trash01-b7MmLF07.js → Trash01-CTl0J4n_.js} +1 -1
  26. package/dist/client/assets/{Upload01-DGExuych.js → Upload01-CE3wDuuV.js} +1 -1
  27. package/dist/client/assets/{UserSquare-aPvg2Nw7.js → UserSquare-D6mrj9zR.js} +1 -1
  28. package/dist/client/assets/{Users01-BKOqY1GP.js → Users01-vnVJQGsa.js} +1 -1
  29. package/dist/client/assets/{XClose-w7hRM8A3.js → XClose-DWFAtfm6.js} +1 -1
  30. package/dist/client/assets/{Zap-z5XiOqRJ.js → Zap-4X8Ik5ls.js} +1 -1
  31. package/dist/client/assets/{access-gate-DVYwMQ0P.js → access-gate-CmrYCcY4.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-KFg0vdbz.js → add-connection-dialog-C7VuLdpX.js} +1 -1
  33. package/dist/client/assets/agent-app-D6yj-pMQ.js +1 -0
  34. package/dist/client/assets/{agent-assets-DBXXdN-F.js → agent-assets-CtfeFO-q.js} +1 -1
  35. package/dist/client/assets/{agent-automation-mqokXjnT.js → agent-automation-CBfmQGxD.js} +1 -1
  36. package/dist/client/assets/{agent-automations-4REoeTdH.js → agent-automations-C9pDoA5t.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-D3Ep29wr.js → agent-calendar-Dpbs8ukc.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-CVf7Tm9q.js → agent-capabilities-CANCMZIX.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-5aNARyd1.js → agent-connect-sources-CUOKdCzE.js} +1 -1
  40. package/dist/client/assets/agent-deck-9cClb9g8.js +1 -0
  41. package/dist/client/assets/{agent-e2e-B_HILHfY.js → agent-e2e-Do0w1Fmk.js} +1 -1
  42. package/dist/client/assets/agent-experiments-i1khXsMD.js +1 -0
  43. package/dist/client/assets/{agent-file-ChXQ_dxN.js → agent-file-BGZ-rpXM.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-Q-HUFuhy.js → agent-hosting-BcEptfro.js} +1 -1
  45. package/dist/client/assets/{agent-icon-Cq6bkxhD.js → agent-icon-C4zAUQeZ.js} +1 -1
  46. package/dist/client/assets/agent-library-D7XfbskT.js +1 -0
  47. package/dist/client/assets/agent-library-file-BETUEujK.js +1 -0
  48. package/dist/client/assets/agent-overview-BT1unfrS.js +1 -0
  49. package/dist/client/assets/{agent-releases-V69FFrsa.js → agent-releases-dth3gbg2.js} +1 -1
  50. package/dist/client/assets/agent-settings-CjJHki-K.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-CN1s3wDa.js → agent-site-editor--0x03xZz.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-B-MqMBV6.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-T7SQ0eTX.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-CLHaZdDj.js +1 -0
  55. package/dist/client/assets/agent-view-BD06Jv6z.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-D_qa8QG0.js → agent-view-guard-DRTikUW7.js} +1 -1
  57. package/dist/client/assets/{ai-providers-Dpuo8FL0.js → ai-providers-BIsnOJUw.js} +1 -1
  58. package/dist/client/assets/{alert-UQKKr_Kk.js → alert-ChcrHQqB.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-CplA1JwF.js → analytics-sections-IEaJPRpN.js} +1 -1
  60. package/dist/client/assets/api-keys-BEjN8NqZ.js +1 -0
  61. package/dist/client/assets/{api-keys-C2CtORaM.js → api-keys-DyiCkrNJ.js} +1 -1
  62. package/dist/client/assets/{app-editor-DxS_SOS1.js → app-editor-cC2ECYDV.js} +1 -1
  63. package/dist/client/assets/{asset-utils-D7YjAVSU.js → asset-utils-BemSLLjv.js} +1 -1
  64. package/dist/client/assets/{auth-Cy8U0vN0.js → auth-DZBq7iRr.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-BzWkrG7V.js → auth-catchall-DrPulr77.js} +1 -1
  66. package/dist/client/assets/{auth-entry-D9eSm7L9.js → auth-entry-7YktIufn.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-QrGrLjO_.js → auth-split-layout-BIjGKhmF.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-qsvUUvW_.js → authenticate-and-persist-oauth-DArrCFGG.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-CirPKB_R.js → automation-list-row-DjfCNmU2.js} +1 -1
  70. package/dist/client/assets/{automation-runs-DkcFNSpy.js → automation-runs-HL4m0VQL.js} +1 -1
  71. package/dist/client/assets/{automations-DQrJLYNP.js → automations-B1iMF-BH.js} +1 -1
  72. package/dist/client/assets/{autosend-BneXym43.js → autosend-VANv9yLj.js} +1 -1
  73. package/dist/client/assets/{badge-DkIOux3v.js → badge-DaX-o_aM.js} +1 -1
  74. package/dist/client/assets/{block-document-C7UjkOY9.js → block-document-Cx04oYbY.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-CfDmwLLA.js → blocks-preview-workspace-context-DgF7HYHj.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-BfcuzOZT.js → blocks-tab-states-C8jjKnoC.js} +1 -1
  77. package/dist/client/assets/{blog-schema-D_gjHI6M.js → blog-schema-O25l7G8m.js} +1 -1
  78. package/dist/client/assets/{buckets-CzLaj5xW.js → buckets-Bb4wZzzE.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-UX5YM4et.js → build-improve-prompt-doc-BQ6BtFA5.js} +1 -1
  80. package/dist/client/assets/{calendar-DoivltYN.js → calendar-CI3L7G9u.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-Dk8QULrM.js → capability-load-error-De4jloBS.js} +1 -1
  82. package/dist/client/assets/{category-editor-CKte_uBr.js → category-editor-DMUoSfne.js} +1 -1
  83. package/dist/client/assets/{chart-BpO8BFbN.js → chart-DFYkssKS.js} +1 -1
  84. package/dist/client/assets/{chat-context-B1Dc5lsu.js → chat-context-BFrEkp-x.js} +1 -1
  85. package/dist/client/assets/{chat-draft-zRebzdTN.js → chat-draft-WVue6bVm.js} +1 -1
  86. package/dist/client/assets/{checkbox-BADwu2Rj.js → checkbox-C9g8LYdj.js} +1 -1
  87. package/dist/client/assets/{choose-editor-mfO2CtNV.js → choose-editor-K8PxtGC5.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-BkkXQ3np.js → cli-auth-success-7WGG5Ny7.js} +1 -1
  89. package/dist/client/assets/{client-icons-CHsHOEe7.js → client-icons-Dg3AySOi.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-DfZDkcQ1.js → cms-settings-editor-BGVlbtsi.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-BuRwcXPq.js → cms-store-drafts-B7OZSklj.js} +1 -1
  92. package/dist/client/assets/{collapsible-BFh_qMlo.js → collapsible-CouDnhO6.js} +1 -1
  93. package/dist/client/assets/{collection-detail-Cq-xHp6m.js → collection-detail-UPbZXX41.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-BYbMEj23.js → collection-display-button-D8katl6X.js} +1 -1
  95. package/dist/client/assets/{collection-search-Bg84Y9_0.js → collection-search-OjmLQPGA.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-4Lsn1giX.js → collection-table-wrapper-BC08hxFi.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-D57aIX5v.js → collection-tabs-CwlrIKLz.js} +1 -1
  98. package/dist/client/assets/{combobox-iSV-CQzM.js → combobox-Fnhph1yB.js} +1 -1
  99. package/dist/client/assets/{command-CnVdPyj_.js → command-DZp1V8X-.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-Bmqe6SeC.js → companion-mcps-section-1gPvogQd.js} +1 -1
  101. package/dist/client/assets/{config-DUlh6l4D.js → config-C4Gsnqii.js} +1 -1
  102. package/dist/client/assets/{connect-Bw0GJuTn.js → connect-DiSxRkvs.js} +1 -1
  103. package/dist/client/assets/{connect-layout-CwJayWyX.js → connect-layout-DQX9wvNz.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-B1fyzn4u.js → connect-source-dialog-ZMMXP6WV.js} +1 -1
  105. package/dist/client/assets/{connection-Ds0NPGRv.js → connection-B5iqnjJS.js} +1 -1
  106. package/dist/client/assets/{connection-card-Cnzr9qgv.js → connection-card-dWBeLnkC.js} +1 -1
  107. package/dist/client/assets/{connection-detail-C94Si9oS.js → connection-detail-vQx4JY7p.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-DLZm80Vh.js → connection-form-helpers-C-PfuEYz.js} +1 -1
  109. package/dist/client/assets/{connection-slug-JtkQvH-U.js → connection-slug-BPPZqv13.js} +1 -1
  110. package/dist/client/assets/{connections-BwWpc88q.js → connections-BNB5dOFV.js} +1 -1
  111. package/dist/client/assets/{content-tab-Frzx5T6f.js → content-tab-BjndC62X.js} +3 -3
  112. package/dist/client/assets/{context--tEugIHA.js → context-B-eGOpuA.js} +1 -1
  113. package/dist/client/assets/{context-menu-DmK-hmJb.js → context-menu-DqHkPsZX.js} +1 -1
  114. package/dist/client/assets/{context-shell-M8Z1NRsU.js → context-shell-DkPH0WI3.js} +3 -3
  115. package/dist/client/assets/{core.esm-PCFOeq2F.js → core.esm-CEehG5ej.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-c0RCVWjZ.js → create-organization-dialog-C-eZv_C7.js} +1 -1
  117. package/dist/client/assets/{device-hint-Cb5Yk9vR.js → device-hint-juJpe-S9.js} +1 -1
  118. package/dist/client/assets/{discover-1n4s1YWq.js → discover-COI3hr0O.js} +1 -1
  119. package/dist/client/assets/{domain-settings-BWnBbfZl.js → domain-settings-BBV7EcxE.js} +1 -1
  120. package/dist/client/assets/{drawer-BbDXg4uh.js → drawer-CwBC6h27.js} +1 -1
  121. package/dist/client/assets/{editor-SbnY9UBB.js → editor-YZleAELh.js} +1 -1
  122. package/dist/client/assets/{editor-classes-DIUoFA4r.js → editor-classes-CK9ai0gl.js} +1 -1
  123. package/dist/client/assets/{empty-state-Dx0vUNGR.js → empty-state-B9QiU_VY.js} +1 -1
  124. package/dist/client/assets/{empty-state-DUtU0We7.js → empty-state-CwTtE-MO.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-8BUY4PRB.js → experiments-tab-choice-C1gEvb6G.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-5aIWs5nm.js → extract-connection-data-CkWpG9Fj.js} +1 -1
  127. package/dist/client/assets/{feature-gate-B4_WUn2S.js → feature-gate-CEDC08jo.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-Ci_hk3eZ.js → feature-paywall-UROHXvVY.js} +1 -1
  129. package/dist/client/assets/{file-explorer-DS7-0IU7.js → file-explorer-DktEvpiP.js} +1 -1
  130. package/dist/client/assets/{file-preview-3QxlKUQz.js → file-preview-xiRlJpsu.js} +1 -1
  131. package/dist/client/assets/{file-share-button-CA034yeE.js → file-share-button-Br7H7qe9.js} +1 -1
  132. package/dist/client/assets/{file-type-icon-Bp2pbI2H.js → file-type-icon-BRiZbFJM.js} +1 -1
  133. package/dist/client/assets/{folder-icon-BkUUZm4G.js → folder-icon-CHiicbmI.js} +1 -1
  134. package/dist/client/assets/{form-BZxHXIID.js → form-BbCRE2mk.js} +1 -1
  135. package/dist/client/assets/{general-j2gaIDEz.js → general-CYLLbCmH.js} +1 -1
  136. package/dist/client/assets/{github-icon-ddw588tY.js → github-icon-q1xudgoP.js} +1 -1
  137. package/dist/client/assets/{home-8Ff5iue5.js → home-CVchwepi.js} +1 -1
  138. package/dist/client/assets/{home-overview-DGDE6TGI.js → home-overview-BGSikjDJ.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-DB9dOS9F.js → hosted-reconcile-rqZnV2Vw.js} +1 -1
  140. package/dist/client/assets/{icon-button-D5w08aAD.js → icon-button-Bq3ZJEeE.js} +1 -1
  141. package/dist/client/assets/{index-Cp6n42Yr.js → index-BD2-Tfve.js} +3 -3
  142. package/dist/client/assets/{index-CTsVtX6Z.js → index-BD6O45bL.js} +1 -1
  143. package/dist/client/assets/{index-Bew7RNKQ.js → index-BEFauG6g.js} +1 -1
  144. package/dist/client/assets/{index-CuNO2v8I.js → index-BW39Ccy3.js} +1 -1
  145. package/dist/client/assets/{index--SSY-JG1.js → index-BfxFxvBn.js} +1 -1
  146. package/dist/client/assets/{index-D4OC_zRz.js → index-CGTT47Gs.js} +1 -1
  147. package/dist/client/assets/{index-B5NK1-t4.js → index-CH4-90Yv.js} +1 -1
  148. package/dist/client/assets/{index-CMIbJ8MG.js → index-CdvPHHMd.js} +1 -1
  149. package/dist/client/assets/{index-Dz6SE42K.js → index-CwSLxVp3.js} +1 -1
  150. package/dist/client/assets/{index-Bs6auyxm.js → index-D8kKxC0w.js} +1 -1
  151. package/dist/client/assets/{index-CH52vsqw.js → index-DLzGeaMa.js} +1 -1
  152. package/dist/client/assets/{index-DXV9Rrgh.js → index-DRQaomOR.js} +1 -1
  153. package/dist/client/assets/{index-CllkIJqm.js → index-DcLP2Uex.js} +1 -1
  154. package/dist/client/assets/{index-BSoGrbzN.js → index-KVVHw2gU.js} +1 -1
  155. package/dist/client/assets/{index-DZucODSP.js → index-ULZrkDIx.js} +1 -1
  156. package/dist/client/assets/{index-DY7W6fVv.js → index-WlHdhzWm.js} +1 -1
  157. package/dist/client/assets/{index-redirect-D5oUlGVq.js → index-redirect-cM8n5Bf0.js} +1 -1
  158. package/dist/client/assets/{infiniteQueryObserver-C6Hka48g.js → infiniteQueryObserver-CFbscoFz.js} +1 -1
  159. package/dist/client/assets/{infra-billing-cI61pY-d.js → infra-billing-CVwEnJc4.js} +1 -1
  160. package/dist/client/assets/{input-DGGlfIK5.js → input-mbVW2uET.js} +1 -1
  161. package/dist/client/assets/{input-C0CJR9vr.js → input-vtcNycLk.js} +3 -3
  162. package/dist/client/assets/{integration-icon-C9enxTmo.js → integration-icon-C5Anrc8v.js} +1 -1
  163. package/dist/client/assets/{jira-icon-BrLIhIWw.js → jira-icon-Bmi1xI6r.js} +1 -1
  164. package/dist/client/assets/{label-DollvLW8.js → label-CZVy73g_.js} +1 -1
  165. package/dist/client/assets/{layout-BfONeqKu.js → layout-mU_v4Bh-.js} +1 -1
  166. package/dist/client/assets/{legacy-admin-welcome-dialog-DGD5VDL8.js → legacy-admin-welcome-dialog-xczBeRkI.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-gnvJlDT7.js → legacy-agents-deep-DOprMiQ8.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-Ceue37fQ.js → legacy-main-redirect-frLtUhr7.js} +1 -1
  169. package/dist/client/assets/library-H2QdAzSR.js +1 -0
  170. package/dist/client/assets/{library-tab-C4UPTrtu.js → library-tab-DB25yn1i.js} +1 -1
  171. package/dist/client/assets/{login-BJ2i0F0x.js → login-CmHRnJOc.js} +1 -1
  172. package/dist/client/assets/{markdown-BAasaHPS.js → markdown-Bn6_U_KJ.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-BZ0wqpxq.js → mcp-app-renderer-CLwGZiBS.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-BdTbmZs-.js → mcp-oauth-DLp_LyKE.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-DMVjZNG4.js → mcp-oauth-nWMLUxbw.js} +1 -1
  176. package/dist/client/assets/{members-B5rwN-xs.js → members-ZiG-LF73.js} +1 -1
  177. package/dist/client/assets/{memory-D2wUtT6f.js → memory-Bc4AG_R5.js} +1 -1
  178. package/dist/client/assets/{mock-board-B5ve8ttC.js → mock-board-vq_twtUH.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-D3FwWS6z.js → monaco-editor-Cwn1FokD.js} +1 -1
  180. package/dist/client/assets/{monitoring-NCSiQ2Pk.js → monitoring-Ck9IWyMH.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-us5YxB_s.js → monitoring-stats-row-CBa0yJyc.js} +1 -1
  182. package/dist/client/assets/{multi-select-C9p48rxb.js → multi-select-VgSnOaCE.js} +1 -1
  183. package/dist/client/assets/{mustache-BE51OfHp.js → mustache-DsmTghzT.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-Dr1gx6K_.js → named-rule-view-D2hRJFjn.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-COHpjNot.js → new-project-dialog-Bq2ZRt1E.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-CUBLm5wr.js → oauth-callback-DisZamoA.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-CIj7gVYm.js → oauth-callback-ai-provider-CQY9pH53.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-bt38CVDY.js → oauth-consent-BLSOh8Vc.js} +1 -1
  189. package/dist/client/assets/{onboarding-Bx5RinvH.js → onboarding-knc2o8kj.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-BtohP0w7.js → openai-conversation-D0zBymrP.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-BFYfi1F9.js → optimistic-project-sidebar-views-CkyuDF51.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-CKVt2dpk.js → order-monitor-day--YYykwM7.js} +1 -1
  193. package/dist/client/assets/{organization-choice-BLQB1MdJ.js → organization-choice-DihqTAxR.js} +1 -1
  194. package/dist/client/assets/{orgs-CEDevUSC.js → orgs-05_Ljhax.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-BvxGuDLU.js → own-accounts-section-Vq-dKaIp.js} +1 -1
  196. package/dist/client/assets/{pair-BjJ0vlX3.js → pair-B-D0jk5j.js} +1 -1
  197. package/dist/client/assets/{parse-sections-CLMVUWEK.js → parse-sections-DH_6p8mX.js} +3 -3
  198. package/dist/client/assets/{plan-KNHptWXW.js → plan-C8ZCF1fK.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-NH52TbUB.js → plan-ladder-ia9SV_u2.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-CicIxe-V.js → plan-usage-card-BhMgoOQ-.js} +1 -1
  201. package/dist/client/assets/{popover-D24o9prf.js → popover-BX49i_9-.js} +1 -1
  202. package/dist/client/assets/{post-calendar-Bz188EnX.js → post-calendar-BRPy06yS.js} +1 -1
  203. package/dist/client/assets/{post-editor-CuUceih2.js → post-editor-DO094Qrr.js} +1 -1
  204. package/dist/client/assets/{preview-content-BA-6vON6.js → preview-content-ByMvryRR.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-oxja9bAU.js → preview-dialog-CsbNSWkE.js} +1 -1
  206. package/dist/client/assets/{preview-panel-D9I-ugJU.js → preview-panel-CBrKmmim.js} +1 -1
  207. package/dist/client/assets/{preview-tab-BwdMydLW.js → preview-tab-DEjq4YQm.js} +3 -3
  208. package/dist/client/assets/{product-picker-dialog-COzRJ8BW.js → product-picker-dialog-D8SJ6ifV.js} +1 -1
  209. package/dist/client/assets/{profile-My2od47M.js → profile-DGZtmJpW.js} +1 -1
  210. package/dist/client/assets/{project-app-view-E76q47JL.js → project-app-view-CSFErIuG.js} +1 -1
  211. package/dist/client/assets/{project-apps-DrYTNZ5G.js → project-apps-DsmVr6MW.js} +1 -1
  212. package/dist/client/assets/{project-icon-BM-iwutu.js → project-icon-BMNmURUS.js} +1 -1
  213. package/dist/client/assets/{project-index-BUVdFrBG.js → project-index-Cf8pv3Xb.js} +1 -1
  214. package/dist/client/assets/project-reports-DmwAf8Qf.js +1 -0
  215. package/dist/client/assets/project-tasks-D5vOWT5d.js +1 -0
  216. package/dist/client/assets/{projects-B3gCjiBk.js → projects-BbuSRcBC.js} +1 -1
  217. package/dist/client/assets/{projects-empty-state-CTxV56Xs.js → projects-empty-state-D2U4ObkW.js} +1 -1
  218. package/dist/client/assets/{prompts-D5bhWe_R.js → prompts-ev7-vW68.js} +1 -1
  219. package/dist/client/assets/{record-editor-D6SsY0SM.js → record-editor-B82Hi6oO.js} +1 -1
  220. package/dist/client/assets/{redirect-editor-B3698ZCQ.js → redirect-editor-1Kyi1-Qo.js} +1 -1
  221. package/dist/client/assets/reports-D8_7BSxz.js +1 -0
  222. package/dist/client/assets/{reports-DaZdSGhj.js → reports-DaISkEl7.js} +1 -1
  223. package/dist/client/assets/{reports-onboarding-AyYmW8fp.js → reports-onboarding-3NRLE0S7.js} +1 -1
  224. package/dist/client/assets/{reports-tab-CxSjMYsb.js → reports-tab-BTnE3zXc.js} +2 -2
  225. package/dist/client/assets/repositories-Rj9HwEBO.js +1 -0
  226. package/dist/client/assets/{repositories-DQ6Ky9_o.js → repositories-iO0v9MBk.js} +1 -1
  227. package/dist/client/assets/{repository-binding-D4ffxM0-.js → repository-binding-t2SUt_ly.js} +1 -1
  228. package/dist/client/assets/{repository-picker-D3voXCbp.js → repository-picker-lw8HWu2E.js} +1 -1
  229. package/dist/client/assets/{require-capability-D4DqAm-3.js → require-capability-BpHMNsFK.js} +1 -1
  230. package/dist/client/assets/{required-auth-layout-CNDWmtf1.js → required-auth-layout-D0fYWaPn.js} +1 -1
  231. package/dist/client/assets/{reset-password-BiiJ_CmP.js → reset-password-GLJcH65P.js} +1 -1
  232. package/dist/client/assets/{resizable-DsL82mTc.js → resizable-vYXdh-GF.js} +1 -1
  233. package/dist/client/assets/{resolve-tab-icon-BRctEg0A.js → resolve-tab-icon-V8LVv3Xn.js} +1 -1
  234. package/dist/client/assets/{review-settings-BJLhtyo0.js → review-settings-Daf3NI57.js} +1 -1
  235. package/dist/client/assets/{role-color-Lpygw__k.js → role-color-C4jOHzdR.js} +1 -1
  236. package/dist/client/assets/{roles-miGbxbmy.js → roles-CV8Os6WH.js} +1 -1
  237. package/dist/client/assets/{route-Dp0kuMSx.js → route-ChpHpM6U.js} +1 -1
  238. package/dist/client/assets/{route-CHU5WEK3.js → route-D4eWmnLE.js} +1 -1
  239. package/dist/client/assets/route-DpfhbI1P.js +1 -0
  240. package/dist/client/assets/{sandbox-lifecycle-context-WRNVQRt_.js → sandbox-lifecycle-context-wSSR64uz.js} +1 -1
  241. package/dist/client/assets/{schema-DEsOzh4i.js → schema-lfiSlL5j.js} +1 -1
  242. package/dist/client/assets/{schema-wLAfgKNj.js → schema-rAmMhTAU.js} +1 -1
  243. package/dist/client/assets/{scroll-area-DOw7gsKP.js → scroll-area-BdbZ2pRg.js} +1 -1
  244. package/dist/client/assets/{search-input-B3MNzTE0.js → search-input-DvpyQdwd.js} +1 -1
  245. package/dist/client/assets/{search-toggle-DReGYaJo.js → search-toggle-EaKGGn7w.js} +1 -1
  246. package/dist/client/assets/{secret-picker-C20_xwTo.js → secret-picker-ZdBMvgUe.js} +1 -1
  247. package/dist/client/assets/{secrets-BySkDPIF.js → secrets-D35RaSBM.js} +1 -1
  248. package/dist/client/assets/{section-array-field-DTljbrtq.js → section-array-field-C3FXtjzL.js} +1 -1
  249. package/dist/client/assets/{sections-BoRSb0eA.js → sections-BXC8sRej.js} +1 -1
  250. package/dist/client/assets/{sections-editor-CHnIwFIR.js → sections-editor-oQAkX7iV.js} +1 -1
  251. package/dist/client/assets/{select-CF7TydOZ.js → select-DzfQ0lJI.js} +1 -1
  252. package/dist/client/assets/{select-model-B9Bic-T3.js → select-model-Bc-aj0Ca.js} +1 -1
  253. package/dist/client/assets/{seo-editor-DOkOiarr.js → seo-editor-B-SmTz7B.js} +1 -1
  254. package/dist/client/assets/{separator-DhcQY19g.js → separator-CtG551Kh.js} +1 -1
  255. package/dist/client/assets/settings-tab--GGe5YhB.js +1 -0
  256. package/dist/client/assets/{sheet-BdVmV6Pq.js → sheet-ChvL33ih.js} +1 -1
  257. package/dist/client/assets/{shell-layout-MQ4OcCap.js → shell-layout-CUa5MDUh.js} +1 -1
  258. package/dist/client/assets/{site-draft-actions-BaadF58T.js → site-draft-actions-C7WlFKVv.js} +1 -1
  259. package/dist/client/assets/{site-draft-view-Ccdq_-fk.js → site-draft-view-CjzDGxji.js} +1 -1
  260. package/dist/client/assets/site-editor-BgYmGLHo.js +1 -0
  261. package/dist/client/assets/{site-editor-toast-DM5YZS3Y.js → site-editor-toast-CWugfiSd.js} +1 -1
  262. package/dist/client/assets/{skills-DJOLRmph.js → skills-C5QLe26M.js} +1 -1
  263. package/dist/client/assets/{slider-DJcSL4Tw.js → slider-Ecd2IIkn.js} +1 -1
  264. package/dist/client/assets/{sortable.esm-C_BgVL5v.js → sortable.esm-B7uFfy_P.js} +1 -1
  265. package/dist/client/assets/{sso-BZDDOaue.js → sso-0gVFO2bM.js} +1 -1
  266. package/dist/client/assets/{suggestion-B3N1mIWr.js → suggestion-DNThc8_w.js} +1 -1
  267. package/dist/client/assets/{super-agent-icon-g2NhNxGd.js → super-agent-icon-WK3PJICd.js} +1 -1
  268. package/dist/client/assets/{switch-IAv0jmhq.js → switch-rEtvwmeJ.js} +1 -1
  269. package/dist/client/assets/{synced-repos-GfE9kIif.js → synced-repos-CsB9l6Mv.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-CJmmHM_1.js → tab-icon-glyph-DuRegJvy.js} +1 -1
  271. package/dist/client/assets/{table-DO96vrVz.js → table-tgAIcOjU.js} +1 -1
  272. package/dist/client/assets/{tabs-B1aOuHa_.js → tabs-CRh6BkF5.js} +1 -1
  273. package/dist/client/assets/{task-board-Bc-7X8Cr.js → task-board-DVzbOFVa.js} +1 -1
  274. package/dist/client/assets/{task-route-UOwF7ZyB.js → task-route-DJww-aBE.js} +1 -1
  275. package/dist/client/assets/{task-status-BjQzfxdG.js → task-status-CPDhSMht.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-CIxAcfXM.js → taskboard-analytics-Dmg8kQ7N.js} +1 -1
  277. package/dist/client/assets/{tasks-6JgQa8El.js → tasks-BSfgBHRO.js} +1 -1
  278. package/dist/client/assets/tasks-BiPHQc84.js +1 -0
  279. package/dist/client/assets/{textarea-DCa16Aq1.js → textarea-CvTlfpHc.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-10dzcGNV.js → thread-analytics-DD_Y3FQw.js} +1 -1
  281. package/dist/client/assets/{thread-intent-Ddlv1EMC.js → thread-intent-BhJhZ_UP.js} +1 -1
  282. package/dist/client/assets/{thread-route-C_pt-wyk.js → thread-route-DFmD7mlY.js} +1 -1
  283. package/dist/client/assets/{thread-route-AJ1czxsb.js → thread-route-Df1f7USR.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body-BF95jdw2.js → thread-sheet-body-CCNPZBqb.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-BOytGVlx.js → time-range-picker-CNJKAQia.js} +1 -1
  286. package/dist/client/assets/{toggle-group-DTX-YKoE.js → toggle-group-CEtlbqEu.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-BKOiLsuX.js → tool-namespace-xhn6qzed.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-DnHiuvkS.js → tool-set-selector-0qJqj3BN.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-BImRw-Lv.js → toolbar-icon-button-BYM1l_EM.js} +1 -1
  290. package/dist/client/assets/{tooltip-D6hu1dbX.js → tooltip-CPWUruKJ.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-Dofwvvi6.js → tooltipContext-DYzAHA8b.js} +1 -1
  292. package/dist/client/assets/{track-t0ME1Ly8.js → track-As-I-W_o.js} +1 -1
  293. package/dist/client/assets/{types-CM-Rkav0.js → types-BM3wGHXs.js} +1 -1
  294. package/dist/client/assets/{url-slug-jY-crr9m.js → url-slug-C7LbKTWT.js} +1 -1
  295. package/dist/client/assets/{usage-stats-wdmn6GE1.js → usage-stats-BITMwpzs.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-CRYxK9KK.js → use-ai-providers-pPbmGXbG.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-DvjmPUTS.js → use-apply-named-rule-Bv0WgvtT.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-COLxNYu8.js +1 -0
  299. package/dist/client/assets/{use-automations-BpFoHkvb.js → use-automations-BEx9jN5g.js} +1 -1
  300. package/dist/client/assets/{use-autosave-DGu11Mbg.js → use-autosave-BxToYayg.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-BKzS5s7M.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-SqWJFsf3.js → use-chat-layout-state-YDnStvp0.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-XDOPUQHc.js → use-cms-publish-actions-BJxFUgnP.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-B3czJAuB.js → use-connect-companion-CMi6qABv.js} +1 -1
  305. package/dist/client/assets/{use-connection-BQ2tY3eA.js → use-connection-BeyjX32e.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-fcT1LgMa.js → use-content-sync-D9WlRyAv.js} +1 -1
  307. package/dist/client/assets/{use-copy-8YzW6-lz.js → use-copy-Yov8ynUc.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-PI2Bl-dF.js → use-date-fns-locale-CqG8akF0.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-BcrhTA1Q.js → use-debounced-autosave-BwG78Eft.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-BTFyu_fg.js → use-debounced-value-CjUdoTQj.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-DT_w_P1F.js → use-deco-credits-CHVv60jE.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-Cgg-kjzY.js → use-decopilot-events-Dxkyyj-f.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-B-NX9bKA.js → use-delete-connection-DcDccx5j.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-59-ElZAe.js → use-deployment-admin-BP73XI6k.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-DLe5ef_A.js → use-entitlements-B6JBu_O9.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-D1k789oB.js → use-fast-preview-draft-url-Be4qQSKF.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-BpNaWDSz.js → use-file-configs-4JpNA1Tb.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-ouzPuXIU.js → use-id-selection-CdOmebQh.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-ClYflJTd.js → use-inbox-feed-vv9gd7Sc.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-BgEfhgKU.js → use-infinite-scroll-DuiGO_jY.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-BUkPdRUf.js → use-join-requests-aN5r5Pxn.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-DvzXIGUh.js → use-main-panel-tabs-LFa8N1wr.js} +1 -1
  323. package/dist/client/assets/{use-mcp-auth-status-D-uKGgD8.js → use-mcp-auth-status-D1KHm_6z.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-DwDMU7Zt.js → use-mcp-client-Dwx3joSc.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-C6NWo9MQ.js → use-mcp-prompts-CgaLso39.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-DZaATGrv.js → use-mcp-tools-KrWmb9CR.js} +1 -1
  327. package/dist/client/assets/{use-mobile-BGUAkmF8.js → use-mobile-BL_lLwbJ.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-CC7bxDZW.js → use-move-blocks-DLKMXFIt.js} +1 -1
  329. package/dist/client/assets/{use-navigate-to-agent-DgVOA-5d.js → use-navigate-to-agent-DquGUsnU.js} +1 -1
  330. package/dist/client/assets/{use-org-fs-DunUzjbR.js → use-org-fs-DDN_Ivwy.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-DrOMrEnQ.js → use-org-repo-syncs-VLN8P34E.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-bHD0WS2b.js → use-org-sso-DCyl-5Yq.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-CPT_AQxx.js → use-organization-settings-ezDxn50S.js} +1 -1
  334. package/dist/client/assets/{use-project-native-view-presence-1t6Rz_Yq.js → use-project-native-view-presence-Dmz_uZfw.js} +1 -1
  335. package/dist/client/assets/{use-project-scope-DZ381aQg.js → use-project-scope-Bv0XQrp-.js} +1 -1
  336. package/dist/client/assets/{use-recent-apps-CMUESJxc.js → use-recent-apps-C1nVs7iP.js} +1 -1
  337. package/dist/client/assets/{use-reports-diagnostic-Rl_4afQa.js → use-reports-diagnostic-CG1-7P8p.js} +1 -1
  338. package/dist/client/assets/{use-sandbox-events-C4Btxk0W.js → use-sandbox-events-DGTvdxAG.js} +1 -1
  339. package/dist/client/assets/{use-secrets-DWea_YYg.js → use-secrets-BDKLIqQa.js} +1 -1
  340. package/dist/client/assets/{use-section-preview-base-C5OIxUQk.js → use-section-preview-base-RsRAdpLG.js} +1 -1
  341. package/dist/client/assets/{use-sidebar-collapsed-DwaUZcOQ.js → use-sidebar-collapsed-pjufulEj.js} +1 -1
  342. package/dist/client/assets/{use-tags-CnnPBapF.js → use-tags-DRgt7SdO.js} +1 -1
  343. package/dist/client/assets/{use-task-board-analytics-BCEU5OIE.js → use-task-board-analytics-BBqVIyLD.js} +1 -1
  344. package/dist/client/assets/{use-task-board-events-C0YoK98Y.js → use-task-board-events-C076JDrW.js} +1 -1
  345. package/dist/client/assets/{use-task-board-item-prs-DHx4WnJL.js → use-task-board-item-prs-CMWcegEQ.js} +1 -1
  346. package/dist/client/assets/{use-task-board-items-Gk66Irve.js → use-task-board-items-C3wN6VZ7.js} +1 -1
  347. package/dist/client/assets/{use-task-board-prompts-_ANJzZ4J.js → use-task-board-prompts-BljQAl60.js} +1 -1
  348. package/dist/client/assets/{use-task-metadata-DJcBNC2v.js → use-task-metadata-IKal_B89.js} +1 -1
  349. package/dist/client/assets/{use-thread-outputs-sLAJub_R.js → use-thread-outputs-DW15e6qt.js} +1 -1
  350. package/dist/client/assets/{use-voice-input-CxbYDlyj.js → use-voice-input-Bhc30U5o.js} +1 -1
  351. package/dist/client/assets/useInfiniteQuery-DIP1SnGb.js +1 -0
  352. package/dist/client/assets/{useQueries-mzrH2emD.js → useQueries-BWsosSvF.js} +1 -1
  353. package/dist/client/assets/useSuspenseInfiniteQuery-DrHv36Dy.js +1 -0
  354. package/dist/client/assets/{users-Bu6Qt6s2.js → users-BL-cP3wa.js} +1 -1
  355. package/dist/client/assets/{utils-DM_dS343.js → utils-DgoaBGZ5.js} +1 -1
  356. package/dist/client/assets/{variant-calendar-CTxdQFVd.js → variant-calendar-D9HBG0p_.js} +1 -1
  357. package/dist/client/assets/{variant-matcher-override-BVs7zu47.js → variant-matcher-override-DoXeO1c0.js} +1 -1
  358. package/dist/client/assets/{view-header-p1uaKDV9.js → view-header-j_OBPXJD.js} +1 -1
  359. package/dist/client/assets/{virtual-mcp-C1hB0s55.js → virtual-mcp-DUuDRM1F.js} +1 -1
  360. package/dist/client/assets/{watch-sse-pool-xnhJvZvd.js → watch-sse-pool-Bno2kqCn.js} +1 -1
  361. package/dist/client/index.html +1 -1
  362. package/dist/server/server.js +412 -412
  363. package/package.json +1 -1
  364. package/dist/client/assets/agent-app-DXwdoAjf.js +0 -1
  365. package/dist/client/assets/agent-deck-Dd-94Ll1.js +0 -1
  366. package/dist/client/assets/agent-experiments-ScITEgVg.js +0 -1
  367. package/dist/client/assets/agent-library-BeNJQBOC.js +0 -1
  368. package/dist/client/assets/agent-library-file-B2Ucnk93.js +0 -1
  369. package/dist/client/assets/agent-overview-CmWFjWhR.js +0 -1
  370. package/dist/client/assets/agent-settings-ClO775W2.js +0 -1
  371. package/dist/client/assets/agent-site-editor-code-CbYxsWDQ.js +0 -2
  372. package/dist/client/assets/agent-site-editor-content-DiQWw-fO.js +0 -1
  373. package/dist/client/assets/agent-site-editor-preview-lCIgS5W9.js +0 -1
  374. package/dist/client/assets/agent-view-BNMlU9Xn.js +0 -1
  375. package/dist/client/assets/api-keys-VCcvSSAk.js +0 -1
  376. package/dist/client/assets/library-DKGbQOFX.js +0 -1
  377. package/dist/client/assets/project-reports-Fc7-jScE.js +0 -1
  378. package/dist/client/assets/project-tasks-Bhf7Ee7Q.js +0 -1
  379. package/dist/client/assets/reports-CANELH-J.js +0 -1
  380. package/dist/client/assets/repositories-BSWAcVK8.js +0 -1
  381. package/dist/client/assets/route-wjqv8tCV.js +0 -1
  382. package/dist/client/assets/settings-tab-D25mtqBG.js +0 -1
  383. package/dist/client/assets/site-editor-4daajG8m.js +0 -1
  384. package/dist/client/assets/tasks-Cbn3588T.js +0 -1
  385. package/dist/client/assets/use-ask-in-chat-CTdK-Xy9.js +0 -1
  386. package/dist/client/assets/use-blocks-v8-project-BY-tUedz.js +0 -1
  387. package/dist/client/assets/useInfiniteQuery-B3K8Xwsj.js +0 -1
  388. package/dist/client/assets/useSuspenseInfiniteQuery-DMjSwk6C.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BJ2i0F0x.js","assets/auth-entry-D9eSm7L9.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-QrGrLjO_.js","assets/legacy-admin-welcome-dialog-DGD5VDL8.js","assets/drawer-BbDXg4uh.js","assets/use-mobile-BGUAkmF8.js","assets/cli-auth-success-BkkXQ3np.js","assets/oauth-callback-CUBLm5wr.js","assets/mcp-oauth-BdTbmZs-.js","assets/auth-Cy8U0vN0.js","assets/oauth-consent-bt38CVDY.js","assets/layout-BfONeqKu.js","assets/required-auth-layout-CNDWmtf1.js","assets/use-deployment-admin-59-ElZAe.js","assets/users-Bu6Qt6s2.js","assets/collection-table-wrapper-4Lsn1giX.js","assets/table-DO96vrVz.js","assets/ArrowUp-Oow5hGQz.js","assets/empty-state-Dx0vUNGR.js","assets/search-input-B3MNzTE0.js","assets/SearchMd-DjJWIBOz.js","assets/badge-DkIOux3v.js","assets/use-debounced-value-BTFyu_fg.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-CEDevUSC.js","assets/label-DollvLW8.js","assets/select-CF7TydOZ.js","assets/index-BdQq_4o_.js","assets/index-CH52vsqw.js","assets/ChevronUp-h3R0LiST.js","assets/switch-IAv0jmhq.js","assets/textarea-DCa16Aq1.js","assets/roles-DW32thi2.js","assets/schema-wLAfgKNj.js","assets/prompts-D5bhWe_R.js","assets/shell-layout-MQ4OcCap.js","assets/Globe04-B7My-KRc.js","assets/UserSquare-aPvg2Nw7.js","assets/agent-icon-Cq6bkxhD.js","assets/AlertCircle-BAmHKKsU.js","assets/Tool01-BpRZdana.js","assets/ArrowLeft-gk0ZCHpe.js","assets/LinkBroken01-DbqgHdC0.js","assets/ShoppingBag01-DqYzokeC.js","assets/CheckCircle-DmfFwydo.js","assets/ChevronSelectorVertical-DhmNgA1s.js","assets/CreditCard01-opvzFjuh.js","assets/SwitchHorizontal01-BUmyYri2.js","assets/Key01-DtUFXCmn.js","assets/Minus-BrKkP3oW.js","assets/Monitor01-ZcR52K7T.js","assets/Sun-DRGxYgs4.js","assets/Play-CmLZLyOc.js","assets/Plus-Ci-A-fWx.js","assets/Trash01-b7MmLF07.js","assets/Upload01-DGExuych.js","assets/Users01-BKOqY1GP.js","assets/XClose-w7hRM8A3.js","assets/Zap-z5XiOqRJ.js","assets/use-project-scope-DZ381aQg.js","assets/repository-binding-D4ffxM0-.js","assets/use-mcp-client-DwDMU7Zt.js","assets/autosend-BneXym43.js","assets/thread-route-C_pt-wyk.js","assets/command-CnVdPyj_.js","assets/index-BSoGrbzN.js","assets/integration-icon-C9enxTmo.js","assets/project-icon-BM-iwutu.js","assets/use-navigate-to-agent-DgVOA-5d.js","assets/thread-intent-Ddlv1EMC.js","assets/watch-sse-pool-xnhJvZvd.js","assets/task-board-Bc-7X8Cr.js","assets/new-project-dialog-COHpjNot.js","assets/repository-picker-D3voXCbp.js","assets/tooltip-D6hu1dbX.js","assets/github-icon-ddw588tY.js","assets/useInfiniteQuery-B3K8Xwsj.js","assets/infiniteQueryObserver-C6Hka48g.js","assets/collection-search-Bg84Y9_0.js","assets/use-organization-settings-CPT_AQxx.js","assets/use-org-sso-bHD0WS2b.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-Bx5RinvH.js","assets/organization-choice-BLQB1MdJ.js","assets/reports-onboarding-AyYmW8fp.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-c0RCVWjZ.js","assets/form-BZxHXIID.js","assets/companion-mcps-section-Bmqe6SeC.js","assets/use-connect-companion-B3czJAuB.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-D5w08aAD.js","assets/useQueries-mzrH2emD.js","assets/authenticate-and-persist-oauth-qsvUUvW_.js","assets/mcp-oauth-DMVjZNG4.js","assets/track-t0ME1Ly8.js","assets/extract-connection-data-5aIWs5nm.js","assets/connection-Ds0NPGRv.js","assets/url-slug-jY-crr9m.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-mfO2CtNV.js","assets/site-editor-4daajG8m.js","assets/chat-context-B1Dc5lsu.js","assets/use-entitlements-DLe5ef_A.js","assets/use-ai-providers-CRYxK9KK.js","assets/use-decopilot-events-Cgg-kjzY.js","assets/index-CuNO2v8I.js","assets/use-sidebar-collapsed-DwaUZcOQ.js","assets/use-chat-layout-state-SqWJFsf3.js","assets/toolbar-icon-button-BImRw-Lv.js","assets/sheet-BdVmV6Pq.js","assets/resizable-DsL82mTc.js","assets/index-D4OC_zRz.js","assets/core.esm-PCFOeq2F.js","assets/sortable.esm-C_BgVL5v.js","assets/context-menu-DmK-hmJb.js","assets/project-apps-DrYTNZ5G.js","assets/use-recent-apps-CMUESJxc.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-CfDmwLLA.js","assets/site-editor-toast-DM5YZS3Y.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-C4Btxk0W.js","assets/use-blocks-v8-project-BY-tUedz.js","assets/use-voice-input-CxbYDlyj.js","assets/popover-D24o9prf.js","assets/index-B5NK1-t4.js","assets/checkbox-BADwu2Rj.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-DM_dS343.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-BwdMydLW.js","assets/parse-sections-CLMVUWEK.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BjJ0vlX3.js","assets/collapsible-BFh_qMlo.js","assets/use-copy-8YzW6-lz.js","assets/usage-stats-wdmn6GE1.js","assets/tool-namespace-BKOiLsuX.js","assets/utils-CVEq3hMx.js","assets/markdown-BAasaHPS.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BZ0wqpxq.js","assets/types-CM-Rkav0.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-BQ2tY3eA.js","assets/use-mcp-prompts-C6NWo9MQ.js","assets/use-thread-outputs-sLAJub_R.js","assets/file-type-icon-Bp2pbI2H.js","assets/section-array-field-DTljbrtq.js","assets/blocks-tab-states-BfcuzOZT.js","assets/hosted-reconcile-DB9dOS9F.js","assets/slider-DJcSL4Tw.js","assets/index-CTsVtX6Z.js","assets/tooltipContext-Dofwvvi6.js","assets/CategoricalChart-BQlyLGsu.js","assets/index-Bs6auyxm.js","assets/scroll-area-DOw7gsKP.js","assets/monaco-editor-D3FwWS6z.js","assets/editor-SbnY9UBB.js","assets/calendar-DoivltYN.js","assets/editor-classes-DIUoFA4r.js","assets/toggle-group-DTX-YKoE.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-iSV-CQzM.js","assets/tabs-B1aOuHa_.js","assets/use-file-configs-BpNaWDSz.js","assets/asset-utils-D7YjAVSU.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-WRNVQRt_.js","assets/variant-matcher-override-BVs7zu47.js","assets/use-fast-preview-draft-url-D1k789oB.js","assets/device-hint-Cb5Yk9vR.js","assets/alert-UQKKr_Kk.js","assets/virtual-mcp-C1hB0s55.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-CVf7Tm9q.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-DJcBNC2v.js","assets/content-tab-Frzx5T6f.js","assets/view-header-p1uaKDV9.js","assets/use-cms-publish-actions-XDOPUQHc.js","assets/use-content-sync-fcT1LgMa.js","assets/mustache-BE51OfHp.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-CC7bxDZW.js","assets/empty-state-DUtU0We7.js","assets/tab-icon-glyph-CJmmHM_1.js","assets/resolve-tab-icon-BRctEg0A.js","assets/agent-site-editor-CN1s3wDa.js","assets/site-draft-actions-BaadF58T.js","assets/separator-DhcQY19g.js","assets/cms-store-drafts-BuRwcXPq.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-CllkIJqm.js","assets/input-C0CJR9vr.js","assets/chat-draft-zRebzdTN.js","assets/use-deco-credits-DT_w_P1F.js","assets/input-DGGlfIK5.js","assets/suggestion-B3N1mIWr.js","assets/use-org-fs-DunUzjbR.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-Ci_hk3eZ.js","assets/plan-ladder-NH52TbUB.js","assets/add-connection-dialog-KFg0vdbz.js","assets/connection-card-Cnzr9qgv.js","assets/connection-slug-JtkQvH-U.js","assets/schema-DEsOzh4i.js","assets/connection-form-helpers-DLZm80Vh.js","assets/collection-tabs-D57aIX5v.js","assets/use-infinite-scroll-BgEfhgKU.js","assets/useSuspenseInfiniteQuery-DMjSwk6C.js","assets/use-task-board-events-C0YoK98Y.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-Ccdq_-fk.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-DaZdSGhj.js","assets/reports-Dl0n8WK0.css","assets/route-Dp0kuMSx.js","assets/use-inbox-feed-ClYflJTd.js","assets/task-key-BCHdFiOO.js","assets/super-agent-icon-g2NhNxGd.js","assets/optimistic-project-sidebar-views-BFYfi1F9.js","assets/use-project-native-view-presence-1t6Rz_Yq.js","assets/own-accounts-section-BvxGuDLU.js","assets/use-date-fns-locale-PI2Bl-dF.js","assets/use-task-board-items-Gk66Irve.js","assets/config-DUlh6l4D.js","assets/project-index-BUVdFrBG.js","assets/use-join-requests-BUkPdRUf.js","assets/thread-route-AJ1czxsb.js","assets/use-reports-diagnostic-Rl_4afQa.js","assets/connect-layout-CwJayWyX.js","assets/route-CHU5WEK3.js","assets/task-status-BjQzfxdG.js","assets/use-main-panel-tabs-DvzXIGUh.js","assets/use-mcp-tools-DZaATGrv.js","assets/legacy-main-redirect-Ceue37fQ.js","assets/preview-dialog-oxja9bAU.js","assets/preview-content-BA-6vON6.js","assets/file-share-button-CA034yeE.js","assets/file-preview-3QxlKUQz.js","assets/home-8Ff5iue5.js","assets/home-overview-DGDE6TGI.js","assets/client-icons-CHsHOEe7.js","assets/chart-BpO8BFbN.js","assets/CartesianChart-GB7-WfQw.js","assets/task-route-UOwF7ZyB.js","assets/ReferenceLine-k6lFOpoF.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-CTxV56Xs.js","assets/agent-overview-CmWFjWhR.js","assets/project-tasks-Bhf7Ee7Q.js","assets/mock-board-B5ve8ttC.js","assets/use-task-board-analytics-BCEU5OIE.js","assets/use-task-board-prompts-_ANJzZ4J.js","assets/use-automations-BpFoHkvb.js","assets/search-toggle-DReGYaJo.js","assets/use-tags-CnnPBapF.js","assets/index-Bew7RNKQ.js","assets/index-DZucODSP.js","assets/use-task-board-item-prs-DHx4WnJL.js","assets/thread-sheet-body-BF95jdw2.js","assets/feature-gate-B4_WUn2S.js","assets/project-reports-Fc7-jScE.js","assets/reports-tab-CxSjMYsb.js","assets/project-profile-dMAv1_XF.js","assets/agent-site-editor-preview-lCIgS5W9.js","assets/agent-view-guard-D_qa8QG0.js","assets/agent-site-editor-content-DiQWw-fO.js","assets/agent-site-editor-code-CbYxsWDQ.js","assets/agent-automations-4REoeTdH.js","assets/automation-list-row-CirPKB_R.js","assets/agent-automation-mqokXjnT.js","assets/select-model-B9Bic-T3.js","assets/build-improve-prompt-doc-UX5YM4et.js","assets/use-debounced-autosave-BcrhTA1Q.js","assets/jira-icon-BrLIhIWw.js","assets/multi-select-C9p48rxb.js","assets/automation-runs-DkcFNSpy.js","assets/use-id-selection-ouzPuXIU.js","assets/agent-settings-ClO775W2.js","assets/context-shell-M8Z1NRsU.js","assets/require-capability-D4DqAm-3.js","assets/access-gate-DVYwMQ0P.js","assets/capability-load-error-Dk8QULrM.js","assets/sections-BoRSb0eA.js","assets/use-ask-in-chat-CTdK-Xy9.js","assets/index-DXV9Rrgh.js","assets/use-mcp-auth-status-D-uKGgD8.js","assets/secret-picker-C20_xwTo.js","assets/use-secrets-DWea_YYg.js","assets/agent-library-BeNJQBOC.js","assets/library-tab-C4UPTrtu.js","assets/use-org-repo-syncs-DrOMrEnQ.js","assets/folder-icon-BkUUZm4G.js","assets/agent-assets-DBXXdN-F.js","assets/agent-releases-V69FFrsa.js","assets/agent-hosting-Q-HUFuhy.js","assets/settings-tab-D25mtqBG.js","assets/agent-e2e-B_HILHfY.js","assets/taskboard-analytics-CIxAcfXM.js","assets/time-range-picker-BOytGVlx.js","assets/analytics-sections-CplA1JwF.js","assets/AreaChart-Dzi9L-5c.js","assets/agent-experiments-ScITEgVg.js","assets/experiments-tab-choice-8BUY4PRB.js","assets/named-rule-view-Dr1gx6K_.js","assets/use-apply-named-rule-DvjmPUTS.js","assets/agent-calendar-D3Ep29wr.js","assets/agent-app-DXwdoAjf.js","assets/project-app-view-E76q47JL.js","assets/connect-source-dialog-B1fyzn4u.js","assets/agent-view-BNMlU9Xn.js","assets/agent-file-ChXQ_dxN.js","assets/agent-deck-Dd-94Ll1.js","assets/agent-library-file-B2Ucnk93.js","assets/preview-panel-D9I-ugJU.js","assets/agent-connect-sources-5aNARyd1.js","assets/legacy-agents-deep-gnvJlDT7.js","assets/tasks-Cbn3588T.js","assets/thread-analytics-10dzcGNV.js","assets/reports-CANELH-J.js","assets/library-DKGbQOFX.js","assets/plan-KNHptWXW.js","assets/monitoring-NCSiQ2Pk.js","assets/order-monitor-day-CKVt2dpk.js","assets/Tooltip-CiaiPRI1.js","assets/monitoring-D_tSeZWt.css","assets/discover-1n4s1YWq.js","assets/index-DY7W6fVv.js","assets/route-wjqv8tCV.js","assets/plan-usage-card-CicIxe-V.js","assets/index-redirect-D5oUlGVq.js","assets/connection-detail-C94Si9oS.js","assets/index-Dz6SE42K.js","assets/index-CMIbJ8MG.js","assets/use-delete-connection-B-NX9bKA.js","assets/monitoring-stats-row-us5YxB_s.js","assets/collection-detail-Cq-xHp6m.js","assets/index--SSY-JG1.js","assets/general-j2gaIDEz.js","assets/review-settings-BJLhtyo0.js","assets/domain-settings-BWnBbfZl.js","assets/connect-Bw0GJuTn.js","assets/api-keys-C2CtORaM.js","assets/tool-set-selector-DnHiuvkS.js","assets/ai-providers-Dpuo8FL0.js","assets/infra-billing-cI61pY-d.js","assets/secrets-BySkDPIF.js","assets/api-keys-VCcvSSAk.js","assets/buckets-CzLaj5xW.js","assets/repositories-BSWAcVK8.js","assets/repositories-DQ6Ky9_o.js","assets/synced-repos-GfE9kIif.js","assets/tasks-6JgQa8El.js","assets/projects-B3gCjiBk.js","assets/members-B5rwN-xs.js","assets/collection-display-button-BYbMEj23.js","assets/role-color-Lpygw__k.js","assets/roles-miGbxbmy.js","assets/sso-BZDDOaue.js","assets/profile-My2od47M.js","assets/automations-DQrJLYNP.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-CmHRnJOc.js","assets/auth-entry-7YktIufn.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BIjGKhmF.js","assets/legacy-admin-welcome-dialog-xczBeRkI.js","assets/drawer-CwBC6h27.js","assets/use-mobile-BL_lLwbJ.js","assets/cli-auth-success-7WGG5Ny7.js","assets/oauth-callback-DisZamoA.js","assets/mcp-oauth-DLp_LyKE.js","assets/auth-DZBq7iRr.js","assets/oauth-consent-BLSOh8Vc.js","assets/layout-mU_v4Bh-.js","assets/required-auth-layout-D0fYWaPn.js","assets/use-deployment-admin-BP73XI6k.js","assets/users-BL-cP3wa.js","assets/collection-table-wrapper-BC08hxFi.js","assets/table-tgAIcOjU.js","assets/ArrowUp-Bq_XWrMf.js","assets/empty-state-B9QiU_VY.js","assets/search-input-DvpyQdwd.js","assets/SearchMd-DDYfB5ME.js","assets/badge-DaX-o_aM.js","assets/use-debounced-value-CjUdoTQj.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-05_Ljhax.js","assets/label-CZVy73g_.js","assets/select-DzfQ0lJI.js","assets/index-BdQq_4o_.js","assets/index-DLzGeaMa.js","assets/ChevronUp-CxdkHAYX.js","assets/switch-rEtvwmeJ.js","assets/textarea-CvTlfpHc.js","assets/roles-DW32thi2.js","assets/schema-rAmMhTAU.js","assets/prompts-ev7-vW68.js","assets/shell-layout-CUa5MDUh.js","assets/Globe04-Qb5La101.js","assets/UserSquare-D6mrj9zR.js","assets/agent-icon-C4zAUQeZ.js","assets/AlertCircle-BrBujzmj.js","assets/Tool01-D4V2T_mI.js","assets/ArrowLeft-B2qsUhAF.js","assets/LinkBroken01-BNA4t2nT.js","assets/ShoppingBag01-B4Qpz0kc.js","assets/CheckCircle-BrU3KNn_.js","assets/ChevronSelectorVertical-C15U3mNk.js","assets/CreditCard01-gy5ViYmH.js","assets/SwitchHorizontal01-B1owjF7D.js","assets/Key01-XBNKfFAD.js","assets/Minus-BQ1U44OY.js","assets/Monitor01-CTMwaVR_.js","assets/Sun-SepDLWMM.js","assets/Play-oyq9OzZ5.js","assets/Plus-B14W9n_P.js","assets/Trash01-CTl0J4n_.js","assets/Upload01-CE3wDuuV.js","assets/Users01-vnVJQGsa.js","assets/XClose-DWFAtfm6.js","assets/Zap-4X8Ik5ls.js","assets/use-project-scope-Bv0XQrp-.js","assets/repository-binding-t2SUt_ly.js","assets/use-mcp-client-Dwx3joSc.js","assets/autosend-VANv9yLj.js","assets/thread-route-DFmD7mlY.js","assets/command-DZp1V8X-.js","assets/index-KVVHw2gU.js","assets/integration-icon-C5Anrc8v.js","assets/project-icon-BMNmURUS.js","assets/use-navigate-to-agent-DquGUsnU.js","assets/thread-intent-BhJhZ_UP.js","assets/watch-sse-pool-Bno2kqCn.js","assets/task-board-DVzbOFVa.js","assets/new-project-dialog-Bq2ZRt1E.js","assets/repository-picker-lw8HWu2E.js","assets/tooltip-CPWUruKJ.js","assets/github-icon-q1xudgoP.js","assets/useInfiniteQuery-DIP1SnGb.js","assets/infiniteQueryObserver-CFbscoFz.js","assets/collection-search-OjmLQPGA.js","assets/use-organization-settings-ezDxn50S.js","assets/use-org-sso-DCyl-5Yq.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-knc2o8kj.js","assets/organization-choice-DihqTAxR.js","assets/reports-onboarding-3NRLE0S7.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-C-eZv_C7.js","assets/form-BbCRE2mk.js","assets/companion-mcps-section-1gPvogQd.js","assets/use-connect-companion-CMi6qABv.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-Bq3ZJEeE.js","assets/useQueries-BWsosSvF.js","assets/authenticate-and-persist-oauth-DArrCFGG.js","assets/mcp-oauth-nWMLUxbw.js","assets/track-As-I-W_o.js","assets/extract-connection-data-CkWpG9Fj.js","assets/connection-B5iqnjJS.js","assets/url-slug-C7LbKTWT.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-K8PxtGC5.js","assets/site-editor-BgYmGLHo.js","assets/chat-context-BFrEkp-x.js","assets/use-entitlements-B6JBu_O9.js","assets/use-ai-providers-pPbmGXbG.js","assets/use-decopilot-events-Dxkyyj-f.js","assets/index-BW39Ccy3.js","assets/use-sidebar-collapsed-pjufulEj.js","assets/use-chat-layout-state-YDnStvp0.js","assets/toolbar-icon-button-BYM1l_EM.js","assets/sheet-ChvL33ih.js","assets/resizable-vYXdh-GF.js","assets/index-CGTT47Gs.js","assets/core.esm-CEehG5ej.js","assets/sortable.esm-B7uFfy_P.js","assets/context-menu-DqHkPsZX.js","assets/project-apps-DsmVr6MW.js","assets/use-recent-apps-C1nVs7iP.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-DgF7HYHj.js","assets/site-editor-toast-CWugfiSd.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-DGTvdxAG.js","assets/use-blocks-v8-project-BKzS5s7M.js","assets/use-voice-input-Bhc30U5o.js","assets/popover-BX49i_9-.js","assets/index-CH4-90Yv.js","assets/checkbox-C9g8LYdj.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-DgoaBGZ5.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-DEjq4YQm.js","assets/parse-sections-DH_6p8mX.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-B-D0jk5j.js","assets/collapsible-CouDnhO6.js","assets/use-copy-Yov8ynUc.js","assets/usage-stats-BITMwpzs.js","assets/tool-namespace-xhn6qzed.js","assets/utils-CVEq3hMx.js","assets/markdown-Bn6_U_KJ.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-CLwGZiBS.js","assets/types-BM3wGHXs.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-BeyjX32e.js","assets/use-mcp-prompts-CgaLso39.js","assets/use-thread-outputs-DW15e6qt.js","assets/file-type-icon-BRiZbFJM.js","assets/section-array-field-C3FXtjzL.js","assets/blocks-tab-states-C8jjKnoC.js","assets/hosted-reconcile-rqZnV2Vw.js","assets/slider-Ecd2IIkn.js","assets/index-BD6O45bL.js","assets/tooltipContext-DYzAHA8b.js","assets/CategoricalChart-B34tgPab.js","assets/index-D8kKxC0w.js","assets/scroll-area-BdbZ2pRg.js","assets/monaco-editor-Cwn1FokD.js","assets/editor-YZleAELh.js","assets/calendar-CI3L7G9u.js","assets/editor-classes-CK9ai0gl.js","assets/toggle-group-CEtlbqEu.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-Fnhph1yB.js","assets/tabs-CRh6BkF5.js","assets/use-file-configs-4JpNA1Tb.js","assets/asset-utils-BemSLLjv.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-wSSR64uz.js","assets/variant-matcher-override-DoXeO1c0.js","assets/use-fast-preview-draft-url-Be4qQSKF.js","assets/device-hint-juJpe-S9.js","assets/alert-ChcrHQqB.js","assets/virtual-mcp-DUuDRM1F.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-CANCMZIX.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-IKal_B89.js","assets/content-tab-BjndC62X.js","assets/view-header-j_OBPXJD.js","assets/use-cms-publish-actions-BJxFUgnP.js","assets/use-content-sync-D9WlRyAv.js","assets/mustache-DsmTghzT.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-DLKMXFIt.js","assets/empty-state-CwTtE-MO.js","assets/tab-icon-glyph-DuRegJvy.js","assets/resolve-tab-icon-V8LVv3Xn.js","assets/agent-site-editor--0x03xZz.js","assets/site-draft-actions-C7WlFKVv.js","assets/separator-CtG551Kh.js","assets/cms-store-drafts-B7OZSklj.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-DcLP2Uex.js","assets/input-vtcNycLk.js","assets/chat-draft-WVue6bVm.js","assets/use-deco-credits-CHVv60jE.js","assets/input-mbVW2uET.js","assets/suggestion-DNThc8_w.js","assets/use-org-fs-DDN_Ivwy.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-UROHXvVY.js","assets/plan-ladder-ia9SV_u2.js","assets/add-connection-dialog-C7VuLdpX.js","assets/connection-card-dWBeLnkC.js","assets/connection-slug-BPPZqv13.js","assets/schema-lfiSlL5j.js","assets/connection-form-helpers-C-PfuEYz.js","assets/collection-tabs-CwlrIKLz.js","assets/use-infinite-scroll-DuiGO_jY.js","assets/useSuspenseInfiniteQuery-DrHv36Dy.js","assets/use-task-board-events-C076JDrW.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-CjzDGxji.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-DaISkEl7.js","assets/reports-Dl0n8WK0.css","assets/route-ChpHpM6U.js","assets/use-inbox-feed-vv9gd7Sc.js","assets/task-key-BCHdFiOO.js","assets/super-agent-icon-WK3PJICd.js","assets/optimistic-project-sidebar-views-CkyuDF51.js","assets/use-project-native-view-presence-Dmz_uZfw.js","assets/own-accounts-section-Vq-dKaIp.js","assets/use-date-fns-locale-CqG8akF0.js","assets/use-task-board-items-C3wN6VZ7.js","assets/config-C4Gsnqii.js","assets/project-index-Cf8pv3Xb.js","assets/use-join-requests-aN5r5Pxn.js","assets/thread-route-Df1f7USR.js","assets/use-reports-diagnostic-CG1-7P8p.js","assets/connect-layout-DQX9wvNz.js","assets/route-D4eWmnLE.js","assets/task-status-CPDhSMht.js","assets/use-main-panel-tabs-LFa8N1wr.js","assets/use-mcp-tools-KrWmb9CR.js","assets/legacy-main-redirect-frLtUhr7.js","assets/preview-dialog-CsbNSWkE.js","assets/preview-content-ByMvryRR.js","assets/file-share-button-Br7H7qe9.js","assets/file-preview-xiRlJpsu.js","assets/home-CVchwepi.js","assets/home-overview-BGSikjDJ.js","assets/client-icons-Dg3AySOi.js","assets/chart-DFYkssKS.js","assets/CartesianChart-BzQXSn72.js","assets/task-route-DJww-aBE.js","assets/ReferenceLine-CBcoZK_U.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-D2U4ObkW.js","assets/agent-overview-BT1unfrS.js","assets/project-tasks-D5vOWT5d.js","assets/mock-board-vq_twtUH.js","assets/use-task-board-analytics-BBqVIyLD.js","assets/use-task-board-prompts-BljQAl60.js","assets/use-automations-BEx9jN5g.js","assets/search-toggle-EaKGGn7w.js","assets/use-tags-DRgt7SdO.js","assets/index-BEFauG6g.js","assets/index-ULZrkDIx.js","assets/use-task-board-item-prs-CMWcegEQ.js","assets/thread-sheet-body-CCNPZBqb.js","assets/feature-gate-CEDC08jo.js","assets/project-reports-DmwAf8Qf.js","assets/reports-tab-BTnE3zXc.js","assets/project-profile-dMAv1_XF.js","assets/agent-site-editor-preview-CLHaZdDj.js","assets/agent-view-guard-DRTikUW7.js","assets/agent-site-editor-content-T7SQ0eTX.js","assets/agent-site-editor-code-B-MqMBV6.js","assets/agent-automations-C9pDoA5t.js","assets/automation-list-row-DjfCNmU2.js","assets/agent-automation-CBfmQGxD.js","assets/select-model-Bc-aj0Ca.js","assets/build-improve-prompt-doc-BQ6BtFA5.js","assets/use-debounced-autosave-BwG78Eft.js","assets/jira-icon-Bmi1xI6r.js","assets/multi-select-VgSnOaCE.js","assets/automation-runs-HL4m0VQL.js","assets/use-id-selection-CdOmebQh.js","assets/agent-settings-CjJHki-K.js","assets/context-shell-DkPH0WI3.js","assets/require-capability-BpHMNsFK.js","assets/access-gate-CmrYCcY4.js","assets/capability-load-error-De4jloBS.js","assets/sections-BXC8sRej.js","assets/use-ask-in-chat-COLxNYu8.js","assets/index-DRQaomOR.js","assets/use-mcp-auth-status-D1KHm_6z.js","assets/secret-picker-ZdBMvgUe.js","assets/use-secrets-BDKLIqQa.js","assets/agent-library-D7XfbskT.js","assets/library-tab-DB25yn1i.js","assets/use-org-repo-syncs-VLN8P34E.js","assets/folder-icon-CHiicbmI.js","assets/agent-assets-CtfeFO-q.js","assets/agent-releases-dth3gbg2.js","assets/agent-hosting-BcEptfro.js","assets/settings-tab--GGe5YhB.js","assets/agent-e2e-Do0w1Fmk.js","assets/taskboard-analytics-Dmg8kQ7N.js","assets/time-range-picker-CNJKAQia.js","assets/analytics-sections-IEaJPRpN.js","assets/AreaChart-Bs4ZyKEJ.js","assets/agent-experiments-i1khXsMD.js","assets/experiments-tab-choice-C1gEvb6G.js","assets/named-rule-view-D2hRJFjn.js","assets/use-apply-named-rule-Bv0WgvtT.js","assets/agent-calendar-Dpbs8ukc.js","assets/agent-app-D6yj-pMQ.js","assets/project-app-view-CSFErIuG.js","assets/connect-source-dialog-ZMMXP6WV.js","assets/agent-view-BD06Jv6z.js","assets/agent-file-BGZ-rpXM.js","assets/agent-deck-9cClb9g8.js","assets/agent-library-file-BETUEujK.js","assets/preview-panel-CBrKmmim.js","assets/agent-connect-sources-CUOKdCzE.js","assets/legacy-agents-deep-DOprMiQ8.js","assets/tasks-BiPHQc84.js","assets/thread-analytics-DD_Y3FQw.js","assets/reports-D8_7BSxz.js","assets/library-H2QdAzSR.js","assets/plan-C8ZCF1fK.js","assets/monitoring-Ck9IWyMH.js","assets/order-monitor-day--YYykwM7.js","assets/Tooltip-BrxiV7qQ.js","assets/monitoring-D_tSeZWt.css","assets/discover-COI3hr0O.js","assets/index-WlHdhzWm.js","assets/route-DpfhbI1P.js","assets/plan-usage-card-BhMgoOQ-.js","assets/index-redirect-cM8n5Bf0.js","assets/connection-detail-vQx4JY7p.js","assets/index-CwSLxVp3.js","assets/index-CdvPHHMd.js","assets/use-delete-connection-DcDccx5j.js","assets/monitoring-stats-row-CBa0yJyc.js","assets/collection-detail-UPbZXX41.js","assets/index-BfxFxvBn.js","assets/general-CYLLbCmH.js","assets/review-settings-Daf3NI57.js","assets/domain-settings-BBV7EcxE.js","assets/connect-DiSxRkvs.js","assets/api-keys-DyiCkrNJ.js","assets/tool-set-selector-0qJqj3BN.js","assets/ai-providers-BIsnOJUw.js","assets/infra-billing-CVwEnJc4.js","assets/secrets-D35RaSBM.js","assets/api-keys-BEjN8NqZ.js","assets/buckets-Bb4wZzzE.js","assets/repositories-Rj9HwEBO.js","assets/repositories-iO0v9MBk.js","assets/synced-repos-CsB9l6Mv.js","assets/tasks-BSfgBHRO.js","assets/projects-BbuSRcBC.js","assets/members-ZiG-LF73.js","assets/collection-display-button-D8katl6X.js","assets/role-color-C4jOHzdR.js","assets/roles-CV8Os6WH.js","assets/sso-0gVFO2bM.js","assets/profile-DGZtmJpW.js","assets/automations-B1iMF-BH.js"])))=>i.map(i=>d[i]);
2
2
  function lU(t,e){for(var o=0;o<e.length;o++){const a=e[o];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in t)){const r=Object.getOwnPropertyDescriptor(a,n);r&&Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();var Xwe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var GS={exports:{}},qu={};var TA;function cU(){if(TA)return qu;TA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function o(a,n,r){var i=null;if(r!==void 0&&(i=""+r),n.key!==void 0&&(i=""+n.key),"key"in n){r={};for(var c in n)c!=="key"&&(r[c]=n[c])}else r=n;return n=r.ref,{$$typeof:t,type:a,key:i,ref:n!==void 0?n:null,props:r}}return qu.Fragment=e,qu.jsx=o,qu.jsxs=o,qu}var kA;function dU(){return kA||(kA=1,GS.exports=cU()),GS.exports}var b=dU(),WS={exports:{}},dt={};var CA;function uU(){if(CA)return dt;CA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function x(M,G,V){this.props=M,this.context=G,this.refs=T,this.updater=V||y}x.prototype.isReactComponent={},x.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},x.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=x.prototype;function E(M,G,V){this.props=M,this.context=G,this.refs=T,this.updater=V||y}var C=E.prototype=new k;C.constructor=E,S(C,x.prototype),C.isPureReactComponent=!0;var P=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(M,G,V){var I=V.ref;return{$$typeof:t,type:M,key:G,ref:I!==void 0?I:null,props:V}}function U(M,G){return L(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function z(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?z(""+M.key):G.toString(36)}function oe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,I,j){var X=typeof M;(X==="undefined"||X==="boolean")&&(M=null);var de=!1;if(M===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(M.$$typeof){case t:case e:de=!0;break;case m:return de=M._init,H(de(M._payload),G,V,I,j)}}if(de)return j=j(M),de=I===""?"."+W(M,0):I,P(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(qe){return qe})):j!=null&&(B(j)&&(j=U(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+de)),G.push(j)),1;de=0;var ue=I===""?".":I+":";if(P(M))for(var Ce=0;Ce<M.length;Ce++)I=M[Ce],X=ue+W(I,Ce),de+=H(I,G,V,X,j);else if(Ce=v(M),typeof Ce=="function")for(M=Ce.call(M),Ce=0;!(I=M.next()).done;)I=I.value,X=ue+W(I,Ce++),de+=H(I,G,V,X,j);else if(X==="object"){if(typeof M.then=="function")return H(oe(M),G,V,I,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function K(M,G,V){if(M==null)return M;var I=[],j=0;return H(M,I,"","",function(X){return G.call(V,X,j++)}),I}function J(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var se=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:K,forEach:function(M,G,V){K(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return K(M,function(){G++}),G},toArray:function(M){return K(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return dt.Activity=h,dt.Children=Q,dt.Component=x,dt.Fragment=o,dt.Profiler=n,dt.PureComponent=E,dt.StrictMode=a,dt.Suspense=d,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,dt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return R.H.useMemoCache(M)}},dt.cache=function(M){return function(){return M.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var I=S({},M.props),j=M.key;if(G!=null)for(X in G.key!==void 0&&(j=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(I[X]=G[X]);var X=arguments.length-2;if(X===1)I.children=V;else if(1<X){for(var de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];I.children=de}return L(M.type,j,I)},dt.createContext=function(M){return M={$$typeof:i,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:r,_context:M},M},dt.createElement=function(M,G,V){var I,j={},X=null;if(G!=null)for(I in G.key!==void 0&&(X=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(j[I]=G[I]);var de=arguments.length-2;if(de===1)j.children=V;else if(1<de){for(var ue=Array(de),Ce=0;Ce<de;Ce++)ue[Ce]=arguments[Ce+2];j.children=ue}if(M&&M.defaultProps)for(I in de=M.defaultProps,de)j[I]===void 0&&(j[I]=de[I]);return L(M,X,j)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(M){return{$$typeof:c,render:M}},dt.isValidElement=B,dt.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:J}},dt.memo=function(M,G){return{$$typeof:u,type:M,compare:G===void 0?null:G}},dt.startTransition=function(M){var G=R.T,V={};R.T=V;try{var I=M(),j=R.S;j!==null&&j(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(D,se)}catch(X){se(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),R.T=G}},dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},dt.use=function(M){return R.H.use(M)},dt.useActionState=function(M,G,V){return R.H.useActionState(M,G,V)},dt.useCallback=function(M,G){return R.H.useCallback(M,G)},dt.useContext=function(M){return R.H.useContext(M)},dt.useDebugValue=function(){},dt.useDeferredValue=function(M,G){return R.H.useDeferredValue(M,G)},dt.useEffect=function(M,G){return R.H.useEffect(M,G)},dt.useEffectEvent=function(M){return R.H.useEffectEvent(M)},dt.useId=function(){return R.H.useId()},dt.useImperativeHandle=function(M,G,V){return R.H.useImperativeHandle(M,G,V)},dt.useInsertionEffect=function(M,G){return R.H.useInsertionEffect(M,G)},dt.useLayoutEffect=function(M,G){return R.H.useLayoutEffect(M,G)},dt.useMemo=function(M,G){return R.H.useMemo(M,G)},dt.useOptimistic=function(M,G){return R.H.useOptimistic(M,G)},dt.useReducer=function(M,G,V){return R.H.useReducer(M,G,V)},dt.useRef=function(M){return R.H.useRef(M)},dt.useState=function(M){return R.H.useState(M)},dt.useSyncExternalStore=function(M,G,V){return R.H.useSyncExternalStore(M,G,V)},dt.useTransition=function(){return R.H.useTransition()},dt.version="19.2.6",dt}var EA;function Vi(){return EA||(EA=1,WS.exports=uU()),WS.exports}var A=Vi();const ee=Gl(A),sk=lU({__proto__:null,default:ee},[A]);var KS={exports:{}},Uu={},YS={exports:{}},ZS={};var _A;function pU(){return _A||(_A=1,(function(t){function e(H,K){var J=H.length;H.push(K);e:for(;0<J;){var se=J-1>>>1,Q=H[se];if(0<n(Q,K))H[se]=K,H[J]=Q,J=se;else break e}}function o(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var K=H[0],J=H.pop();if(J!==K){H[0]=J;e:for(var se=0,Q=H.length,M=Q>>>1;se<M;){var G=2*(se+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Q&&0>n(j,V)?(H[se]=j,H[I]=J,se=I):(H[se]=V,H[G]=J,se=G);else if(I<Q&&0>n(j,J))H[se]=j,H[I]=J,se=I;else break e}}return K}function n(H,K){var J=H.sortIndex-K.sortIndex;return J!==0?J:H.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var d=[],u=[],m=1,h=null,f=3,v=!1,y=!1,S=!1,T=!1,x=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function C(H){for(var K=o(u);K!==null;){if(K.callback===null)a(u);else if(K.startTime<=H)a(u),K.sortIndex=K.expirationTime,e(d,K);else break;K=o(u)}}function P(H){if(S=!1,C(H),!y)if(o(d)!==null)y=!0,D||(D=!0,z());else{var K=o(u);K!==null&&oe(P,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function U(){return T?!0:!(t.unstable_now()-L<O)}function B(){if(T=!1,D){var H=t.unstable_now();L=H;var K=!0;try{e:{y=!1,S&&(S=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(C(H),h=o(d);h!==null&&!(h.expirationTime>H&&U());){var se=h.callback;if(typeof se=="function"){h.callback=null,f=h.priorityLevel;var Q=se(h.expirationTime<=H);if(H=t.unstable_now(),typeof Q=="function"){h.callback=Q,C(H),K=!0;break t}h===o(d)&&a(d),C(H)}else a(d);h=o(d)}if(h!==null)K=!0;else{var M=o(u);M!==null&&oe(P,M.startTime-H),K=!1}}break e}finally{h=null,f=J,v=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof E=="function")z=function(){E(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){x(B,0)};function oe(H,K){R=x(function(){H(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(H){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var J=f;f=K;try{return H()}finally{f=J}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=f;f=H;try{return K()}finally{f=J}},t.unstable_scheduleCallback=function(H,K,J){var se=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=J+Q,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Q,sortIndex:-1},J>se?(H.sortIndex=J,e(u,H),o(d)===null&&H===o(u)&&(S?(k(R),R=-1):S=!0,oe(P,J-se))):(H.sortIndex=Q,e(d,H),y||v||(y=!0,D||(D=!0,z()))),H},t.unstable_shouldYield=U,t.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(ZS)),ZS}var PA;function mU(){return PA||(PA=1,YS.exports=pU()),YS.exports}var QS={exports:{}},Ma={};var AA;function hU(){if(AA)return Ma;AA=1;var t=Vi();function e(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(e(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function r(d,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:u,implementation:m}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ma.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ma.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(d,u,null,m)},Ma.flushSync=function(d){var u=i.T,m=a.p;try{if(i.T=null,a.p=2,d)return d()}finally{i.T=u,a.p=m,a.d.f()}},Ma.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(d,u))},Ma.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Ma.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?a.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:v}):m==="script"&&a.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ma.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var m=c(u.as,u.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(d)},Ma.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin);a.d.L(d,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ma.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);a.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(d)},Ma.requestFormReset=function(d){a.d.r(d)},Ma.unstable_batchedUpdates=function(d,u){return d(u)},Ma.useFormState=function(d,u,m){return i.H.useFormState(d,u,m)},Ma.useFormStatus=function(){return i.H.useHostTransitionStatus()},Ma.version="19.2.6",Ma}var RA;function TM(){if(RA)return QS.exports;RA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),QS.exports=hU(),QS.exports}var DA;function gU(){if(DA)return Uu;DA=1;var t=mU(),e=Vi(),o=TM();function a(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function r(s){var l=s,p=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(p=l.return),s=l.return;while(s)}return l.tag===3?p:null}function i(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function c(s){if(s.tag===31){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function d(s){if(r(s)!==s)throw Error(a(188))}function u(s){var l=s.alternate;if(!l){if(l=r(s),l===null)throw Error(a(188));return l!==s?null:s}for(var p=s,g=l;;){var w=p.return;if(w===null)break;var _=w.alternate;if(_===null){if(g=w.return,g!==null){p=g;continue}break}if(w.child===_.child){for(_=w.child;_;){if(_===p)return d(w),s;if(_===g)return d(w),l;_=_.sibling}throw Error(a(188))}if(p.return!==g.return)p=w,g=_;else{for(var N=!1,q=w.child;q;){if(q===p){N=!0,p=w,g=_;break}if(q===g){N=!0,g=w,p=_;break}q=q.sibling}if(!N){for(q=_.child;q;){if(q===p){N=!0,p=_,g=w;break}if(q===g){N=!0,g=_,p=w;break}q=q.sibling}if(!N)throw Error(a(189))}}if(p.alternate!==g)throw Error(a(190))}if(p.tag!==3)throw Error(a(188));return p.stateNode.current===p?s:l}function m(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=m(s),l!==null)return l;s=s.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(s){return s===null||typeof s!="object"?null:(s=B&&s[B]||s["@@iterator"],typeof s=="function"?s:null)}var F=Symbol.for("react.client.reference");function W(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===F?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case S:return"Fragment";case x:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case y:return"Portal";case E:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case C:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return l=s.displayName||null,l!==null?l:W(s.type)||"Memo";case O:l=s._payload,s=s._init;try{return W(s(l))}catch{}}return null}var oe=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],Q=-1;function M(s){return{current:s}}function G(s){0>Q||(s.current=se[Q],se[Q]=null,Q--)}function V(s,l){Q++,se[Q]=s.current,s.current=l}var I=M(null),j=M(null),X=M(null),de=M(null);function ue(s,l){switch(V(X,l),V(j,s),V(I,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?G1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=G1(l),s=W1(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(I),V(I,s)}function Ce(){G(I),G(j),G(X)}function qe(s){s.memoizedState!==null&&V(de,s);var l=I.current,p=W1(l,s.type);l!==p&&(V(j,s),V(I,p))}function Z(s){j.current===s&&(G(I),G(j)),de.current===s&&(G(de),Bu._currentValue=J)}var ne,ve;function ie(s){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",ve=-1<p.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ne+s+ve}var Te=!1;function _e(s,l){if(!s||Te)return"";Te=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(fe){var he=fe}Reflect.construct(s,[],ke)}else{try{ke.call()}catch(fe){he=fe}s.call(ke.prototype)}}else{try{throw Error()}catch(fe){he=fe}(ke=s())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=g.DetermineComponentFrameRoot(),N=_[0],q=_[1];if(N&&q){var te=N.split(`
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
52
52
  || ${O} === "boolean" || ${D} === null`).assign(L,(0,a._)`[${D}]`)}}}function f({gen:k,parentData:E,parentDataProperty:C},P){k.if((0,a._)`${E} !== undefined`,()=>k.assign((0,a._)`${E}[${C}]`,P))}function v(k,E,C,P=r.Correct){const D=P===r.Correct?a.operators.EQ:a.operators.NEQ;let R;switch(k){case"null":return(0,a._)`${E} ${D} null`;case"array":R=(0,a._)`Array.isArray(${E})`;break;case"object":R=(0,a._)`${E} && typeof ${E} == "object" && !Array.isArray(${E})`;break;case"integer":R=O((0,a._)`!(${E} % 1) && !isNaN(${E})`);break;case"number":R=O();break;default:return(0,a._)`typeof ${E} ${D} ${k}`}return P===r.Correct?R:(0,a.not)(R);function O(L=a.nil){return(0,a.and)((0,a._)`typeof ${E} == "number"`,L,C?(0,a._)`isFinite(${E})`:a.nil)}}xa.checkDataType=v;function y(k,E,C,P){if(k.length===1)return v(k[0],E,C,P);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,a._)`typeof ${E} != "object"`;D=R.null?O:(0,a._)`!${E} || ${O}`,delete R.null,delete R.array,delete R.object}else D=a.nil;R.number&&delete R.integer;for(const O in R)D=(0,a.and)(D,v(O,E,C,P));return D}xa.checkDataTypes=y;const S={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:E})=>typeof k=="string"?(0,a._)`{type: ${k}}`:(0,a._)`{type: ${E}}`};function T(k){const E=x(k);(0,o.reportError)(E,S)}xa.reportTypeError=T;function x(k){const{gen:E,data:C,schema:P}=k,D=(0,n.schemaRefOrVal)(k,P,"type");return{gen:E,keyword:"type",data:C,schema:P.type,schemaCode:D,schemaValue:D,parentSchema:P,params:{},it:k}}return xa}var Wu={},QR;function LZ(){if(QR)return Wu;QR=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.assignDefaults=void 0;const t=yt(),e=Lt();function o(n,r){const{properties:i,items:c}=n.schema;if(r==="object"&&i)for(const d in i)a(n,d,i[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>a(n,u,d.default))}Wu.assignDefaults=o;function a(n,r,i){const{gen:c,compositeRule:d,data:u,opts:m}=n;if(i===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(r)}`;if(d){(0,e.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,t._)`${h} = ${(0,t.stringify)(i)}`)}return Wu}var gr={},Zt={},JR;function Dr(){if(JR)return Zt;JR=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.validateUnion=Zt.validateArray=Zt.usePattern=Zt.callValidateCode=Zt.schemaProperties=Zt.allSchemaProperties=Zt.noPropertyInData=Zt.propertyInData=Zt.isOwnProperty=Zt.hasPropFunc=Zt.reportMissingProp=Zt.checkMissingProp=Zt.checkReportMissingProp=void 0;const t=yt(),e=Lt(),o=Zi(),a=Lt();function n(k,E){const{gen:C,data:P,it:D}=k;C.if(m(C,P,E,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,t._)`${E}`},!0),k.error()})}Zt.checkReportMissingProp=n;function r({gen:k,data:E,it:{opts:C}},P,D){return(0,t.or)(...P.map(R=>(0,t.and)(m(k,E,R,C.ownProperties),(0,t._)`${D} = ${R}`)))}Zt.checkMissingProp=r;function i(k,E){k.setParams({missingProperty:E},!0),k.error()}Zt.reportMissingProp=i;function c(k){return k.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Zt.hasPropFunc=c;function d(k,E,C){return(0,t._)`${c(k)}.call(${E}, ${C})`}Zt.isOwnProperty=d;function u(k,E,C,P){const D=(0,t._)`${E}${(0,t.getProperty)(C)} !== undefined`;return P?(0,t._)`${D} && ${d(k,E,C)}`:D}Zt.propertyInData=u;function m(k,E,C,P){const D=(0,t._)`${E}${(0,t.getProperty)(C)} === undefined`;return P?(0,t.or)(D,(0,t.not)(d(k,E,C))):D}Zt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(E=>E!=="__proto__"):[]}Zt.allSchemaProperties=h;function f(k,E){return h(E).filter(C=>!(0,e.alwaysValidSchema)(k,E[C]))}Zt.schemaProperties=f;function v({schemaCode:k,data:E,it:{gen:C,topSchemaRef:P,schemaPath:D,errorPath:R},it:O},L,U,B){const z=B?(0,t._)`${k}, ${E}, ${P}${D}`:E,F=[[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,R)],[o.default.parentData,O.parentData],[o.default.parentDataProperty,O.parentDataProperty],[o.default.rootData,o.default.rootData]];O.opts.dynamicRef&&F.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const W=(0,t._)`${z}, ${C.object(...F)}`;return U!==t.nil?(0,t._)`${L}.call(${U}, ${W})`:(0,t._)`${L}(${W})`}Zt.callValidateCode=v;const y=(0,t._)`new RegExp`;function S({gen:k,it:{opts:E}},C){const P=E.unicodeRegExp?"u":"",{regExp:D}=E.code,R=D(C,P);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?y:(0,a.useFunc)(k,D)}(${C}, ${P})`})}Zt.usePattern=S;function T(k){const{gen:E,data:C,keyword:P,it:D}=k,R=E.name("valid");if(D.allErrors){const L=E.let("valid",!0);return O(()=>E.assign(L,!1)),L}return E.var(R,!0),O(()=>E.break()),R;function O(L){const U=E.const("len",(0,t._)`${C}.length`);E.forRange("i",0,U,B=>{k.subschema({keyword:P,dataProp:B,dataPropType:e.Type.Num},R),E.if((0,t.not)(R),L)})}}Zt.validateArray=T;function x(k){const{gen:E,schema:C,keyword:P,it:D}=k;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(U=>(0,e.alwaysValidSchema)(D,U))&&!D.opts.unevaluated)return;const O=E.let("valid",!1),L=E.name("_valid");E.block(()=>C.forEach((U,B)=>{const z=k.subschema({keyword:P,schemaProp:B,compositeRule:!0},L);E.assign(O,(0,t._)`${O} || ${L}`),k.mergeValidEvaluated(z,L)||E.if((0,t.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Zt.validateUnion=x,Zt}var XR;function BZ(){if(XR)return gr;XR=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateKeywordUsage=gr.validSchemaType=gr.funcKeywordCode=gr.macroKeywordCode=void 0;const t=yt(),e=Zi(),o=Dr(),a=tb();function n(f,v){const{gen:y,keyword:S,schema:T,parentSchema:x,it:k}=f,E=v.macro.call(k.self,T,x,k),C=u(y,S,E);k.opts.validateSchema!==!1&&k.self.validateSchema(E,!0);const P=y.name("valid");f.subschema({schema:E,schemaPath:t.nil,errSchemaPath:`${k.errSchemaPath}/${S}`,topSchemaRef:C,compositeRule:!0},P),f.pass(P,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,v){var y;const{gen:S,keyword:T,schema:x,parentSchema:k,$data:E,it:C}=f;d(C,v);const P=!E&&v.compile?v.compile.call(C.self,x,k,C):v.validate,D=u(S,T,P),R=S.let("valid");f.block$data(R,O),f.ok((y=v.valid)!==null&&y!==void 0?y:R);function O(){if(v.errors===!1)B(),v.modifying&&i(f),z(()=>f.error());else{const F=v.async?L():U();v.modifying&&i(f),z(()=>c(f,F))}}function L(){const F=S.let("ruleErrs",null);return S.try(()=>B((0,t._)`await `),W=>S.assign(R,!1).if((0,t._)`${W} instanceof ${C.ValidationError}`,()=>S.assign(F,(0,t._)`${W}.errors`),()=>S.throw(W))),F}function U(){const F=(0,t._)`${D}.errors`;return S.assign(F,null),B(t.nil),F}function B(F=v.async?(0,t._)`await `:t.nil){const W=C.opts.passContext?e.default.this:e.default.self,oe=!("compile"in v&&!E||v.schema===!1);S.assign(R,(0,t._)`${F}${(0,o.callValidateCode)(f,D,W,oe)}`,v.modifying)}function z(F){var W;S.if((0,t.not)((W=v.valid)!==null&&W!==void 0?W:R),F)}}gr.funcKeywordCode=r;function i(f){const{gen:v,data:y,it:S}=f;v.if(S.parentData,()=>v.assign(y,(0,t._)`${S.parentData}[${S.parentDataProperty}]`))}function c(f,v){const{gen:y}=f;y.if((0,t._)`Array.isArray(${v})`,()=>{y.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${v} : ${e.default.vErrors}.concat(${v})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,a.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},v){if(v.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,v,y){if(y===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,t.stringify)(y)})}function m(f,v,y=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(f):S==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==S||y&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:v,self:y,errSchemaPath:S},T,x){if(Array.isArray(T.keyword)?!T.keyword.includes(x):T.keyword!==x)throw new Error("ajv implementation error");const k=T.dependencies;if(k?.some(E=>!Object.prototype.hasOwnProperty.call(f,E)))throw new Error(`parent schema must have dependencies of ${x}: ${k.join(",")}`);if(T.validateSchema&&!T.validateSchema(f[x])){const C=`keyword "${x}" value is invalid at path "${S}": `+y.errorsText(T.validateSchema.errors);if(v.validateSchema==="log")y.logger.error(C);else throw new Error(C)}}return gr.validateKeywordUsage=h,gr}var Cs={},eD;function FZ(){if(eD)return Cs;eD=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.extendSubschemaMode=Cs.extendSubschemaData=Cs.getSubschema=void 0;const t=yt(),e=Lt();function o(r,{keyword:i,schemaProp:c,schema:d,schemaPath:u,errSchemaPath:m,topSchemaRef:h}){if(i!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const f=r.schema[i];return c===void 0?{schema:f,schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}`,errSchemaPath:`${r.errSchemaPath}/${i}`}:{schema:f[c],schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}${(0,t.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${i}/${(0,e.escapeFragment)(c)}`}}if(d!==void 0){if(u===void 0||m===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:u,topSchemaRef:h,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}Cs.getSubschema=o;function a(r,i,{dataProp:c,dataPropType:d,data:u,dataTypes:m,propertyName:h}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=i;if(c!==void 0){const{errorPath:y,dataPathArr:S,opts:T}=i,x=f.let("data",(0,t._)`${i.data}${(0,t.getProperty)(c)}`,!0);v(x),r.errorPath=(0,t.str)`${y}${(0,e.getErrorPath)(c,d,T.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...S,r.parentDataProperty]}if(u!==void 0){const y=u instanceof t.Name?u:f.let("data",u,!0);v(y),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(y){r.data=y,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,y]}}Cs.extendSubschemaData=a;function n(r,{jtdDiscriminator:i,jtdMetadata:c,compositeRule:d,createErrors:u,allErrors:m}){d!==void 0&&(r.compositeRule=d),u!==void 0&&(r.createErrors=u),m!==void 0&&(r.allErrors=m),r.jtdDiscriminator=i,r.jtdMetadata=c}return Cs.extendSubschemaMode=n,Cs}var Wa={},yw,tD;function aB(){return tD||(tD=1,yw=function t(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var a,n,r;if(Array.isArray(e)){if(a=e.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!t(e[n],o[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(r=Object.keys(e),a=r.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,r[n]))return!1;for(n=a;n--!==0;){var i=r[n];if(!t(e[i],o[i]))return!1}return!0}return e!==e&&o!==o}),yw}var Sw={exports:{}},oD;function jZ(){if(oD)return Sw.exports;oD=1;var t=Sw.exports=function(a,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var i=typeof r=="function"?r:r.pre||function(){},c=r.post||function(){};e(n,i,c,a,"",a)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(a,n,r,i,c,d,u,m,h,f){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,c,d,u,m,h,f);for(var v in i){var y=i[v];if(Array.isArray(y)){if(v in t.arrayKeywords)for(var S=0;S<y.length;S++)e(a,n,r,y[S],c+"/"+v+"/"+S,d,c,v,i,S)}else if(v in t.propsKeywords){if(y&&typeof y=="object")for(var T in y)e(a,n,r,y[T],c+"/"+v+"/"+o(T),d,c,v,i,T)}else(v in t.keywords||a.allKeys&&!(v in t.skipKeywords))&&e(a,n,r,y,c+"/"+v,d,c,v,i)}r(i,c,d,u,m,h,f)}}function o(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Sw.exports}var aD;function ob(){if(aD)return Wa;aD=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.getSchemaRefs=Wa.resolveUrl=Wa.normalizeId=Wa._getFullPath=Wa.getFullPath=Wa.inlineRef=void 0;const t=Lt(),e=aB(),o=jZ(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(S,T=!0){return typeof S=="boolean"?!0:T===!0?!i(S):T?c(S)<=T:!1}Wa.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(S){for(const T in S){if(r.has(T))return!0;const x=S[T];if(Array.isArray(x)&&x.some(i)||typeof x=="object"&&i(x))return!0}return!1}function c(S){let T=0;for(const x in S){if(x==="$ref")return 1/0;if(T++,!a.has(x)&&(typeof S[x]=="object"&&(0,t.eachItem)(S[x],k=>T+=c(k)),T===1/0))return 1/0}return T}function d(S,T="",x){x!==!1&&(T=h(T));const k=S.parse(T);return u(S,k)}Wa.getFullPath=d;function u(S,T){return S.serialize(T).split("#")[0]+"#"}Wa._getFullPath=u;const m=/#\/?$/;function h(S){return S?S.replace(m,""):""}Wa.normalizeId=h;function f(S,T,x){return x=h(x),S.resolve(T,x)}Wa.resolveUrl=f;const v=/^[a-z_][-a-z0-9._]*$/i;function y(S,T){if(typeof S=="boolean")return{};const{schemaId:x,uriResolver:k}=this.opts,E=h(S[x]||T),C={"":E},P=d(k,E,!1),D={},R=new Set;return o(S,{allKeys:!0},(U,B,z,F)=>{if(F===void 0)return;const W=P+B;let oe=C[F];typeof U[x]=="string"&&(oe=H.call(this,U[x])),K.call(this,U.$anchor),K.call(this,U.$dynamicAnchor),C[B]=oe;function H(J){const se=this.opts.uriResolver.resolve;if(J=h(oe?se(oe,J):J),R.has(J))throw L(J);R.add(J);let Q=this.refs[J];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O(U,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O(U,D[J],J),D[J]=U):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!v.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(U,B,z){if(B!==void 0&&!e(U,B))throw L(z)}function L(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Wa.getSchemaRefs=y,Wa}var nD;function ab(){if(nD)return Ts;nD=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getData=Ts.KeywordCxt=Ts.validateFunctionCode=void 0;const t=IZ(),e=Yf(),o=oB(),a=Yf(),n=LZ(),r=BZ(),i=FZ(),c=yt(),d=Zi(),u=ob(),m=Lt(),h=tb();function f(Z){if(P(Z)&&(R(Z),C(Z))){T(Z);return}v(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}Ts.validateFunctionCode=f;function v({gen:Z,validateName:ne,schema:ve,schemaEnv:ie,opts:Te},_e){Te.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Z.code((0,c._)`"use strict"; ${k(ve,Te)}`),S(Z,Te),Z.code(_e)}):Z.func(ne,(0,c._)`${d.default.data}, ${y(Te)}`,ie.$async,()=>Z.code(k(ve,Te)).code(_e))}function y(Z){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Z.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function S(Z,ne){Z.if(d.default.valCxt,()=>{Z.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Z.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Z.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Z.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Z.var(d.default.instancePath,(0,c._)`""`),Z.var(d.default.parentData,(0,c._)`undefined`),Z.var(d.default.parentDataProperty,(0,c._)`undefined`),Z.var(d.default.rootData,d.default.data),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function T(Z){const{schema:ne,opts:ve,gen:ie}=Z;v(Z,()=>{ve.$comment&&ne.$comment&&F(Z),U(Z),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),ve.unevaluated&&x(Z),O(Z),W(Z)})}function x(Z){const{gen:ne,validateName:ve}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function k(Z,ne){const ve=typeof Z=="object"&&Z[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function E(Z,ne){if(P(Z)&&(R(Z),C(Z))){D(Z,ne);return}(0,t.boolOrEmptySchema)(Z,ne)}function C({schema:Z,self:ne}){if(typeof Z=="boolean")return!Z;for(const ve in Z)if(ne.RULES.all[ve])return!0;return!1}function P(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:ve,gen:ie,opts:Te}=Z;Te.$comment&&ve.$comment&&F(Z),B(Z),z(Z);const _e=ie.const("_errs",d.default.errors);O(Z,_e),ie.var(ne,(0,c._)`${_e} === ${d.default.errors}`)}function R(Z){(0,m.checkUnknownRules)(Z),L(Z)}function O(Z,ne){if(Z.opts.jtd)return H(Z,[],!1,ne);const ve=(0,e.getSchemaTypes)(Z.schema),ie=(0,e.coerceAndCheckDataType)(Z,ve);H(Z,ve,!ie,ne)}function L(Z){const{schema:ne,errSchemaPath:ve,opts:ie,self:Te}=Z;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,Te.RULES)&&Te.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function U(Z){const{schema:ne,opts:ve}=Z;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,m.checkStrictMode)(Z,"default is ignored in the schema root")}function B(Z){const ne=Z.schema[Z.opts.schemaId];ne&&(Z.baseId=(0,u.resolveUrl)(Z.opts.uriResolver,Z.baseId,ne))}function z(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Z,schemaEnv:ne,schema:ve,errSchemaPath:ie,opts:Te}){const _e=ve.$comment;if(Te.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${_e})`);else if(typeof Te.$comment=="function"){const it=(0,c.str)`${ie}/$comment`,ct=Z.scopeValue("root",{ref:ne.root});Z.code((0,c._)`${d.default.self}.opts.$comment(${_e}, ${it}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:ve,validateName:ie,ValidationError:Te,opts:_e}=Z;ve.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${Te}(${d.default.vErrors})`)):(ne.assign((0,c._)`${ie}.errors`,d.default.vErrors),_e.unevaluated&&oe(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function oe({gen:Z,evaluated:ne,props:ve,items:ie}){ve instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,ve),ie instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,ie)}function H(Z,ne,ve,ie){const{gen:Te,schema:_e,data:it,allErrors:ct,opts:Ge,self:at}=Z,{RULES:Ne}=at;if(_e.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(_e,Ne))){Te.block(()=>de(Z,"$ref",Ne.all.$ref.definition));return}Ge.jtd||J(Z,ne),Te.block(()=>{for(const He of Ne.rules)Oe(He);Oe(Ne.post)});function Oe(He){(0,o.shouldUseGroup)(_e,He)&&(He.type?(Te.if((0,a.checkDataType)(He.type,it,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&ve&&(Te.else(),(0,a.reportTypeError)(Z)),Te.endIf()):K(Z,He),ct||Te.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function K(Z,ne){const{gen:ve,schema:ie,opts:{useDefaults:Te}}=Z;Te&&(0,n.assignDefaults)(Z,ne.type),ve.block(()=>{for(const _e of ne.rules)(0,o.shouldUseRule)(ie,_e)&&de(Z,_e.keyword,_e.definition,ne.type)})}function J(Z,ne){Z.schemaEnv.meta||!Z.opts.strictTypes||(se(Z,ne),Z.opts.allowUnionTypes||Q(Z,ne),M(Z,Z.dataTypes))}function se(Z,ne){if(ne.length){if(!Z.dataTypes.length){Z.dataTypes=ne;return}ne.forEach(ve=>{V(Z.dataTypes,ve)||j(Z,`type "${ve}" not allowed by context "${Z.dataTypes.join(",")}"`)}),I(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Z,"use allowUnionTypes to allow union type keyword")}function M(Z,ne){const ve=Z.self.RULES.all;for(const ie in ve){const Te=ve[ie];if(typeof Te=="object"&&(0,o.shouldUseRule)(Z.schema,Te)){const{type:_e}=Te.definition;_e.length&&!_e.some(it=>G(ne,it))&&j(Z,`missing type "${_e.join(",")}" for keyword "${ie}"`)}}}function G(Z,ne){return Z.includes(ne)||ne==="number"&&Z.includes("integer")}function V(Z,ne){return Z.includes(ne)||ne==="integer"&&Z.includes("number")}function I(Z,ne){const ve=[];for(const ie of Z.dataTypes)V(ne,ie)?ve.push(ie):ne.includes("integer")&&ie==="number"&&ve.push("integer");Z.dataTypes=ve}function j(Z,ne){const ve=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,ve,ie){if((0,r.validateKeywordUsage)(ne,ve,ie),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=ie,this.data=ne.data,this.schema=ne.schema[ie],this.$data=ve.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,ie,this.$data),this.schemaType=ve.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=ve,this.$data)this.schemaCode=ne.gen.const("vSchema",qe(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${ie} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,ve,ie){this.failResult((0,c.not)(ne),ve,ie)}failResult(ne,ve,ie){this.gen.if(ne),ie?ie():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,ve){this.failResult((0,c.not)(ne),void 0,ve)}fail(ne){if(ne===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ne),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ne){if(!this.$data)return this.fail(ne);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,ve,ie){if(ve){this.setParams(ve),this._error(ne,ie),this.setParams({});return}this._error(ne,ie)}_error(ne,ve){(ne?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,ve){ve?Object.assign(this.params,ne):this.params=ne}block$data(ne,ve,ie=c.nil){this.gen.block(()=>{this.check$data(ne,ie),ve()})}check$data(ne=c.nil,ve=c.nil){if(!this.$data)return;const{gen:ie,schemaCode:Te,schemaType:_e,def:it}=this;ie.if((0,c.or)((0,c._)`${Te} === undefined`,ve)),ne!==c.nil&&ie.assign(ne,!0),(_e.length||it.validateSchema)&&(ie.elseIf(this.invalid$data()),this.$dataError(),ne!==c.nil&&ie.assign(ne,!1)),ie.else()}invalid$data(){const{gen:ne,schemaCode:ve,schemaType:ie,def:Te,it:_e}=this;return(0,c.or)(it(),ct());function it(){if(ie.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,a.checkDataTypes)(Ge,ve,_e.opts.strictNumbers,a.DataType.Wrong)}`}return c.nil}function ct(){if(Te.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:Te.validateSchema});return(0,c._)`!${Ge}(${ve})`}return c.nil}}subschema(ne,ve){const ie=(0,i.getSubschema)(this.it,ne);(0,i.extendSubschemaData)(ie,this.it,ne),(0,i.extendSubschemaMode)(ie,ne);const Te={...this.it,...ie,items:void 0,props:void 0};return E(Te,ve),Te}mergeEvaluated(ne,ve){const{it:ie,gen:Te}=this;ie.opts.unevaluated&&(ie.props!==!0&&ne.props!==void 0&&(ie.props=m.mergeEvaluated.props(Te,ne.props,ie.props,ve)),ie.items!==!0&&ne.items!==void 0&&(ie.items=m.mergeEvaluated.items(Te,ne.items,ie.items,ve)))}mergeValidEvaluated(ne,ve){const{it:ie,gen:Te}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return Te.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}Ts.KeywordCxt=X;function de(Z,ne,ve,ie){const Te=new X(Z,ve,ne);"code"in ve?ve.code(Te,ie):Te.$data&&ve.validate?(0,r.funcKeywordCode)(Te,ve):"macro"in ve?(0,r.macroKeywordCode)(Te,ve):(ve.compile||ve.validate)&&(0,r.funcKeywordCode)(Te,ve)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qe(Z,{dataLevel:ne,dataNames:ve,dataPathArr:ie}){let Te,_e;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);Te=Z,_e=d.default.rootData}else{const at=Ce.exec(Z);if(!at)throw new Error(`Invalid JSON-pointer: ${Z}`);const Ne=+at[1];if(Te=at[2],Te==="#"){if(Ne>=ne)throw new Error(Ge("property/index",Ne));return ie[ne-Ne]}if(Ne>ne)throw new Error(Ge("data",Ne));if(_e=ve[ne-Ne],!Te)return _e}let it=_e;const ct=Te.split("/");for(const at of ct)at&&(_e=(0,c._)`${_e}${(0,c.getProperty)((0,m.unescapeJsonPointer)(at))}`,it=(0,c._)`${it} && ${_e}`);return it;function Ge(at,Ne){return`Cannot access ${at} ${Ne} levels up, current level is ${ne}`}}return Ts.getData=qe,Ts}var eg={},rD;function $k(){if(rD)return eg;rD=1,Object.defineProperty(eg,"__esModule",{value:!0});class t extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return eg.default=t,eg}var tg={},sD;function nb(){if(sD)return tg;sD=1,Object.defineProperty(tg,"__esModule",{value:!0});const t=ob();class e extends Error{constructor(a,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(a,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(a,this.missingRef))}}return tg.default=e,tg}var _n={},iD;function Vk(){if(iD)return _n;iD=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.resolveSchema=_n.getCompilingSchema=_n.resolveRef=_n.compileSchema=_n.SchemaEnv=void 0;const t=yt(),e=$k(),o=Zi(),a=ob(),n=Lt(),r=ab();class i{constructor(x){var k;this.refs={},this.dynamicAnchors={};let E;typeof x.schema=="object"&&(E=x.schema),this.schema=x.schema,this.schemaId=x.schemaId,this.root=x.root||this,this.baseId=(k=x.baseId)!==null&&k!==void 0?k:(0,a.normalizeId)(E?.[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=E?.$async,this.refs={}}}_n.SchemaEnv=i;function c(T){const x=m.call(this,T);if(x)return x;const k=(0,a.getFullPath)(this.opts.uriResolver,T.root.baseId),{es5:E,lines:C}=this.opts.code,{ownProperties:P}=this.opts,D=new t.CodeGen(this.scope,{es5:E,lines:C,ownProperties:P});let R;T.$async&&(R=D.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const O=D.scopeName("validate");T.validateName=O;const L={gen:D,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:T.schema,code:(0,t.stringify)(T.schema)}:{ref:T.schema}),validateName:O,ValidationError:R,schema:T.schema,schemaEnv:T,rootId:k,baseId:T.baseId||k,schemaPath:t.nil,errSchemaPath:T.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let U;try{this._compilations.add(T),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();U=`${D.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&(U=this.opts.code.process(U,T));const F=new Function(`${o.default.self}`,`${o.default.scope}`,U)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=T.schema,F.schemaEnv=T,T.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:B,scopeValues:D._values}),this.opts.unevaluated){const{props:W,items:oe}=L;F.evaluated={props:W instanceof t.Name?void 0:W,items:oe instanceof t.Name?void 0:oe,dynamicProps:W instanceof t.Name,dynamicItems:oe instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return T.validate=F,T}catch(B){throw delete T.validate,delete T.validateName,U&&this.logger.error("Error compiling schema, function code:",U),B}finally{this._compilations.delete(T)}}_n.compileSchema=c;function d(T,x,k){var E;k=(0,a.resolveUrl)(this.opts.uriResolver,x,k);const C=T.refs[k];if(C)return C;let P=f.call(this,T,k);if(P===void 0){const D=(E=T.localRefs)===null||E===void 0?void 0:E[k],{schemaId:R}=this.opts;D&&(P=new i({schema:D,schemaId:R,root:T,baseId:x}))}if(P!==void 0)return T.refs[k]=u.call(this,P)}_n.resolveRef=d;function u(T){return(0,a.inlineRef)(T.schema,this.opts.inlineRefs)?T.schema:T.validate?T:c.call(this,T)}function m(T){for(const x of this._compilations)if(h(x,T))return x}_n.getCompilingSchema=m;function h(T,x){return T.schema===x.schema&&T.root===x.root&&T.baseId===x.baseId}function f(T,x){let k;for(;typeof(k=this.refs[x])=="string";)x=k;return k||this.schemas[x]||v.call(this,T,x)}function v(T,x){const k=this.opts.uriResolver.parse(x),E=(0,a._getFullPath)(this.opts.uriResolver,k);let C=(0,a.getFullPath)(this.opts.uriResolver,T.baseId,void 0);if(Object.keys(T.schema).length>0&&E===C)return S.call(this,k,T);const P=(0,a.normalizeId)(E),D=this.refs[P]||this.schemas[P];if(typeof D=="string"){const R=v.call(this,T,D);return typeof R?.schema!="object"?void 0:S.call(this,k,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),P===(0,a.normalizeId)(x)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(C=(0,a.resolveUrl)(this.opts.uriResolver,C,L)),new i({schema:R,schemaId:O,root:T,baseId:C})}return S.call(this,k,D)}}_n.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(T,{baseId:x,schema:k,root:E}){var C;if(((C=T.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const R of T.fragment.slice(1).split("/")){if(typeof k=="boolean")return;const O=k[(0,n.unescapeFragment)(R)];if(O===void 0)return;k=O;const L=typeof k=="object"&&k[this.opts.schemaId];!y.has(R)&&L&&(x=(0,a.resolveUrl)(this.opts.uriResolver,x,L))}let P;if(typeof k!="boolean"&&k.$ref&&!(0,n.schemaHasRulesButRef)(k,this.RULES)){const R=(0,a.resolveUrl)(this.opts.uriResolver,x,k.$ref);P=v.call(this,E,R)}const{schemaId:D}=this.opts;if(P=P||new i({schema:k,schemaId:D,root:E,baseId:x}),P.schema!==P.root.schema)return P}return _n}const zZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",qZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",UZ="object",$Z=["$data"],VZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},HZ=!1,GZ={$id:zZ,description:qZ,type:UZ,required:$Z,properties:VZ,additionalProperties:HZ};var og={},Ku={exports:{}},ww,lD;function nB(){if(lD)return ww;lD=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function o(f){let v="",y=0,S=0;for(S=0;S<f.length;S++)if(y=f[S].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=f[S];break}for(S+=1;S<f.length;S++){if(y=f[S].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=f[S]}return v}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,v,y){if(f.length){const S=o(f);if(S!=="")v.push(S);else return y.error=!0,!1;f.length=0}return!0}function i(f){let v=0;const y={error:!1,address:"",zone:""},S=[],T=[];let x=!1,k=!1,E=r;for(let C=0;C<f.length;C++){const P=f[C];if(!(P==="["||P==="]"))if(P===":"){if(x===!0&&(k=!0),!E(T,S,y))break;if(++v>7){y.error=!0;break}C>0&&f[C-1]===":"&&(x=!0),S.push(":");continue}else if(P==="%"){if(!E(T,S,y))break;E=n}else{T.push(P);continue}}return T.length&&(E===n?y.zone=T.join(""):k?S.push(T.join("")):S.push(o(T))),y.address=S.join(""),y}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const v=i(f);if(v.error)return{host:f,isIPV6:!1};{let y=v.address,S=v.address;return v.zone&&(y+="%"+v.zone,S+="%25"+v.zone),{host:y,isIPV6:!0,escapedHost:S}}}function d(f,v){let y=0;for(let S=0;S<f.length;S++)f[S]===v&&y++;return y}function u(f){let v=f;const y=[];let S=-1,T=0;for(;T=v.length;){if(T===1){if(v===".")break;if(v==="/"){y.push("/");break}else{y.push(v);break}}else if(T===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){y.push("/");break}}else if(T===3&&v==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),y.length!==0&&y.pop();continue}}if((S=v.indexOf("/",1))===-1){y.push(v);break}else y.push(v.slice(0,S)),v=v.slice(S)}return y.join("")}function m(f,v){const y=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=y(f.scheme)),f.userinfo!==void 0&&(f.userinfo=y(f.userinfo)),f.host!==void 0&&(f.host=y(f.host)),f.path!==void 0&&(f.path=y(f.path)),f.query!==void 0&&(f.query=y(f.query)),f.fragment!==void 0&&(f.fragment=y(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let y=unescape(f.host);if(!e(y)){const S=c(y);S.isIPV6===!0?y=`[${S.escapedHost}]`:y=f.host}v.push(y)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return ww={nonSimpleDomain:a,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:o},ww}var xw,cD;function WZ(){if(cD)return xw;cD=1;const{isUUID:t}=nB(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function a(P){return o.indexOf(P)!==-1}function n(P){return P.secure===!0?!0:P.secure===!1?!1:P.scheme?P.scheme.length===3&&(P.scheme[0]==="w"||P.scheme[0]==="W")&&(P.scheme[1]==="s"||P.scheme[1]==="S")&&(P.scheme[2]==="s"||P.scheme[2]==="S"):!1}function r(P){return P.host||(P.error=P.error||"HTTP URIs must have a host."),P}function i(P){const D=String(P.scheme).toLowerCase()==="https";return(P.port===(D?443:80)||P.port==="")&&(P.port=void 0),P.path||(P.path="/"),P}function c(P){return P.secure=n(P),P.resourceName=(P.path||"/")+(P.query?"?"+P.query:""),P.path=void 0,P.query=void 0,P}function d(P){if((P.port===(n(P)?443:80)||P.port==="")&&(P.port=void 0),typeof P.secure=="boolean"&&(P.scheme=P.secure?"wss":"ws",P.secure=void 0),P.resourceName){const[D,R]=P.resourceName.split("?");P.path=D&&D!=="/"?D:void 0,P.query=R,P.resourceName=void 0}return P.fragment=void 0,P}function u(P,D){if(!P.path)return P.error="URN can not be parsed",P;const R=P.path.match(e);if(R){const O=D.scheme||P.scheme||"urn";P.nid=R[1].toLowerCase(),P.nss=R[2];const L=`${O}:${D.nid||P.nid}`,U=C(L);P.path=void 0,U&&(P=U.parse(P,D))}else P.error=P.error||"URN can not be parsed.";return P}function m(P,D){if(P.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||P.scheme||"urn",O=P.nid.toLowerCase(),L=`${R}:${D.nid||O}`,U=C(L);U&&(P=U.serialize(P,D));const B=P,z=P.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(P,D){const R=P;return R.uuid=R.nss,R.nss=void 0,!D.tolerant&&(!R.uuid||!t(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(P){const D=P;return D.nss=(P.uuid||"").toLowerCase(),D}const v={scheme:"http",domainHost:!0,parse:r,serialize:i},y={scheme:"https",domainHost:v.domainHost,parse:r,serialize:i},S={scheme:"ws",domainHost:!0,parse:c,serialize:d},T={scheme:"wss",domainHost:S.domainHost,parse:S.parse,serialize:S.serialize},E={http:v,https:y,ws:S,wss:T,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(E,null);function C(P){return P&&(E[P]||E[P.toLowerCase()])||void 0}return xw={wsIsSecure:n,SCHEMES:E,isValidSchemeName:a,getSchemeHandler:C},xw}var dD;function KZ(){if(dD)return Ku.exports;dD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:o,normalizeComponentEncoding:a,isIPv4:n,nonSimpleDomain:r}=nB(),{SCHEMES:i,getSchemeHandler:c}=WZ();function d(T,x){return typeof T=="string"?T=f(y(T,x),x):typeof T=="object"&&(T=y(f(T,x),x)),T}function u(T,x,k){const E=k?Object.assign({scheme:"null"},k):{scheme:"null"},C=m(y(T,E),y(x,E),E,!0);return E.skipEscape=!0,f(C,E)}function m(T,x,k,E){const C={};return E||(T=y(f(T,k),k),x=y(f(x,k),k)),k=k||{},!k.tolerant&&x.scheme?(C.scheme=x.scheme,C.userinfo=x.userinfo,C.host=x.host,C.port=x.port,C.path=e(x.path||""),C.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(C.userinfo=x.userinfo,C.host=x.host,C.port=x.port,C.path=e(x.path||""),C.query=x.query):(x.path?(x.path[0]==="/"?C.path=e(x.path):((T.userinfo!==void 0||T.host!==void 0||T.port!==void 0)&&!T.path?C.path="/"+x.path:T.path?C.path=T.path.slice(0,T.path.lastIndexOf("/")+1)+x.path:C.path=x.path,C.path=e(C.path)),C.query=x.query):(C.path=T.path,x.query!==void 0?C.query=x.query:C.query=T.query),C.userinfo=T.userinfo,C.host=T.host,C.port=T.port),C.scheme=T.scheme),C.fragment=x.fragment,C}function h(T,x,k){return typeof T=="string"?(T=unescape(T),T=f(a(y(T,k),!0),{...k,skipEscape:!0})):typeof T=="object"&&(T=f(a(T,!0),{...k,skipEscape:!0})),typeof x=="string"?(x=unescape(x),x=f(a(y(x,k),!0),{...k,skipEscape:!0})):typeof x=="object"&&(x=f(a(x,!0),{...k,skipEscape:!0})),T.toLowerCase()===x.toLowerCase()}function f(T,x){const k={host:T.host,scheme:T.scheme,userinfo:T.userinfo,port:T.port,path:T.path,query:T.query,nid:T.nid,nss:T.nss,uuid:T.uuid,fragment:T.fragment,reference:T.reference,resourceName:T.resourceName,secure:T.secure,error:""},E=Object.assign({},x),C=[],P=c(E.scheme||k.scheme);P&&P.serialize&&P.serialize(k,E),k.path!==void 0&&(E.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),E.reference!=="suffix"&&k.scheme&&C.push(k.scheme,":");const D=o(k);if(D!==void 0&&(E.reference!=="suffix"&&C.push("//"),C.push(D),k.path&&k.path[0]!=="/"&&C.push("/")),k.path!==void 0){let R=k.path;!E.absolutePath&&(!P||!P.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),C.push(R)}return k.query!==void 0&&C.push("?",k.query),k.fragment!==void 0&&C.push("#",k.fragment),C.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(T,x){const k=Object.assign({},x),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let C=!1;k.reference==="suffix"&&(k.scheme?T=k.scheme+":"+T:T="//"+T);const P=T.match(v);if(P){if(E.scheme=P[1],E.userinfo=P[3],E.host=P[4],E.port=parseInt(P[5],10),E.path=P[6]||"",E.query=P[7],E.fragment=P[8],isNaN(E.port)&&(E.port=P[5]),E.host)if(n(E.host)===!1){const O=t(E.host);E.host=O.host.toLowerCase(),C=O.isIPV6}else C=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==E.reference&&(E.error=E.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||E.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&E.host&&(k.domainHost||D&&D.domainHost)&&C===!1&&r(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(R){E.error=E.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(T.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=unescape(E.host))),E.path&&(E.path=escape(unescape(E.path))),E.fragment&&(E.fragment=encodeURI(decodeURIComponent(E.fragment)))),D&&D.parse&&D.parse(E,k)}else E.error=E.error||"URI can not be parsed.";return E}const S={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:y};return Ku.exports=S,Ku.exports.default=S,Ku.exports.fastUri=S,Ku.exports}var uD;function YZ(){if(uD)return og;uD=1,Object.defineProperty(og,"__esModule",{value:!0});const t=KZ();return t.code='require("ajv/dist/runtime/uri").default',og.default=t,og}var pD;function ZZ(){return pD||(pD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=ab();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var o=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=$k(),n=nb(),r=tB(),i=Vk(),c=yt(),d=ob(),u=Yf(),m=Lt(),h=GZ,f=YZ(),v=(Q,M)=>new RegExp(Q,M);v.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),T={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},x={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function E(Q){var M,G,V,I,j,X,de,ue,Ce,qe,Z,ne,ve,ie,Te,_e,it,ct,Ge,at,Ne,Oe,He,Y,ae;const le=Q.strict,Ee=(M=Q.code)===null||M===void 0?void 0:M.optimize,Ae=Ee===!0||Ee===void 0?1:Ee||0,Re=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Ie=(I=Q.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Q.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(qe=(Ce=Q.strictTypes)!==null&&Ce!==void 0?Ce:le)!==null&&qe!==void 0?qe:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:le)!==null&&ie!==void 0?ie:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Re}:{optimize:Ae,regExp:Re},loopRequired:(Te=Q.loopRequired)!==null&&Te!==void 0?Te:k,loopEnum:(_e=Q.loopEnum)!==null&&_e!==void 0?_e:k,meta:(it=Q.meta)!==null&&it!==void 0?it:!0,messages:(ct=Q.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Q.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(at=Q.schemaId)!==null&&at!==void 0?at:"$id",addUsedSchema:(Ne=Q.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=Q.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Q.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Q.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(ae=Q.int32range)!==null&&ae!==void 0?ae:!0,uriResolver:Ie}}class C{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...E(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:S,es5:G,lines:V}),this.logger=z(M.logger);const I=M.validateFormats;M.validateFormats=!1,this.RULES=(0,r.getRules)(),P.call(this,T,M,"NOT SUPPORTED"),P.call(this,x,M,"DEPRECATED","warn"),this._metaOpts=U.call(this),M.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&L.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),R.call(this),M.validateFormats=I}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let I=h;V==="id"&&(I={...h},I.id=I.$id,delete I.$id),G&&M&&this.addMetaSchema(I,I[V],!1)}defaultMeta(){const{meta:M,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[G]||M:void 0}validate(M,G){let V;if(typeof M=="string"){if(V=this.getSchema(M),!V)throw new Error(`no schema with key or ref "${M}"`)}else V=this.compile(M);const I=V(G);return"$async"in V||(this.errors=V.errors),I}compile(M,G){const V=this._addSchema(M,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(M,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return I.call(this,M,G);async function I(qe,Z){await j.call(this,qe.$schema);const ne=this._addSchema(qe,Z);return ne.validate||X.call(this,ne)}async function j(qe){qe&&!this.getSchema(qe)&&await I.call(this,{$ref:qe},!0)}async function X(qe){try{return this._compileSchemaEnv(qe)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,qe)}}function de({missingSchema:qe,missingRef:Z}){if(this.refs[qe])throw new Error(`AnySchema ${qe} is loaded but ${Z} cannot be resolved`)}async function ue(qe){const Z=await Ce.call(this,qe);this.refs[qe]||await j.call(this,Z.$schema),this.refs[qe]||this.addSchema(Z,qe,G)}async function Ce(qe){const Z=this._loading[qe];if(Z)return Z;try{return await(this._loading[qe]=V(qe))}finally{delete this._loading[qe]}}}addSchema(M,G,V,I=this.opts.validateSchema){if(Array.isArray(M)){for(const X of M)this.addSchema(X,void 0,V,I);return this}let j;if(typeof M=="object"){const{schemaId:X}=this.opts;if(j=M[X],j!==void 0&&typeof j!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||j),this._checkUnique(G),this.schemas[G]=this._addSchema(M,V,G,I,!0),this}addMetaSchema(M,G,V=this.opts.validateSchema){return this.addSchema(M,G,!0,V),this}validateSchema(M,G){if(typeof M=="boolean")return!0;let V;if(V=M.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const I=this.validate(V,M);if(!I&&G){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return I}getSchema(M){let G;for(;typeof(G=D.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,I=new i.SchemaEnv({schema:{},schemaId:V});if(G=i.resolveSchema.call(this,I,M),!G)return;this.refs[M]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=D.call(this,M);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const G=M;this._cache.delete(G);let V=M[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const G of M)this.addKeyword(G);return this}addKeyword(M,G){let V;if(typeof M=="string")V=M,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof M=="object"&&G===void 0){if(G=M,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,V,G),!G)return(0,m.eachItem)(V,j=>oe.call(this,j)),this;K.call(this,G);const I={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,I.type.length===0?j=>oe.call(this,j,I):j=>I.type.forEach(X=>oe.call(this,j,I,X))),this}getKeyword(M){const G=this.RULES.all[M];return typeof G=="object"?G.definition:!!G}removeKeyword(M){const{RULES:G}=this;delete G.keywords[M],delete G.all[M];for(const V of G.rules){const I=V.rules.findIndex(j=>j.keyword===M);I>=0&&V.rules.splice(I,1)}return this}addFormat(M,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[M]=G,this}errorsText(M=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!M||M.length===0?"No errors":M.map(I=>`${V}${I.instancePath} ${I.message}`).reduce((I,j)=>I+G+j)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const I of G){const j=I.split("/").slice(1);let X=M;for(const de of j)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ce}=ue.definition,qe=X[de];Ce&&qe&&(X[de]=se(qe))}}return M}_removeAllSchemas(M,G){for(const V in M){const I=M[V];(!G||G.test(V))&&(typeof I=="string"?delete M[V]:I&&!I.meta&&(this._cache.delete(I.schema),delete M[V]))}}_addSchema(M,G,V,I=this.opts.validateSchema,j=this.opts.addUsedSchema){let X;const{schemaId:de}=this.opts;if(typeof M=="object")X=M[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let ue=this._cache.get(M);if(ue!==void 0)return ue;V=(0,d.normalizeId)(X||V);const Ce=d.getSchemaRefs.call(this,M,V);return ue=new i.SchemaEnv({schema:M,schemaId:de,meta:G,baseId:V,localRefs:Ce}),this._cache.set(ue.schema,ue),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),I&&this.validateSchema(M,!0),ue}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):i.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const G=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,M)}finally{this.opts=G}}}C.ValidationError=a.default,C.MissingRefError=n.default,t.default=C;function P(Q,M,G,V="error"){for(const I in Q){const j=I;j in M&&this.logger[V](`${G}: option ${I}. ${Q[j]}`)}}function D(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function R(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const M in Q)this.addSchema(Q[M],M)}function O(){for(const Q in this.opts.formats){const M=this.opts.formats[Q];M&&this.addFormat(Q,M)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in Q){const G=Q[M];G.keyword||(G.keyword=M),this.addKeyword(G)}}function U(){const Q={...this.opts};for(const M of y)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function z(Q){if(Q===!1)return B;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,M){const{RULES:G}=this;if((0,m.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function oe(Q,M,G){var V;const I=M?.post;if(G&&I)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let X=I?j.post:j.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},j.rules.push(X)),j.keywords[Q]=!0,!M)return;const de={keyword:Q,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?H.call(this,X,de,M.before):X.rules.push(de),j.all[Q]=de,(V=M.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Q,M,G){const V=Q.rules.findIndex(I=>I.keyword===G);V>=0?Q.rules.splice(V,0,M):(Q.rules.push(M),this.logger.warn(`rule ${G} is not defined`))}function K(Q){let{metaSchema:M}=Q;M!==void 0&&(Q.$data&&this.opts.$data&&(M=se(M)),Q.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(Q){return{anyOf:[Q,J]}}})(hw)),hw}var ag={},ng={},rg={},mD;function QZ(){if(mD)return rg;mD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return rg.default=t,rg}var gi={},hD;function JZ(){if(hD)return gi;hD=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.callRef=gi.getValidate=void 0;const t=nb(),e=Dr(),o=yt(),a=Zi(),n=Vk(),r=Lt(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:y,validateName:S,opts:T,self:x}=f,{root:k}=y;if((h==="#"||h==="#/")&&v===k.baseId)return C();const E=n.resolveRef.call(x,k,v,h);if(E===void 0)throw new t.default(f.opts.uriResolver,v,h);if(E instanceof n.SchemaEnv)return P(E);return D(E);function C(){if(y===k)return d(u,S,y,y.$async);const R=m.scopeValue("root",{ref:k});return d(u,(0,o._)`${R}.validate`,k,k.$async)}function P(R){const O=c(u,R);d(u,O,R,R.$async)}function D(R){const O=m.scopeValue("schema",T.code.source===!0?{ref:R,code:(0,o.stringify)(R)}:{ref:R}),L=m.name("valid"),U=u.subschema({schema:R,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(U),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,o._)`${h.scopeValue("wrapper",{ref:m})}.validate`}gi.getValidate=c;function d(u,m,h,f){const{gen:v,it:y}=u,{allErrors:S,schemaEnv:T,opts:x}=y,k=x.passContext?a.default.this:o.nil;f?E():C();function E(){if(!T.$async)throw new Error("async schema referenced by sync schema");const R=v.let("valid");v.try(()=>{v.code((0,o._)`await ${(0,e.callValidateCode)(u,m,k)}`),D(m),S||v.assign(R,!0)},O=>{v.if((0,o._)`!(${O} instanceof ${y.ValidationError})`,()=>v.throw(O)),P(O),S||v.assign(R,!1)}),u.ok(R)}function C(){u.result((0,e.callValidateCode)(u,m,k),()=>D(m),()=>P(m))}function P(R){const O=(0,o._)`${R}.errors`;v.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${O} : ${a.default.vErrors}.concat(${O})`),v.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function D(R){var O;if(!y.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(y.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(y.props=r.mergeEvaluated.props(v,L.props,y.props));else{const U=v.var("props",(0,o._)`${R}.evaluated.props`);y.props=r.mergeEvaluated.props(v,U,y.props,o.Name)}if(y.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(y.items=r.mergeEvaluated.items(v,L.items,y.items));else{const U=v.var("items",(0,o._)`${R}.evaluated.items`);y.items=r.mergeEvaluated.items(v,U,y.items,o.Name)}}}return gi.callRef=d,gi.default=i,gi}var gD;function XZ(){if(gD)return ng;gD=1,Object.defineProperty(ng,"__esModule",{value:!0});const t=QZ(),e=JZ(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return ng.default=o,ng}var sg={},ig={},fD;function eQ(){if(fD)return ig;fD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t=yt(),e=t.operators,o={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},a={message:({keyword:r,schemaCode:i})=>(0,t.str)`must be ${o[r].okStr} ${i}`,params:({keyword:r,schemaCode:i})=>(0,t._)`{comparison: ${o[r].okStr}, limit: ${i}}`},n={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(r){const{keyword:i,data:c,schemaCode:d}=r;r.fail$data((0,t._)`${c} ${o[i].fail} ${d} || isNaN(${c})`)}};return ig.default=n,ig}var lg={},vD;function tQ(){if(vD)return lg;vD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=yt(),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,t._)`{multipleOf: ${a}}`},code(a){const{gen:n,data:r,schemaCode:i,it:c}=a,d=c.opts.multipleOfPrecision,u=n.let("res"),m=d?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,t._)`${u} !== parseInt(${u})`;a.fail$data((0,t._)`(${i} === 0 || (${u} = ${r}/${i}, ${m}))`)}};return lg.default=o,lg}var cg={},dg={},bD;function oQ(){if(bD)return dg;bD=1,Object.defineProperty(dg,"__esModule",{value:!0});function t(e){const o=e.length;let a=0,n=0,r;for(;n<o;)a++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<o&&(r=e.charCodeAt(n),(r&64512)===56320&&n++);return a}return dg.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',dg}var yD;function aQ(){if(yD)return cg;yD=1,Object.defineProperty(cg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=oQ(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const c=r==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${c} than ${i} characters`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},code(r){const{keyword:i,data:c,schemaCode:d,it:u}=r,m=i==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${c}.length`:(0,t._)`${(0,e.useFunc)(r.gen,o.default)}(${c})`;r.fail$data((0,t._)`${h} ${m} ${d}`)}};return cg.default=n,cg}var ug={},SD;function nQ(){if(SD)return ug;SD=1,Object.defineProperty(ug,"__esModule",{value:!0});const t=Dr(),e=Lt(),o=yt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,o.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,o._)`{pattern: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r,f=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,y=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,e.useFunc)(i,v),S=i.let("valid");i.try(()=>i.assign(S,(0,o._)`${y}(${m}, ${f}).test(${c})`),()=>i.assign(S,!1)),r.fail$data((0,o._)`!${S}`)}else{const v=(0,t.usePattern)(r,u);r.fail$data((0,o._)`!${v}.test(${c})`)}}};return ug.default=n,ug}var pg={},wD;function rQ(){if(wD)return pg;wD=1,Object.defineProperty(pg,"__esModule",{value:!0});const t=yt(),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxProperties"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`Object.keys(${r}).length ${c} ${i}`)}};return pg.default=o,pg}var mg={},xD;function sQ(){if(xD)return mg;xD=1,Object.defineProperty(mg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Lt(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,e.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,e._)`{missingProperty: ${r}}`},code(r){const{gen:i,schema:c,schemaCode:d,data:u,$data:m,it:h}=r,{opts:f}=h;if(!m&&c.length===0)return;const v=c.length>=f.loopRequired;if(h.allErrors?y():S(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:E}=r.it;for(const C of c)if(k?.[C]===void 0&&!E.has(C)){const P=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${C}" is not defined at "${P}" (strictRequired)`;(0,o.checkStrictMode)(h,D,h.opts.strictRequired)}}function y(){if(v||m)r.block$data(e.nil,T);else for(const k of c)(0,t.checkReportMissingProp)(r,k)}function S(){const k=i.let("missing");if(v||m){const E=i.let("valid",!0);r.block$data(E,()=>x(k,E)),r.ok(E)}else i.if((0,t.checkMissingProp)(r,c,k)),(0,t.reportMissingProp)(r,k),i.else()}function T(){i.forOf("prop",d,k=>{r.setParams({missingProperty:k}),i.if((0,t.noPropertyInData)(i,u,k,f.ownProperties),()=>r.error())})}function x(k,E){r.setParams({missingProperty:k}),i.forOf(k,d,()=>{i.assign(E,(0,t.propertyInData)(i,u,k,f.ownProperties)),i.if((0,e.not)(E),()=>{r.error(),i.break()})},e.nil)}}};return mg.default=n,mg}var hg={},TD;function iQ(){if(TD)return hg;TD=1,Object.defineProperty(hg,"__esModule",{value:!0});const t=yt(),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:n}){const r=a==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:a})=>(0,t._)`{limit: ${a}}`},code(a){const{keyword:n,data:r,schemaCode:i}=a,c=n==="maxItems"?t.operators.GT:t.operators.LT;a.fail$data((0,t._)`${r}.length ${c} ${i}`)}};return hg.default=o,hg}var gg={},fg={},kD;function Hk(){if(kD)return fg;kD=1,Object.defineProperty(fg,"__esModule",{value:!0});const t=aB();return t.code='require("ajv/dist/runtime/equal").default',fg.default=t,fg}var CD;function lQ(){if(CD)return gg;CD=1,Object.defineProperty(gg,"__esModule",{value:!0});const t=Yf(),e=yt(),o=Lt(),a=Hk(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:c}})=>(0,e.str)`must NOT have duplicate items (items ## ${c} and ${i} are identical)`,params:({params:{i,j:c}})=>(0,e._)`{i: ${i}, j: ${c}}`},code(i){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:v}=i;if(!u&&!m)return;const y=c.let("valid"),S=h.items?(0,t.getSchemaTypes)(h.items):[];i.block$data(y,T,(0,e._)`${f} === false`),i.ok(y);function T(){const C=c.let("i",(0,e._)`${d}.length`),P=c.let("j");i.setParams({i:C,j:P}),c.assign(y,!0),c.if((0,e._)`${C} > 1`,()=>(x()?k:E)(C,P))}function x(){return S.length>0&&!S.some(C=>C==="object"||C==="array")}function k(C,P){const D=c.name("item"),R=(0,t.checkDataTypes)(S,D,v.opts.strictNumbers,t.DataType.Wrong),O=c.const("indices",(0,e._)`{}`);c.for((0,e._)`;${C}--;`,()=>{c.let(D,(0,e._)`${d}[${C}]`),c.if(R,(0,e._)`continue`),S.length>1&&c.if((0,e._)`typeof ${D} == "string"`,(0,e._)`${D} += "_"`),c.if((0,e._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(P,(0,e._)`${O}[${D}]`),i.error(),c.assign(y,!1).break()}).code((0,e._)`${O}[${D}] = ${C}`)})}function E(C,P){const D=(0,o.useFunc)(c,a.default),R=c.name("outer");c.label(R).for((0,e._)`;${C}--;`,()=>c.for((0,e._)`${P} = ${C}; ${P}--;`,()=>c.if((0,e._)`${D}(${d}[${C}], ${d}[${P}])`,()=>{i.error(),c.assign(y,!1).break(R)})))}}};return gg.default=r,gg}var vg={},ED;function cQ(){if(ED)return vg;ED=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Hk(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,t._)`{allowedValue: ${r}}`},code(r){const{gen:i,data:c,$data:d,schemaCode:u,schema:m}=r;d||m&&typeof m=="object"?r.fail$data((0,t._)`!${(0,e.useFunc)(i,o.default)}(${c}, ${u})`):r.fail((0,t._)`${m} !== ${c}`)}};return vg.default=n,vg}var bg={},_D;function dQ(){if(_D)return bg;_D=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Hk(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,t._)`{allowedValues: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r;if(!d&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let v;const y=()=>v??(v=(0,e.useFunc)(i,o.default));let S;if(f||d)S=i.let("valid"),r.block$data(S,T);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const k=i.const("vSchema",m);S=(0,t.or)(...u.map((E,C)=>x(k,C)))}r.pass(S);function T(){i.assign(S,!1),i.forOf("v",m,k=>i.if((0,t._)`${y()}(${c}, ${k})`,()=>i.assign(S,!0).break()))}function x(k,E){const C=u[E];return typeof C=="object"&&C!==null?(0,t._)`${y()}(${c}, ${k}[${E}])`:(0,t._)`${c} === ${C}`}}};return bg.default=n,bg}var PD;function uQ(){if(PD)return sg;PD=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=eQ(),e=tQ(),o=aQ(),a=nQ(),n=rQ(),r=sQ(),i=iQ(),c=lQ(),d=cQ(),u=dQ(),m=[t.default,e.default,o.default,a.default,n.default,r.default,i.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,u.default];return sg.default=m,sg}var yg={},Uc={},AD;function rB(){if(AD)return Uc;AD=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.validateAdditionalItems=void 0;const t=yt(),e=Lt(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,t.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,t._)`{limit: ${r}}`},code(r){const{parentSchema:i,it:c}=r,{items:d}=i;if(!Array.isArray(d)){(0,e.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(r,d)}};function n(r,i){const{gen:c,schema:d,data:u,keyword:m,it:h}=r;h.items=!0;const f=c.const("len",(0,t._)`${u}.length`);if(d===!1)r.setParams({len:i.length}),r.pass((0,t._)`${f} <= ${i.length}`);else if(typeof d=="object"&&!(0,e.alwaysValidSchema)(h,d)){const y=c.var("valid",(0,t._)`${f} <= ${i.length}`);c.if((0,t.not)(y),()=>v(y)),r.ok(y)}function v(y){c.forRange("i",i.length,f,S=>{r.subschema({keyword:m,dataProp:S,dataPropType:e.Type.Num},y),h.allErrors||c.if((0,t.not)(y),()=>c.break())})}}return Uc.validateAdditionalItems=n,Uc.default=a,Uc}var Sg={},$c={},RD;function sB(){if(RD)return $c;RD=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.validateTuple=void 0;const t=yt(),e=Lt(),o=Dr(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:i,it:c}=r;if(Array.isArray(i))return n(r,"additionalItems",i);c.items=!0,!(0,e.alwaysValidSchema)(c,i)&&r.ok((0,o.validateArray)(r))}};function n(r,i,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;S(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(d,c.length,f.items));const v=d.name("valid"),y=d.const("len",(0,t._)`${m}.length`);c.forEach((T,x)=>{(0,e.alwaysValidSchema)(f,T)||(d.if((0,t._)`${y} > ${x}`,()=>r.subschema({keyword:h,schemaProp:x,dataProp:x},v)),r.ok(v))});function S(T){const{opts:x,errSchemaPath:k}=f,E=c.length,C=E===T.minItems&&(E===T.maxItems||T[i]===!1);if(x.strictTuples&&!C){const P=`"${h}" is ${E}-tuple, but minItems or maxItems/${i} are not specified or different at path "${k}"`;(0,e.checkStrictMode)(f,P,x.strictTuples)}}}return $c.validateTuple=n,$c.default=a,$c}var DD;function pQ(){if(DD)return Sg;DD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=sB(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,t.validateTuple)(o,"items")};return Sg.default=e,Sg}var wg={},OD;function mQ(){if(OD)return wg;OD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Dr(),a=rB(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{schema:c,parentSchema:d,it:u}=i,{prefixItems:m}=d;u.items=!0,!(0,e.alwaysValidSchema)(u,c)&&(m?(0,a.validateAdditionalItems)(i,m):i.ok((0,o.validateArray)(i)))}};return wg.default=r,wg}var xg={},ND;function hQ(){if(ND)return xg;ND=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,t.str)`must contain at least ${n} valid item(s)`:(0,t.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,t._)`{minContains: ${n}}`:(0,t._)`{minContains: ${n}, maxContains: ${r}}`},code(n){const{gen:r,schema:i,parentSchema:c,data:d,it:u}=n;let m,h;const{minContains:f,maxContains:v}=c;u.opts.next?(m=f===void 0?1:f,h=v):m=1;const y=r.const("len",(0,t._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,e.alwaysValidSchema)(u,i)){let E=(0,t._)`${y} >= ${m}`;h!==void 0&&(E=(0,t._)`${E} && ${y} <= ${h}`),n.pass(E);return}u.items=!0;const S=r.name("valid");h===void 0&&m===1?x(S,()=>r.if(S,()=>r.break())):m===0?(r.let(S,!0),h!==void 0&&r.if((0,t._)`${d}.length > 0`,T)):(r.let(S,!1),T()),n.result(S,()=>n.reset());function T(){const E=r.name("_valid"),C=r.let("count",0);x(E,()=>r.if(E,()=>k(C)))}function x(E,C){r.forRange("i",0,y,P=>{n.subschema({keyword:"contains",dataProp:P,dataPropType:e.Type.Num,compositeRule:!0},E),C()})}function k(E){r.code((0,t._)`${E}++`),h===void 0?r.if((0,t._)`${E} >= ${m}`,()=>r.assign(S,!0).break()):(r.if((0,t._)`${E} > ${h}`,()=>r.assign(S,!1).break()),m===1?r.assign(S,!0):r.if((0,t._)`${E} >= ${m}`,()=>r.assign(S,!0)))}}};return xg.default=a,xg}var Tw={},MD;function gQ(){return MD||(MD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=yt(),o=Lt(),a=Dr();t.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,e._)`{property: ${d},
53
53
  missingProperty: ${h},
54
54
  depsCount: ${u},
55
- deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const y in u){const S=u[y];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(T,()=>{for(const x of S)(0,a.checkReportMissingProp)(d,x)}):(m.if((0,e._)`${T} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,y=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const T=d.subschema({keyword:f,schemaProp:S},y);d.mergeValidEvaluated(T,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(Tw)),Tw}var Tg={},ID;function fQ(){if(ID)return Tg;ID=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Tg.default=a,Tg}var kg={},LD;function iB(){if(LD)return kg;LD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Zi(),a=Lt(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),T=(0,t.allSchemaProperties)(u.patternProperties);x(),i.ok((0,e._)`${h} === ${o.default.errors}`);function x(){c.forIn("key",m,D=>{!S.length&&!T.length?C(D):c.if(k(D),()=>C(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return T.length&&(R=(0,e.or)(R,...T.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function E(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){E(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),E(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return kg.default=r,kg}var Cg={},BD;function vQ(){if(BD)return Cg;BD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=ab(),e=Dr(),o=Lt(),a=iB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const T of h)m.definedProperties.add(T);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(T=>!(0,o.alwaysValidSchema)(m,c[T]));if(f.length===0)return;const v=i.name("valid");for(const T of f)y(T)?S(T):(i.if((0,e.propertyInData)(i,u,T,m.opts.ownProperties)),S(T),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(T),r.ok(v);function y(T){return m.opts.useDefaults&&!m.compositeRule&&c[T].default!==void 0}function S(T){r.subschema({keyword:"properties",schemaProp:T,dataProp:T},v)}}};return Cg.default=n,Cg}var Eg={},FD;function bQ(){if(FD)return Eg;FD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Lt(),a=Lt(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(C=>(0,o.alwaysValidSchema)(m,c[C]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:T}=m;x();function x(){for(const C of f)y&&k(C),m.allErrors?E(C):(i.var(S,!0),E(C),i.if(S))}function k(C){for(const P in y)new RegExp(C).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${C} (use allowMatchingProperties)`)}function E(C){i.forIn("key",d,P=>{i.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${P})`,()=>{const D=v.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:P,dataPropType:a.Type.Str},S),m.opts.unevaluated&&T!==!0?i.assign((0,e._)`${T}[${P}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(S),()=>i.break())})})}}};return Eg.default=n,Eg}var _g={},jD;function yQ(){if(jD)return _g;jD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=Lt(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return _g.default=e,_g}var Pg={},zD;function SQ(){if(zD)return Pg;zD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Pg.default=e,Pg}var Ag={},qD;function wQ(){if(qD)return Ag;qD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((y,S)=>{let T;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):T=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),T&&n.mergeEvaluated(T,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},UD;function xQ(){if(UD)return Rg;UD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Lt(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},$D;function TQ(){if($D)return Dg;$D=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const S=i.let("ifClause");r.setParams({ifClause:S}),i.if(f,y("then",S),y("else",S))}else u?i.if(f,y("then")):i.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function y(S,T){return()=>{const x=r.subschema({keyword:S},f);i.assign(h,f),r.mergeValidEvaluated(x,h),T?i.assign(T,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},VD;function kQ(){if(VD)return Og;VD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Lt(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var HD;function CQ(){if(HD)return yg;HD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=rB(),e=pQ(),o=sB(),a=mQ(),n=hQ(),r=gQ(),i=fQ(),c=iB(),d=vQ(),u=bQ(),m=yQ(),h=SQ(),f=wQ(),v=xQ(),y=TQ(),S=kQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,y.default,S.default,i.default,c.default,r.default,d.default,u.default];return x?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=T,yg}var Ng={},Mg={},GD;function EQ(){if(GD)return Mg;GD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:y}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),E=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(E,(0,t._)`${k}.type || "string"`).assign(C,(0,t._)`${k}.validate`),()=>r.assign(E,(0,t._)`"string"`).assign(C,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${C}(${i}) : ${C}(${i}))`:(0,t._)`${C}(${i})`,O=(0,t._)`(typeof ${C} == "function" ? ${R} : ${C}.test(${i}))`;return(0,t._)`${C} && ${C} !== true && ${E} === ${n} && !${O}`}}function T(){const x=y.formats[d];if(!x){P();return}if(x===!0)return;const[k,E,C]=D(x);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${U}.validate`]:["string",O,U]}function R(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${i})`}return typeof E=="function"?(0,t._)`${C}(${i})`:(0,t._)`${C}.test(${i})`}}}};return Mg.default=o,Mg}var WD;function _Q(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[EQ().default];return Ng.default=e,Ng}var Sl={},KD;function PQ(){return KD||(KD=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var YD;function AQ(){if(YD)return ag;YD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=XZ(),e=uQ(),o=CQ(),a=_Q(),n=PQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},ZD;function RQ(){if(ZD)return Yu;ZD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var QD;function DQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=yt(),e=RQ(),o=Vk(),a=nb(),n=Lt(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),T=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:y})),c.ok(S);function x(){const C=E();d.if(!1);for(const P in C)d.elseIf((0,t._)`${T} === ${P}`),d.assign(S,k(C[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:y}),d.endIf()}function k(C){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},P);return c.mergeEvaluated(D,t.Name),P}function E(){var C;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(C=z?.properties)===null||C===void 0?void 0:C[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${y}" values must be unique strings`);P[B]=z}}}};return Ig.default=i,Ig}const OQ="http://json-schema.org/draft-07/schema#",NQ="http://json-schema.org/draft-07/schema#",MQ="Core schema meta-schema",IQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},LQ=["object","boolean"],BQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},FQ={$schema:OQ,$id:NQ,title:MQ,definitions:IQ,type:LQ,properties:BQ,default:!0};var JD;function jQ(){return JD||(JD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=ZZ(),a=AQ(),n=DQ(),r=FQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ab();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=$k();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=nb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},kw={},XD;function zQ(){return XD||(XD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:x,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:U,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:E,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,T=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function x(B){return S.test(B)&&T.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function E(B){return k.lastIndex=0,k.test(B)}const C=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(kw)),kw}var Cw={},eO;function qQ(){return eO||(eO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=jQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:y}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");S.$data?T():x();function T(){const E=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),C=d.const("fmt",(0,o._)`${E}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${C} != "object"`,(0,o._)`${C} instanceof RegExp`,(0,o._)`typeof ${C}.compare != "function"`,k(C)))}function x(){const E=S.schema,C=y.formats[E];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${E}" does not define "compare" function`);const P=d.scopeValue("formats",{key:E,ref:C,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(E)}`:void 0});c.fail$data(k(P))}function k(E){return(0,o._)`${E}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Cw)),Cw}var tO;function UQ(){return tO||(tO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=zQ(),a=qQ(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,y;(v=(y=u.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var $Q=UQ();const Vxe=Gl($Q);function VQ({studioUrl:t,meshUrl:e},o){return t??e??o}let Gk;Gk=globalThis.crypto;async function HQ(t){return(await Gk).getRandomValues(new Uint8Array(t))}async function GQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await HQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function WQ(t){return await GQ(t)}async function KQ(t){const e=await(await Gk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Hxe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await WQ(t),o=await KQ(e);return{code_verifier:e,code_challenge:o}}const Ea=hL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:KW.custom,message:"URL must be parseable",fatal:!0}),e7}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Gxe=_a({resource:$().url(),authorization_servers:je(Ea).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),YQ=_a({issuer:$(),authorization_endpoint:Ea,token_endpoint:Ea,registration_endpoint:Ea.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Ea.optional(),revocation_endpoint:Ea.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),ZQ=_a({issuer:$(),authorization_endpoint:Ea,token_endpoint:Ea,userinfo_endpoint:Ea.optional(),jwks_uri:Ea,registration_endpoint:Ea.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ea.optional(),op_tos_uri:Ea.optional(),client_id_metadata_document_supported:Vt().optional()}),Wxe=we({...ZQ.shape,...YQ.pick({code_challenge_methods_supported:!0}).shape}),Kxe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:xL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Yxe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),oO=Ea.optional().or(Ze("").transform(()=>{})),QQ=we({redirect_uris:je(Ea),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ea.optional(),logo_uri:oO,scope:$().optional(),contacts:je($()).optional(),tos_uri:oO,policy_uri:$().optional(),jwks_uri:Ea.optional(),jwks:SW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),JQ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),Zxe=QQ.merge(JQ);we({error:$(),error_description:$().optional()}).strip();we({token:$(),token_type_hint:$().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class mT extends Oa{}mT.errorCode="invalid_request";class hT extends Oa{}hT.errorCode="invalid_client";class gT extends Oa{}gT.errorCode="invalid_grant";class fT extends Oa{}fT.errorCode="unauthorized_client";class vT extends Oa{}vT.errorCode="unsupported_grant_type";class bT extends Oa{}bT.errorCode="invalid_scope";class yT extends Oa{}yT.errorCode="access_denied";class ST extends Oa{}ST.errorCode="server_error";class wT extends Oa{}wT.errorCode="temporarily_unavailable";class xT extends Oa{}xT.errorCode="unsupported_response_type";class TT extends Oa{}TT.errorCode="unsupported_token_type";class kT extends Oa{}kT.errorCode="invalid_token";class CT extends Oa{}CT.errorCode="method_not_allowed";class ET extends Oa{}ET.errorCode="too_many_requests";class _T extends Oa{}_T.errorCode="invalid_client_metadata";class PT extends Oa{}PT.errorCode="insufficient_scope";class AT extends Oa{}AT.errorCode="invalid_target";const Qxe={[mT.errorCode]:mT,[hT.errorCode]:hT,[gT.errorCode]:gT,[fT.errorCode]:fT,[vT.errorCode]:vT,[bT.errorCode]:bT,[yT.errorCode]:yT,[ST.errorCode]:ST,[wT.errorCode]:wT,[xT.errorCode]:xT,[TT.errorCode]:TT,[kT.errorCode]:kT,[CT.errorCode]:CT,[ET.errorCode]:ET,[_T.errorCode]:_T,[PT.errorCode]:PT,[AT.errorCode]:AT};async function lB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof eb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function XQ(t,e){return await t.readResource({uri:e})}function Jxe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Wi(c)}function Xxe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function eTe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ca.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>XQ(o,n),e[7]=o,e[8]=n,e[9]=i):i=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==i||e[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Wi(d)}const cB="ui-resource-html";function tTe(t){const e=ye.c(22);let o,a,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const v=`${VQ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(v,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Wi(h)}const dB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Zf extends Error{constructor(e,o,a,n){super(e),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function uB(t){return t instanceof Zf&&Object.values(dB).includes(t.code??"")?t.code:null}const eJ=6e4;function tJ(t){return!(t instanceof Zf)||t.status!==429?null:t.retryAfterMs??eJ}function oJ(t,e){if(typeof e=="object"&&e!==null&&"retryAfterMs"in e&&typeof e.retryAfterMs=="number"&&Number.isFinite(e.retryAfterMs))return Math.max(0,e.retryAfterMs);const o=t.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function aJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Zf(n,a.status,r,a.status===429?oJ(a,i):void 0)}try{return await a.json()}catch{throw new Zf(`${e} returned a non-JSON response`,a.status)}}function Wk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>aJ(o,r,i),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function nJ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const rJ="studio-ui-resources",Qf="html",sJ=10080*60*1e3,iJ=50,lJ=16*1024*1024;function cJ(t){return t[0]==="mcp"&&t[1]===cB}function rb(){return new Promise((t,e)=>{const o=indexedDB.open(rJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Qf)||o.result.createObjectStore(Qf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Qf,e).objectStore(Qf)}function RT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function dJ(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=Ld(e,"readonly"),a=await RT(o.getAllKeys()),n=await RT(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>sJ||d>=iJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function uJ(t){if(typeof indexedDB>"u")return()=>{};const e=rb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!cJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>lJ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function pJ(){typeof indexedDB>"u"||rb().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function oTe(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=await RT(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===cB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Jf="studio:rq-cache",Kk=1440*60*1e3,mJ=1e3,hJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),gJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let pB=!1,mB=!1;function fJ(t){const e=t[0];return typeof e=="string"&&hJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&gJ.has(t[4])}function vJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Jf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Kk;if(o.buster!=="4.574.8"||a||!o.state){window.localStorage.removeItem(Jf);return}DV(t,o.state),t.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),pB=!0}catch{TJ()}}function bJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=RV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&fJ(i.queryKey)});window.localStorage.setItem(Jf,JSON.stringify({buster:"4.574.8",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,mJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const hB="studio:org-cache:",yJ=20;function SJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Kk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>yJ;)o.shift();return Object.fromEntries(o)}function gB(t){return`${hB}${t}`}function wJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Kk?null:(mB=!0,a)}catch{return null}}function xJ(t,e,o){if(!(typeof window>"u"))try{const a=gB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(SJ(r)))}catch{}}function TJ(){if(pJ(),!(typeof window>"u"))try{window.localStorage.removeItem(Jf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(hB)&&window.localStorage.removeItem(e)}}catch{}}function kJ(){return pB}function CJ(){return mB}function aO(t){const e=uB(t);if(!e)return;const o=e===dB.aiBudgetExhausted?Xf.budget||"This organization's AI allowance is used up.":Xf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Xf={feature:"",budget:""},Yl=new UV({queryCache:new iI({onError:aO}),mutationCache:new sI({onError:aO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>uB(e)===null&&tJ(e)===null&&t<1,gcTime:300*1e3}}});nJ(Yl);vJ(Yl);bJ(Yl);dJ(Yl);uJ(Yl);const Yk=5*6e4;async function fB(){return(await(await fetch("/api/config")).json()).config}function vB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function aTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0],Gi(e).data}const bB=A.createContext(void 0);function EJ(t){const e=ye.c(3),{children:o}=t,a=vB();let n;return e[0]!==o||e[1]!==a.auth?(n=b.jsx(bB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function nTe(){const t=A.useContext(bB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var _J={},nO={};const bf=Object.create(null),Zu=t=>_J||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Zo(t,e){return typeof process<"u"&&nO?nO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Hr=8,Nn=24,rO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Nn,putty:ma,st:ma,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},PJ=new Map(Object.entries({APPVEYOR:Hr,BUILDKITE:Hr,CIRCLECI:Nn,DRONE:Hr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Hr,TRAVIS:Hr})),AJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function RJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Hr;case"3":return Nn;default:return Qu}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return Qu;if(Zo("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of PJ)if(t in Xn)return e;return Zo("CI_NAME")==="codeship"?Hr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Hr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Hr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Nn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Hr;const t=Zo("TERM").toLowerCase();if(rO[t])return rO[t];if(AJ.some(e=>e.exec(t)!==null))return ma}return Zo("COLORTERM")?ma:Qu}const Gr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},DT=["debug","info","success","warn","error"];function DJ(t,e){return DT.indexOf(e)>=DT.indexOf(t)}const OJ={info:Gr.fg.blue,success:Gr.fg.green,warn:Gr.fg.yellow,error:Gr.fg.red,debug:Gr.fg.magenta},NJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Gr.dim}${a}${Gr.reset} ${OJ[t]}${t.toUpperCase()}${Gr.reset} ${Gr.bright}[Better Auth]:${Gr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},MJ=t=>{const e="warn",o=RJ()!==1,a=(n,r,i=[])=>{if(!DJ(e,n))return;const c=NJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(DT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};MJ();function IJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function LJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function BJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function Ew(t,e="/api/auth"){if(BJ(t),LJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function FJ(t,e,o,a,n){if(t)return Ew(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return Ew(r,e)}if(typeof window<"u"&&window.location)return Ew(window.location.origin,e)}const jJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},zJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},qJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,sO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},UJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function $J(t){return t instanceof Date&&!isNaN(t.getTime())}function VJ(t){const e=UJ.exec(t);if(!e)return null;const[,o,a,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return $J(f)?f:null}function HJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in sO)return sO[c];if(!qJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(zJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=VJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function GJ(t,e={strict:!0}){return HJ(t,e)}let fr=[],fi=0;const Bg=4,WJ=globalThis.nanostoresGlobal||={epoch:0},md=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){WJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,o.value,a,n);if(r){for(fi=0;fi<fr.length;fi+=Bg)fr[fi](fr[fi+1],fr[fi+2],fr[fi+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},KJ=5,Fg=6,jg=10;let YJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const ZJ=1e3;let yB=(t,e)=>YJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},KJ,a=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},ZJ)},()=>{t.listen=n,t.off=r}});function QJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const JJ=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=md({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{JJ()||(i?await r():yB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},_w=Symbol.for("better-auth:broadcast-channel"),XJ=()=>Math.floor(Date.now()/1e3);var eX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:XJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function Pw(t="better-auth.message"){return globalThis[_w]||(globalThis[_w]=new eX(t)),globalThis[_w]}const Aw=Symbol.for("better-auth:focus-manager");var tX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function iO(){return globalThis[Aw]||(globalThis[Aw]=new tX),globalThis[Aw]}const Rw=Symbol.for("better-auth:online-manager");var oX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function Dw(){return globalThis[Rw]||(globalThis[Rw]=new oX),globalThis[Rw]}const Vc=()=>Math.floor(Date.now()/1e3),aX=5;function nX(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||Dw().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Vc(),o.set(!o.get());return}const E=e.get();if(k?.event==="poll"){d.lastSessionRequest=Vc(),a("/get-session").then(C=>{C.error?e.set({...E,data:null,error:C.error}):e.set({...E,data:C.data,error:null}),d.lastSync=Vc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Vc()-d.lastSessionRequest<aX)return;d.lastSessionRequest=Vc()}(E?.data===null||E?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Vc(),o.set(!o.get()))},h=k=>{Pw().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=Pw().subscribe(()=>{m({event:"storage"})})},y=()=>{i&&(d.unsubscribeFocus=iO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Dw().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),y(),S(),Pw().setup(),iO().setup(),Dw().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function rX(t,e){const o=md(!1),a=mp(o,"/get-session",t,{method:"GET"});return yB(a,()=>{const n=nX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Ow(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function OT(t,e,o=".",a){if(!Ow(e))return OT(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:Ow(i)&&Ow(n[r])?n[r]=OT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function sX(t){return(...e)=>e.reduce((o,a)=>OT(o,a,"",t),{})}const iX=sX();var lX=Object.defineProperty,cX=Object.defineProperties,dX=Object.getOwnPropertyDescriptors,lO=Object.getOwnPropertySymbols,uX=Object.prototype.hasOwnProperty,pX=Object.prototype.propertyIsEnumerable,cO=(t,e,o)=>e in t?lX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))uX.call(e,o)&&cO(t,o,e[o]);if(lO)for(var o of lO(e))pX.call(e,o)&&cO(t,o,e[o]);return t},Ur=(t,e)=>cX(t,dX(e)),mX=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},hX=async(t,e)=>{var o,a,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},dO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},gX=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function fX(t){if(typeof t=="number")return new dO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new dO(t);case"exponential":return new gX(t);default:throw new Error("Invalid retry strategy")}}var vX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},bX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return bX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function SX(t){try{return JSON.parse(t),!0}catch{return!1}}function NT(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function uO(t){try{return JSON.parse(t)}catch{return t}}function pO(t){return typeof t=="function"}function wX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&pO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&pO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function xX(t){const e=new Headers(t?.headers),o=await vX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=TX(t?.body);a&&e.set("content-type",a)}return e}function TX(t){return NT(t)?"application/json":null}function kX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(NT(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&NT(t.body)?new URLSearchParams(t.body).toString():t.body}function CX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return wB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function EX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var _X=class SB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,SB.prototype)}};async function yf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new _X(o.issues);return o.value}var wB=["get","post","put","patch","delete"],PX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,i;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await yf(u.input,o?.body):o?.body,params:u.params?await yf(u.params,o?.params):o?.params,query:u.query?await yf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),AX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],PX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await MT(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await MT(o,n)}return e};function RX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];wB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const y=a[f];i=i.replace(v,y)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var MT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await hX(t,e),v=wX(f),y=new AbortController,S=(o=f.signal)!=null?o:y.signal,T=RX(h,f),x=kX(f),k=await xX(f),E=CX(h,f);let C=Ur(Sr({},f),{url:T,headers:k,body:x,method:E,signal:S});for(const F of m.onRequest)if(F){const W=await F(C);typeof W=="object"&&W!==null&&(C=W)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:P}=EX(f,y);let D=await v(C.url,C);P();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const W=yX(D),oe={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:uO;oe.data=await K(H)}else oe.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(oe.data=await yf(C.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:uO,L=await D.text(),U=SX(L),B=U?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=fX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await MT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new mX(D.status,D.statusText,U?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const DX=(t,e)=>{const o="credentials"in Request.prototype,a=FJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=AX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?GJ(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[jJ],...n]}),{$sessionSignal:f,session:v}=rX(h,t),y=t?.plugins||[];let S={};const T={$sessionSignal:f,session:v},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of y)C.getAtoms&&Object.assign(T,C.getAtoms?.(h)),C.pathMethods&&Object.assign(x,C.pathMethods),C.atomListeners&&k.push(...C.atomListeners);const E={notify:C=>{T[C].set(!T[C].get())},listen:(C,P)=>{T[C].subscribe(P)},atoms:T};for(const C of y)C.getActions&&(S=iX(C.getActions?.(h,E,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:E}};function OX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function NX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function MX(t,e,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||OX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,E=>`-${E.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:y,...S}=h,T={...f,...y},x=NX(m,o,h);return await e(m,{...T,body:x==="GET"?void 0:{...S,...T?.body||{}},query:v||T?.query,method:x,async onSuccess(k){if(await T?.onSuccess?.(k),!n||T.disableSignal)return;const E=n.filter(P=>P.matcher(m));if(!E.length)return;const C=new Set;for(const P of E){const D=a[P.signal];if(!D)return;if(C.has(P.signal))continue;C.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function IX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?QJ(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function LX(t){return`use${IJ(t)}`}function BX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=DX(t),c={};for(const[d,u]of Object.entries(a))c[LX(d)]=()=>IX(u);return MX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function FX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function xB(t){return{newRole(e){return FX(e)},statements:t}}const jX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},TB=xB(jX),kB=TB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),CB=TB.newRole({user:[],session:[]}),zX={admin:kB,user:CB},qX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||zX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},UX=t=>{const e={admin:kB,user:CB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>qX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},$X=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),VX=()=>({id:"magic-link",$InferServerPlugin:{}}),HX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Zk=xB(HX),EB=Zk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),_B=Zk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PB=Zk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),GX={admin:EB,owner:_B,member:PB},WX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},KX=t=>WX(t,t.options.roles||GX),YX=t=>{const e=md(!1),o=md(!1),a=md(!1),n=md(!1),r={admin:EB,member:PB,owner:_B,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>KX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},ZX="1.6.11",QX=t=>({id:"sso-client",version:ZX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function JX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function Qk(t){return JX(t?.metadata).archived===!0}function AB(t){const e=new Set;return t.filter(o=>Qk(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const XX="Organization is archived",ga=BX({plugins:[YX({}),UX(),QX(),VX(),$X()]}),eee=8e3;let mO;function RB(){return mO??=new Promise(t=>{const e=setTimeout(t,eee);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),mO}const tee=we({data:we({user:we({id:$()})}).nullish()});function oee(){const t=tee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const aee=3e4;let hp=null,zg=null;function DB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:AB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+aee}),o}).finally(()=>{zg=null});return zg=t,t}function rTe(){const t=ga.useListOrganizations(),e=t.data?AB(t.data):void 0;return{...t,data:e}}function sTe(){hp=null}const nee="modulepreload",ree=function(t){return"/"+t},hO={},Fe=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(o.map(u=>{if(u=ree(u),u in hO)return;hO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":nee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,y)=>{f.addEventListener("load",v),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function see(t){try{return JSON.parse(t)}catch{return}}function gO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?see(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function iee(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let i,c;o[2]!==e||o[3]!==t?(i=()=>gO(t,e),c=()=>gO(t,e),o[2]=e,o[3]=t,o[4]=i,o[5]=c):(i=o[4],c=o[5]);let d;o[6]!==r||o[7]!==i||o[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=i,o[8]=c,o[9]=d):d=o[9];const{data:u}=Gi(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=y=>{const S=a.getQueryData(r),T=typeof y=="function"?y(S):y;if(typeof localStorage<"u")try{localStorage.setItem(t,JSON.stringify(T))}catch{}a.setQueryData(r,T)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Or={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},OB=["en","pt-BR"],iTe={en:"en-US","pt-BR":"pt-BR"};function Jk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const lee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Jk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},NB=["auto","readonly"],lTe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],cee=["light","dark","system"];function cTe(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(NB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function sb(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(OB.includes(t.language))return t.language}catch{}return Jk()}function dee(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function Xk(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Or.preferences(),t[0]=e):e=t[0],iee(e,uee)}function uee(t){const e={...lee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,NB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),cee.includes(e.theme)||(e.theme="system"),OB.includes(e.language)||(e.language=Jk()),e.taskBoardLaneVisibility=dee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const pee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},mee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},hee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.createdBy":"Created by","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsedLabel":"Last used","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
55
+ deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const v=m.let("missing");for(const y in u){const S=u[y];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),f.allErrors?m.if(T,()=>{for(const x of S)(0,a.checkReportMissingProp)(d,x)}):(m.if((0,e._)`${T} && (${(0,a.checkMissingProp)(d,S,v)})`),(0,a.reportMissingProp)(d,v),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,y=m.name("valid");for(const S in u)(0,o.alwaysValidSchema)(v,u[S])||(m.if((0,a.propertyInData)(m,h,S,v.opts.ownProperties),()=>{const T=d.subschema({keyword:f,schemaProp:S},y);d.mergeValidEvaluated(T,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(Tw)),Tw}var Tg={},ID;function fQ(){if(ID)return Tg;ID=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Tg.default=a,Tg}var kg={},LD;function iB(){if(LD)return kg;LD=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Zi(),a=Lt(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(f,d))return;const S=(0,t.allSchemaProperties)(u.properties),T=(0,t.allSchemaProperties)(u.patternProperties);x(),i.ok((0,e._)`${h} === ${o.default.errors}`);function x(){c.forIn("key",m,D=>{!S.length&&!T.length?C(D):c.if(k(D),()=>C(D))})}function k(D){let R;if(S.length>8){const O=(0,a.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else S.length?R=(0,e.or)(...S.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return T.length&&(R=(0,e.or)(R,...T.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function E(D){c.code((0,e._)`delete ${m}[${D}]`)}function C(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){E(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,a.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),E(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return kg.default=r,kg}var Cg={},BD;function vQ(){if(BD)return Cg;BD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=ab(),e=Dr(),o=Lt(),a=iB(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&a.default.code(new t.KeywordCxt(m,a.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const T of h)m.definedProperties.add(T);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=o.mergeEvaluated.props(i,(0,o.toHash)(h),m.props));const f=h.filter(T=>!(0,o.alwaysValidSchema)(m,c[T]));if(f.length===0)return;const v=i.name("valid");for(const T of f)y(T)?S(T):(i.if((0,e.propertyInData)(i,u,T,m.opts.ownProperties)),S(T),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(T),r.ok(v);function y(T){return m.opts.useDefaults&&!m.compositeRule&&c[T].default!==void 0}function S(T){r.subschema({keyword:"properties",schemaProp:T,dataProp:T},v)}}};return Cg.default=n,Cg}var Eg={},FD;function bQ(){if(FD)return Eg;FD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=Dr(),e=yt(),o=Lt(),a=Lt(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),v=f.filter(C=>(0,o.alwaysValidSchema)(m,c[C]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,S=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,a.evaluatedPropsToName)(i,m.props));const{props:T}=m;x();function x(){for(const C of f)y&&k(C),m.allErrors?E(C):(i.var(S,!0),E(C),i.if(S))}function k(C){for(const P in y)new RegExp(C).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${C} (use allowMatchingProperties)`)}function E(C){i.forIn("key",d,P=>{i.if((0,e._)`${(0,t.usePattern)(r,C)}.test(${P})`,()=>{const D=v.includes(C);D||r.subschema({keyword:"patternProperties",schemaProp:C,dataProp:P,dataPropType:a.Type.Str},S),m.opts.unevaluated&&T!==!0?i.assign((0,e._)`${T}[${P}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(S),()=>i.break())})})}}};return Eg.default=n,Eg}var _g={},jD;function yQ(){if(jD)return _g;jD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=Lt(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:a,schema:n,it:r}=o;if((0,t.alwaysValidSchema)(r,n)){o.fail();return}const i=a.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),o.failResult(i,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return _g.default=e,_g}var Pg={},zD;function SQ(){if(zD)return Pg;zD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Pg.default=e,Pg}var Ag={},qD;function wQ(){if(qD)return Ag;qD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((y,S)=>{let T;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):T=n.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},f),S>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${S}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,S),T&&n.mergeEvaluated(T,t.Name)})})}}};return Ag.default=a,Ag}var Rg={},UD;function xQ(){if(UD)return Rg;UD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Lt(),e={keyword:"allOf",schemaType:"array",code(o){const{gen:a,schema:n,it:r}=o;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=a.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=o.subschema({keyword:"allOf",schemaProp:d},i);o.ok(i),o.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},$D;function TQ(){if($D)return Dg;$D=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=yt(),e=Lt(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(v(),r.reset(),u&&m){const S=i.let("ifClause");r.setParams({ifClause:S}),i.if(f,y("then",S),y("else",S))}else u?i.if(f,y("then")):i.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function v(){const S=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(S)}function y(S,T){return()=>{const x=r.subschema({keyword:S},f);i.assign(h,f),r.mergeValidEvaluated(x,h),T?i.assign(T,(0,t._)`${S}`):r.setParams({ifClause:S})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=a,Dg}var Og={},VD;function kQ(){if(VD)return Og;VD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Lt(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:a,it:n}){a.if===void 0&&(0,t.checkStrictMode)(n,`"${o}" without "if" is ignored`)}};return Og.default=e,Og}var HD;function CQ(){if(HD)return yg;HD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=rB(),e=pQ(),o=sB(),a=mQ(),n=hQ(),r=gQ(),i=fQ(),c=iB(),d=vQ(),u=bQ(),m=yQ(),h=SQ(),f=wQ(),v=xQ(),y=TQ(),S=kQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,y.default,S.default,i.default,c.default,r.default,d.default,u.default];return x?k.push(e.default,a.default):k.push(t.default,o.default),k.push(n.default),k}return yg.default=T,yg}var Ng={},Mg={},GD;function EQ(){if(GD)return Mg;GD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=yt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,t._)`{format: ${a}}`},code(a,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=a,{opts:h,errSchemaPath:f,schemaEnv:v,self:y}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),E=r.let("fType"),C=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(E,(0,t._)`${k}.type || "string"`).assign(C,(0,t._)`${k}.validate`),()=>r.assign(E,(0,t._)`"string"`).assign(C,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${C}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${C}(${i}) : ${C}(${i}))`:(0,t._)`${C}(${i})`,O=(0,t._)`(typeof ${C} == "function" ? ${R} : ${C}.test(${i}))`;return(0,t._)`${C} && ${C} !== true && ${E} === ${n} && !${O}`}}function T(){const x=y.formats[d];if(!x){P();return}if(x===!0)return;const[k,E,C]=D(x);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${U}.validate`]:["string",O,U]}function R(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!v.$async)throw new Error("async format in sync schema");return(0,t._)`await ${C}(${i})`}return typeof E=="function"?(0,t._)`${C}(${i})`:(0,t._)`${C}.test(${i})`}}}};return Mg.default=o,Mg}var WD;function _Q(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[EQ().default];return Ng.default=e,Ng}var Sl={},KD;function PQ(){return KD||(KD=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.contentVocabulary=Sl.metadataVocabulary=void 0,Sl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Sl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Sl}var YD;function AQ(){if(YD)return ag;YD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=XZ(),e=uQ(),o=CQ(),a=_Q(),n=PQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return ag.default=r,ag}var Ig={},Yu={},ZD;function RQ(){if(ZD)return Yu;ZD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var QD;function DQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=yt(),e=RQ(),o=Vk(),a=nb(),n=Lt(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),T=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:y})),c.ok(S);function x(){const C=E();d.if(!1);for(const P in C)d.elseIf((0,t._)`${T} === ${P}`),d.assign(S,k(C[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:y}),d.endIf()}function k(C){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:C},P);return c.mergeEvaluated(D,t.Name),P}function E(){var C;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof o.SchemaEnv&&(z=z.schema),z===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(C=z?.properties)===null||C===void 0?void 0:C[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${y}" values must be unique strings`);P[B]=z}}}};return Ig.default=i,Ig}const OQ="http://json-schema.org/draft-07/schema#",NQ="http://json-schema.org/draft-07/schema#",MQ="Core schema meta-schema",IQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},LQ=["object","boolean"],BQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},FQ={$schema:OQ,$id:NQ,title:MQ,definitions:IQ,type:LQ,properties:BQ,default:!0};var JD;function jQ(){return JD||(JD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const o=ZZ(),a=AQ(),n=DQ(),r=FQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ab();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=$k();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=nb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},kw={},XD;function zQ(){return XD||(XD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),v),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:x,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:U,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:E,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,v),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=a.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],oe=+z[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const oe=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(oe<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=oe-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&z(oe[1])}}function v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[oe,H]=z.split(h),K=i(F,oe);if(K!==void 0)return K||u(W,H)}const S=/\/|:/,T=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function x(B){return S.test(B)&&T.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function E(B){return k.lastIndex=0,k.test(B)}const C=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=C}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(kw)),kw}var Cw={},eO;function qQ(){return eO||(eO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=jQ(),o=yt(),a=o.operators,n={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:v,self:y}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");S.$data?T():x();function T(){const E=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),C=d.const("fmt",(0,o._)`${E}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${C} != "object"`,(0,o._)`${C} instanceof RegExp`,(0,o._)`typeof ${C}.compare != "function"`,k(C)))}function x(){const E=S.schema,C=y.formats[E];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${h}": format "${E}" does not define "compare" function`);const P=d.scopeValue("formats",{key:E,ref:C,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(E)}`:void 0});c.fail$data(k(P))}function k(E){return(0,o._)`${E}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Cw)),Cw}var tO;function UQ(){return tO||(tO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const o=zQ(),a=qQ(),n=yt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,o.fullFormats,r),u;const[h,f]=m.mode==="fast"?[o.fastFormats,i]:[o.fullFormats,r],v=m.formats||o.formatNames;return d(u,v,h,f),m.keywords&&(0,a.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?o.fastFormats:o.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var v,y;(v=(y=u.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const S of m)u.addFormat(S,h[S])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var $Q=UQ();const Vxe=Gl($Q);function VQ({studioUrl:t,meshUrl:e},o){return t??e??o}let Gk;Gk=globalThis.crypto;async function HQ(t){return(await Gk).getRandomValues(new Uint8Array(t))}async function GQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await HQ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function WQ(t){return await GQ(t)}async function KQ(t){const e=await(await Gk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Hxe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await WQ(t),o=await KQ(e);return{code_verifier:e,code_challenge:o}}const Ea=hL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:KW.custom,message:"URL must be parseable",fatal:!0}),e7}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Gxe=_a({resource:$().url(),authorization_servers:je(Ea).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),YQ=_a({issuer:$(),authorization_endpoint:Ea,token_endpoint:Ea,registration_endpoint:Ea.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Ea.optional(),revocation_endpoint:Ea.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),ZQ=_a({issuer:$(),authorization_endpoint:Ea,token_endpoint:Ea,userinfo_endpoint:Ea.optional(),jwks_uri:Ea,registration_endpoint:Ea.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Ea.optional(),op_tos_uri:Ea.optional(),client_id_metadata_document_supported:Vt().optional()}),Wxe=we({...ZQ.shape,...YQ.pick({code_challenge_methods_supported:!0}).shape}),Kxe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:xL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Yxe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),oO=Ea.optional().or(Ze("").transform(()=>{})),QQ=we({redirect_uris:je(Ea),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ea.optional(),logo_uri:oO,scope:$().optional(),contacts:je($()).optional(),tos_uri:oO,policy_uri:$().optional(),jwks_uri:Ea.optional(),jwks:SW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),JQ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),Zxe=QQ.merge(JQ);we({error:$(),error_description:$().optional()}).strip();we({token:$(),token_type_hint:$().optional()}).strip();class Oa extends Error{constructor(e,o){super(e),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class mT extends Oa{}mT.errorCode="invalid_request";class hT extends Oa{}hT.errorCode="invalid_client";class gT extends Oa{}gT.errorCode="invalid_grant";class fT extends Oa{}fT.errorCode="unauthorized_client";class vT extends Oa{}vT.errorCode="unsupported_grant_type";class bT extends Oa{}bT.errorCode="invalid_scope";class yT extends Oa{}yT.errorCode="access_denied";class ST extends Oa{}ST.errorCode="server_error";class wT extends Oa{}wT.errorCode="temporarily_unavailable";class xT extends Oa{}xT.errorCode="unsupported_response_type";class TT extends Oa{}TT.errorCode="unsupported_token_type";class kT extends Oa{}kT.errorCode="invalid_token";class CT extends Oa{}CT.errorCode="method_not_allowed";class ET extends Oa{}ET.errorCode="too_many_requests";class _T extends Oa{}_T.errorCode="invalid_client_metadata";class PT extends Oa{}PT.errorCode="insufficient_scope";class AT extends Oa{}AT.errorCode="invalid_target";const Qxe={[mT.errorCode]:mT,[hT.errorCode]:hT,[gT.errorCode]:gT,[fT.errorCode]:fT,[vT.errorCode]:vT,[bT.errorCode]:bT,[yT.errorCode]:yT,[ST.errorCode]:ST,[wT.errorCode]:wT,[xT.errorCode]:xT,[TT.errorCode]:TT,[kT.errorCode]:kT,[CT.errorCode]:CT,[ET.errorCode]:ET,[_T.errorCode]:_T,[PT.errorCode]:PT,[AT.errorCode]:AT};async function lB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof eb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function XQ(t,e){return await t.readResource({uri:e})}function Jxe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Wi(c)}function Xxe(t){const e=ye.c(12);let o,a;e[0]!==t?({client:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=ca.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>lB(o),e[5]=o,e[6]=r):r=e[6];const i=a.staleTime??3e4;let c;return e[7]!==a||e[8]!==n||e[9]!==r||e[10]!==i?(c={...a,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=a,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function eTe(t){const e=ye.c(15);let o,a,n;e[0]!==t?({client:o,uri:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o||e[5]!==n?(r=ca.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>XQ(o,n),e[7]=o,e[8]=n,e[9]=i):i=e[9];const c=a.staleTime??3e4;let d;return e[10]!==a||e[11]!==r||e[12]!==i||e[13]!==c?(d={...a,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=a,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Wi(d)}const cB="ui-resource-html";function tTe(t){const e=ye.c(22);let o,a,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:o,uri:c,studioUrl:i,meshUrl:a,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==o||e[8]!==n||e[9]!==c?(d=ca.mcpUiResourceHtml(n,o,c),e[7]=o,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==a||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const v=`${VQ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(v,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=o,e[12]=a,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Wi(h)}const dB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Zf extends Error{constructor(e,o,a,n){super(e),this.status=o,this.code=a,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function uB(t){return t instanceof Zf&&Object.values(dB).includes(t.code??"")?t.code:null}const eJ=6e4;function tJ(t){return!(t instanceof Zf)||t.status!==429?null:t.retryAfterMs??eJ}function oJ(t,e){if(typeof e=="object"&&e!==null&&"retryAfterMs"in e&&typeof e.retryAfterMs=="number"&&Number.isFinite(e.retryAfterMs))return Math.max(0,e.retryAfterMs);const o=t.headers.get("retry-after"),a=o?Number(o):Number.NaN;return Number.isFinite(a)?Math.max(0,a*1e3):void 0}async function aJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r,i=null;try{i=await a.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Zf(n,a.status,r,a.status===429?oJ(a,i):void 0)}try{return await a.json()}catch{throw new Zf(`${e} returned a non-JSON response`,a.status)}}function Wk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>aJ(o,r,i),t[0]=o,t[1]=a):a=t[1];let n;return t[2]!==o||t[3]!==a?(n={orgSlug:o,call:a},t[2]=o,t[3]=a,t[4]=n):n=t[4],n}function nJ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const rJ="studio-ui-resources",Qf="html",sJ=10080*60*1e3,iJ=50,lJ=16*1024*1024;function cJ(t){return t[0]==="mcp"&&t[1]===cB}function rb(){return new Promise((t,e)=>{const o=indexedDB.open(rJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Qf)||o.result.createObjectStore(Qf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Ld(t,e){return t.transaction(Qf,e).objectStore(Qf)}function RT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function dJ(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=Ld(e,"readonly"),a=await RT(o.getAllKeys()),n=await RT(o.getAll()),r=Date.now(),i=a.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>sJ||d>=iJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function uJ(t){if(typeof indexedDB>"u")return()=>{};const e=rb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!cJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>lJ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function pJ(){typeof indexedDB>"u"||rb().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function oTe(t){if(!(typeof indexedDB>"u"))try{const e=await rb(),o=await RT(Ld(e,"readonly").getAllKeys()),a=Ld(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===cB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const Jf="studio:rq-cache",Kk=1440*60*1e3,mJ=1e3,hJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),gJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let pB=!1,mB=!1;function fJ(t){const e=t[0];return typeof e=="string"&&hJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&gJ.has(t[4])}function vJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Jf);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Kk;if(o.buster!=="4.574.9"||a||!o.state){window.localStorage.removeItem(Jf);return}DV(t,o.state),t.invalidateQueries({queryKey:ca.publicConfig(),refetchType:"none"}),pB=!0}catch{TJ()}}function bJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=RV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&fJ(i.queryKey)});window.localStorage.setItem(Jf,JSON.stringify({buster:"4.574.9",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,mJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const hB="studio:org-cache:",yJ=20;function SJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Kk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>yJ;)o.shift();return Object.fromEntries(o)}function gB(t){return`${hB}${t}`}function wJ(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Kk?null:(mB=!0,a)}catch{return null}}function xJ(t,e,o){if(!(typeof window>"u"))try{const a=gB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(SJ(r)))}catch{}}function TJ(){if(pJ(),!(typeof window>"u"))try{window.localStorage.removeItem(Jf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(hB)&&window.localStorage.removeItem(e)}}catch{}}function kJ(){return pB}function CJ(){return mB}function aO(t){const e=uB(t);if(!e)return;const o=e===dB.aiBudgetExhausted?Xf.budget||"This organization's AI allowance is used up.":Xf.feature||"This organization's plan does not include that.";Id.error(o,{id:`plan-refusal:${e}`})}const Xf={feature:"",budget:""},Yl=new UV({queryCache:new iI({onError:aO}),mutationCache:new sI({onError:aO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>uB(e)===null&&tJ(e)===null&&t<1,gcTime:300*1e3}}});nJ(Yl);vJ(Yl);bJ(Yl);dJ(Yl);uJ(Yl);const Yk=5*6e4;async function fB(){return(await(await fetch("/api/config")).json()).config}function vB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function aTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:ca.publicConfig(),queryFn:fB,staleTime:Yk},t[0]=e):e=t[0],Gi(e).data}const bB=A.createContext(void 0);function EJ(t){const e=ye.c(3),{children:o}=t,a=vB();let n;return e[0]!==o||e[1]!==a.auth?(n=b.jsx(bB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function nTe(){const t=A.useContext(bB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var _J={},nO={};const bf=Object.create(null),Zu=t=>_J||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,o){const a=Zu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Zu(!0);return delete o[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Zo(t,e){return typeof process<"u"&&nO?nO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,ma=4,Hr=8,Nn=24,rO={eterm:ma,cons25:ma,console:ma,cygwin:ma,dtterm:ma,gnome:ma,hurd:ma,jfbterm:ma,konsole:ma,kterm:ma,mlterm:ma,mosh:Nn,putty:ma,st:ma,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},PJ=new Map(Object.entries({APPVEYOR:Hr,BUILDKITE:Hr,CIRCLECI:Nn,DRONE:Hr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Hr,TRAVIS:Hr})),AJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function RJ(){if(Zo("FORCE_COLOR")!==void 0)switch(Zo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Hr;case"3":return Nn;default:return Qu}if(Zo("NODE_DISABLE_COLORS")!==void 0&&Zo("NODE_DISABLE_COLORS")!==""||Zo("NO_COLOR")!==void 0&&Zo("NO_COLOR")!==""||Zo("TERM")==="dumb")return Qu;if(Zo("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return ma;if("CI"in Xn){for(const{0:t,1:e}of PJ)if(t in Xn)return e;return Zo("CI_NAME")==="codeship"?Hr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Zo("TEAMCITY_VERSION"))!==null?ma:Qu;switch(Zo("TERM_PROGRAM")){case"iTerm.app":return!Zo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Zo("TERM_PROGRAM_VERSION"))!==null?Hr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Hr}if(Zo("COLORTERM")==="truecolor"||Zo("COLORTERM")==="24bit")return Nn;if(Zo("TERM")){if(/truecolor/.exec(Zo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Zo("TERM"))!==null)return Hr;const t=Zo("TERM").toLowerCase();if(rO[t])return rO[t];if(AJ.some(e=>e.exec(t)!==null))return ma}return Zo("COLORTERM")?ma:Qu}const Gr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},DT=["debug","info","success","warn","error"];function DJ(t,e){return DT.indexOf(e)>=DT.indexOf(t)}const OJ={info:Gr.fg.blue,success:Gr.fg.green,warn:Gr.fg.yellow,error:Gr.fg.red,debug:Gr.fg.magenta},NJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Gr.dim}${a}${Gr.reset} ${OJ[t]}${t.toUpperCase()}${Gr.reset} ${Gr.bright}[Better Auth]:${Gr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},MJ=t=>{const e="warn",o=RJ()!==1,a=(n,r,i=[])=>{if(!DJ(e,n))return;const c=NJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(DT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};MJ();function IJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var kp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function LJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function BJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new kp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof kp?e:new kp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function Ew(t,e="/api/auth"){if(BJ(t),LJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function FJ(t,e,o,a,n){if(t)return Ew(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return Ew(r,e)}if(typeof window<"u"&&window.location)return Ew(window.location.origin,e)}const jJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},zJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},qJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,sO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},UJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function $J(t){return t instanceof Date&&!isNaN(t.getTime())}function VJ(t){const e=UJ.exec(t);if(!e)return null;const[,o,a,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(o,10),parseInt(a,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return $J(f)?f:null}function HJ(t,e={}){const{strict:o=!1,warnings:a=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in sO)return sO[c];if(!qJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(zJ).some(([d,u])=>{const m=u.test(i);return m&&a&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){a&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=VJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function GJ(t,e={strict:!0}){return HJ(t,e)}let fr=[],fi=0;const Bg=4,WJ=globalThis.nanostoresGlobal||={epoch:0},md=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+Bg;r<fr.length;)fr[r]===a?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){WJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,o.value,a,n);if(r){for(fi=0;fi<fr.length;fi+=Bg)fr[fi](fr[fi+1],fr[fi+2],fr[fi+3]);fr.length=0}},off(){},set(a){let n=o.value;n!==a&&(o.value=a,o.notify(n))},subscribe(a){let n=o.listen(a);return a(o.value),n},value:t};return o},KJ=5,Fg=6,jg=10;let YJ=(t,e,o,a)=>(t.events=t.events||{},t.events[o+jg]||(t.events[o+jg]=a(n=>{t.events[o].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[o]=t.events[o]||[],t.events[o].push(e),()=>{let n=t.events[o],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[o],t.events[o+jg](),delete t.events[o+jg])});const ZJ=1e3;let yB=(t,e)=>YJ(t,a=>{let n=e(a);n&&t.events[Fg].push(n)},KJ,a=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,a()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},ZJ)},()=>{t.listen=n,t.off=r}});function QJ(t,e,o){let a=new Set(e).add(void 0);return t.listen((n,r,i)=>{a.has(i)&&o(n,r,i)})}const JJ=()=>typeof window>"u",mp=(t,e,o,a)=>{const n=md({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{JJ()||(i?await r():yB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},_w=Symbol.for("better-auth:broadcast-channel"),XJ=()=>Math.floor(Date.now()/1e3);var eX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:XJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const o=JSON.parse(e.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(a=>a(o))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function Pw(t="better-auth.message"){return globalThis[_w]||(globalThis[_w]=new eX(t)),globalThis[_w]}const Aw=Symbol.for("better-auth:focus-manager");var tX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function iO(){return globalThis[Aw]||(globalThis[Aw]=new tX),globalThis[Aw]}const Rw=Symbol.for("better-auth:online-manager");var oX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function Dw(){return globalThis[Rw]||(globalThis[Rw]=new oX),globalThis[Rw]}const Vc=()=>Math.floor(Date.now()/1e3),aX=5;function nX(t){const{sessionAtom:e,sessionSignal:o,$fetch:a,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||Dw().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Vc(),o.set(!o.get());return}const E=e.get();if(k?.event==="poll"){d.lastSessionRequest=Vc(),a("/get-session").then(C=>{C.error?e.set({...E,data:null,error:C.error}):e.set({...E,data:C.data,error:null}),d.lastSync=Vc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Vc()-d.lastSessionRequest<aX)return;d.lastSessionRequest=Vc()}(E?.data===null||E?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Vc(),o.set(!o.get()))},h=k=>{Pw().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=Pw().subscribe(()=>{m({event:"storage"})})},y=()=>{i&&(d.unsubscribeFocus=iO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Dw().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),y(),S(),Pw().setup(),iO().setup(),Dw().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function rX(t,e){const o=md(!1),a=mp(o,"/get-session",t,{method:"GET"});return yB(a,()=>{const n=nX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Ow(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function OT(t,e,o=".",a){if(!Ow(e))return OT(t,{},o,a);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(a&&a(n,r,i,o)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:Ow(i)&&Ow(n[r])?n[r]=OT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function sX(t){return(...e)=>e.reduce((o,a)=>OT(o,a,"",t),{})}const iX=sX();var lX=Object.defineProperty,cX=Object.defineProperties,dX=Object.getOwnPropertyDescriptors,lO=Object.getOwnPropertySymbols,uX=Object.prototype.hasOwnProperty,pX=Object.prototype.propertyIsEnumerable,cO=(t,e,o)=>e in t?lX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))uX.call(e,o)&&cO(t,o,e[o]);if(lO)for(var o of lO(e))pX.call(e,o)&&cO(t,o,e[o]);return t},Ur=(t,e)=>cX(t,dX(e)),mX=class extends Error{constructor(t,e,o){super(e||t.toString(),{cause:o}),this.status=t,this.statusText=e,this.error=o,Error.captureStackTrace(this,this.constructor)}},hX=async(t,e)=>{var o,a,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((o=m.init)==null?void 0:o.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((a=m.hooks)==null?void 0:a.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},dO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},gX=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function fX(t){if(typeof t=="number")return new dO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new dO(t);case"exponential":return new gX(t);default:throw new Error("Invalid retry strategy")}}var vX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},bX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yX(t){const e=t.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const a=e.split(";").shift()||"";return bX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function SX(t){try{return JSON.parse(t),!0}catch{return!1}}function NT(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function uO(t){try{return JSON.parse(t)}catch{return t}}function pO(t){return typeof t=="function"}function wX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&pO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&pO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function xX(t){const e=new Headers(t?.headers),o=await vX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=TX(t?.body);a&&e.set("content-type",a)}return e}function TX(t){return NT(t)?"application/json":null}function kX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(NT(t.body)&&!e.has("content-type")){for(const[o,a]of Object.entries(t?.body))a instanceof Date&&(t.body[o]=a.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&NT(t.body)?new URLSearchParams(t.body).toString():t.body}function CX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return wB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function EX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var _X=class SB extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,SB.prototype)}};async function yf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new _X(o.issues);return o.value}var wB=["get","post","put","patch","delete"],PX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,o){var a,n,r,i;const c=((n=(a=t.plugins)==null?void 0:a.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Sr({},o),{method:u.method,output:u.output});return o?.disableValidation||(m=Ur(Sr({},m),{body:u.input?await yf(u.input,o?.body):o?.body,params:u.params?await yf(u.params,o?.params):o?.params,query:u.query?await yf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),AX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],PX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await MT(o,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await MT(o,n)}return e};function RX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];wB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else v=JSON.stringify(f);d.set(h,v)}if(a)if(Array.isArray(a)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const y=a[f];i=i.replace(v,y)}}else for(const[h,f]of Object.entries(a))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var MT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await hX(t,e),v=wX(f),y=new AbortController,S=(o=f.signal)!=null?o:y.signal,T=RX(h,f),x=kX(f),k=await xX(f),E=CX(h,f);let C=Ur(Sr({},f),{url:T,headers:k,body:x,method:E,signal:S});for(const F of m.onRequest)if(F){const W=await F(C);typeof W=="object"&&W!==null&&(C=W)}("pipeTo"in C&&typeof C.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in C||(C.duplex="half"));const{clearTimeout:P}=EX(f,y);let D=await v(C.url,C);P();const R={response:D,request:C};for(const F of m.onResponse)if(F){const W=await F(Ur(Sr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(C.method!=="HEAD"))return{data:"",error:null};const W=yX(D),oe={data:null,response:D,request:C};if(W==="json"||W==="text"){const H=await D.text(),K=(r=C.jsonParser)!=null?r:uO;oe.data=await K(H)}else oe.data=await D[W]();C?.output&&C.output&&!C.disableValidation&&(oe.data=await yf(C.output,oe.data));for(const H of m.onSuccess)H&&await H(Ur(Sr({},oe),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?oe.data:{data:oe.data,error:null}}const O=(c=e?.jsonParser)!=null?c:uO,L=await D.text(),U=SX(L),B=U?await O(L):null,z={response:D,responseText:L,request:C,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=fX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const oe=F.getDelay(W);return await new Promise(H=>setTimeout(H,oe)),await MT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new mX(D.status,D.statusText,U?B:L);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const DX=(t,e)=>{const o="credentials"in Request.prototype,a=FJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(C=>C.fetchPlugins).filter(C=>C!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=AX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(C){return C?GJ(C,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[jJ],...n]}),{$sessionSignal:f,session:v}=rX(h,t),y=t?.plugins||[];let S={};const T={$sessionSignal:f,session:v},x={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{signal:"$sessionSignal",matcher(C){return C==="/sign-out"||C==="/update-user"||C==="/sign-up/email"||C==="/sign-in/email"||C==="/delete-user"||C==="/verify-email"||C==="/revoke-sessions"||C==="/revoke-session"||C==="/change-email"}}];for(const C of y)C.getAtoms&&Object.assign(T,C.getAtoms?.(h)),C.pathMethods&&Object.assign(x,C.pathMethods),C.atomListeners&&k.push(...C.atomListeners);const E={notify:C=>{T[C].set(!T[C].get())},listen:(C,P)=>{T[C].subscribe(P)},atoms:T};for(const C of y)C.getActions&&(S=iX(C.getActions?.(h,E,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:E}};function OX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function NX(t,e,o){const a=e[t],{fetchOptions:n,query:r,...i}=o||{};return a||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function MX(t,e,o,a,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||OX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,E=>`-${E.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:y,...S}=h,T={...f,...y},x=NX(m,o,h);return await e(m,{...T,body:x==="GET"?void 0:{...S,...T?.body||{}},query:v||T?.query,method:x,async onSuccess(k){if(await T?.onSuccess?.(k),!n||T.disableSignal)return;const E=n.filter(P=>P.matcher(m));if(!E.length)return;const C=new Set;for(const P of E){const D=a[P.signal];if(!D)return;if(C.has(P.signal))continue;C.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function IX(t,e={}){const o=A.useRef(t.get()),{keys:a,deps:n=[t,a]}=e,r=A.useCallback(c=>{const d=u=>{o.current!==u&&(o.current=u,c())};return d(t.value),a?.length?QJ(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function LX(t){return`use${IJ(t)}`}function BX(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=DX(t),c={};for(const[d,u]of Object.entries(a))c[LX(d)]=()=>IX(u);return MX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function FX(t){return{authorize(e,o="AND"){let a=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))a=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?a=c.actions.some(d=>i.includes(d)):a=c.actions.every(d=>i.includes(d))}else throw new kp("Invalid access control request");if(a&&o==="OR")return{success:a};if(!a&&o==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return a?{success:a}:{success:!1,error:"Not authorized"}},statements:t}}function xB(t){return{newRole(e){return FX(e)},statements:t}}const jX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},TB=xB(jX),kB=TB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),CB=TB.newRole({user:[],session:[]}),zX={admin:kB,user:CB},qX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),o=t.options?.roles||zX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},UX=t=>{const e={admin:kB,user:CB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>qX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},$X=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),VX=()=>({id:"magic-link",$InferServerPlugin:{}}),HX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Zk=xB(HX),EB=Zk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),_B=Zk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),PB=Zk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),GX={admin:EB,owner:_B,member:PB},WX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const o=t.role.split(","),a=t.options.creatorRole||"owner",n=o.includes(a),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of o)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},KX=t=>WX(t,t.options.roles||GX),YX=t=>{const e=md(!1),o=md(!1),a=md(!1),n=md(!1),r={admin:EB,member:PB,owner:_B,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>KX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:mp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},ZX="1.6.11",QX=t=>({id:"sso-client",version:ZX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function JX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function Qk(t){return JX(t?.metadata).archived===!0}function AB(t){const e=new Set;return t.filter(o=>Qk(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const XX="Organization is archived",ga=BX({plugins:[YX({}),UX(),QX(),VX(),$X()]}),eee=8e3;let mO;function RB(){return mO??=new Promise(t=>{const e=setTimeout(t,eee);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),mO}const tee=we({data:we({user:we({id:$()})}).nullish()});function oee(){const t=tee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const aee=3e4;let hp=null,zg=null;function DB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:AB(e.data)}:e;return o.data&&(hp={result:o,expiresAt:Date.now()+aee}),o}).finally(()=>{zg=null});return zg=t,t}function rTe(){const t=ga.useListOrganizations(),e=t.data?AB(t.data):void 0;return{...t,data:e}}function sTe(){hp=null}const nee="modulepreload",ree=function(t){return"/"+t},hO={},Fe=function(e,o,a){let n=Promise.resolve();if(o&&o.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(o.map(u=>{if(u=ree(u),u in hO)return;hO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":nee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,y)=>{f.addEventListener("load",v),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function see(t){try{return JSON.parse(t)}catch{return}}function gO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?see(o):void 0,n=typeof e=="function"?e(a):a??e;if(a===void 0||n!==a)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function iee(t,e){const o=ye.c(17),a=Wd();let n;o[0]!==t?(n=["localStorage",t],o[0]=t,o[1]=n):n=o[1];const r=n;let i,c;o[2]!==e||o[3]!==t?(i=()=>gO(t,e),c=()=>gO(t,e),o[2]=e,o[3]=t,o[4]=i,o[5]=c):(i=o[4],c=o[5]);let d;o[6]!==r||o[7]!==i||o[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=r,o[7]=i,o[8]=c,o[9]=d):d=o[9];const{data:u}=Gi(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=y=>{const S=a.getQueryData(r),T=typeof y=="function"?y(S):y;if(typeof localStorage<"u")try{localStorage.setItem(t,JSON.stringify(T))}catch{}a.setQueryData(r,T)},o[10]=t,o[11]=a,o[12]=r,o[13]=m):m=o[13];const h=m,f=u;let v;return o[14]!==h||o[15]!==f?(v=[f,h],o[14]=h,o[15]=f,o[16]=v):v=o[16],v}const Or={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},OB=["en","pt-BR"],iTe={en:"en-US","pt-BR":"pt-BR"};function Jk(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const lee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:Jk(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},NB=["auto","readonly"],lTe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],cee=["light","dark","system"];function cTe(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(NB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function sb(){try{const t=JSON.parse(localStorage.getItem(Or.preferences())??"{}");if(OB.includes(t.language))return t.language}catch{}return Jk()}function dee(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const a of t.shownTaskBoardLanes)typeof a=="string"&&(e[a]=!0);const o=t.taskBoardLaneVisibility;if(o&&typeof o=="object"&&!Array.isArray(o))for(const[a,n]of Object.entries(o))typeof n=="boolean"&&(e[a]=n);return e}function Xk(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Or.preferences(),t[0]=e):e=t[0],iee(e,uee)}function uee(t){const e={...lee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,NB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),cee.includes(e.theme)||(e.theme="system"),OB.includes(e.language)||(e.language=Jk()),e.taskBoardLaneVisibility=dee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const pee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},mee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},hee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.createdBy":"Created by","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsedLabel":"Last used","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
56
56
  Define who this agent is and what it specializes in.
57
57
  Example: You are a support triage agent for B2B merchants.
58
58
  </role>
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
165
165
  .block-interactivity-`.concat(t,` {pointer-events: none;}
166
166
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
167
167
  `)},nse=0,Kc=[];function rse(t){var e=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(nse++)[0],r=A.useState(KF)[0],i=A.useRef(t);A.useEffect(function(){i.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var S=Ere([t.lockRef.current],(t.shards||[]).map(ZO),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!i.current.allowPinchZoom;var x=Kg(S),k=o.current,E="deltaX"in S?S.deltaX:k[0]-x[0],C="deltaY"in S?S.deltaY:k[1]-x[1],P,D=S.target,R=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in S&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,U=L?L===D||L.contains(D):!1;if(U)return!1;var B=KO(R,D);if(!B)return!0;if(B?P=R:(P=R==="v"?"h":"v",B=KO(R,D)),!B)return!1;if(!a.current&&"changedTouches"in S&&(E||C)&&(a.current=P),!P)return!0;var z=a.current||P;return tse(z,T,S,z==="h"?E:C)},[]),d=A.useCallback(function(S){var T=S;if(!(!Kc.length||Kc[Kc.length-1]!==r)){var x="deltaY"in T?YO(T):Kg(T),k=e.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&ose(P.delta,x)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var E=(i.current.shards||[]).map(ZO).filter(Boolean).filter(function(P){return P.contains(T.target)}),C=E.length>0?c(T,E[0]):!i.current.noIsolation;C&&T.cancelable&&T.preventDefault()}}},[]),u=A.useCallback(function(S,T,x,k){var E={name:S,delta:T,target:x,should:k,shadowParent:sse(x)};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(C){return C!==E})},1)},[]),m=A.useCallback(function(S){o.current=Kg(S),a.current=void 0},[]),h=A.useCallback(function(S){u(S.type,YO(S),S.target,c(S,t.lockRef.current))},[]),f=A.useCallback(function(S){u(S.type,Kg(S),S.target,c(S,t.lockRef.current))},[]);A.useEffect(function(){return Kc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Wc),document.addEventListener("touchmove",d,Wc),document.addEventListener("touchstart",m,Wc),function(){Kc=Kc.filter(function(S){return S!==r}),document.removeEventListener("wheel",d,Wc),document.removeEventListener("touchmove",d,Wc),document.removeEventListener("touchstart",m,Wc)}},[]);var v=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(r,{styles:ase(n)}):null,v?A.createElement(Kre,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function sse(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const ise=Ire(WF,rse);var fC=A.forwardRef(function(t,e){return A.createElement(pb,Wr({},t,{ref:e,sideCar:ise}))});fC.classNames=pb.classNames;var qT=["Enter"," "],lse=["ArrowDown","PageUp","Home"],JF=["ArrowUp","PageDown","End"],cse=[...lse,...JF],dse={ltr:[...qT,"ArrowRight"],rtl:[...qT,"ArrowLeft"]},use={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bm="Menu",[Hp,pse,mse]=rF(bm),[Jl,XF]=Ji(bm,[mse,_F,FF]),ym=_F(),ej=FF(),[tj,Xi]=Jl(bm),[hse,Sm]=Jl(bm),oj=t=>{const{__scopeMenu:e,open:o=!1,children:a,dir:n,onOpenChange:r,modal:i=!0}=t,c=ym(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Er(r),f=sF(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),b.jsx(LF,{...c,children:b.jsx(tj,{scope:e,open:o,onOpenChange:h,content:d,onContentChange:u,children:b.jsx(hse,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:a})})})};oj.displayName=bm;var gse="MenuAnchor",vC=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return b.jsx(nre,{...n,...a,ref:e})});vC.displayName=gse;var bC="MenuPortal",[fse,aj]=Jl(bC,{forceMount:void 0}),nj=t=>{const{__scopeMenu:e,forceMount:o,children:a,container:n}=t,r=Xi(bC,e);return b.jsx(fse,{scope:e,forceMount:o,children:b.jsx(js,{present:o||r.open,children:b.jsx(gC,{asChild:!0,container:n,children:a})})})};nj.displayName=bC;var nr="MenuContent",[vse,yC]=Jl(nr),rj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu);return b.jsx(Hp.Provider,{scope:t.__scopeMenu,children:b.jsx(js,{present:a||r.open,children:b.jsx(Hp.Slot,{scope:t.__scopeMenu,children:i.modal?b.jsx(bse,{...n,ref:e}):b.jsx(yse,{...n,ref:e})})})})}),bse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu),a=A.useRef(null),n=$o(e,a);return A.useEffect(()=>{const r=a.current;if(r)return VF(r)},[]),b.jsx(SC,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),yse=A.forwardRef((t,e)=>{const o=Xi(nr,t.__scopeMenu);return b.jsx(SC,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Sse=$p("MenuContent.ScrollLock"),SC=A.forwardRef((t,e)=>{const{__scopeMenu:o,loop:a=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,disableOutsideScroll:y,...S}=t,T=Xi(nr,o),x=Sm(nr,o),k=ym(o),E=ej(o),C=pse(o),[P,D]=A.useState(null),R=A.useRef(null),O=$o(e,R,T.onContentChange),L=A.useRef(0),U=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=y?fC:A.Fragment,H=y?{as:Sse,allowPinchZoom:!0}:void 0,K=se=>{const Q=U.current+se,M=C().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,I=M.map(de=>de.textValue),j=Ose(I,Q,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),cF();const J=A.useCallback(se=>F.current===z.current?.side&&Mse(se,z.current?.area),[]);return b.jsx(vse,{scope:o,searchRef:U,onItemEnter:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),onItemLeave:A.useCallback(se=>{J(se)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(se=>{z.current=se},[]),children:b.jsx(oe,{...H,children:b.jsx(rC,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(nC,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:b.jsx(wre,{asChild:!0,...E,dir:x.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{x.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(rre,{role:"menu","aria-orientation":"vertical","data-state":xj(T.open),"data-radix-menu-content":"",dir:x.dir,...k,...S,ref:O,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,se=>{const M=se.target.closest("[data-radix-menu-content]")===se.currentTarget,G=se.ctrlKey||se.altKey||se.metaKey,V=se.key.length===1;M&&(se.key==="Tab"&&se.preventDefault(),!G&&V&&K(se.key));const I=R.current;if(se.target!==I||!cse.includes(se.key))return;se.preventDefault();const X=C().filter(de=>!de.disabled).map(de=>de.ref.current);JF.includes(se.key)&&X.reverse(),Rse(X)}),onBlur:mt(t.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:mt(t.onPointerMove,Gp(se=>{const Q=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Q)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});rj.displayName=nr;var wse="MenuGroup",wC=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Do.div,{role:"group",...a,ref:e})});wC.displayName=wse;var xse="MenuLabel",sj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Do.div,{...a,ref:e})});sj.displayName=xse;var sv="MenuItem",QO="menu.itemSelect",mb=A.forwardRef((t,e)=>{const{disabled:o=!1,onSelect:a,...n}=t,r=A.useRef(null),i=Sm(sv,t.__scopeMenu),c=yC(sv,t.__scopeMenu),d=$o(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(QO,{bubbles:!0,cancelable:!0});h.addEventListener(QO,v=>a?.(v),{once:!0}),nF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return b.jsx(ij,{...n,ref:d,disabled:o,onClick:mt(t.onClick,m),onPointerDown:h=>{t.onPointerDown?.(h),u.current=!0},onPointerUp:mt(t.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(t.onKeyDown,h=>{const f=c.searchRef.current!=="";o||f&&h.key===" "||qT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});mb.displayName=sv;var ij=A.forwardRef((t,e)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=t,i=yC(sv,o),c=ej(o),d=A.useRef(null),u=$o(e,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const y=d.current;y&&v((y.textContent??"").trim())},[r.children]),b.jsx(Hp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:b.jsx(xre,{asChild:!0,...c,focusable:!a,children:b.jsx(Do.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(y=>{a?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Gp(y=>i.onItemLeave(y))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),Tse="MenuCheckboxItem",lj=A.forwardRef((t,e)=>{const{checked:o=!1,onCheckedChange:a,...n}=t;return b.jsx(mj,{scope:t.__scopeMenu,checked:o,children:b.jsx(mb,{role:"menuitemcheckbox","aria-checked":iv(o)?"mixed":o,...n,ref:e,"data-state":kC(o),onSelect:mt(n.onSelect,()=>a?.(iv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});lj.displayName=Tse;var cj="MenuRadioGroup",[kse,Cse]=Jl(cj,{value:void 0,onValueChange:()=>{}}),dj=A.forwardRef((t,e)=>{const{value:o,onValueChange:a,...n}=t,r=Er(a);return b.jsx(kse,{scope:t.__scopeMenu,value:o,onValueChange:r,children:b.jsx(wC,{...n,ref:e})})});dj.displayName=cj;var uj="MenuRadioItem",pj=A.forwardRef((t,e)=>{const{value:o,...a}=t,n=Cse(uj,t.__scopeMenu),r=o===n.value;return b.jsx(mj,{scope:t.__scopeMenu,checked:r,children:b.jsx(mb,{role:"menuitemradio","aria-checked":r,...a,ref:e,"data-state":kC(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});pj.displayName=uj;var xC="MenuItemIndicator",[mj,Ese]=Jl(xC,{checked:!1}),hj=A.forwardRef((t,e)=>{const{__scopeMenu:o,forceMount:a,...n}=t,r=Ese(xC,o);return b.jsx(js,{present:a||iv(r.checked)||r.checked===!0,children:b.jsx(Do.span,{...n,ref:e,"data-state":kC(r.checked)})})});hj.displayName=xC;var _se="MenuSeparator",gj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return b.jsx(Do.div,{role:"separator","aria-orientation":"horizontal",...a,ref:e})});gj.displayName=_se;var Pse="MenuArrow",fj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=ym(o);return b.jsx(sre,{...n,...a,ref:e})});fj.displayName=Pse;var TC="MenuSub",[Ase,vj]=Jl(TC),bj=t=>{const{__scopeMenu:e,children:o,open:a=!1,onOpenChange:n}=t,r=Xi(TC,e),i=ym(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Er(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),b.jsx(LF,{...i,children:b.jsx(tj,{scope:e,open:a,onOpenChange:h,content:u,onContentChange:m,children:b.jsx(Ase,{scope:e,contentId:Fi(),triggerId:Fi(),trigger:c,onTriggerChange:d,children:o})})})};bj.displayName=TC;var gp="MenuSubTrigger",yj=A.forwardRef((t,e)=>{const o=Xi(gp,t.__scopeMenu),a=Sm(gp,t.__scopeMenu),n=vj(gp,t.__scopeMenu),r=yC(gp,t.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:t.__scopeMenu},m=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),b.jsx(vC,{asChild:!0,...u,children:b.jsx(ij,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":xj(o.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!o.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,y=v==="right",S=y?-5:5,T=f[y?"left":"right"],x=f[y?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+S,y:h.clientY},{x:T,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:T,y:f.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(t.onKeyDown,h=>{const f=r.searchRef.current!=="";t.disabled||f&&h.key===" "||dse[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});yj.displayName=gp;var Sj="MenuSubContent",wj=A.forwardRef((t,e)=>{const o=aj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Sm(nr,t.__scopeMenu),c=vj(Sj,t.__scopeMenu),d=A.useRef(null),u=$o(e,d);return b.jsx(Hp.Provider,{scope:t.__scopeMenu,children:b.jsx(js,{present:a||r.open,children:b.jsx(Hp.Slot,{scope:t.__scopeMenu,children:b.jsx(SC,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{i.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(t.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(t.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(t.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=use[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});wj.displayName=Sj;function xj(t){return t?"open":"closed"}function iv(t){return t==="indeterminate"}function kC(t){return iv(t)?"indeterminate":t?"checked":"unchecked"}function Rse(t){const e=document.activeElement;for(const o of t)if(o===e||(o.focus(),document.activeElement!==e))return}function Dse(t,e){return t.map((o,a)=>t[(e+a)%t.length])}function Ose(t,e,o){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=o?t.indexOf(o):-1;let i=Dse(t,Math.max(r,0));n.length===1&&(i=i.filter(u=>u!==o));const d=i.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==o?d:void 0}function Nse(t,e){const{x:o,y:a}=t;let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const c=e[r],d=e[i],u=c.x,m=c.y,h=d.x,f=d.y;m>a!=f>a&&o<(h-u)*(a-m)/(f-m)+u&&(n=!n)}return n}function Mse(t,e){if(!e)return!1;const o={x:t.clientX,y:t.clientY};return Nse(o,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Ise=oj,Lse=vC,Bse=nj,Fse=rj,jse=wC,zse=sj,qse=mb,Use=lj,$se=dj,Vse=pj,Hse=hj,Gse=gj,Wse=fj,Kse=bj,Yse=yj,Zse=wj,hb="DropdownMenu",[Qse]=Ji(hb,[XF]),$a=XF(),[Jse,Tj]=Qse(hb),kj=t=>{const{__scopeDropdownMenu:e,children:o,dir:a,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=t,d=$a(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:i,caller:hb});return b.jsx(Jse,{scope:e,triggerId:Fi(),triggerRef:u,contentId:Fi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:b.jsx(Ise,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};kj.displayName=hb;var Cj="DropdownMenuTrigger",Ej=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=t,r=Tj(Cj,o),i=$a(o);return b.jsx(Lse,{asChild:!0,...i,children:b.jsx(Do.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!a&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{a||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Ej.displayName=Cj;var Xse="DropdownMenuPortal",_j=t=>{const{__scopeDropdownMenu:e,...o}=t,a=$a(e);return b.jsx(Bse,{...a,...o})};_j.displayName=Xse;var Pj="DropdownMenuContent",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=Tj(Pj,o),r=$a(o),i=A.useRef(!1);return b.jsx(Fse,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...a,ref:e,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(t.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Aj.displayName=Pj;var eie="DropdownMenuGroup",tie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(jse,{...n,...a,ref:e})});tie.displayName=eie;var oie="DropdownMenuLabel",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(zse,{...n,...a,ref:e})});Rj.displayName=oie;var aie="DropdownMenuItem",Dj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(qse,{...n,...a,ref:e})});Dj.displayName=aie;var nie="DropdownMenuCheckboxItem",Oj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Use,{...n,...a,ref:e})});Oj.displayName=nie;var rie="DropdownMenuRadioGroup",Nj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx($se,{...n,...a,ref:e})});Nj.displayName=rie;var sie="DropdownMenuRadioItem",Mj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Vse,{...n,...a,ref:e})});Mj.displayName=sie;var iie="DropdownMenuItemIndicator",Ij=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Hse,{...n,...a,ref:e})});Ij.displayName=iie;var lie="DropdownMenuSeparator",Lj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Gse,{...n,...a,ref:e})});Lj.displayName=lie;var cie="DropdownMenuArrow",die=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Wse,{...n,...a,ref:e})});die.displayName=cie;var uie=t=>{const{__scopeDropdownMenu:e,children:o,open:a,onOpenChange:n,defaultOpen:r}=t,i=$a(e),[c,d]=gm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return b.jsx(Kse,{...i,open:c,onOpenChange:d,children:o})},pie="DropdownMenuSubTrigger",Bj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Yse,{...n,...a,ref:e})});Bj.displayName=pie;var mie="DropdownMenuSubContent",Fj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return b.jsx(Zse,{...n,...a,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fj.displayName=mie;var jj=kj,zj=Ej,qj=_j,Uj=Aj,hie=Rj,$j=Dj,gie=Oj,fie=Nj,vie=Mj,Vj=Ij,bie=Lj,yie=uie,Sie=Bj,wie=Fj;const CC=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));CC.displayName="AlertTriangle";const Hj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"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"}));Hj.displayName="Archive";const Gj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Gj.displayName="ArrowUpRight";const Wj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 6 9 17l-5-5"}));Wj.displayName="Check";const EC=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"m9 18 6-6-6-6"}));EC.displayName="ChevronRight";const Kj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Kj.displayName="Circle";const Yj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"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"}));Yj.displayName="CpuChip01";const Zj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M12 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"}));Zj.displayName="DotsHorizontal";const Qj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));Qj.displayName="GitBranch01";const Jj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"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"}));Jj.displayName="HardDrive";const Xj=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));Xj.displayName="LinkExternal01";const e3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));e3.displayName="Lock01";const t3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));t3.displayName="RefreshCw01";const o3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));o3.displayName="Server01";const a3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));a3.displayName="Shield01";const n3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));n3.displayName="User01";const r3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));r3.displayName="Users03";const s3=({size:t=24,color:e="currentColor",...o})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));s3.displayName="X";function xie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(jj,{"data-slot":"dropdown-menu",...o}),e[2]=o,e[3]=a):a=e[3],a}function Tie(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(zj,{"data-slot":"dropdown-menu-trigger",...o}),e[2]=o,e[3]=a):a=e[3],a}function kie(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,sideOffset:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?4:n;let i;e[4]!==o?(i=Qe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",o),e[4]=o,e[5]=i):i=e[5];let c;return e[6]!==a||e[7]!==r||e[8]!==i?(c=b.jsx(qj,{children:b.jsx(Uj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...a})}),e[6]=a,e[7]=r,e[8]=i,e[9]=c):c=e[9],c}function Cie(t){const e=ye.c(12);let o,a,n,r;e[0]!==t?({className:o,inset:a,variant:r,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?"default":r;let c;e[5]!==o?(c=Qe("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==n||e[9]!==c||e[10]!==i?(d=b.jsx($j,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=i,e[11]=d):d=e[11],d}function hTe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:n,children:a,checked:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==n?(i=Qe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),e[5]=n,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:b.jsx(Vj,{children:b.jsx(Wj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==a||e[10]!==r||e[11]!==i?(d=b.jsxs(gie,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:o,...r,children:[c,a]}),e[8]=o,e[9]=a,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function gTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(fie,{"data-slot":"dropdown-menu-radio-group",...o}),e[2]=o,e[3]=a):a=e[3],a}function fTe(t){const e=ye.c(11);let o,a,n;e[0]!==t?({className:a,children:o,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==a?(r=Qe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),e[4]=a,e[5]=r):r=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:b.jsx(Vj,{children:b.jsx(Kj,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let c;return e[7]!==o||e[8]!==n||e[9]!==r?(c=b.jsxs(vie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,o]}),e[7]=o,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function vTe(t){const e=ye.c(10);let o,a,n;e[0]!==t?({className:o,inset:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);let r;e[4]!==o?(r=Qe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",o),e[4]=o,e[5]=r):r=e[5];let i;return e[6]!==a||e[7]!==n||e[8]!==r?(i=b.jsx(hie,{"data-slot":"dropdown-menu-label","data-inset":a,className:r,...n}),e[6]=a,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function bTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("bg-border -mx-1 my-1 h-px",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx(bie,{"data-slot":"dropdown-menu-separator",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function yTe(t){const e=ye.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let a;return e[2]!==o?(a=b.jsx(yie,{"data-slot":"dropdown-menu-sub",...o}),e[2]=o,e[3]=a):a=e[3],a}function STe(t){const e=ye.c(13);let o,a,n,r;e[0]!==t?({className:a,inset:n,children:o,...r}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);let i;e[5]!==a?(i=Qe("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),e[5]=a,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(EC,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==n||e[10]!==r||e[11]!==i?(d=b.jsxs(Sie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[o,c]}),e[8]=o,e[9]=n,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function wTe(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx(wie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Eie(){const t=ye.c(3),[e,o]=A.useState(-1);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=i=>{if(!i)return;const c=()=>o(i.clientWidth);c();const d=new ResizeObserver(c);return d.observe(i),()=>d.disconnect()},t[0]=a):a=t[0];const n=a;let r;return t[1]!==e?(r=[e,n],t[1]=e,t[2]=r):r=t[2],r}function _ie(){let t=new Map;const e=new Set,o=()=>e.forEach(a=>a());return{getSnapshot:()=>t,subscribe(a){return e.add(a),()=>{e.delete(a)}},register(a){if(t.has(a.after))throw new Error(`Two components extend breadcrumb: ${a.after}`);return t=new Map(t).set(a.after,a),o(),()=>{if(t.get(a.after)!==a)return;const n=new Map(t);n.delete(a.after),t=n,o()}}}}const _C=A.createContext(null);function Pie(t){const e=ye.c(3),{children:o}=t,[a]=A.useState(_ie);let n;return e[0]!==o||e[1]!==a?(n=b.jsx(_C,{value:a,children:o}),e[0]=o,e[1]=a,e[2]=n):n=e[2],n}function Aie(t){const e=ye.c(2),{children:o}=t;let a;return e[0]!==o?(a=b.jsx(_C,{value:null,children:o}),e[0]=o,e[1]=a):a=e[1],a}function gb(){return A.use(_C)}function i3(t){const e=ye.c(3),o=gb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return e[0]!==t||e[1]!==o?(a=b.jsx("span",{hidden:!0,ref:n=>n?o.register(t):void 0}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}function Rie(t,e){const o=new Set,a=n=>{if(o.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);o.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(a)??[]]};return t.flatMap(a)}function Die(t,e){const o=t.map(a=>a.label).filter(a=>typeof a=="string").reverse();return e&&o.push(e),o.map(a=>a.trim()).filter(Boolean).join(" · ")}const l3=5;function Oie(t,e=!1,o=l3){const a=t.map(i=>({type:"item",item:i}));if(t.length<=(e?1:o))return a;const n=e?0:1,r=t.length-(e?1:2);return a.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),a}const c3=H$(function(e){return b.jsx("a",{...e,"aria-current":void 0})});function Nie(t){const e=ye.c(12),{items:o}=t,a=Ua();let n;e[0]!==a?(n=a("page.breadcrumbMenu"),e[0]=a,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx(Zj,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let i;e[3]!==n?(i=b.jsx(Tie,{asChild:!0,children:b.jsx(bn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),e[3]=n,e[4]=i):i=e[4];let c;e[5]!==o?(c=o.map(Mie),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=b.jsx(kie,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==i||e[10]!==d?(u=b.jsxs(xie,{children:[i,d]}),e[9]=i,e[10]=d,e[11]=u):u=e[11],u}function Mie(t){const e=b.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return b.jsx(Cie,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?b.jsx(c3,{...t.link,children:e}):e},t.key)}function Iie(t){const e=ye.c(14),{item:o,current:a}=t,n=typeof o.label=="string"?o.label:void 0;if(a){let i;return e[0]!==o.label||e[1]!==n?(i=b.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:o.label}),e[0]=o.label,e[1]=n,e[2]=i):i=e[2],i}if(o.onSelect){let i;return e[3]!==o.label||e[4]!==o.onSelect||e[5]!==n?(i=b.jsx("button",{type:"button",onClick:o.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[3]=o.label,e[4]=o.onSelect,e[5]=n,e[6]=i):i=e[6],i}if(o.link){let i;return e[7]!==o.label||e[8]!==o.link||e[9]!==n?(i=b.jsx(c3,{...o.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:o.label}),e[7]=o.label,e[8]=o.link,e[9]=n,e[10]=i):i=e[10],i}let r;return e[11]!==o.label||e[12]!==n?(r=b.jsx("span",{title:n,className:"block max-w-48 truncate",children:o.label}),e[11]=o.label,e[12]=n,e[13]=r):r=e[13],r}function d3(t){const e=ye.c(21),{items:o}=t,a=Ua(),[n,r]=Eie();let i,c,d,u,m,h;if(e[0]!==o||e[1]!==r||e[2]!==a||e[3]!==n){const y=Oie(o,n>=0&&n<320,l3);u=r,e[10]!==a?(m=a("page.breadcrumbs"),e[10]=a,e[11]=m):m=e[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',i="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=y.map((S,T)=>b.jsxs("li",{className:Qe("flex min-w-0 items-center gap-2",T>0&&"min-w-5",S.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[T>0&&b.jsx(EC,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?b.jsx(Iie,{item:S.item,current:T===y.length-1}):b.jsx(Nie,{items:S.items})]},S.type==="item"?`item:${S.item.key}`:"menu")),e[0]=o,e[1]=r,e[2]=a,e[3]=n,e[4]=i,e[5]=c,e[6]=d,e[7]=u,e[8]=m,e[9]=h}else i=e[4],c=e[5],d=e[6],u=e[7],m=e[8],h=e[9];let f;e[12]!==i||e[13]!==c||e[14]!==d?(f=b.jsx("ol",{"data-slot":i,className:c,children:d}),e[12]=i,e[13]=c,e[14]=d,e[15]=f):f=e[15];let v;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(v=b.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),e[16]=u,e[17]=m,e[18]=h,e[19]=f,e[20]=v):v=e[20],v}function Lie(t){const e=ye.c(12),{items:o,scope:a}=t,n=gb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;e[0]!==r||e[1]!==o||e[2]!==a?(i=Rie(o,r),c=Die(i,a),e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=c):(i=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&b.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==i?(m=b.jsx(d3,{items:i}),e[7]=i,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=b.jsxs(b.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function Bie(t){const e=ye.c(3),o=gb();let a;return e[0]!==t||e[1]!==o?(a=o?b.jsx(i3,{...t}):b.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:b.jsx(d3,{items:t.items??[]})}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const Fie=Object.assign(Bie,{Provider:Pie,Detached:Aie});function jie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx("div",{...a,"data-slot":"page",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function zie(t){const e=ye.c(8);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);let n;e[3]!==o?(n=Qe("min-h-0 min-w-0 flex-1 overflow-auto",o),e[3]=o,e[4]=n):n=e[4];let r;return e[5]!==a||e[6]!==n?(r=b.jsx("div",{...a,"data-slot":"page-content",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const qie={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},Uie="px-4 md:pl-6 md:pr-8",u3=A.createContext(!1);function $ie(t){const e=ye.c(12);let o,a,n;e[0]!==t?({className:o,width:n,...a}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n):(o=e[1],a=e[2],n=e[3]);const r=n===void 0?"wide":n,i=A.use(u3);let c;e[4]!==o||e[5]!==i||e[6]!==r?(c=Qe("w-full",i?Qe(Uie,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",qie[r],o),e[4]=o,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==c||e[10]!==r?(d=b.jsx("div",{...a,"data-slot":"page-container","data-width":r,className:c}),e[8]=a,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Vie(t){const e=ye.c(9),{children:o,actions:a,className:n}=t,r=gb();let i;e[0]!==o||e[1]!==n||e[2]!==r?(i=r?b.jsx(i3,{after:"page",parent:{label:o}}):b.jsx("div",{"data-slot":"page-title",className:Qe("flex flex-wrap items-center justify-between gap-3",n),children:b.jsx("h1",{className:"min-w-0 text-xl font-medium",children:o})}),e[0]=o,e[1]=n,e[2]=r,e[3]=i):i=e[3];let c;e[4]!==a?(c=a&&b.jsx(p3,{children:a}),e[4]=a,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==c?(d=b.jsxs(b.Fragment,{children:[i,c]}),e[6]=i,e[7]=c,e[8]=d):d=e[8],d}function p3(t){const e=ye.c(3),{children:o,secondary:a}=t;let n;if(e[0]!==o||e[1]!==a){const r=b.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=b.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=o,e[1]=a,e[2]=n}else n=e[2];return n}function Hie(t){const e=ye.c(28),{breadcrumbs:o,scope:a,leading:n,actions:r,navigation:i,trailingActions:c}=t;let d;e[0]!==o||e[1]!==a?(d=b.jsx(Lie,{items:o,scope:a}),e[0]=o,e[1]=a,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=b.jsxs(pn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),e[4]=n,e[5]=d,e[6]=m):m=e[6];let h;e[7]!==r?(h=b.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),e[7]=r,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(pn.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),e[9]=f):f=e[9];let v;e[10]!==h||e[11]!==c?(v=b.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=v):v=e[12];let y;e[13]!==m||e[14]!==v?(y=b.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),e[13]=m,e[14]=v,e[15]=y):y=e[15];let S;e[16]!==i?(S=b.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),e[16]=i,e[17]=S):S=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=b.jsx(pn.Toolbar.Left.Target,{}),e[18]=T):T=e[18];let x;e[19]!==S?(x=b.jsxs(pn.Toolbar.Left,{children:[S,T]}),e[19]=S,e[20]=x):x=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=b.jsx(pn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:b.jsx(pn.Toolbar.Center.Target,{})}),e[21]=k):k=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=b.jsx(pn.Toolbar.Right,{children:b.jsx(pn.Toolbar.Right.Target,{})}),e[22]=E):E=e[22];let C;e[23]!==x?(C=b.jsxs(pn.Toolbar,{children:[x,k,E]}),e[23]=x,e[24]=C):C=e[24];let P;return e[25]!==C||e[26]!==y?(P=b.jsxs(b.Fragment,{children:[y,C]}),e[25]=C,e[26]=y,e[27]=P):P=e[27],P}function Gie(t){const e=ye.c(11);let o,a;e[0]!==t?({className:o,...a}=t,e[0]=t,e[1]=o,e[2]=a):(o=e[1],a=e[2]);const n=Ua();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let i;e[5]!==o?(i=Qe("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",o),e[5]=o,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==r||e[9]!==i?(c=b.jsx("nav",{"aria-label":r,...a,"data-slot":"page-tabs",className:i}),e[7]=a,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Wie(t){const e=ye.c(14);let o,a,n,r;e[0]!==t?({active:o,asChild:r,className:a,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r):(o=e[1],a=e[2],n=e[3],r=e[4]);const i=r===void 0?!1:r,c=i?void 0:"button",d=i&&o?"page":void 0,u=i?void 0:o;let m;e[5]!==a?(m=Qe("shrink-0",a),e[5]=a,e[6]=m):m=e[6];let h;return e[7]!==i||e[8]!==n||e[9]!==c||e[10]!==d||e[11]!==u||e[12]!==m?(h=b.jsx(bn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),e[7]=i,e[8]=n,e[9]=c,e[10]=d,e[11]=u,e[12]=m,e[13]=h):h=e[13],h}const Td=Object.assign(jie,{Header:Hie,Tabs:Gie,Tab:Wie,Actions:p3,Content:zie,Container:Object.assign($ie,{Inset:u3}),Title:Vie,Breadcrumbs:Fie});var ge=typeof window<"u"?window:void 0,ia=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(ia.self=ia),typeof File>"u"&&(ia.File=function(){});var Mn=ia?.navigator,ze=ia?.document,ka=ia?.location,UT=ia?.fetch,$T=ia!=null&&ia.XMLHttpRequest&&"withCredentials"in new ia.XMLHttpRequest?ia.XMLHttpRequest:void 0,JO=ia?.AbortController,Kie=ia?.CompressionStream,mn=Mn?.userAgent,ot=ge??{},XO="1.372.3",Qa={DEBUG:!1,LIB_VERSION:XO,LIB_NAME:"web",JS_SDK_VERSION:XO};function e2(t,e,o,a,n,r,i){try{var c=t[r](i),d=c.value}catch(u){return void o(u)}c.done?e(d):Promise.resolve(d).then(a,n)}function er(t){return function(){var e=this,o=arguments;return new Promise((function(a,n){var r=t.apply(e,o);function i(d){e2(r,a,n,i,c,"next",d)}function c(d){e2(r,a,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var o=arguments[e];for(var a in o)({}).hasOwnProperty.call(o,a)&&(t[a]=o[a])}return t},Me.apply(null,arguments)}function m3(t,e){if(t==null)return{};var o={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(e.indexOf(a)!==-1)continue;o[a]=t[a]}return o}function VT(){return VT=er((function*(t,e,o){e===void 0&&(e=!0);try{var a=new CompressionStream("gzip"),n=a.writable.getWriter(),r=n.write(new TextEncoder().encode(t)).then((()=>n.close())).catch((function(){var d=er((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),i=new Response(a.readable).blob(),[c]=yield Promise.all([i,r]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return e&&console.error("Failed to gzip compress data",d),null}})),VT.apply(this,arguments)}var Yie=["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"],t2=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var o=t.toLowerCase();return Yie.concat(e).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},Zie=["$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 Ct(t,e){return t.indexOf(e)!==-1}var fb=function(t){return t.trim()},HT=function(t){return t.replace(/^\$/,"")},h3=Object.prototype,g3=h3.hasOwnProperty,vb=h3.toString,It=Array.isArray||function(t){return vb.call(t)==="[object Array]"},Rs=t=>typeof t=="function",Fo=t=>t===Object(t)&&!It(t),hd=t=>{if(Fo(t)){for(var e in t)if(g3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,_o=t=>vb.call(t)=="[object String]",Tf=t=>_o(t)&&t.trim().length===0,zs=t=>t===null,_t=t=>$e(t)||zs(t),sr=t=>vb.call(t)=="[object Number]"&&t==t,sd=t=>sr(t)&&t>0,Yr=t=>vb.call(t)==="[object Boolean]",Qie=t=>t instanceof FormData,Jie=t=>Ct(Zie,t);function f3(t){return t===null||typeof t!="object"}function lv(t,e){return{}.toString.call(t)==="[object "+e+"]"}function PC(t){return typeof Event<"u"&&(function(e,o){try{return e instanceof o}catch{return!1}})(t,Event)}var Xie=[!0,"true",1,"1","yes"],Hw=t=>Ct(Xie,t),ele=[!1,"false",0,"0","no"];function Zr(t,e,o,a,n){return e>o&&(a.warn("min cannot be greater than max."),e=o),sr(t)?t>o?(a.warn(" cannot be greater than max: "+o+". Using max value instead."),o):e>t?(a.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(a.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+n),Zr(n||o,e,o,a))}let tle=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Zr(e.bucketSize,0,100,e.Gt),this.Wt=Zr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Zr(e.refillInterval,0,864e5,e.Gt)}Jt(e,o){var a=Math.floor((o-e.lastAccess)/this.Xt);a>0&&(e.tokens=Math.min(e.tokens+a*this.Wt,this.Ut),e.lastAccess=e.lastAccess+a*this.Xt)}consumeRateLimit(e){var o,a=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,o2,Gw,Ln="Mobile",cv="iOS",Ms="Android",jd="Tablet",v3=Ms+" "+jd,b3="iPad",y3="Apple",S3=y3+" Watch",Cp="Safari",zd="BlackBerry",w3="Samsung",x3=w3+"Browser",T3=w3+" Internet",Bl="Chrome",ole=Bl+" OS",k3=Bl+" "+cv,AC="Internet Explorer",C3=AC+" "+Ln,RC="Opera",ale=RC+" Mini",DC="Edge",E3="Microsoft "+DC,kd="Firefox",_3=kd+" "+cv,Wp="Nintendo",Kp="PlayStation",Cd="Xbox",P3=Ms+" "+Ln,A3=Ln+" "+Cp,fp="Windows",GT=fp+" Phone",a2="Nokia",WT="Ouya",R3="Generic",nle=R3+" "+Ln.toLowerCase(),D3=R3+" "+jd.toLowerCase(),KT="Konqueror",Za="(\\d+(\\.\\d+)?)",Ww=new RegExp("Version/"+Za),rle=new RegExp(Cd,"i"),sle=new RegExp(Kp+" \\w+","i"),ile=new RegExp(Wp+" \\w+","i"),OC=new RegExp(zd+"|PlayBook|BB10","i"),lle={"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"},O3=function(t,e){return e=e||"",Ct(t," OPR/")&&Ct(t,"Mini")?ale:Ct(t," OPR/")?RC:OC.test(t)?zd:Ct(t,"IE"+Ln)||Ct(t,"WPDesktop")?C3:Ct(t,x3)?T3:Ct(t,DC)||Ct(t,"Edg/")?E3:Ct(t,"FBIOS")?"Facebook "+Ln:Ct(t,"UCWEB")||Ct(t,"UCBrowser")?"UC Browser":Ct(t,"CriOS")?k3:Ct(t,"CrMo")||Ct(t,Bl)?Bl:Ct(t,Ms)&&Ct(t,Cp)?P3:Ct(t,"FxiOS")?_3:Ct(t.toLowerCase(),KT.toLowerCase())?KT:((o,a)=>a&&Ct(a,y3)||(function(n){return Ct(n,Cp)&&!Ct(n,Bl)&&!Ct(n,Ms)})(o))(t,e)?Ct(t,Ln)?A3:Cp:Ct(t,kd)?kd:Ct(t,"MSIE")||Ct(t,"Trident/")?AC:Ct(t,"Gecko")?kd:""},cle={[C3]:[new RegExp("rv:"+Za)],[E3]:[new RegExp(DC+"?\\/"+Za)],[Bl]:[new RegExp("("+Bl+"|CrMo)\\/"+Za)],[k3]:[new RegExp("CriOS\\/"+Za)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Za)],[Cp]:[Ww],[A3]:[Ww],[RC]:[new RegExp("(Opera|OPR)\\/"+Za)],[kd]:[new RegExp(kd+"\\/"+Za)],[_3]:[new RegExp("FxiOS\\/"+Za)],[KT]:[new RegExp("Konqueror[:/]?"+Za,"i")],[zd]:[new RegExp(zd+" "+Za),Ww],[P3]:[new RegExp("android\\s"+Za,"i")],[T3]:[new RegExp(x3+"\\/"+Za)],[AC]:[new RegExp("(rv:|MSIE )"+Za)],Mozilla:[new RegExp("rv:"+Za)]},dle=function(t,e){var o=O3(t,e),a=cle[o];if($e(a))return null;for(var n=0;a.length>n;n++){var r=t.match(a[n]);if(r)return parseFloat(r[r.length-2])}return null},n2=[[new RegExp(Cd+"; "+Cd+" (.*?)[);]","i"),t=>[Cd,t&&t[1]||""]],[new RegExp(Wp,"i"),[Wp,""]],[new RegExp(Kp,"i"),[Kp,""]],[OC,[zd,""]],[new RegExp(fp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[GT,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[fp+" "+Ln,""];var o=/Windows NT ([0-9.]+)/i.exec(e);if(o&&o[1]){var a=lle[o[1]]||"";return/arm/i.test(e)&&(a="RT"),[fp,a]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[cv,[t[3],t[4],t[5]||"0"].join(".")]:[cv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=$e(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Ms+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ms+")","i"),t=>t&&t[2]?[Ms,[t[2],t[3],t[4]||"0"].join(".")]:[Ms,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[ole,""]],[/Linux|debian/i,["Linux",""]]],r2=function(t){return ile.test(t)?Wp:sle.test(t)?Kp:rle.test(t)?Cd:new RegExp(WT,"i").test(t)?WT:new RegExp("("+GT+"|WPDesktop)","i").test(t)?GT:/iPad/.test(t)?b3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?S3:OC.test(t)?zd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(a2,"i").test(t)?a2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Ln).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ms:v3:new RegExp("(pda|"+Ln+")","i").test(t)?nle:new RegExp(jd,"i").test(t)&&!new RegExp(jd+" pc","i").test(t)?D3:""},ule=t=>t instanceof Error,N3={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}},ple=N3.info;function M3(t){if(Yr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(It(t))return{arrayValue:{values:t.map((e=>M3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function s2(t){var e=[];for(var o in t){var a=t[o];zs(a)||$e(a)||e.push({key:o,value:M3(a)})}return e}function mle(t){var e=globalThis._posthogChunkIds;if(e){var o=Object.keys(e);return Gw&&o.length===o2||(o2=o.length,Gw=o.reduce(((a,n)=>{Yg||(Yg={});var r=Yg[n];if(r)a[r[0]]=r[1];else for(var i=t(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=e[n];if(u&&m){a[u]=m,Yg[n]=[u,m];break}}return a}),{})),Gw}}class hle{constructor(e,o,a){a===void 0&&(a=[]),this.coercers=e,this.stackParser=o,this.modifiers=a}buildFromUnknown(e,o){o===void 0&&(o={});var a=o&&o.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(a,o,0).apply(e),r=this.buildParsingContext(o),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,a),$exception_level:"error"}}modifyFrames(e){var o=this;return er((function*(){for(var a of e)a.stacktrace&&a.stacktrace.frames&&It(a.stacktrace.frames)&&(a.stacktrace.frames=yield o.applyModifiers(a.stacktrace.frames));return e}))()}coerceFallback(e){var o;return{type:"Error",value:"Unknown error",stack:(o=e.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(e,o){var a,n;return e.cause!=null&&(a=this.parseStacktrace(e.cause,o)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Me({},e,{cause:a,stack:n})}applyChunkIds(e,o){return e.map((a=>(a.filename&&o&&(a.chunk_id=o[a.filename]),a)))}applyCoercers(e,o){for(var a of this.coercers)if(a.match(e))return a.coerce(e,o);return this.coerceFallback(o)}applyModifiers(e){var o=this;return er((function*(){var a=e;for(var n of o.modifiers)a=yield n(a);return a}))()}convertToExceptionList(e,o){var a,n,r,i={type:e.type,value:e.value,mechanism:{type:(a=o.type)!==null&&a!==void 0?a:"generic",handled:(n=o.handled)===null||n===void 0||n,synthetic:(r=e.synthetic)!==null&&r!==void 0&&r}};e.stack&&(i.stacktrace={type:"raw",frames:e.stack});var c=[i];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Me({},o,{handled:!0}))),c}buildParsingContext(e){var o;return{chunkIdMap:mle(this.stackParser),skipFirstLines:(o=e.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(e,o,a){a===void 0&&(a=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(e,o,i);return this.applyCoercers(r,c)}};return Me({},o,{syntheticException:a==0?o.syntheticException:void 0,mechanism:e,apply:r=>n(r,a),next:r=>n(r,a+1)})}}var qd="?";function YT(t,e,o,a,n){var r={platform:t,filename:e,function:o==="<anonymous>"?qd:o,in_app:!0};return $e(a)||(r.lineno=a),$e(n)||(r.colno=n),r}var I3=(t,e)=>{var o=t.indexOf("safari-extension")!==-1,a=t.indexOf("safari-web-extension")!==-1;return o||a?[t.indexOf("@")!==-1?t.split("@")[0]:qd,o?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},gle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fle=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,vle=/\((\S*)(?::(\d+))(?::(\d+))\)/,ble=(t,e)=>{var o=gle.exec(t);if(o){var[,a,n,r]=o;return YT(e,a,qd,+n,+r)}var i=fle.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=vle.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=I3(i[1]||qd,i[2]);return YT(e,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},yle=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wle=(t,e)=>{var o=yle.exec(t);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=Sle.exec(o[3]);a&&(o[1]=o[1]||"eval",o[3]=a[1],o[4]=a[2],o[5]="")}var n=o[3],r=o[1]||qd;return[r,n]=I3(r,n),YT(e,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},i2=/\(error: (.*)\)/;let xle=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,o){var a=_o(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:a?e.stack:void 0,cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var o=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?o+": "+e.message:o}isDOMException(e){return lv(e,"DOMException")}isDOMError(e){return lv(e,"DOMError")}};class Tle{match(e){return(o=>o instanceof Error)(e)}coerce(e,o){return{type:this.getType(e),value:this.getMessage(e,o),stack:this.getStack(e),cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,o){var a=e.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(e){return e.stacktrace||e.stack||void 0}}let kle=class{constructor(){}match(e){return lv(e,"ErrorEvent")&&e.error!=null}coerce(e,o){var a;return o.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}};var Cle=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Ele=class{match(e){return typeof e=="string"}coerce(e,o){var a,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}getInfos(e){var o="Error",a=e,n=e.match(Cle);return n&&(o=n[1],a=n[2]),[o,a]}};var _le=["fatal","error","warning","log","info","debug"];function L3(t,e){e===void 0&&(e=40);var o=Object.keys(t);if(o.sort(),!o.length)return"[object has no keys]";for(var a=o.length;a>0;a--){var n=o.slice(0,a).join(", ");if(e>=n.length)return a===o.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let Ple=class{match(e){return typeof e=="object"&&e!==null}coerce(e,o){var a,n=this.getErrorPropertyFromObject(e);return n?o.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(a=o.syntheticException)==null?void 0:a.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return PC(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var o="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(o+=" with message: '"+e.message+"'"),o}if("message"in e&&typeof e.message=="string")return e.message;var a=this.getObjectClassName(e);return(a&&a!=="Object"?"'"+a+"'":"Object")+" captured as exception with keys: "+L3(e)}isSeverityLevel(e){return _o(e)&&!Tf(e)&&_le.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var o in e)if({}.hasOwnProperty.call(e,o)){var a=e[o];if(ule(a))return a}}getObjectClassName(e){try{var o=Object.getPrototypeOf(e);return o?o.constructor.name:void 0}catch{return}}},Ale=class{match(e){return PC(e)}coerce(e,o){var a,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+L3(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Rle=class{match(e){return f3(e)}coerce(e,o){var a;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Dle=class{match(e){return lv(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!PC(e))return!1;try{var o=e.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(e,o){var a,n=this.getUnhandledRejectionReason(e);return f3(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}:o.apply(n)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};var dv="$message",uv="$timestamp",Ole=new Set([dv,uv]),Kw={enabled:!0,max_bytes:32768};function pv(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:Kw.enabled,max_bytes:Mle(t.max_bytes,Kw.max_bytes)}:Me({},Kw)}let Nle=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=pv(e)}setConfig(e){this.Bt=pv(e),this.er()}add(e){var o=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(r)try{var i=JSON.parse(r);if(!Fo(i))return;var c=i,d=c[dv],u=c[uv];return!_o(d)||d.trim().length===0||!_o(u)&&!sr(u)?void 0:{step:c,json:r}}catch{return}})(e);if(o){var a=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),i=0,c=0;r.length>c;c++)r[c]==="%"?(i+=1,c+=2):i+=1;return i})(o.json);a>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:a}),this.Qt+=a,this.er())}}getAttachable(){return this.Kt.map((e=>e.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var e=this.Kt.shift();e&&(this.Qt-=e.bytes)}}};function Mle(t,e){if(!sr(t)||t===1/0||t===-1/0)return e;var o=Math.floor(t);return 0>o?e:o}var B3=function(t,e){var{debugEnabled:o}=e===void 0?{}:e,a={C(n){if(ge&&(Qa.DEBUG||ot.POSTHOG_DEBUG||o)&&!$e(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],i=arguments.length,c=new Array(i>1?i-1:0),d=1;i>d;d++)c[d-1]=arguments[d];r(t,...c)}},info(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];a.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];console.error(t,...r)},uninitializedWarning(n){a.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>B3(t+" "+n,r)};return a},Ue=B3("[PostHog.js]"),To=Ue.createLogger,Ile=To("[ExternalScriptsLoader]"),Yw=(t,e,o)=>{if(t.config.disable_external_dependency_loading)return Ile.warn(e+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var a=ze?.querySelectorAll("script");if(a){for(var n,r=function(){if(a[i].src===e){var d=a[i];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,o(void 0,u)})),d.onerror=u=>o(u),{v:void 0})}},i=0;a.length>i;i++)if(n=r())return n.v}var c=()=>{if(!ze)return o("document not found");var d=ze.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=e,d.onload=h=>{d.__posthog_loading_callback_fired=!0,o(void 0,h)},d.onerror=h=>o(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};ot.__PosthogExtensions__=ot.__PosthogExtensions__||{},ot.__PosthogExtensions__.loadExternalDependency=(t,e,o)=>{if(e!=="remote-config"){var a;if(t.config.__preview_external_dependency_versioned_paths)a=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}a=t.requestRouter.endpointFor("assets",n)}Yw(t,a,o)}else{var i=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");Yw(t,i,o)}},ot.__PosthogExtensions__.loadSiteApp=(t,e,o)=>{var a=t.requestRouter.endpointFor("api",e);Yw(t,a,o)};var F3="$people_distinct_id",mv="$device_id",vp="__alias",bp="__timers",ZT="$autocapture_disabled_server_side",QT="$heatmaps_enabled_server_side",JT="$exception_capture_enabled_server_side",XT="$error_tracking_suppression_rules",e0="$error_tracking_capture_extension_exceptions",t0="$web_vitals_enabled_server_side",NC="$dead_clicks_enabled_server_side",o0="$product_tours_enabled_server_side",a0="$web_vitals_allowed_metrics",yp="$session_recording_remote_config",j3="$replay_override_sampling",z3="$replay_override_linked_flag",q3="$replay_override_url_trigger",U3="$replay_override_event_trigger",hv="$sesid",MC="$session_is_sampled",gd="$enabled_feature_flags",kf="$active_feature_flags",Sp="$early_access_features",n0="$feature_flag_details",r0="$feature_flag_payloads",s0="$feature_flag_request_id",As="$override_feature_flags",id="$override_feature_flag_payloads",wp="$stored_person_properties",Pl="$stored_group_properties",i0="$surveys",l0="$surveys_activated",Cf="ph_product_tours",Ep="$flag_call_reported",c0="$flag_call_reported_session_id",d0="$feature_flag_errors",gv="$feature_flag_evaluated_at",br="$user_state",u0="$client_session_props",p0="$capture_rate_limit",m0="$initial_campaign_params",h0="$initial_referrer_info",fv="$initial_person_info",vv="$epp",$3="__POSTHOG_TOOLBAR__",Zg="$posthog_cookieless",V3="$sdk_debug_extensions_init_method",H3="$sdk_debug_extensions_init_time_ms",G3="$sdk_debug_recording_script_not_loaded",IC="PostHog loadExternalDependency extension not found.",Al="on_reject",Ds="always",Yc="anonymous",Zc="identified",g0="identified_only",bv="visibilitychange",yv="beforeunload",ld="$pageview",Zw="$pageleave",Qw="$identify",l2="$groupidentify";function Qg(t,e){It(t)&&t.forEach(e)}function bo(t,e){if(!_t(t))if(It(t))t.forEach(e);else if(Qie(t))t.forEach(((a,n)=>e(a,n)));else for(var o in t)g3.call(t,o)&&e(t[o],o)}var Mo=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;e>a;a++)o[a-1]=arguments[a];for(var n of o)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Ef(t){for(var e=Object.keys(t),o=e.length,a=new Array(o);o--;)a[o]=[e[o],t[e[o]]];return a}var c2=function(t){try{return t()}catch{return}},Lle=function(t){return function(){try{for(var e=arguments.length,o=new Array(e),a=0;e>a;a++)o[a]=arguments[a];return t.apply(this,o)}catch(n){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(n)}}},LC=function(t){var e={};return bo(t,(function(o,a){(_o(o)&&o.length>0||sr(o))&&(e[a]=o)})),e},Ble=["herokuapp.com","vercel.app","netlify.app"];function Fle(t){var e=t?.hostname;if(!_o(e))return!1;var o=e.split(".").slice(-2).join(".");for(var a of Ble)if(o===a)return!1;return!0}function Jo(t,e,o,a){var{capture:n=!1,passive:r=!0}=a??{};t?.addEventListener(e,o,{capture:n,passive:r})}function W3(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return sr(t)&&isFinite(t)&&Math.floor(t)===t});class Sv{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,o,a,n){if(!Number.isInteger(e)||!Number.isInteger(o)||!Number.isInteger(a)||!Number.isInteger(n)||0>e||0>o||0>a||0>n||e>0xffffffffffff||o>4095||a>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/Math.pow(2,40),r[1]=e/Math.pow(2,32),r[2]=e/Math.pow(2,24),r[3]=e/Math.pow(2,16),r[4]=e/Math.pow(2,8),r[5]=e,r[6]=112|o>>>8,r[7]=o,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new Sv(r)}toString(){for(var e="",o=0;this.bytes.length>o;o++)e=e+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new Sv(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var o=0;16>o;o++){var a=this.bytes[o]-e.bytes[o];if(a!==0)return Math.sign(a)}return 0}}class jle{constructor(){this.I=0,this.S=0,this.k=new zle}generate(){var e=this.generateOrAbort();if($e(e)){this.I=0;var o=this.generateOrAbort();if($e(o))throw new Error("Could not generate UUID after timestamp reset");return o}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Sv.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 d2,K3=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(K3=t=>crypto.getRandomValues(t));class zle{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(K3(this.T),this.N=0),this.T[this.N++]}}var Ri=()=>qle().toString(),qle=()=>(d2||(d2=new jle)).generate(),Xu="",Ule=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Kr={R:()=>!!ze,B(t){Ue.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Kr.O(t))||{}}catch{}return e},M(t,e,o,a,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(y,S){if(S===void 0&&(S=ze),Xu)return Xu;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var T=y.split("."),x=Math.min(T.length,8),k="dmn_chk_"+Ri();!Xu&&x--;){var E=T.slice(x).join("."),C=k+"=1;domain=."+E+";path=/";S.cookie=C+";max-age=3",S.cookie.includes(k)&&(S.cookie=C+";max-age=0",Xu=E)}return Xu})(m);if(!f){var v=(y=>{var S=y.match(Ule);return S?S[0]:""})(m);v!==f&&Ue.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}return f?"; domain=."+f:""}return""})(ze.location.hostname,a);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),r="; expires="+d.toUTCString()}n&&(i="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Kr.M(t,"",-1,e)}catch{return}}},Jw=null,Eo={R(){if(!zs(Jw))return Jw;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";Eo.M(e,"xyz"),Eo.O(e)!=='"xyz"'&&(t=!1),Eo.F(e)}catch{t=!1}return t||Ue.error("localStorage unsupported; falling back to cookie store"),Jw=t,t},B(t){Ue.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Eo.B(e)}return null},Z(t){try{return JSON.parse(Eo.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(o){Eo.B(o)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Eo.B(e)}}},$le=[mv,"distinct_id",hv,MC,vv,fv,br],Jg={},Vle={R:()=>!0,B(t){Ue.error("memoryStorage error: "+t)},O:t=>Jg[t]||null,Z:t=>Jg[t]||null,M(t,e){Jg[t]=e},F(t){delete Jg[t]}},Tl=null,Ca={R(){if(!zs(Tl))return Tl;if(Tl=!0,$e(ge))Tl=!1;else try{var t="__support__";Ca.M(t,"xyz"),Ca.O(t)!=='"xyz"'&&(Tl=!1),Ca.F(t)}catch{Tl=!1}return Tl},B(t){Ue.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Ca.B(e)}return null},Z(t){try{return JSON.parse(Ca.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){Ca.B(o)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Ca.B(e)}}};class Hle{constructor(e){this._instance=e}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ds||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Al}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(e){this.nr.M(this.sr,e?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:o,consent_persistence_name:a}=this._instance.config;return a||(o?o+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return Hw(e)?1:Ct(ele,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,o=e==="localStorage"?Eo:Kr;if(!this.ar||this.ar!==o){this.ar=o;var a=e==="localStorage"?Kr:Eo;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(Hw(a.O(this.sr))),a.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,ot.doNotTrack].some((e=>Hw(e)))}}var Xg=To("[Dead Clicks]"),Gle=()=>!0,Wle=t=>{var e,o=!((e=t.instance.persistence)==null||!e.get_property(NC)),a=t.instance.config.capture_dead_clicks;return Yr(a)?a:!!Fo(a)||o};class u2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,o,a){this.instance=e,this.isEnabled=o,this.onCapture=a,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[NC]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&e(),(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Xg.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=ot.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var o=Fo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=ot.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(ze),Xg.info("starting...")}}else Xg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xg.info("stopping..."))}}var Xw=To("[SegmentIntegration]"),Y3="posthog-js";function Z3(t,e){var{organization:o,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=e===void 0?{}:e;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!t.__loaded)return c;c.tags||(c.tags={});var v=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=v,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],T=S.map((k=>Me({},k,{stacktrace:k.stacktrace?Me({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((E=>Me({},E,{platform:"web:javascript"})))}):void 0}))),x={$exception_message:((u=S[0])==null?void 0:u.value)||c.message,$exception_type:(m=S[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:T,$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&&(x.$sentry_url=(n||"https://sentry.io/organizations/")+o+"/issues/?project="+a+"&query="+c.event_id),i&&((y=t.exceptions)==null||y.sendExceptionEvent(x)),c}}class Kle{constructor(e,o,a,n,r,i){this.name=Y3,this.setupOnce=function(c){c(Z3(e,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class p2{constructor(e){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,o){var a,n=this.gr(e,o);return this.dr={pathname:(a=ge?.location.pathname)!==null&&a!==void 0?a:"",pageViewId:o,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var o;return this.gr(e,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,o){var a=this.dr;if(!a)return{$pageview_id:o};var n={$pageview_id:o,$prev_pageview_id:a.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!($e(i)||$e(c)||$e(d)||$e(u)||$e(m)||$e(h))){i=Math.ceil(i),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=i>1?Zr(c/i,0,1,Ue):1,v=i>1?Zr(d/i,0,1,Ue):1,y=u>1?Zr(m/u,0,1,Ue):1,S=u>1?Zr(h/u,0,1,Ue):1;n=Mo(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(e.getTime()-a.timestamp.getTime())/1e3),n}}var Yle={[F3]:{exposure:"hidden"},[vp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[bp]:{exposure:"hidden"},[ZT]:{exposure:"event"},[QT]:{exposure:"hidden"},[JT]:{exposure:"event"},[XT]:{exposure:"hidden"},[e0]:{exposure:"event"},[t0]:{exposure:"event"},[NC]:{exposure:"event"},[o0]:{exposure:"hidden"},[a0]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[hv]:{exposure:"hidden"},[MC]:{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"},[gd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!Fo(t))return{};for(var e={},o=Object.keys(t),a=0;o.length>a;a++)e["$feature/"+o[a]]=t[o[a]];return e}},[kf]:{exposure:"event"},[Sp]:{exposure:"hidden"},[n0]:{exposure:"hidden"},[r0]:{exposure:"event"},[s0]:{exposure:"event"},[As]:{exposure:"event"},[id]:{exposure:"hidden"},[wp]:{exposure:"hidden"},[Pl]:{exposure:"hidden"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[Cf]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Ep]:{exposure:"hidden"},[c0]:{exposure:"hidden"},[d0]:{exposure:"hidden"},[gv]:{exposure:"hidden"},[br]:{exposure:"hidden"},[u0]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[fv]:{exposure:"hidden"},[vv]:{exposure:"hidden"},[j3]:{exposure:"event"},[z3]:{exposure:"event"},[q3]:{exposure:"event"},[U3]:{exposure:"event"},[V3]:{exposure:"event"},[H3]:{exposure:"event"},[G3]:{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"}},Zle=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],wv=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},xv=function(t,e){for(var o,a=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;a.length>n;n++){var r=a[n].split("=");if(r[0]===e){o=r;break}}if(!It(o)||2>o.length)return"";var i=o[1];try{i=decodeURIComponent(i)}catch{Ue.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Yp=function(t,e,o){if(!t||!e||!e.length)return t;for(var a=t.split("#"),n=a[1],r=(a[0]||"").split("?"),i=r[1],c=r[0],d=(i||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");It(h)&&(e.includes(h[0])?u.push(h[0]+"="+o):u.push(d[m]))}var f=c;return i!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Tv=function(t,e){var o=t.match(new RegExp(e+"=([^&]*)"));return o?o[1]:null},ef="https?://(.*)",Ud=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Qle=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ud],Zp="<masked>",Jle=["li_fat_id"];function Q3(t,e,o){if(!ze)return{};var a,n=e?[...Ud,...o||[]]:[],r=J3(Yp(ze.URL,n,Zp),t),i=(a={},bo(Jle,(function(c){var d=Kr.O(c);a[c]=d||null})),a);return Mo(i,r)}function J3(t,e){var o=Qle.concat(e||[]),a={};return bo(o,(function(n){var r=xv(t,n);a[n]=r||null})),a}function X3(t){var e=(function(r){return r?r.search(ef+"google.([^/?]*)")===0?"google":r.search(ef+"bing.com")===0?"bing":r.search(ef+"yahoo.com")===0?"yahoo":r.search(ef+"duckduckgo.com")===0?"duckduckgo":null:null})(t),o=e!="yahoo"?"q":"p",a={};if(!zs(e)){a.$search_engine=e;var n=ze?xv(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function m2(){return navigator.language||navigator.userLanguage}var kv="$direct";function e4(){return ze?.referrer||kv}function t4(t,e){var o=t?[...Ud,...e||[]]:[],a=ka?.href.substring(0,1e3);return{r:e4().substring(0,1e3),u:a?Yp(a,o,Zp):void 0}}function o4(t){var e,{r:o,u:a}=t,n={$referrer:o,$referring_domain:o==null?void 0:o==kv?kv:(e=wv(o))==null?void 0:e.host};if(a){n.$current_url=a;var r=wv(a);n.$host=r?.host,n.$pathname=r?.pathname;var i=J3(a);Mo(n,i)}if(o){var c=X3(o);Mo(n,c)}return n}function a4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Xle(){try{return new Date().getTimezoneOffset()}catch{return}}var ece=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ex{constructor(e,o){this.Bt=e,this.props={},this.mr=!1,this.yr=(a=>{var n="";return a.token&&(n=a.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),a.persistence_name?"ph_"+a.persistence_name:"ph_"+n+"_posthog"})(e),this.nr=this.br(e),this.load(),e.debug&&Ue.info("Persistence loaded",e.persistence,Me({},this.props)),this.update_config(e,e,o),this.save()}isDisabled(){return!!this._r}br(e){ece.indexOf(e.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var o=(function(n){n===void 0&&(n=[]);var r=[...$le,...n];return Me({},Eo,{Z(i){try{var c={};try{c=Kr.Z(i)||{}}catch{}var d=Mo(c,JSON.parse(Eo.O(i)||"{}"));return Eo.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Eo.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Kr.M(i,f,d,u,m,h)}catch(v){Eo.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Kr.F(i,c)}catch(d){Eo.B(d)}}})})(e.cookie_persisted_properties||[]),a=e.persistence.toLowerCase();return a==="localstorage"&&Eo.R()?Eo:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ca.R()?Ca:a==="memory"?Vle:a==="cookie"?Kr:o.R()?o:Kr}wr(e){var o=e??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[gv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var e={};return bo(this.props,((o,a)=>{var n=(r=>{var i=Yle[r];if(i)return i;for(var[c,d]of Zle)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===gd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Mo(e,n.transformToEventProperties(o))}else n&&n.exposure!=="event"||(e[a]=o)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Mo({},e))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(e,o,a){if(Fo(e)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(bo(e,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==o||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(e,o){if(Fo(e)){this.Ir=$e(o)?this.kr:o;var a=!1;if(bo(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),a=!0)})),a)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ar(e),this.save())}update_campaign_params(){if(!this.mr){var e=Q3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);hd(LC(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?X3(e):{})}update_referrer_info(){var e;this.register_once({$referrer:e4(),$referring_domain:ze!=null&&ze.referrer&&((e=wv(ze.referrer))==null?void 0:e.host)||kv},void 0)}set_initial_person_info(){this.props[m0]||this.props[h0]||this.register_once({[fv]:t4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};bo([h0,m0],(i=>{var c=this.props[i];c&&bo(c,(function(d,u){e["$initial_"+HT(u)]=d}))}));var o,a,n=this.props[fv];if(n){var r=(o=o4(n),a={},bo(o,(function(i,c){a["$initial_"+HT(c)]=i})),a);Mo(e,r)}return e}safe_merge(e){return bo(this.props,(function(o,a){a in e||(e[a]=o)})),e}update_config(e,o,a){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!a),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==o.persistence||!((i,c)=>{if(i.length!==c.length)return!1;var d=[...i].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(e.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var n=this.br(e),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_secure(e){e!==this.Sr&&(this.Sr=e,this.remove(),this.save())}set_event_timer(e,o){var a=this.props[bp]||{};a[e]=o,this.Tr(bp,a),this.save()}remove_event_timer(e){var o=this.props[bp]||{},a=o[e];return $e(a)||(delete o[e],this.Tr(bp,o),this.save()),a}get_property(e){return this.props[e]}set_property(e,o){this.Tr(e,o),this.save()}Tr(e,o){this.props[e]=o}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},tx={Popover:"popover",API:"api",Widget:"widget"},xp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ox={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},f0={Popover:"popover",Inline:"inline"},tce={SHOWN:"product tour shown"},h2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},g2=To("[RateLimiter]");class oce{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var a=o.text;if(a&&a.length)try{(JSON.parse(a).quota_limited||[]).forEach((n=>{g2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void g2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:a})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var o,a,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(o=(a=this.instance.persistence)==null?void 0:a.get_property(p0))!==null&&o!==void 0?o:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*i,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||e||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(p0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var o=this.serverLimits[e||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var tp=To("[RemoteConfig]");class n4{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=ot._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var o,a;(o=ot.__PosthogExtensions__)!=null&&o.loadExternalDependency?(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Rr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){e(o.json)}})}load(){try{if(this.remoteConfig)return tp.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void tp.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return tp.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(e),this.Mr()}))}catch(e){tp.error("Error loading remote config",e)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Or){var o=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(e){var o;e||tp.error("Failed to fetch remote config from PostHog."),this._instance.Nr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var $r={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,$d=Uint32Array,BC=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),FC=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),f2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r4=function(t,e){for(var o=new fn(31),a=0;31>a;++a)o[a]=e+=1<<t[a-1];var n=new $d(o[30]);for(a=1;30>a;++a)for(var r=o[a];o[a+1]>r;++r)n[r]=r-o[a]<<5|a;return[o,n]},s4=r4(BC,2),v0=s4[1];s4[0][28]=258,v0[258]=28;for(var v2=r4(FC,0)[1],i4=new fn(32768),yo=0;32768>yo;++yo){var Qc=(43690&yo)>>>1|(21845&yo)<<1;i4[yo]=((65280&(Qc=(61680&(Qc=(52428&Qc)>>>2|(13107&Qc)<<2))>>>4|(3855&Qc)<<4))>>>8|(255&Qc)<<8)>>>1}var _p=function(t,e,o){for(var a=t.length,n=0,r=new fn(e);a>n;++n)++r[t[n]-1];var i,c=new fn(e);for(n=0;e>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new fn(a),n=0;a>n;++n)i[n]=i4[c[t[n]-1]++]>>>15-t[n];return i},ql=new rr(288);for(yo=0;144>yo;++yo)ql[yo]=8;for(yo=144;256>yo;++yo)ql[yo]=9;for(yo=256;280>yo;++yo)ql[yo]=7;for(yo=280;288>yo;++yo)ql[yo]=8;var Cv=new rr(32);for(yo=0;32>yo;++yo)Cv[yo]=5;var ace=_p(ql,9),nce=_p(Cv,5),l4=function(t){return(t/8>>0)+(7&t&&1)},c4=function(t,e,o){(o==null||o>t.length)&&(o=t.length);var a=new(t instanceof fn?fn:t instanceof $d?$d:rr)(o-e);return a.set(t.subarray(e,o)),a},_s=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8},op=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8,t[a+2]|=o>>>16},ax=function(t,e){for(var o=[],a=0;t.length>a;++a)t[a]&&o.push({s:a,f:t[a]});var n=o.length,r=o.slice();if(!n)return[new rr(0),0];if(n==1){var i=new rr(o[0].s+1);return i[o[0].s]=1,[i,1]}o.sort((function(P,D){return P.f-D.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],u=0,m=1,h=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=o[o[h].f>o[u].f?u++:h++],d=o[u!=m&&o[h].f>o[u].f?u++:h++],o[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(a=1;n>a;++a)r[a].s>f&&(f=r[a].s);var v=new fn(f+1),y=b0(o[m-1],v,0);if(y>e){a=0;var S=0,T=y-e,x=1<<T;for(r.sort((function(P,D){return v[D.s]-v[P.s]||P.f-D.f}));n>a;++a){var k=r[a].s;if(e>=v[k])break;S+=x-(1<<y-v[k]),v[k]=e}for(S>>>=T;S>0;){var E=r[a].s;e>v[E]?S-=1<<e-v[E]++-1:++a}for(;a>=0&&S;--a){var C=r[a].s;v[C]==e&&(--v[C],++S)}y=e}return[new rr(v),y]},b0=function(t,e,o){return t.s==-1?Math.max(b0(t.l,e,o+1),b0(t.r,e,o+1)):e[t.s]=o},b2=function(t){for(var e=t.length;e&&!t[--e];);for(var o=new fn(++e),a=0,n=t[0],r=1,i=function(d){o[a++]=d},c=1;e>=c;++c)if(t[c]==n&&c!=e)++r;else{if(!n&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(n),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(n);r=1,n=t[c]}return[o.subarray(0,a),e]},ap=function(t,e){for(var o=0,a=0;e.length>a;++a)o+=t[a]*e[a];return o},y0=function(t,e,o){var a=o.length,n=l4(e+2);t[n]=255&a,t[n+1]=a>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;a>r;++r)t[n+r+4]=o[r];return 8*(n+4+a)},y2=function(t,e,o,a,n,r,i,c,d,u,m){_s(e,m++,o),++n[256];for(var h=ax(n,15),f=h[0],v=h[1],y=ax(r,15),S=y[0],T=y[1],x=b2(f),k=x[0],E=x[1],C=b2(S),P=C[0],D=C[1],R=new fn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;P.length>O;++O)R[31&P[O]]++;for(var L=ax(R,7),U=L[0],B=L[1],z=19;z>4&&!U[f2[z-1]];--z);var F,W,oe,H,K=u+5<<3,J=ap(n,ql)+ap(r,Cv)+i,se=ap(n,f)+ap(r,S)+i+14+3*z+ap(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return y0(e,m,t.subarray(d,d+u));if(_s(e,m,1+(J>se)),m+=2,J>se){F=_p(f,v),W=f,oe=_p(S,T),H=S;var Q=_p(U,B);for(_s(e,m,E-257),_s(e,m+5,D-1),_s(e,m+10,z-4),m+=14,O=0;z>O;++O)_s(e,m+3*O,U[f2[O]]);m+=3*z;for(var M=[k,P],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)_s(e,m,Q[I=31&V[O]]),m+=U[I],I>15&&(_s(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=ace,W=ql,oe=nce,H=Cv;for(O=0;c>O;++O)if(a[O]>255){var I;op(e,m,F[257+(I=a[O]>>>18&31)]),m+=W[I+257],I>7&&(_s(e,m,a[O]>>>23&31),m+=BC[I]);var j=31&a[O];op(e,m,oe[j]),m+=H[j],j>3&&(op(e,m,a[O]>>>5&8191),m+=FC[j])}else op(e,m,F[a[O]]),m+=W[a[O]];return op(e,m,F[256]),m+W[256]},rce=new $d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),sce=(function(){for(var t=new $d(256),e=0;256>e;++e){for(var o=e,a=9;--a;)o=(1&o&&3988292384)^o>>>1;t[e]=o}return t})(),nx=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};function ice(t,e){e===void 0&&(e={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,y=0;f.length>y;++y)v=sce[255&v^f[y]]^v>>>8;h=v},d(){return 4294967295^h}}})(),a=t.length;o.p(t);var n,r,i,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,v,y,S,T){var x=h.length,k=new rr(y+x+5*(1+Math.floor(x/7e3))+S),E=k.subarray(y,k.length-S),C=0;if(!f||8>x)for(var P=0;x>=P;P+=65535){var D=P+65535;x>D?C=y0(E,C,h.subarray(P,D)):(E[P]=!0,C=y0(E,C,h.subarray(P,x)))}else{for(var R=rce[f-1],O=R>>>13,L=8191&R,U=(1<<v)-1,B=new fn(32768),z=new fn(U+1),F=Math.ceil(v/3),W=2*F,oe=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&U},H=new $d(25e3),K=new fn(288),J=new fn(32),se=0,Q=0,M=(P=0,0),G=0,V=0;x>P;++P){var I=oe(P),j=32767&P,X=z[I];if(B[j]=X,z[I]=j,P>=G){var de=x-P;if((se>7e3||M>24576)&&de>423){C=y2(h,E,0,H,K,J,Q,M,V,P-V,C),M=se=Q=0,V=P;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ce=2,qe=0,Z=L,ne=j-X&32767;if(de>2&&I==oe(P-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,P),Te=Math.min(258,de);ie>=ne&&--Z&&j!=X;){if(h[P+Ce]==h[P+Ce-ne]){for(var _e=0;Te>_e&&h[P+_e]==h[P+_e-ne];++_e);if(_e>Ce){if(Ce=_e,qe=ne,_e>ve)break;var it=Math.min(ne,_e-2),ct=0;for(ue=0;it>ue;++ue){var Ge=P-ne+ue+32768&32767,at=Ge-B[Ge]+32768&32767;at>ct&&(ct=at,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(qe){H[M++]=268435456|v0[Ce]<<18|v2[qe];var Ne=31&v0[Ce],Oe=31&v2[qe];Q+=BC[Ne]+FC[Oe],++K[257+Ne],++J[Oe],G=P+Ce,++se}else H[M++]=h[P],++K[h[P]]}}C=y2(h,E,!0,H,K,J,Q,M,V,P-V,C)}return c4(k,0,y+l4(C)+S)})(r=t,(i=e).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,c,d)),m=u.length;return(function(h,f){var v=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&nx(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var y=0;v.length>=y;++y)h[y+10]=v.charCodeAt(y)}})(u,e),nx(u,m-8,o.d()),nx(u,m-4,a),u}var lce=!!$T||!!UT,d4="text/plain",S2=!1,bb=function(t,e,o){var a;o===void 0&&(o=!0);var[n,r]=t.split("?"),i=Me({},e),c=(a=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=o&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+v})))!==null&&a!==void 0?a:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return bo(u,(function(y,S){$e(y)||$e(S)||S==="undefined"||(h=encodeURIComponent((T=>T instanceof File)(y)?y.name:y.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},fd=(t,e)=>JSON.stringify(t,((o,a)=>typeof a=="bigint"?a.toString():a),e),rx=t=>{if(t.tr)return t.tr;var{data:e,compression:o}=t;if(e){if(o===$r.GZipJS){var a=ice((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new rr(c.length+(c.length>>>1)),h=0,f=function(T){m[h++]=T},v=0;u>v;++v){if(h+5>m.length){var y=new rr(h+8+(u-v<<1));y.set(m),m=y}var S=c.charCodeAt(v);128>S?f(S):2048>S?(f(192|S>>>6),f(128|63&S)):S>55295&&57344>S?(f(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),f(128|S>>>12&63),f(128|S>>>6&63),f(128|63&S)):(f(224|S>>>12),f(128|S>>>6&63),f(128|63&S))}return c4(m,0,h)})(fd(e)),{mtime:0});return{contentType:d4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===$r.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(fd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:fd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=fd(e);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},cce=(function(){var t=er((function*(e){var o=fd(e.data),a=yield(function(r,i,c){return VT.apply(this,arguments)})(o,Qa.DEBUG,{rethrow:!0});if(!a)return e;var n=yield a.arrayBuffer();return Me({},e,{tr:{contentType:d4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),w2=(t,e)=>bb(t,{_:new Date().getTime().toString(),ver:Qa.JS_SDK_VERSION,compression:e}),_f=[];UT&&_f.push({transport:"fetch",method(t){var e,o,{contentType:a,body:n,estimatedSize:r}=(e=rx(t))!==null&&e!==void 0?e:{},i=new Headers;bo(t.headers,(function(m,h){i.append(h,m)})),a&&i.append("Content-Type",a);var c=t.url,d=null;if(JO){var u=new JO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}UT(c,Me({method:t?.method||"GET",headers:i,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(o=d)==null?void 0:o.signal},t.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(v){Ue.error(v)}t.callback==null||t.callback(f)})))).catch((m=>{Ue.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),$T&&_f.push({transport:"XHR",method(t){var e,o=new $T;o.open(t.method||"GET",t.url,!0);var{contentType:a,body:n}=(e=rx(t))!==null&&e!==void 0?e:{};bo(t.headers,(function(r,i){o.setRequestHeader(i,r)})),a&&o.setRequestHeader("Content-Type",a),t.timeout&&(o.timeout=t.timeout),t.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var r={statusCode:o.status,text:o.responseText};if(o.status===200)try{r.json=JSON.parse(o.responseText)}catch{}t.callback==null||t.callback(r)}},o.send(n)}}),Mn!=null&&Mn.sendBeacon&&_f.push({transport:"sendBeacon",method(t){var e=bb(t.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=rx(t))!==null&&o!==void 0?o:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:a});Mn.sendBeacon(e,r)}catch{}}});var S0=3e3;class dce{constructor(e,o){this.Pr=!0,this.Lr=[],this.Dr=Zr(o?.flush_interval_ms||S0,250,5e3,Ue.createLogger("flush interval"),S0),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},o=Object.values(e);[...o.filter((a=>a.url.indexOf("/e")===0)),...o.filter((a=>a.url.indexOf("/e")!==0))].map((a=>{this.Br(Me({},a,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var e=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),a=function(){var r=o[n],i=new Date().getTime();r.data&&It(r.data)&&bo(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),e.Br(r)};for(var n in o)a()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return bo(this.Lr,(o=>{var a,n=o,r=(n?n.batchKey:null)||n.url;$e(e[r])&&(e[r]=Me({},n,{data:[]})),(a=e[r].data)==null||a.push(n.data)})),this.Lr=[],e}}var uce=["retriesPerformedSoFar"];class pce{constructor(e){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=e,this.Lr=[],this.zr=!0,!$e(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Jo(ge,"online",this.Ur),Jo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:o}=e,a=m3(e,uce);sd(o)&&(a.url=bb(a.url,{retry_count:o})),this._instance._send_request(Me({},a,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(o??0)>=10?a.callback==null||a.callback(n):this.Wr(Me({retriesPerformedSoFar:o},a))}}))}Wr(e){var o=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=o+1;var a=(function(i){var c=3e3*Math.pow(2,i),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(o),n=Date.now()+a;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+a;navigator.onLine||(r+=" (Browser is offline)"),Ue.warn(r),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var e=Date.now(),o=[],a=this.Lr.filter((r=>e>r.retryAt||(o.push(r),!1)));if(this.Lr=o,a.length>0)for(var{requestOptions:n}of a)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,$e(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Me({},e,{transport:"sendBeacon"}))}catch(o){Ue.error(o)}this.Lr=[]}}class mce{constructor(e){this.Kr=()=>{var o,a,n,r;this.Qr||(this.Qr={});var i=this.scrollElement(),c=this.scrollY(),d=i?Math.max(0,i.scrollHeight-i.clientHeight):0,u=c+(i?.clientHeight||0),m=i?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(a=this.Qr.maxScrollHeight)!==null&&a!==void 0?a:0),this.Qr.lastContentY=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Kr,0),e}startMeasuringScrollPosition(){Jo(ge,"scroll",this.Kr,{capture:!0}),Jo(ge,"scrollend",this.Kr,{capture:!0}),Jo(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=It(this.ei)?this.ei:[this.ei];for(var o of e){var a=ge?.document.querySelector(o);if(a)return a}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var hce=t=>t4(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class x2{constructor(e,o,a,n){this.ti=r=>{var i=this.ri();if(!i||i.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[u0]:c})}},this._instance=e,this.si=o,this.ni=a,this.ii=n||hce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[u0]}getSetOnceProps(){var e,o=(e=this.ri())==null?void 0:e.props;return o?"r"in o?o4(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var e={};return bo(LC(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),e["$session_entry_"+HT(a)]=o})),e}}class jC{constructor(){this.oi={}}on(e,o){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(o),()=>{this.oi[e]=this.oi[e].filter((a=>a!==o))}}emit(e,o){for(var a of this.oi[e]||[])a(o);for(var n of this.oi["*"]||[])n(e,o)}}var sx=To("[SessionId]");class T2{on(e,o){return this.ai.on(e,o)}constructor(e,o,a){var n;if(this.li=[],this.ui=void 0,this.ai=new jC,this.hi=(u,m)=>!(!sd(u)||!sd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Ds)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||Ri,this.fi=a||Ri;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Zr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,sx.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var i=Ca.Z(this.gi),c=Ca.Z(this.mi);i&&!c?this.ci=i:Ca.F(this.gi),Ca.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(u){sx.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return $e(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Ca.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Ca.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Ca.Z(this.gi):null}bi(e,o,a){e===this.di&&o===this._sessionActivityTimestamp&&a===this._sessionStartTimestamp||(this._sessionStartTimestamp=a,this._sessionActivityTimestamp=o,this.di=e,this.ni.register({[hv]:[o,e,a]}))}Si(){var e=this.ni.props[hv];return It(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(yv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ca.F(this.mi)},Jo(ge,yv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,o){if(e===void 0&&(e=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Ds)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var a=o||new Date().getTime(),[n,r,i]=this.Si(),c=this.Ci(),d=sd(i)&&Math.abs(a-i)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(a,n);m||h||d?(r=this.vi(),c=this.fi(),sx.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),i=a,u=!0):c||(c=this.fi(),u=!0);var f=sd(n)&&e&&!d?n:a,v=sd(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),e||this.pi(),u&&this.li.forEach((y=>y(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[e]=this.Si();if(this.hi(new Date().getTime(),e)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var u4=function(t,e){if(!t)return!1;var o=t.userAgent;if(o&&t2(o,e))return!0;try{var a=t?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>t2(n?.brand,e))))return!0}catch{}return!!t.webdriver},Ev=function(t,e){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function k2(t,e,o){return fd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:o})}var p4={exact:(t,e)=>e.some((o=>t.some((a=>o===a)))),is_not:(t,e)=>e.every((o=>t.every((a=>o!==a)))),regex:(t,e)=>e.some((o=>t.some((a=>Ev(o,a))))),not_regex:(t,e)=>e.every((o=>t.every((a=>!Ev(o,a))))),icontains:(t,e)=>e.map(tf).some((o=>t.map(tf).some((a=>o.includes(a))))),not_icontains:(t,e)=>e.map(tf).every((o=>t.map(tf).every((a=>!o.includes(a))))),gt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a>parseFloat(n)))})),lt:(t,e)=>e.some((o=>{var a=parseFloat(o);return!isNaN(a)&&t.some((n=>a<parseFloat(n)))}))},tf=t=>t.toLowerCase();function m4(t,e){return!t||Object.entries(t).every((o=>{var[a,n]=o,r=e?.[a];if($e(r)||zs(r))return!1;var i=[String(r)],c=p4[n.operator];return!!c&&c(n.values,i)}))}var w0="custom",C2="i.posthog.com",gce=/^\/static\//;class fce{constructor(e){this.ki={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,o=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+C2,".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":w0),this.ki[this.apiHost]}Ti(e){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&gce.test(e))return o.trim().replace(/\/$/,"")||void 0}endpointFor(e,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),e==="ui")return this.uiHost+o;if(e==="flags")return this.flagsApiHost+o;if(e==="assets"){var a=this.Ti(o);if(a)return""+a+o}if(this.region===w0)return this.apiHost+o;var n=C2+o;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var oo=To("[Surveys]"),x0="seenSurvey_",vce=[tx.Popover,tx.Widget,tx.API],bce={ignoreConditions:!1,ignoreDelay:!1,displayType:f0.Popover},yce=To("[PostHog ExternalIntegrations]"),Sce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class wce{constructor(e){this._instance=e}ur(e,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,e,(n=>{if(n)return yce.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var e=this,o=function(i){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||e.ur(Sce[i],(()=>{var m;(m=ot.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(e._instance)})),!n&&(d=ot.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[i]&&((u=ot.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.stop())};for(var[a,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;o(a)}}}var Jc,Pp={},ix=0,T0=()=>{},E2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",_2="sanitize_properties is deprecated. Use before_send instead",h4="Invalid value for property_denylist config: ",cd="posthog",g4=!lce&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,P2=t=>{var e;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Fle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:T0,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:ka&&_o(ka?.search)&&ka.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(e=ge.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Ue.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:g0,before_send:void 0,request_queue_config:{flush_interval_ms:S0},error_tracking:{},_onCapture:T0,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},xce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],A2=t=>{var e={};for(var[o,a]of xce)$e(t[o])||(e[a]=t[o]);var n=Mo({},e,t);return It(t.property_blacklist)&&($e(t.property_denylist)?n.property_denylist=t.property_blacklist:It(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ue.error(h4+t.property_denylist)),n};class Tce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,o){if(e){var a=this.Ri.indexOf(e);a!==-1&&this.Ri.splice(a,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===Ds||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,o;return(e=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new Tce,this.Mi=!1,this.version=Qa.LIB_VERSION,this.Fi=new jC,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=P2(),this.SentryIntegration=Kle,this.sentryIntegration=a=>(function(n,r){var i=Z3(n,r);return{name:Y3,processEvent:c=>i(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 mce(this),this.pageViewManager=new p2(this),this.rateLimiter=new oce(this),this.requestRouter=new fce(this),this.consent=new Hle(this),this.externalIntegrations=new wce(this);var o=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(a,n,r)=>{var i=_o(a)?{[a]:n}:a;this.setPersonProperties(i),r?.({})},set_once:(a,n,r)=>{var i=_o(a)?{[a]:n}:a;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(a=>Ue.info('send "'+a?.event+'"',a)))}init(e,o,a){if(a&&a!==cd){var n,r=(n=Pp[a])!==null&&n!==void 0?n:new tr;return r._init(e,o,a),Pp[a]=r,Pp[cd][a]=r,r}return this._init(e,o,a)}_init(e,o,a){var n,r;if(o===void 0&&(o={}),$e(e)||Tf(e))return Ue.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(Mo({},P2(o.defaults),A2(o),{name:a,token:e})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:$r.GZipJS;var i=this.qi();this.persistence=new ex(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ex(Me({},this.config,{persistence:"sessionStorage"}),i);var c=Me({},this.persistence.props),d=Me({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new dce((T=>this.Vi(T)),this.config.request_queue_config),this.Hi=new pce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new T2(this),this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(u)),Qa.DEBUG=Qa.DEBUG||this.config.debug,Qa.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:o,thisC:Me({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=o.bootstrap)!=null&&n.distinctID||(o.bootstrap=Me({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=o.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=o.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(br);if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Yc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)Ue.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(Ri()),y=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(br,o.bootstrap.isIdentifiedID?Zc:Yc),this.register({distinct_id:m,$device_id:y})}}if(u)this.register_once({distinct_id:Zg,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(Ri());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(br,Yc)}return Jo(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(T,x){var k=T.config.segment;if(!k)return x();(function(E,C){var P=E.config.segment;if(!P)return C();var D=O=>{var L=()=>O.anonymousId()||Ri();E.config.get_device_id=L,O.id()&&(E.register({distinct_id:O.id(),$device_id:L()}),E.persistence.set_property(br,Zc)),C()},R=P.user();"then"in R&&Rs(R.then)?R.then(D):D(R)})(T,(()=>{k.register((E=>{Promise&&Promise.resolve||Xw.warn("This browser does not have Promise support, and can not use the segment integration");var C=(P,D)=>{if(!D)return P;P.event.userId||P.event.anonymousId===E.get_distinct_id()||(Xw.info("No userId set, resetting PostHog"),E.reset()),P.event.userId&&P.event.userId!==E.get_distinct_id()&&(Xw.info("UserId set, identifying with PostHog"),E.identify(P.event.userId));var R=E.calculateEventProperties(D,P.event.properties);return P.event.properties=Object.assign({},R,P.event.properties),P};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:P=>C(P,P.event.event),page:P=>C(P,ld),identify:P=>C(P,Qw),screen:P=>C(P,"$screen")}})(T)).then((()=>{x()}))}))})(this,(()=>this.Ui())):this.Ui(),Rs(this.config._onCapture)&&this.config._onCapture!==T0&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),this.config.ip&&Ue.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(e){var o,a,n,r,i,c,d,u=performance.now(),m=Me({},tr.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(a=this.exceptions)!==null&&a!==void 0?a:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!e&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i: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,Wle)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,u)}Gi(e,o){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,o)}),0);var a=e.shift();if(a)try{a()}catch(r){Ue.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[V3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[H3]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var o;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(e.supportedCompression,$r.GZipJS)?$r.GZipJS:Ct(e.supportedCompression,$r.Base64)?$r.Base64:void 0),(o=e.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:g0}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(a){Ue.critical("`loaded` function failed",a)}if(this.Xi(),this.config.internal_or_test_user_hostname&&ka!=null&&ka.hostname){var e=ka.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?e===o:o.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new n4(this),this.Ki.load()}Xi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Qg(this.__request_queue,(e=>this.Vi(e))),this.__request_queue=[],this.Xi()}_handle_unload(){var e,o,a,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(Zw),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(Zw,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(g4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=bb(e.url,{ip:this.config.ip?1:0}),e.headers=Me({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(o=>{var a,n,r,i=Me({},o);i.timeout=i.timeout||6e4,i.url=w2(i.url,i.compression);var c=(a=i.transport)!==null&&a!==void 0?a:"fetch",d=_f.filter((m=>!i.disableTransport||!m.transport||!i.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&i.data&&i.compression===$r.GZipJS&&Kie&&!S2?cce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return S2=!0,void u(Me({},i,{compression:void 0,url:w2(o.url,void 0)}));u(i)})):u(i)})(Me({},e,{callback:o=>{var a,n;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(a=(n=this.config).on_request_error)==null||a.call(n,o),e.callback==null||e.callback(o)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){ix++;try{var o,a=[],n=[],r=[];Qg(e,(c=>{c&&(It(o=c[0])?r.push(c):Rs(c)?c.call(this):It(c)&&o==="alias"?a.push(c):It(c)&&o.indexOf("capture")!==-1&&Rs(this[o])?r.push(c):n.push(c))}));var i=function(c,d){Qg(c,(function(u){if(It(u[0])){var m=d;bo(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};i(a,this),i(n,this),i(r,this)}finally{ix--}}push(e){if(ix>0&&It(e)&&_o(e[0])){var o=tr.prototype[e[0]];Rs(o)&&o.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,o,a){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(e)&&_o(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var m=a!=null&&a.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){o!=null&&o.$current_url&&!_o(o?.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),e!=="$exception"||a!=null&&a.en||Ue.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,f=a?.timestamp||h,v=Ri(),y={uuid:v,event:e,properties:this.calculateEventProperties(e,o||{},f,v)};e===ld&&this.config.__preview_capture_bot_pageviews&&u&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),m&&(y.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(y.$set=a?.$set);var S,T,x,k=this.tn(a?.$set_once,e!==l2,e===Qw);if(k&&(y.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,i=y,c=L=>_o(L)?L.slice(0,r):L,d=new Set,y=(function L(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),It(U)?(z=[],Qg(U,(F=>{z.push(L(F))}))):(z={},bo(U,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),y.timestamp=f,$e(a?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=h),e===xp.DISMISSED||e===xp.SENT){var E=o?.[ox.SURVEY_ID],C=o?.[ox.SURVEY_ITERATION];(L=>{try{var U=(B=>((z,F)=>{var W=""+x0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+x0+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){oo.error("Failed to persist survey seen state",B)}})({id:E,current_iteration:C}),y.$set=Me({},y.$set,{[(S={id:E,current_iteration:C},T=e===xp.SENT?"responded":"dismissed",x="$survey_"+T+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(x="$survey_"+T+"/"+S.id+"/"+S.current_iteration),x)]:!0})}else e===xp.SHOWN&&(y.$set=Me({},y.$set,{[ox.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===tce.SHOWN){var P=o?.[h2.TOUR_TYPE];P&&(y.$set=Me({},y.$set,{[h2.TOUR_LAST_SEEN_DATE+"/"+P]:new Date().toISOString()}))}var D=Me({},y.properties.$set,y.$set);if(hd(D)||this.setPersonPropertiesForFlags(D),!_t(this.config.before_send)){var R=this.rn(y);if(!R)return;y=R}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(o=>e(o.event,o)))}calculateEventProperties(e,o,a,n,r){if(a=a||new Date,!this.persistence||!this.sessionPersistence)return o;var i=r?void 0:this.persistence.remove_event_timer(e),c=Me({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),e==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!_o(c.distinct_id)&&!sr(c.distinct_id)||Tf(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(x,k){var E,C,P,D;if(!mn)return{};var R,O,L,U,B,z,F,W,oe=x?[...Ud,...k||[]]:[],[H,K]=(function(J){for(var se=0;n2.length>se;se++){var[Q,M]=n2[se],G=Q.exec(J),V=G&&(Rs(M)?M(G,J):M);if(V)return V}return["",""]})(mn);return Mo(LC({$os:H,$os_version:K,$browser:O3(mn,navigator.vendor),$device:r2(mn),$device_type:(O=mn,L={userAgentDataPlatform:(E=navigator)==null||(E=E.userAgentData)==null?void 0:E.platform,maxTouchPoints:(C=navigator)==null?void 0:C.maxTouchPoints,screenWidth:ge==null||(P=ge.screen)==null?void 0:P.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=r2(O),W===b3||W===v3||W==="Kobo"||W==="Kindle Fire"||W===D3?jd:W===Wp||W===Cd||W===Kp||W===WT?"Console":W===S3?"Wearable":W?Ln:L?.userAgentDataPlatform==="Android"&&((U=L?.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:jd:"Desktop"),$timezone:a4(),$timezone_offset:Xle()}),{$current_url:Yp(ka?.href,oe,Zp),$host:ka?.host,$pathname:ka?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:dle(mn,navigator.vendor),$browser_language:m2(),$browser_language_prefix:(R=m2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Qa.LIB_NAME,$lib_version:Qa.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(r,a.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Mo(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Mo(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(x){c.$sdk_debug_error_capturing_properties=String(x)}if(this.requestRouter.region===w0&&(c.$lib_custom_api_host=this.config.api_host),u=e!==ld||r?e!==Zw||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Mo(c,u),e===ld&&ze&&(c.title=ze.title),!$e(i)){var y=a.getTime()-i;c.$duration=parseFloat((y/1e3).toFixed(3))}mn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Mo({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),It(this.config.property_denylist)?bo(this.config.property_denylist,(function(x){delete c[x]})):Ue.error(h4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Ue.error(_2),c=S(c,e));var T=this.nn();return c.$process_person_profile=T,T&&!r&&this.sn("_calculate_event_properties"),c}tn(e,o,a){var n;if(o===void 0&&(o=!0),a===void 0&&(a=!1),!this.persistence||!this.nn()||this.Mi&&!a)return e;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Mo({},r,i||{},e||{}),d=this.config.sanitize_properties;return d&&(Ue.error(_2),c=d(c,"$set_once")),o&&(this.Mi=!0),hd(c)?void 0:c}register(e,o){var a;(a=this.persistence)==null||a.register(e,o)}register_once(e,o,a){var n;(n=this.persistence)==null||n.register_once(e,o,a)}register_for_session(e){var o;(o=this.sessionPersistence)==null||o.register(e)}unregister(e){var o;(o=this.persistence)==null||o.unregister(e)}unregister_for_session(e){var o;(o=this.sessionPersistence)==null||o.unregister(e)}an(e,o){this.register({[e]:o})}getFeatureFlag(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(e,o)}getFeatureFlagPayload(e){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(e)}getFeatureFlagResult(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(e,o)}isFeatureEnabled(e,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(e,o)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(e,o,a)}updateEarlyAccessFeatureEnrollment(e,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,o,a)}getEarlyAccessFeatures(e,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,o,a)}on(e,o){return this.Fi.on(e,o)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:np}),()=>{})}onSessionId(e){var o,a;return(o=(a=this.sessionManager)==null?void 0:a.onSessionId(e))!==null&&o!==void 0?o:()=>{}}getSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(e,o):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,o):e([],{isLoaded:!1,error:np})}renderSurvey(e,o){var a;(a=this.surveys)==null||a.renderSurvey(e,o)}displaySurvey(e,o){var a;o===void 0&&(o=bce),(a=this.surveys)==null||a.displaySurvey(e,o)}cancelPendingSurvey(e){var o;(o=this.surveys)==null||o.cancelPendingSurvey(e)}canRenderSurvey(e){var o,a;return(o=(a=this.surveys)==null?void 0:a.canRenderSurvey(e))!==null&&o!==void 0?o:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,o){var a,n;return o===void 0&&(o=!1),(a=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,o))!==null&&a!==void 0?a:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||Tf(e)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,o,a){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(sr(e)&&(e=e.toString(),Ue.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(mv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(vp)&&(this.unregister(vp),this.register({distinct_id:e}));var r,i=(this.persistence.get_property(br)||Yc)===Yc;e!==n&&i?(this.persistence.set_property(br,Zc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(Qw,{distinct_id:e,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=k2(e,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),e!==n&&(this.reloadFeatureFlags(),this.unregister(Ep))}}setPersonProperties(e,o){if((e||o)&&this.sn("posthog.setPersonProperties")){var a=k2(this.get_distinct_id(),e,o);this.Di!==a?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:o||{}},!0),this.capture("$set",{$set:e||{},$set_once:o||{}}),this.Di=a):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,o,a){if(e&&o){var n=this.getGroups(),r=n[e]!==o;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Me({},n,{[e]:o})}),r||a){var i={$group_type:e,$group_key:o};a&&(i.$group_set=a),this.capture(l2,i)}a&&this.setGroupPropertiesForFlags({[e]:a}),r&&!a&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),(a=this.featureFlags)==null||a.setPersonPropertiesForFlags(e,o)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,o){var a;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((a=this.featureFlags)==null||a.setGroupPropertiesForFlags(e,o))}resetGroupPropertiesForFlags(e){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(e)}reset(e){var o,a,n,r,i,c,d,u;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(mv);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(a=this.sessionPersistence)==null||a.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(i=this.featureFlags)==null||i.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(br,Yc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ds)this.register_once({distinct_id:Zg,$device_id:null},"");else{var h=this.config.get_device_id(Ri());this.register_once({distinct_id:h,$device_id:e?h:m},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,o){var a;this.config.identity_distinct_id=e,this.config.identity_hash=o,this.alias(e),(a=this.conversations)==null||a.un()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,o;return(e=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:a}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(e!=null&&e.withTimestamp&&a){var r,i=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!a)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-a)/1e3)-i,0)}return n}alias(e,o){return e===this.get_property(F3)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(o)&&(o=this.get_distinct_id()),e!==o?(this.an(vp,e),this.capture("$create_alias",{alias:e,distinct_id:o})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var o=Me({},this.config);if(Fo(e)){var a,n,r,i,c,d,u,m,h,f;Mo(this.config,A2(e));var v=this.qi();(a=this.persistence)==null||a.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ex(Me({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);Yr(y)&&(this.config.debug=y),Yr(this.config.debug)&&(this.config.debug?(Qa.DEBUG=!0,Eo.R()&&Eo.M("ph_debug",!0),Ue.info("set_config",{config:e,oldConfig:o,newConfig:Me({},this.config)})):(Qa.DEBUG=!1,Eo.R()&&Eo.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,o){Qa.LIB_NAME=e,Qa.LIB_VERSION=o}startSessionRecording(e){var o,a,n,r,i,c=e===!0,d={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((a=this.sessionRecording)==null||a.overrideSampling()),d.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),d.url_trigger&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,o){if(this.exceptions){var a=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:a});return this.exceptions.sendExceptionEvent(Me({},n,o))}}addExceptionStep(e,o){var a;(a=this.exceptions)==null||a.addExceptionStep(e,o)}captureLog(e){var o;(o=this.logs)==null||o.captureLog(e)}get logger(){var e,o;return(e=(o=this.logs)==null?void 0:o.logger)!==null&&e!==void 0?e:tr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var o,a;return(o=(a=this.toolbar)==null?void 0:a.loadToolbar(e))!==null&&o!==void 0&&o}get_property(e){var o;return(o=this.persistence)==null?void 0:o.props[e]}getSessionProperty(e){var o;return(o=this.sessionPersistence)==null?void 0:o.props[e]}toString(){var e,o=(e=this.config.name)!==null&&e!==void 0?e:cd;return o!==cd&&(o=cd+"."+o),o}_isIdentified(){var e,o;return((e=this.persistence)==null?void 0:e.get_property(br))===Zc||((o=this.sessionPersistence)==null?void 0:o.get_property(br))===Zc}nn(){var e,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===g0&&!this._isIdentified()&&hd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[vp])&&((o=this.persistence)==null||(o=o.props)==null||!o[vv]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(e){return this.config.person_profiles==="never"?(Ue.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(vv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Al)}cn(){var e,o,a,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((a=this.persistence)==null||a.set_disabled(r)),((o=this.sessionPersistence)==null?void 0:o._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var o;if(this.config.cookieless_mode!==Ds){if(this.Ni()){var a,n,r,i,c;this.reset(!0),(a=this.sessionManager)==null||a.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new T2(this),this.pageViewManager=new p2(this),this.persistence&&(this.sessionPropsManager=new x2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=tr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==Al&&((m=this.surveys)==null||m.loadIfEnabled()),($e(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(E2)}opt_out_capturing(){var e,o,a;this.config.cookieless_mode!==Ds?(this.config.cookieless_mode===Al&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Al&&(this.register({distinct_id:Zg,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(a=this.sessionRecording)==null||a.stopRecording(),this.sessionRecording=void 0,this.Ji())):Ue.warn(E2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ds||(this.config.cookieless_mode===Al?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Mn?u4(Mn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(ld,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(bv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Jo(ze,bv,this.Pi)))}debug(e){e===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var e,o,a,n,r,i,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ue.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=Ue,r=(o="advanced_disable_flags")in(e=c)&&!_t(e[o]),i=a in e&&!_t(e[a]),r?e[o]:!!i&&(n&&n.warn("Config field '"+a+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),e[a]))}rn(e){if(_t(this.config.before_send))return e;var o=It(this.config.before_send)?this.config.before_send:[this.config.before_send],a=e;for(var n of o){if(a=n(a),_t(a)){var r="Event '"+e.event+"' was rejected in beforeSend function";return Jie(e.event)?Ue.warn(r+". This can cause unexpected behavior."):Ue.info(r),null}a.properties&&!hd(a.properties)||Ue.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,o){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:o})}captureTraceMetric(e,o,a){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(e){var o=Yr(e)&&!e,a=Eo.R()&&Eo.O("ph_debug")==="true";return!o&&(!!a||e)}}function R2(t){return t instanceof Element&&(t.id===$3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function yb(t){return!!t&&t.nodeType===1}function ji(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function f4(t){return!!t&&t.nodeType===3}function v4(t){return!!t&&t.nodeType===11}function zC(t){return t?fb(t).split(/\s+/):[]}function D2(t){var e=ge?.location.href;return!!(e&&t&&t.some((o=>e.match(o))))}function _v(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return zC(e)}function b4(t){return _t(t)?null:fb(t).split(/(\s+)/).filter((e=>Ap(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qp(t){var e="";return C0(t)&&!S4(t)&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;f4(o)&&o.textContent&&(e+=(a=b4(o.textContent))!==null&&a!==void 0?a:"")})),fb(e)}function O2(t){return $e(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Jc=()=>{},debug:Jc,info:Jc,warn:Jc,error:Jc,fatal:Jc},(function(t,e){for(var o=0;e.length>o;o++)t.prototype[e[o]]=Lle(t.prototype[e[o]])})(tr,["identify"]);var qC=["a","button","form","input","select","textarea","label"];function N2(t,e){if($e(e))return!0;var o,a=function(r){if(e.some((i=>r.matches(i))))return{v:!0}};for(var n of t)if(o=a(n))return o.v;return!1}function y4(t){var e=t.parentNode;return!(!e||!yb(e))&&e}var kce=["next","previous","prev",">","<"],M2=[".ph-no-rageclick",".ph-no-capture"],k0=t=>!t||ji(t,"html")||!yb(t),I2=(t,e)=>{if(!ge||k0(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[t],n=t;n.parentNode&&!ji(n,"body");)if(v4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=y4(n);if(!r)break;if(e||qC.indexOf(r.tagName.toLowerCase())>-1)o=!0;else{var i=ge.getComputedStyle(r);i&&i.getPropertyValue("cursor")==="pointer"&&(o=!0)}a.push(r),n=r}return{parentIsUsefulElement:o,targetElementList:a}};function C0(t){for(var e=t;e.parentNode&&!ji(e,"body");e=e.parentNode){var o=_v(e);if(Ct(o,"ph-sensitive")||Ct(o,"ph-no-capture"))return!1}if(Ct(_v(t),"ph-include"))return!0;var a=t.type||"";if(_o(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!_o(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 S4(t){return!!(ji(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ji(t,"select")||ji(t,"textarea")||t.getAttribute("contenteditable")==="true")}var w4="(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})",Cce=new RegExp("^(?:"+w4+")$"),Ece=new RegExp(w4),x4="\\d{3}-?\\d{2}-?\\d{4}",_ce=new RegExp("^("+x4+")$"),Pce=new RegExp("("+x4+")");function Ap(t,e){return e===void 0&&(e=!0),!(_t(t)||_o(t)&&(t=fb(t),(e?Cce:Ece).test((t||"").replace(/[- ]/g,""))||(e?_ce:Pce).test(t)))}function L2(t){var e=Qp(t);return Ap(e=(e+" "+T4(t)).trim())?e:""}function T4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&bo(t.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Qp(o);e=(e+" "+n).trim(),o.childNodes&&o.childNodes.length&&(e=(e+" "+T4(o)).trim())}catch(r){Ue.error("[AutoCapture]",r)}})),e}function B2(t){return t.replace(/"|\\"/g,'\\"')}function Ace(t){var e=t.attr__class;return e?It(e)?e:zC(e):void 0}class F2{constructor(e){this.disabled=e===!1;var o=Fo(e)?e:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(e,o,a){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(o-n.y)<this.thresholdPx&&this.timeoutMs>a-n.timestamp){if(this.clicks.push({x:e,y:o,timestamp:a}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:o,timestamp:a}];return!1}}var lx="$copy_autocapture",j2=To("[AutoCapture]");function cx(t,e){return e.length>t?e.slice(0,t)+"...":e}function Rce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!yb(e));return e}function Dce(t,e){for(var o,a,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=e,u=[t],m=t;m.parentNode&&!ji(m,"body");)v4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],y={},S=!1,T=!1;if(bo(u,(P=>{var D=C0(P);P.tagName.toLowerCase()==="a"&&(S=P.getAttribute("href"),S=D&&S&&Ap(S)&&S),Ct(_v(P),"ph-no-capture")&&(T=!0),v.push((function(O,L,U,B){var z=O.tagName.toLowerCase(),F={tag_name:z};qC.indexOf(z)>-1&&!U&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?cx(1024,L2(O)):cx(1024,Qp(O)));var W=_v(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),bo(O.attributes,(function(J){var se;if((!S4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Ap(J.value)&&(!_o(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=zC(Q).join(" ")),F["attr__"+J.name]=cx(1024,Q)}}));for(var oe=1,H=1,K=O;K=Rce(K);)oe++,K.tagName===O.tagName&&H++;return F.nth_child=oe,F.nth_of_type=H,F})(P,r,i,c));var R=(function(O){if(!C0(O))return{};var L={};return bo(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),z=U.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(P);Mo(y,R)})),T)return{props:{},explicitNoCapture:T};if(i||(v[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?L2(t):Qp(t)),S){var x,k;v[0].attr__href=S;var E=(x=wv(S))==null?void 0:x.host,C=ge==null||(k=ge.location)==null?void 0:k.host;E&&C&&E!==C&&(h=S)}return{props:Mo({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(P){return P.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))L+="."+U.replace(/"/g,"");var B=Me({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return Ef(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return z[B2(W.toString())]=B2(oe.toString())})),(L+=":")+Ef(z).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(P){return P.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:Ace(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Ef(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,z]=U;return L.attributes[B]=z})),L}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},y)}}var rp=To("[ExceptionAutocapture]");function z2(t,e,o){try{if(!(e in t))return()=>{};var a=t[e],n=o(a);return Rs(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=a}}catch{return()=>{}}}var Oce=To("[TracingHeaders]"),bi=To("[Web Vitals]"),q2=9e5,U2="disabled",$2="lazy_loading",sp="awaiting_config",of="missing_config";To("[SessionRecording]"),To("[SessionRecording]");var E0="[SessionRecording]",yi=To(E0),Nce=To("[Heatmaps]");function V2(t){return Fo(t)&&"clientX"in t&&"clientY"in t&&sr(t.clientX)&&sr(t.clientY)}var H2=To("[Product Tours]"),Mce=["$set_once","$set"],Si=To("[SiteApps]"),G2="Error while initializing PostHog app with config id ";function Xc(t,e,o){if(_t(t))return!1;switch(o){case"exact":return t===e;case"contains":var a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Ice{constructor(e){this.vn=new jC,this.fn=(o,a)=>this.pn(o,a)&&this.gn(o,a)&&this.mn(o,a)&&this.yn(o,a),this.pn=(o,a)=>a==null||!a.event||o?.event===a?.event,this._instance=e,this.bn=new Set,this._n=new Set}init(){var e,o;$e((e=this._instance)==null?void 0:e._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((a,n)=>{this.on(a,n)}))}register(e){var o,a;if(!$e((o=this._instance)==null?void 0:o._addCaptureHook)&&(e.forEach((i=>{var c,d;(c=this._n)==null||c.add(i),(d=i.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(a=this._instance)!=null&&a.autocapture)){var n,r=new Set;e.forEach((i=>{var c;(c=i.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,o){var a;o!=null&&e.length!=0&&(this.bn.has(e)||this.bn.has(o?.event))&&this._n&&((a=this._n)==null?void 0:a.size)>0&&this._n.forEach((n=>{this.wn(o,n)&&this.vn.emit("actionCaptured",n.name)}))}In(e){this.onAction("actionCaptured",(o=>e(o)))}wn(e,o){if(o?.steps==null)return!1;for(var a of o.steps)if(this.fn(e,a))return!0;return!1}onAction(e,o){return this.vn.on(e,o)}gn(e,o){if(o!=null&&o.url){var a,n=e==null||(a=e.properties)==null?void 0:a.$current_url;if(!n||typeof n!="string"||!Xc(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(e,o){return!!this.Cn(e,o)&&!!this.Sn(e,o)&&!!this.xn(e,o)}Cn(e,o){var a;if(o==null||!o.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>Xc(c.href,o.href,o.href_matching||"exact")));var r,i=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!i&&Xc((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",o.href,o.href_matching||"exact")}Sn(e,o){var a;if(o==null||!o.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>Xc(u.text,o.text,o.text_matching||"exact")||Xc(u.$el_text,o.text,o.text_matching||"exact")));var r,i,c,d=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!_t(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),i=o.text,c=o.text_matching||"exact",r.some((u=>Xc(u,i,c))))}xn(e,o){var a,n;if(o==null||!o.selector)return!0;var r=e==null||(a=e.properties)==null?void 0:a.$element_selectors;if(r!=null&&r.includes(o.selector))return!0;var i=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(o.selector_regex&&i)try{return new RegExp(o.selector_regex).test(i)}catch{return!1}return!1}kn(e){var o;return(e==null||(o=e.properties)==null?void 0:o.$elements)==null?[]:e?.properties.$elements}yn(e,o){return o==null||!o.properties||o.properties.length===0||m4(o.properties.reduce(((a,n)=>{var r=It(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return a[n.key]={values:r,operator:n.operator||"exact"},a}),{}),e?.properties)}}class Lce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,o){return!!e&&m4(e.propertyFilters,o?.properties)}Nn(e,o){var a=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[o])==null||(r=r.values)==null||r.forEach((i=>{if(i!=null&&i.name){var c=a.get(i.name)||[];c.push(n.id),a.set(i.name,c)}}))})),a}Mn(e,o,a){var n=(a===ep.Activation?this.Tn:this.An).get(e),r=[];return this.Fn((i=>{r=i.filter((c=>n?.includes(c.id)))})),r.filter((i=>{var c,d=(c=i.conditions)==null||(c=c[a])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,o)}))}register(e){var o;$e((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var o=e.filter((a=>{var n,r;return((n=a.conditions)==null?void 0:n.actions)&&((r=a.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Ice(this._instance),this.Ln.init(),this.Ln.In((a=>{this.onAction(a)}))),o.forEach((a=>{var n,r,i,c,d;a.conditions&&(n=a.conditions)!=null&&n.actions&&(r=a.conditions)!=null&&(r=r.actions)!=null&&r.values&&((i=a.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0&&((c=this.Ln)==null||c.register(a.conditions.actions.values),(d=a.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(a.id),this.En.set(u.name,m||[a.id])}})))})))}On(e){var o,a=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.cancelEvents)&&((c=r.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));a.length===0&&n.length===0||((o=this._instance)==null||o._addCaptureHook(((r,i)=>{this.onEvent(r,i)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,o){var a,n=this.le(),r=this.Dn(),i=this.Bn(),c=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[r])||[];if(i===e&&o&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:o,existingActivatedItems:c});var m=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(u=o.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(e)){var f=this.Mn(e,o,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:f.map((y=>y.id))}),f.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(e)){n.info("event name matched",{event:e,eventPayload:o,items:this.Tn.get(e)});var v=this.Mn(e,o,ep.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(e){var o,a=this.Dn(),n=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[a])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var o=this.le(),a=[...new Set(e)].filter((n=>!this.qn(n)));o.info("updating activated items",{activatedItems:a}),this.Zn(a)}getActivatedIds(){var e,o=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class Bce extends Lce{constructor(e){super(e)}Dn(){return l0}Bn(){return xp.SHOWN}Fn(e){var o;(o=this._instance)==null||o.getSurveys(e)}$n(e){var o;(o=this._instance)==null||o.cancelPendingSurvey(e)}le(){return oo}Zn(e){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[l0]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var dx="SDK is not enabled or survey functionality is not yet loaded",W2="Disabled. Not loading surveys.",Fce=ge!=null&&ge.location?Tv(ge.location.hash,"__posthog")||Tv(location.hash,"state"):null,K2="_postHogToolbarParams",Y2=To("[Toolbar]"),Ka=To("[FeatureFlags]"),kl=To("[FeatureFlags]",{debugEnabled:!0}),ux=`" failed. Feature flags didn't load in time.`,Z2=t=>{for(var e={},o=0;t.length>o;o++)e[t[o]]=!0;return e},Q2=t=>{var e={};for(var[o,a]of Ef(t||{}))a&&(e[o]=a);return e},Ps=To("[Error tracking]"),J2="Refusing to render web experiment since the viewer is a likely bot",jce={icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!ge&&Ev(e.href,t),not_regex:(t,e)=>!!ge&&!Ev(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class La{get Bt(){return this._instance.config}constructor(e){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(a){a===void 0&&(a=!1),o.getWebExperiments((n=>{La.Hn("retrieved web experiments from the server"),o.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;o.zn&&(La.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(i=o.zn)==null||i.set(r.feature_flag_key,r));var c=o._instance.getFeatureFlag(r.feature_flag_key);_o(c)&&r.variants[c]&&o.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];La.Yn(u)&&o.Un(r.name,d,u.transforms)}}))}),a)},this._instance=e,this._instance.onFeatureFlags((a=>{this.onFeatureFlags(a)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())La.Hn(J2);else if(!this.Bt.disable_web_experiments){if(_t(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();La.Hn("applying feature flags",e),e.forEach((o=>{var a;if(this.zn&&(a=this.zn)!=null&&a.has(o)){var n,r=this._instance.getFeatureFlag(o),i=(n=this.zn)==null?void 0:n.get(o);r&&i!=null&&i.variants[r]&&this.Un(i.name,r,i.variants[r].transforms)}}))}}previewWebExperiment(){var e=La.getWindowLocation();if(e!=null&&e.search){var o=xv(e?.search,"__experiment_id"),a=xv(e?.search,"__experiment_variant");o&&a&&(La.Hn("previewing web experiments "+o+" && "+a),this.getWebExperiments((n=>{this.Gn(parseInt(o),a,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,o,a){if(this.Bt.disable_web_experiments&&!a)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!o)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>e(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(e,o,a){var n=a.filter((r=>r.id===e));n&&n.length>0&&(La.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+o+"]"),this.Un(n[0].name,o,n[0].variants[o].transforms))}static Yn(e){return!_t(e.conditions)&&La.Wn(e)&&La.Xn(e)}static Wn(e){var o;if(_t(e.conditions)||_t((o=e.conditions)==null?void 0:o.url))return!0;var a,n,r,i=La.getWindowLocation();return!!i&&((a=e.conditions)==null||!a.url||jce[(n=(r=e.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](e.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(e){var o;if(_t(e.conditions)||_t((o=e.conditions)==null?void 0:o.utm))return!0;var a=Q3();if(a.utm_source){var n,r,i,c,d,u,m,h,f=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==a.utm_campaign,v=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==a.utm_source,y=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==a.utm_medium,S=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==a.utm_term;return f&&y&&S&&v}return!1}static Hn(e){for(var o=arguments.length,a=new Array(o>1?o-1:0),n=1;o>n;n++)a[n-1]=arguments[n];Ue.info("[WebExperiments] "+e,a)}Un(e,o,a){this._is_bot()?La.Hn(J2):o!=="control"?a.forEach((n=>{if(n.selector){var r;La.Hn("applying transform of variant "+o+" for experiment "+e+" ",n);var i=(r=document)==null?void 0:r.querySelectorAll(n.selector);i?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):La.Hn("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?u4(Mn,this.Bt.custom_blocked_useragents):void 0}}var Zn=To("[Conversations]"),Cl="Conversations not available yet.",Sb={featureFlags:class{constructor(t){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=t,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}ls(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ka.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.Bt.evaluation_contexts)!==null&&t!==void 0?t:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ka.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((o=>{var a=o&&typeof o=="string"&&o.trim().length>0;return a||Ka.error("Invalid evaluation context found:",o,"Expected non-empty string"),a})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:o}=this._instance,a=(t=(e=o.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(a).length){var n,r,i=(n=(r=o.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(a).filter((u=>!!a[u])).reduce(((u,m)=>(u[m]=a[m]||!1,u)),{}),d=Object.keys(i).filter((u=>c[u])).reduce(((u,m)=>(i[m]&&(u[m]=i[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(t,e,o){var a=o!=null&&o.merge?this.getFlagVariants():{},n=o!=null&&o.merge?this.getFlagPayloads():{},r=Me({},a,t),i=Me({},n,e),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:$e(i?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:i[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(n0),e=this.os(As),o=this.os(id);if(!o&&!e)return t||{};var a=Mo({},t||{}),n=[...new Set([...Object.keys(o||{}),...Object.keys(e||{})])];for(var r of n){var i,c,d=a[r],u=e?.[r],m=$e(u)?(i=d?.enabled)!==null&&i!==void 0&&i:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=o?.[r],v=Me({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),f&&(v.metadata=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),a[r]=v}return this.Jn||(Ka.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:o,finalDetails:a}),this.Jn=!0),a}getFlagVariants(){var t=this.os(gd),e=this.os(As);if(!e)return t||{};for(var o=Mo({},t),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var t=this.os(r0),e=this.os(id);if(!e)return t||{};for(var o=Mo({},t||{}),a=Object.keys(e),n=0;a.length>n;n++)o[a[n]]=e[a[n]];return this.Jn||(Ka.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,a=this.os(mv),n={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(wp)||{}),group_properties:this.os(Pl),timezone:a4()};zs(a)||$e(a)||(n.$device_id=a),(t!=null&&t.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:r,data:n,compression:this.Bt.disable_compression?void 0:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:i=>{var c,d,u,m=!0;if(i.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=[];i.error?i.error instanceof Error?h.push(i.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):i.statusCode!==200&&h.push("api_error_"+i.statusCode),(c=i.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,v=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[d0]:h}),v?Ka.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=i.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var o;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFeatureFlagResult(t,e);return(o=a?.variant)!==null&&o!==void 0?o:a?.enabled}}else Ka.warn('getFeatureFlag for key "'+t+ux)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),a=t in o,n=o[t],r=this.getFlagPayloads()[t],i=String(n),c=this.os(s0)||void 0,d=this.os(gv)||void 0,u=this.os(Ep)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(c0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[Ep]:u,[c0]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(i))){var v,y,S,T,x,k,E,C,P,D;It(u[t])?u[t].push(i):u[t]=[i],(v=this.ni)==null||v.register({[Ep]:u});var R=this.getFeatureFlagDetails(t),O=[...(y=this.os(d0))!==null&&y!==void 0?y:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[t])||null,$feature_flag_bootstrapped_payload:((T=this.Bt.bootstrap)==null||(T=T.featureFlagPayloads)==null?void 0:T[t])||null,$used_bootstrap_value:!this.rs};$e(R==null||(x=R.metadata)==null?void 0:x.version)||(L.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(E=R.reason)==null?void 0:E.description)!==null&&k!==void 0?k:R==null||(C=R.reason)==null?void 0:C.code;B&&(L.$feature_flag_reason=B),R!=null&&(P=R.metadata)!=null&&P.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||(U=R.metadata)==null?void 0:U.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(a){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Ka.warn('getFeatureFlagResult for key "'+t+ux)}getRemoteConfigPayload(t,e){var o=this.Bt.token,a={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(a.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this.Bt.disable_compression?void 0:$r.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;e(i?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(t,e);return $e(o)?void 0:!!o}Ka.warn('isFeatureEnabled for key "'+t+ux)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,o){if(this.ni){this.Kn=!0;var a=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((U=>{var B;return[U,(B=L[U].variant)!==null&&B!==void 0?B:L[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((U=>L[U].enabled)).filter((U=>{var B;return(B=L[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=L[U].metadata)==null?void 0:B.payload]})))):Ka.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),v=f.flags,y=f.featureFlags,S=f.featureFlagPayloads;if(y){var T=i.requestId,x=i.evaluatedAt;if(It(y)){Ka.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(y)for(var E=0;y.length>E;E++)k[y[E]]=!0;c&&c.register({[kf]:y,[gd]:k})}else{var C=y,P=S,D=v;if(h!=null&&h.partialResponse)C=Me({},d,C),P=Me({},u,P),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[O])!=null&&L.failed)})));C=Me({},d,Object.fromEntries(Object.entries(C).filter((O=>{var[L]=O;return R.has(L)})))),P=Me({},u,Object.fromEntries(Object.entries(P||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else C=Me({},d,C),P=Me({},u,P),D=Me({},m,D);c&&c.register(Me({[kf]:Object.keys(Q2(C)),[gd]:C||{},[r0]:P||{},[n0]:D||{}},T?{[s0]:T}:{},x?{[gv]:x}:{}))}}})(t,this.ni,a,n,r,o),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Ka.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Ka.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(As),this.ni.unregister(id),this.ps(),kl.info("All overrides cleared");if(It(t)){var e=Z2(t);return this.ni.register({[As]:e}),this.ps(),kl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var o,a=t;if(this.Jn=!!((o=a.suppressWarning)!==null&&o!==void 0&&o),"flags"in a){if(a.flags===!1)this.ni.unregister(As),kl.info("Flag overrides cleared");else if(a.flags){if(It(a.flags)){var n=Z2(a.flags);this.ni.register({[As]:n})}else this.ni.register({[As]:a.flags});kl.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(id),kl.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[id]:a.payloads}),kl.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[As]:t}),this.ps(),kl.info("Flag overrides set",{flags:t});Ka.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:o}=this.gs();t(e,o)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,o){var a,n=(this.os(Sp)||[]).find((d=>d.flagKey===t)),r={["$feature_enrollment/"+t]:e},i={$feature_flag:t,$feature_enrollment:e,$set:r};n&&(i.$early_access_feature_name=n.name),o&&(i.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var c=Me({},this.getFlagVariants(),{[t]:e});(a=this.ni)==null||a.register({[kf]:Object.keys(Q2(c)),[gd]:c}),this.ps()}getEarlyAccessFeatures(t,e,o){e===void 0&&(e=!1);var a=this.os(Sp),n=o?"&"+o.map((r=>"stage="+r)).join("&"):"";if(a&&!e)return t(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var i,c;if(r.json){var d=r.json.earlyAccessFeatures;return(i=this.ni)==null||i.unregister(Sp),(c=this.ni)==null||c.register({[Sp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((o=>e[o])),flagVariants:Object.keys(e).filter((o=>e[o])).reduce(((o,a)=>(o[a]=e[a],o)),{})}}ps(t){var{flags:e,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((a=>a(e,o,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(wp)||{},a=t?.$set||(t!=null&&t.$set_once?{}:t),n=t?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in o||(r[i]=n[i]));this._instance.register({[wp]:Me({},o,r,a)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(wp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(Pl)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Me({},o[a],t[a]),delete t[a]})),this._instance.register({[Pl]:Me({},o,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(Pl)||{};this._instance.register({[Pl]:Me({},e,{[t]:{}})})}else this._instance.unregister(Pl)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},zce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===sp||this.bs===of?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=U2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw yi.error("started without valid sessionManager"),new Error(E0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ds)throw new Error(E0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(yp))==null||!t.enabled),o=!this.Bt.disable_session_recording,a=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&o&&!a}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var o=!$e(Object.assign)&&!$e(Array.from);this.ws&&o?(this.Is(t),yi.info("starting")):(this.bs=U2,this.stopRecording())}}Is(t){var e,o,a;this.ws&&(this.bs!==sp&&this.bs!==of&&(this.bs=$2),ot!=null&&(e=ot.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(o=ot.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(t):(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return yi.error("could not load recorder",n);this.Cs(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}xs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}ks(){var t;(t=this.ni)==null||t.unregister(MC)}Ts(t,e){if(_t(t))return null;var o,a=sr(t)?t:parseFloat(t);return typeof(o=a)!="number"||!Number.isFinite(o)||0>o||o>1?(yi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):a}As(t){if(this.ni){var e,o,a=this.ni,n=()=>{var r,i=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(i?.sampleRate,"remote config sampleRate"),u=c??d;_t(u)&&this.ks();var m=i?.minimumDurationMilliseconds;a.register({[yp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:t.capturePerformance},i?.networkPayloadCapture),canvasRecording:{enabled:i?.recordCanvas,fps:i?.canvasFps,quality:i?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:$e(m)?null:m,endpoint:i?.endpoint,triggerMatchType:i?.triggerMatchType,masking:i?.masking,urlTriggers:i?.urlTriggers,version:i?.version,triggerGroups:i?.triggerGroups})})};n(),(e=this._s)==null||e.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(n)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.As(t),void this.xs()):(this.As(t),void this.startIfEnabledOrStop()):(this.bs===sp&&(this.bs=of,yi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var o;e===void 0&&(e="log"),(o=this.ys)!=null&&o.log?this.ys.log(t,e):yi.warn("log called before recorder was ready")}get Ss(){var t,e,o=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(o==null||(e=o.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var o=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-o}Cs(t){var e,o;if((e=ot.__PosthogExtensions__)==null||!e.initSessionRecording)return yi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[G3]:!0});if(this.ys||(this.ys=(o=ot.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===of||this.bs===sp?void 0:(this.bs=sp,yi.info("persisted remote config is stale, requesting fresh config before starting"),void new n4(this._instance).load());this.bs=$2,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[z3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[j3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,o;this.ys||(o=this.ni)==null||o.register({[t==="url"?q3:U3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(t,e))}}},qce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new F2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,o=Fo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(t=o.url_allowlist)==null?void 0:t.map((a=>new RegExp(a))),o.url_ignorelist=(e=o.url_ignorelist)==null?void 0:e.map((a=>new RegExp(a))),o}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=o=>{o=o||ge?.event;try{this.Ps(o)}catch(a){j2.error("Failed to capture event",a)}};if(Jo(ze,"submit",t,{capture:!0}),Jo(ze,"change",t,{capture:!0}),Jo(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=o=>{this.Ps(o=o||ge?.event,lx)};Jo(ze,"copy",e,{capture:!0}),Jo(ze,"cut",e,{capture:!0})}}}else j2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Ms=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[ZT]:!!t.autocapture_opt_out}),this.Ns=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Fs=t}getElementSelectors(t){var e,o=[];return(e=this.Fs)==null||e.forEach((a=>{var n=ze?.querySelectorAll(a);n?.forEach((r=>{t===r&&o.push(a)}))})),o}get isEnabled(){var t,e,o=(t=this.instance.persistence)==null?void 0:t.props[ZT];if(zs(this.Ns)&&!Yr(o)&&!this.instance.Fr())return!1;var a=(e=this.Ns)!==null&&e!==void 0?e:!!o;return!!this.instance.config.autocapture&&!a}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var o,a=O2(t);f4(a)&&(a=a.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||k0(h))return!1;var v,y,S;if(Yr(f)?(v=!!f&&M2,y=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:M2,y=f?.content_ignorelist),v===!1)return!1;var{targetElementList:T}=I2(h,!1);return!(function(x,k){if(x===!1||$e(x))return!1;var E;if(x===!0)E=kce;else{if(!It(x))return!1;if(x.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;E=x.map((C=>C.toLowerCase()))}return k.some((C=>{var{safeText:P,ariaLabel:D}=C;return E.some((R=>P.includes(R)||D.includes(R)))}))})(y,T.map((x=>{var k;return{safeText:Qp(x).toLowerCase(),ariaLabel:((k=x.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!N2(T,v)})(a,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===lx;if(a&&(function(h,f,v,y,S){var T,x,k,E;if(v===void 0&&(v=void 0),!ge||k0(h)||(T=v)!=null&&T.url_allowlist&&!D2(v.url_allowlist)||(x=v)!=null&&x.url_ignorelist&&D2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var C=v.dom_event_allowlist;if(C&&!C.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:P,targetElementList:D}=I2(h,y);if(!(function(L,U){var B=U?.element_allowlist;if($e(B))return!0;var z,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,v)||!N2(D,(E=v)==null?void 0:E.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(f.type)>=0;default:return P?(S||["click"]).indexOf(f.type)>=0:(S||["click"]).indexOf(f.type)>=0&&(qC.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=Dce(a,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(i)return!1;var c=this.getElementSelectors(a);if(c&&c.length>0&&(r.$element_selectors=c),e===lx){var d,u=b4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=t.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(e,r),!0}}}isBrowserSupported(){return Rs(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(ge&&ge.history){var o=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||z2(ge.history,"pushState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||z2(ge.history,"replaceState",(a=>function(n,r,i){a.call(this,n,r,i),o.Bs("replaceState")})),this.js()}}Bs(t){try{var e,o=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(ld,{navigation_type:t}),this.Ls=o}catch(a){Ue.error("Error capturing "+t+" pageview",a)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Jo(ge,"popstate",t),this.Ds=()=>{ge&&ge.removeEventListener("popstate",t)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(t){var e;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=t,this.$s=!((e=this.instance.persistence)==null||!e.props[QT]),this.rageclicks=new F2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Fo(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return _t(this.Bt.capture_heatmaps)?_t(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Nce.info("starting..."),this.Zs(),this.Ft()}else{var t;clearInterval((t=this.qs)!==null&&t!==void 0?t:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[QT]:e}),this.$s=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Hs(t){this.Tt(t.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=ze?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&ze&&(this.zs=this.Yr.bind(this),Jo(ge,yv,this.zs),this.Us=t=>this.Tt(t||ge?.event),Jo(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Jo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new u2(this.instance,Gle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Jo(ze,bv,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(yv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(bv,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var o=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(i,c,d){for(var u=i;u&&yb(u)&&!ji(u,"body");){if(u===d)return!1;if(Ct(c,ge?.getComputedStyle(u).position))return!0;u=y4(u)}return!1})(O2(t),["fixed","sticky"],n);return{x:t.clientX+(r?0:a),y:t.clientY+(r?0:o),target_fixed:r,type:e}}Tt(t,e){var o;if(e===void 0&&(e="click"),!R2(t.target)&&V2(t)){var a=this.Ks(t,e);(o=this.rageclicks)!=null&&o.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Me({},a,{type:"rageclick"})),this.Qs(a)}}Gs(t){!R2(t.target)&&V2(t)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(t,"mousemove"))}),500))}Qs(t){if(ge){var e=ge.location.href,o=this.Bt.custom_personal_data_properties,a=this.Bt.mask_personal_data_properties?[...Ud,...o||[]]:[],n=Yp(e,a,Zp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!hd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:u2,webVitalsAutocapture:class{constructor(t){var e;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,a)=>Me({},o,{["$web_vitals_"+a.name+"_event"]:Me({},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($e(n))bi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(_t(o?.name)||_t(o?.value)?bi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),this.T.firstMetricTimestamp=$e(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Me({},o,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):bi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,a,n,r,i=ot.__PosthogExtensions__;$e(i)||$e(i.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:a,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),o&&a&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.ht.bind(this)),this.Rs=!0):bi.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.$s=!((e=this._instance.persistence)==null||!e.props[t0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,o=Fo(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return _t(o)?((e=this._instance.persistence)==null?void 0:e.props[a0])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Fo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=Fo(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=Fo(this.oo)&&sr(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:q2;return t>0&&6e4>=t?q2:t}get isEnabled(){var t=ka?.protocol;if(t!=="http:"&&t!=="https:")return bi.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Fo(this.oo)?this.oo.web_vitals:Yr(this.oo)?this.oo:void 0;return Yr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(bi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=Fo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,o=Fo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[t0]:e}),this._instance.persistence.register({[a0]:o})),this.$s=e,this.startIfEnabled()}}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(a=>{a?bi.error("failed to load script",a):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...Ud,...e||[]]:[];return Yp(t,o,Zp)}bi.error("Could not determine current URL")}}},Uce={exceptionObserver:class{constructor(t){var e,o,a;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=ot.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=ot.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=ot.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=ot.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=i(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){rp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[JT]),this.do=new tle({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:10,refillInterval:1e4,Gt:rp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Fo(t)?e=Me({},e,t):($e(t)?this.co:t)&&(e=Me({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(rp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(a=>{if(a)return rp.error("failed to load script",a);t()}))}ho(){var t,e,o;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[JT]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(t){var e,o,a,n=(e=t==null||(o=t.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(a=this._instance.exceptions)==null||a.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,o;this.fo=[],this.po=new hle([new xle,new Dle,new kle,new Tle,new Ale,new Ple,new Ele,new Rle],(function(a){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
168
- `),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=i2.test(f)?f.replace(i2,"$1"):f;if(!v.match(/\S*Error: /)){for(var y of r){var S=y(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(T){if(!T.length)return[];var x=Array.from(T);return x.reverse(),x.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(E=x,E[E.length-1]||{}).filename,function:k.function||qd});var E}))})(u)}})("web:javascript",ble,wle)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(XT))!==null&&e!==void 0?e:[],this.mo=pv(this.yo()),this.bo=new Nle(this.mo)}onConfigChange(){this.mo=pv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[XT]:this.fo,[e0]:r})}}get _o(){var t,e=!!this._instance.get_property(e0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!_o(t)||t.trim().length===0)return void Ps.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>Ole.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&Ps.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[dv]:t,[uv]:new Date().toISOString()},a))}catch(r){Ps.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void Ps.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void Ps.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ps.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&_t(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ps.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ps.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(o){return Ps.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[dv]:t,[uv]:new Date().toISOString()})}wo(t){return Fo(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return _o(n)&&n.length>0&&o.$exception_types.push(n),_o(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=p4[n.operator],c=It(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!_t(t)&&It(t)}}},$ce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[o0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(o0)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?H2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!It(this.Eo)||e){var o=this.ni;if(o){var a=o.props[Cf];if(It(a)&&!e)return this.Eo=a,void t(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return H2.error(i),void t([],{isLoaded:!1,error:i})}var c=It(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Cf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){_t(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Cf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},Sb),Vce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:y}=t;return{event:Me({},m3(t,Mce),{properties:Me({},t.properties,y?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},y)}:{},v?{$set_once:Me({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var i;!e.errored&&this.No.length&&(Si.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{e.errored=!i,e.loaded=!0,Si.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),a=!0}catch(i){Si.error(G2+t.id,i),n(!1)}if(a&&e.loaded)try{o()}catch(i){Si.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){Si.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Si.error(G2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Hce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];$e(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Oce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},Gce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(_t(e))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=It(e);this.jo=o?e.length>0:e,oo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(x0)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(W2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(IC);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else oo.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new Bce(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){oo.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return oo.info(W2),t([]);var o,a=this._instance.get_property(i0);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;oo.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[i0]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!_t(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);oo.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(_t(this._surveyManager))return{eligible:!1,reason:dx};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(_t(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:dx};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return _t(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:dx})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(_t(this._surveyManager))oo.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(vce.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;oo.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(t,e){var o;if(_t(this._surveyManager))oo.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==f0.Popover&&e.initialResponses&&oo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void oo.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==f0.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(t){_t(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},Sb),Wce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),W3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=Fce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?c2((()=>JSON.parse(atob(decodeURIComponent(n)))))||c2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem(K2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!_t(e)&&Rs(e)?e(t,this.instance):Y2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById($3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(K2,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return Y2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Kce=Me({experiments:La},Sb),Yce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Yr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||W3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(IC);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!zs(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(Cl),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(Cl),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(Cl),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(Cl),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(Cl),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(Cl),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(Cl),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Zce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=To("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!_t(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(IC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:y,number:S}=N3[v]||ple,T=String(Date.now())+"000000",x={};f.distinctId&&(x.posthogDistinctId=f.distinctId),f.sessionId&&(x.sessionId=f.sessionId),f.currentUrl&&(x["url.full"]=f.currentUrl),f.screenName&&(x["screen.name"]=f.screenName),f.appState&&(x["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(x.feature_flags=f.activeFeatureFlags);var k=Me({},x,h.attributes||{}),E={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:y,body:{stringValue:h.body},attributes:s2(k)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),$e(h.trace_flags)||(E.flags=h.trace_flags),E})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:s2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),a,Qa.LIB_NAME,Qa.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Qce=Me({},Sb,zce,qce,Uce,$ce,Vce,Gce,Hce,Wce,Kce,Yce,Zce);tr.__defaultExtensionClasses=Me({},Qce);var X2,qs=(X2=Pp[cd]=new tr,(function(){function t(){t.done||(t.done=!0,g4=!1,bo(Pp,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Jo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),X2);let Ls=!1,_0=null,eN=!1;const UC="studio:lp-distinct-id",k4="mesh:lp-distinct-id",px="/api/_reports/link-token/",Jce=1440*60*1e3;function C4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(px)&&n.pathname!==px&&(n.pathname=`${px}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function mx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?C4(o):o]))}const Xce=t=>t?(t.properties=mx(t.properties),t.$set&&(t.$set=mx(t.$set)),t.$set_once&&(t.$set_once=mx(t.$set_once)),t):null;function E4(){try{const t=window.localStorage.getItem(UC)??window.localStorage.getItem(k4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=Jce?e:void 0}catch{return}}function ede(){try{window.localStorage.removeItem(UC),window.localStorage.removeItem(k4)}catch{}}function tde(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(UC,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??E4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function ode(t){const e=E4();if(e&&(ede(),e!==t))try{qs.alias(e)}catch{}}function ade(t,e){if(Ls||typeof window>"u")return;const o=tde();qs.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Xce,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:C4(a.name)}:{}})},person_profiles:"identified_only"}),Ls=!0}function nde(t,e){Ls&&(qs.identify(t,e),ode(t))}function rde(){Ls&&(qs.reset(),_0=null)}function _4(t,e){Ls&&qs.capture(t,e)}function DTe(){return Ls}function OTe(){if(!Ls||eN||typeof performance>"u")return;eN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};_4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:kJ(),org_cache_restored:CJ()})}function NTe(t,e){Ls&&t!==_0&&(qs.group("organization",t,e),_0=t)}function P4(t,e){if(Ls)try{qs.captureException(t,e)}catch{}}const sde=["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 ide(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:sde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=b.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,b.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function A4(t){const e=ye.c(20),{orgName:o}=t,a=Ua(),n=lde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:b.jsx(Hj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=i):i=e[2];let c;e[3]!==i?(c=b.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=b.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=b.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=b.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=b.jsxs(ide,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function lde(){window.location.href="/"}function cde(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=b.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:b.jsx(Wl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function dde(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:b.jsx(e3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=b.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=b.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=b.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??b.jsx(cde,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=b.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const tN="__studio_chunk_reload_ts";function R4(t){return t?.message===XX}function ude(t){return!!t?.message?.includes("Access denied")}function oN(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class pde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),P4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:R4(this.state.error)?b.jsx(A4,{}):ude(this.state.error)?b.jsx(dde,{}):b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(CC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function mde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(pde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class hde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=oN(e);if(P4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(tN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(tN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&oN(this.state.error)?b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:b.jsx(t3,{className:"h-6 w-6 text-primary"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),b.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?R4(this.state.error)?b.jsx(A4,{}):b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(CC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function gde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(hde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const fde=Zl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function vde(t){const e=ye.c(14);let o,a,n,r,i;e[0]!==t?({className:o,size:r,interactive:a,asChild:i,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?ib:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Qe(fde({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=b.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function MTe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Qe("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[b.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&b.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&b.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&b.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",b.jsx(Gj,{size:12})]})]})]}),r&&b.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=b.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function ITe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,i;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=vde,e[5]!==o?(r=Qe("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(bde),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=b.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function bde(t,e){return b.jsxs("div",{children:[e>0&&b.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function LTe(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,v=i?0:void 0;let y;e[4]!==i?(y=i?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),i())}:void 0,e[4]=i,e[5]=y):y=e[5];let S;e[6]!==o?(S=o&&b.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let T;e[8]!==a?(T=b.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=T):T=e[9];let x;e[10]!==n?(x=n&&b.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=x):x=e[11];let k;e[12]!==d||e[13]!==T||e[14]!==x?(k=b.jsxs("div",{className:"flex-1 min-w-0",children:[T,x,d]}),e[12]=d,e[13]=T,e[14]=x,e[15]=k):k=e[15];let E;e[16]!==r?(E=r&&b.jsx("div",{className:"shrink-0",onClick:yde,children:r}),e[16]=r,e[17]=E):E=e[17];let C;return e[18]!==i||e[19]!==k||e[20]!==E||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==y||e[25]!==S?(C=b.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:y,children:[S,k,E]}),e[18]=i,e[19]=k,e[20]=E,e[21]=h,e[22]=f,e[23]=v,e[24]=y,e[25]=S,e[26]=C):C=e[26],C}function yde(t){return t.stopPropagation()}function BTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function FTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=b.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function Sde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const wb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:r3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:a3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Yj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:o3,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:Jj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:Qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function jTe(t){const e=wb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function zTe(t){return wb[t].tabs.length>0}const wde=new Set(["owner","admin"]);function D4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=ca.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Gi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function qTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=D4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=o?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function O4(){const t=ye.c(10),{data:e,loading:o,error:a}=D4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?wde.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==i||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},t[4]=a,t[5]=i,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function xde(){const t=ye.c(13),{org:e}=Yi(),o=Wk(),{capabilities:a,isPrivileged:n}=O4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=ca.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Gi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Tde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function Tde(t){return t.slug}function UTe(){const t=ye.c(7),e=Wk(),o=Ua();let a;t[0]!==e?(a=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=i=>Id.error(o("settings.infraBilling.portalError",{message:i.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:kde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],vf(r)}function kde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function $Te(t,e){const o=ye.c(14),{org:a}=Yi(),n=Wk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Gi,i=ca.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Cde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=O4(),{sites:r,isLoading:i}=xde(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(wb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function Ede(t){const e=ye.c(16),{group:o}=t,a=Ua();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:_de},e[1]=i):i=e[1];const c=vk(i),d=Cde()[o],{titleKey:u}=wb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=b.jsx(Td.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&b.jsx(pn.Toolbar.Left.Portal,{children:b.jsx(Td.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(y=>{const S=y.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return b.jsx(Td.Tab,{active:T,asChild:!0,children:b.jsx(Wl,{to:y.to,params:{org:r},onClick:()=>_4("settings_subnav_clicked",{group_key:o,tab_key:y.key}),children:a(y.labelKey)})},y.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=b.jsxs(b.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function _de(t){return t.location.pathname}function N4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[b.jsx(kO,{className:"h-32 w-full"}),b.jsx(kO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Pde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=b.jsx(Ede,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??b.jsx(N4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=b.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=b.jsx(mde,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=b.jsx(Td,{children:b.jsx(Td.Content,{children:b.jsx(Td.Container,{children:b.jsxs(Sde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return b.jsx(Pde,{group:t,children:b.jsx(N4,{})})}}function Ade(t){try{localStorage.setItem(Or.lastLocation(),JSON.stringify(t))}catch{}}function Rde(){try{const t=localStorage.getItem(Or.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function VTe(){try{localStorage.removeItem(Or.lastLocation())}catch{}}function Dde(t,e){const o=t&&e?wJ(e,t):null;return{queryKey:ca.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ga.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=Qk(n);return n&&!r&&localStorage.setItem(Or.lastOrgSlug(),t),e&&n&&xJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let aN;async function Ode(t){aN=t,await RB();const e=oee();if(!e)return;const o=await Yl.ensureQueryData(Dde(t,e)).catch(()=>null);o&&!Qk(o)&&aN===t&&Ade({org:t})}const Et={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:Et.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function HTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Nde},t[0]=e):e=t[0],vk(e)}function Nde(t){return t.matches.at(-1)?.fullPath??""}function GTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Mde},t[0]=e):e=t[0],vk(e)}function Mde(t){return t.matches.findLast(Ide)?.staticData.mainView}function Ide(t){return t.staticData.mainView}function Pf(t){return`agent-view:${encodeURIComponent(t)}`}function Lde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function M4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function $C(t,e){return`app:${t}:${e}`}function Bde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function I4(t){return`deck:${encodeURIComponent(t)}`}function Fde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function L4(t){return`file:${encodeURIComponent(t)}`}function jde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function B4(t){return`library-file:${encodeURIComponent(t)}`}function zde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function F4(t){return`code:${encodeURIComponent(t)}`}function qde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const j4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Ude=new Set(j4),z4=new Set(["hosting","e2e","analytics","cdn"]),$de=new Set(["board","files","connect-sources","reports"]);function WTe(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Vde=new Map([["preview","site-editor"],["git","site-editor"]]);function xb(t){return Vde.get(t)??t}const VC=new Set(["instructions","connections","layout","settings"]);function Hde(t){return!!t&&VC.has(t)}const Gde=new Set(["overview","board","reports"]);function q4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=xb(e.type);if(VC.has(o))return"settings";if(Ude.has(o)||Gde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return $C(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?Pf(e.id):n[0]?Pf(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?Pf(a):"settings"}function KTe(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=q4(t);return o==="overview"?null:o}function YTe(t){const e=t.routeDefaultMain||q4(t.metadata),o=t.panelTabId&&VC.has(t.panelTabId)?"settings":t.panelTabId?xb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function ZTe(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function QTe(t){return t.mainOpen?t.activeTab==="automations"?!0:M4(t.activeTab)!==null:!1}const Wde=new Set([...j4.filter(t=>!z4.has(t)),...$de,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Kde(t){return!!t&&Wde.has(t)}function Yde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?$C(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?L4(e.key):void 0;case"deck":return e.deck?I4(e.deck):void 0;case"library-file":return e.path?B4(e.path):void 0;case"code":return e.file?F4(e.file):"code";default:{const o=xb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function JTe(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?F4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?$C(e.connectionId,e.toolName):void 0;case"view":return e.viewId?Pf(e.viewId):void 0;case"file":return o.key?L4(o.key):void 0;case"deck":return o.path?I4(o.path):void 0;case"library-file":return o.path?B4(o.path):void 0;default:return t.mainView}}const Zde={files:"library",discover:"discover"},Qde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},Jde={analytics:"audience",cdn:"performance"},Xde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function U4(t){const e=Lde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=Bde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=M4(t);if(a)return{kind:"automations",automationId:a.id};const n=jde(t);if(n)return{kind:"output-file",key:n.key};const r=Fde(t);if(r)return{kind:"output-deck",path:r.path};const i=zde(t);if(i)return{kind:"library-file",path:i.path};const c=qde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Hde(t))return{kind:"agent-section",section:"settings"};const d=xb(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Qde[d];if(u){const f=Jde[d];return{kind:"project-destination",destination:u,...f?{monitorView:f}:{}}}const m=Zde[d];if(m)return{kind:"org-destination",destination:m};const h=Xde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function Ul(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=U4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Et.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Et.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:Et.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Et.monitoring,params:{org:e},search:i}:{to:tt.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Et.home,params:{org:e},search:{}};case"discover":return{to:Et.discover,params:{org:e},search:{}};case"library":return{to:Et.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:a,search:{file:n.file}}:{to:tt.siteEditor,params:a,search:{}};case"agent-section":return{to:tt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:tt.automations,params:a,search:{}};case"app":return{to:tt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:a,search:{}}}}function XTe(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Et.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&U4(e).kind==="org-destination"?"overview":e;return Ul({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function eue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Et.tasks:t({to:Et.tasks,params:e.params,search:a,replace:n});return;case Et.home:t({to:Et.home,params:e.params,search:a,replace:n});return;case Et.reports:t({to:Et.reports,params:e.params,search:a,replace:n});return;case Et.discover:t({to:Et.discover,params:e.params,search:a,replace:n});return;case Et.plan:t({to:Et.plan,params:e.params,search:a,replace:n});return;case Et.monitoring:t({to:Et.monitoring,params:e.params,search:a,replace:n});return;case Et.library:t({to:Et.library,params:e.params,search:a,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:a,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:a,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:a,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:a,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:a,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:a,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:a,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:a,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:a,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:a,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:a,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:a,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:a,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:a,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:a,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:a,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.calendar:case tt.experiments:t({to:e.to,params:e.params,search:a,replace:n})}}function e0e(t,e){eue(t,Ul(e),e)}function tue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function oue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const aue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),$4=new Set(["main"]),nue=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function Fl(t,e){return{...Tb(t,aue),...e.search}}function rue(t){return Tb(t,nue)}function t0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Et.tasks?"board":t.routePath===Et.reports?"reports":null;if(t.routePath===Et.home||o){const a=o?Ul({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:Fl(t.search,a)}}}return t.routePath===Et.home||t.routePath===Et.tasks||t.routePath===Et.reports||t.routePath===Et.library?{kind:"same-route",search:rue(t.search)}:null}function kr(t){return t?.trim()||void 0}function V4(t){return Kde(t)||t!==void 0&&z4.has(t)}function H4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||ZL(e)!==null||GY(e)!==null||WY(e)!==null||JL(e)||XL(e):!1}function sue(t){const e=kr(t.agentIdParam),o=V4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function o0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=P0({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||oue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!H4(e);if(!(V4(e)||o))return null;const n=sue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=P0({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function iue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?Ul({org:e,agentId:n,tabId:"board"}):{to:Et.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=_i(o.path);return{to:Et.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?Ul({org:e,agentId:n,tabId:"reports"}):{to:Et.reports,params:{org:e},search:{}};case"overview":return{to:Et.home,params:{org:e},search:{}};case"discover":return{to:Et.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=iue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:Ul({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:Et.home,params:{org:t},search:{}}}function lue(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,$4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...Fl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:Fl(o,a)}:null}function _i(t){return typeof t=="string"&&t.length>0?t:void 0}function P0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=P0({...t,search:Tb(e,$4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return lue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Vd(t.org,o);return{kind:"canonical",route:i,search:Fl(e,i)}}const n=Yde(a,{file:_i(e.file),key:_i(e.key),deck:_i(e.deck),path:_i(e.path),connection:_i(e.connection),tool:_i(e.tool),automation:_i(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?Ul({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...Fl(e,r),sidepanel:!0,mainpanel:!1}:Fl(e,r)}:null}function a0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Et.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...Fl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function G4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const cue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},W4=cue,HC={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},due=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Pv={fileView:ao(["all","documents","media"]).catch("all").optional(),modified:ao(["any","today","week","month"]).catch("any").optional(),layout:ao(["list","grid"]).catch("list").optional(),sort:ao(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:uT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ao(due).catch("files").optional(),scope:ao(["user"]).optional().catch(void 0),action:ao(["create"]).optional().catch(void 0),tab:ao(["all","connected"]).optional().catch(void 0)},uue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Qv().optional(),siteUrl:$().optional(),...W4},K4={...uue,task:$().optional(),project:$().optional(),...HC,skill:Pv.skill,brand:Pv.brand},wm=we(K4),Va=Z$({component:()=>b.jsx(gde,{children:b.jsx(fk,{})})}),pue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-BJ2i0F0x.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),validateSearch:Jr(()=>we({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),mue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-BkkXQ3np.js"),__vite__mapDeps([8,4])))}),hue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-BiiJ_CmP.js"),[])),validateSearch:Jr(()=>we({token:$().optional(),error:$().optional()}))}),gue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-BzWkrG7V.js"),[]))}),fue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-CUBLm5wr.js"),__vite__mapDeps([9,10,11])))}),vue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-bt38CVDY.js"),__vite__mapDeps([12,4,1,2,3])))}),bue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-CIj7gVYm.js"),[]))}),xm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-BfONeqKu.js"),__vite__mapDeps([13,14,15])))}),yue=De({getParentRoute:()=>xm,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),Sue=De({getParentRoute:()=>xm,path:"/users",component:Be(()=>Fe(()=>import("./users-Bu6Qt6s2.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25])))}),wue=De({getParentRoute:()=>xm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-CEDevUSC.js"),__vite__mapDeps([26,17,18,19,20,21,22,27,24,28,29,30,31,32,33,23,34,35,25])))}),xue=De({getParentRoute:()=>xm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-D5bhWe_R.js"),__vite__mapDeps([36,20,27,33,25])))}),Tue=xm.addChildren([yue,Sue,wue,xue]),GC=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-MQ4OcCap.js").then(t=>t.q),__vite__mapDeps([37,38,39,15,25,40,41,42,19,43,44,45,46,31,47,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,62,63,11,64,65,66,67,68,69,70,71,3,2,72,73,35,24,74,27,75,76,30,77,78,79,80,81,5,6,7,14,82,83])))}),kue=De({getParentRoute:()=>GC,path:"/",beforeLoad:async()=>{const t=Rde();if(t)throw po({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Or.lastOrgSlug());if(e)throw po({to:"/$org",params:{org:e}});const{data:o}=await DB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Cue=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await DB();if(t&&t.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-Bx5RinvH.js"),__vite__mapDeps([84,14,4,85,55,27,32,38,46,57])))}),Y4=Jr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Eue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-AyYmW8fp.js"),__vite__mapDeps([86,87,1,2,3,4,85,55,88,89,27,90,63,11,91,68,44,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,57,58,59,60,76,30,92,93,94,95,24,96,97,98,10,99,100,101,102,103,104]))),validateSearch:Y4}),_ue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:Y4,beforeLoad:({search:t})=>{throw po({to:"/reports-onboarding",search:t})}}),Pue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-mfO2CtNV.js"),__vite__mapDeps([105,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,14]))),validateSearch:Jr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),WC=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-4daajG8m.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])))}),Aue=De({getParentRoute:()=>WC,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-4daajG8m.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])),"SiteEditorPreview")}),Rue=De({getParentRoute:()=>WC,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-4daajG8m.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])),"SiteEditorContent")}),Due=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-DaZdSGhj.js"),__vite__mapDeps([223,99,3,1,2,224])))}),kb=De({getParentRoute:()=>GC,path:"/$org",loader:({params:t})=>Ode(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-Dp0kuMSx.js"),__vite__mapDeps([225,117,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,7,14,82,83,115,118,119,120,88,89,121,122,123,33,130,203,109,108,209,163,29,226,227,228,23,229,230,174,172,128,133,231,32,232,134,182,194,193,233,234,218,110,235,132,95,236,207])))}),Cb=De({getParentRoute:()=>kb,id:"org-shell",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./thread-route-AJ1czxsb.js"),__vite__mapDeps([237,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,87,238,92,93,94,44,90,91,68,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,89,27,95,24,96,97,98,10,99,100,101,102,239,103])))}),Oue=we({sidepanel:JB,mainpanel:XB,main:io([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Cb,id:"agent-shell",validateSearch:Oue,search:{middlewares:[S$(["sidepanel"])]},pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-CHU5WEK3.js"),__vite__mapDeps([240,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,112,113,65,64,61,62,63,11,71,3,2,72,73,35,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,7,14,82,83,115,200,107,108,109,110,144,152,143,89,145,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,182,198,199,175,127,126,139,20,128,111,116,241,242,243,194,184,183,230,174,172,180,193,121,244,245,246,247,248,135,165,124])))}),Nue=wm.extend({virtualmcpid:$().optional()}),Mue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:Nue,component:()=>null}),Bt=Be(()=>Fe(()=>import("./index-CuNO2v8I.js").then(t=>t.i),__vite__mapDeps([111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116])),"ChatLayoutPending"),Ft=Be(()=>Fe(()=>import("./index-CuNO2v8I.js").then(t=>t.i),__vite__mapDeps([111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116])),"ChatLayoutError"),Iue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-8Ff5iue5.js"),__vite__mapDeps([249,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,201,143,144,89,145,146,142,107,108,109,110,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,152,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,250,251,233,234,118,252,161,162,160,253,121,254,227,235,255,256,248,135,165,245,246,247,257,226,122])))}),Lue=De({getParentRoute:()=>en,path:"/projects",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}});let nN;const lo=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:wm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==nN;return nN=e.agentId,{enteredProject:o}},component:fk}),Bue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-CmWFjWhR.js"),__vite__mapDeps([258,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,107,108,109,110,201,143,144,89,145,146,142,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,152,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,250,251,233,234,118,252,161,162,160,253,121,254,227,235,255,226,244])))}),Fue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HC}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-Bhf7Ee7Q.js"),__vite__mapDeps([259,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,260,118,119,261,170,130,262,23,95,206,263,264,120,228,233,234,218,110,256,28,29,254,227,235,265,123,166,179,141,142,146,107,108,109,266,143,144,89,145,167,205,267,139,268,151,94,269,217,140,147,148,149,150,152,153,154,216,241,197,202,270,208,209])))}),jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-Fc7-jScE.js"),__vite__mapDeps([271,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,272,87,238,92,93,94,103,104,257,273])))}),Eb=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...W4}),component:Be(()=>Fe(()=>import("./agent-site-editor-CN1s3wDa.js"),__vite__mapDeps([195,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,196,197,125,126,127,128,129,130,6,76,30,7,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,131,132,28,29,133,134,135,136,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,14,82,83,114,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,113,219,140,141,147,148,149,150,115,153,187,188,178,179,155,165,220,175,139,182,221,192,111,112,116,222])))}),zue=De({getParentRoute:()=>Eb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-lCIgS5W9.js"),__vite__mapDeps([274,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,137,138,135,139,155,156,125,136,20,157,158,159,160,161,162,32,163,164,165,166,167,118,119,170,21,173,175,114,176,177,96,124,116,178,179,181])))}),que=De({getParentRoute:()=>Eb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-DiQWw-fO.js"),__vite__mapDeps([276,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,185,138,135,139,155,156,125,136,20,157,158,159,160,161,162,32,163,164,165,166,167,118,119,170,21,173,186,187,188,189,175,190,191,192,17,18])))}),Uue=De({getParentRoute:()=>Eb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-CbYxsWDQ.js"),__vite__mapDeps([277,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,20])))}),$ue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-4REoeTdH.js"),__vite__mapDeps([278,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,21,20,263,279,23])))}),Vue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:ao(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-mqokXjnT.js"),__vite__mapDeps([280,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,132,32,130,144,151,243,281,107,108,109,110,131,28,29,133,134,282,263,141,283,204,205,143,89,145,146,142,152,206,284,234,118,285,171,169,164,165,286,18,20,287,216,241,269,217,140,147,148,149,150,153,154,215])))}),Hue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-ClO775W2.js"),__vite__mapDeps([288,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,289,290,291,292,293,107,108,109,110,33,20,294,206,295,100,93,101,102,282,232,98,10,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,154,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,142,34,180,126,297,298,150,181,199])))}),Gue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Pv),component:Be(()=>Fe(()=>import("./agent-library-BeNJQBOC.js"),__vite__mapDeps([299,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,300,21,107,108,109,110,206,301,33,146,142,289,290,291,292,293,20,294,247,130,245,246,95,248,135,165,154,302,192,18,295,100,93,101,102,282,232,98,10,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,163,182,230,174,172,128,229,34,180,126,297,298,150,181,199])))}),Wue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-DBXXdN-F.js"),__vite__mapDeps([303,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,275,242,151,243,149,145,182,200,107,108,109,110,144,152,143,89,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,150,153,127,126,194,184,183,230,174,172,128,180,21,173])))}),Kue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-V69FFrsa.js"),__vite__mapDeps([304,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,275,242,151,243,149,145,182,200,107,108,109,110,144,152,143,89,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,150,153,127,126,194,184,183,230,174,172,128,180,125,135,136,188])))}),Yue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-Q-HUFuhy.js"),__vite__mapDeps([305,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,192,95,18,141,28,29,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,213,214,97,215,216,217,154,206,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),Zue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-B_HILHfY.js"),__vite__mapDeps([307,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,28,29,18,192,141,171,169,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,213,214,97,215,216,217,154,206,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),Que=De({getParentRoute:()=>lo,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),Jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CIxAcfXM.js"),__vite__mapDeps([308,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,215,23,261,309,130,163,29,166,310,252,161,162,160,253,18,168,169,234,118,311,254,227,235,170])))}),Xue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-ScITEgVg.js"),__vite__mapDeps([312,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,196,197,107,108,109,110,125,126,127,128,129,130,131,132,28,29,133,134,135,136,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,187,188,178,179,155,165,220,175,139,182,313,192,314,157,158,159,160,161,162,315,191,186,221])))}),epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-D3Ep29wr.js"),__vite__mapDeps([316,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,196,197,107,108,109,110,125,126,127,128,129,130,131,132,28,29,133,134,135,136,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,187,188,178,179,155,165,220,175,139,182,163,186,314,157,158,159,160,161,162,315,191,190,221,192,306,295,282,232,283,296,243,32,230,174,172,229,293,34,297,298,181])))}),tpe=De({getParentRoute:()=>lo,path:"/cdn",beforeLoad:({params:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),Z4=we({args:$().optional()}),ope=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/apps/$connectionId/$toolName",validateSearch:Z4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-DXwdoAjf.js"),__vite__mapDeps([317,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,184,318,144,243,147,148,149,107,108,109,110,254,227,235,118,319,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102])))}),ape=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/views/$viewId",validateSearch:Z4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-BNMlU9Xn.js"),__vite__mapDeps([320,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,318,144,243,147,148,149,107,108,109,110,254,227,235,118,319,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102,306,295,282,20,232,33,151,283,210,211,212,28,29,213,214,215,23,216,217,154,206,296,132,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),npe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-ChXQ_dxN.js"),__vite__mapDeps([321,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,154,248,206,135,165,146,142,107,108,109,110,153,306,295,100,93,101,102,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,34,180,126,297,298,150,181,199])))}),rpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-Dd-94Ll1.js"),__vite__mapDeps([322,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,247,206,130,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,154,296,149,132,243,152,145,32,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-B2Ucnk93.js"),__vite__mapDeps([323,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,324,246,95,247,206,130,248,135,165,154,146,142,107,108,109,110,306,295,100,93,101,102,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,163,182,230,174,172,128,229,293,34,180,126,297,298,150,181,199])))}),ipe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-5aNARyd1.js"),__vite__mapDeps([325,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,90,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102,239,103])))}),lpe=De({getParentRoute:()=>lo,path:"/$legacyView",component:()=>null}),cpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),dpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:wm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!H4(o))return;const a=tue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw po({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-gnvJlDT7.js"),__vite__mapDeps([326,244,65])))}),upe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HC}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-Cbn3588T.js"),__vite__mapDeps([327,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,260,118,119,261,170,130,262,23,95,206,263,264,120,228,233,234,218,110,256,28,29,254,227,235,265,123,166,179,141,142,146,107,108,109,266,143,144,89,145,167,205,267,139,268,151,94,269,217,140,147,148,149,150,152,153,154,216,241,197,202,270,208,209])))}),ppe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CIxAcfXM.js"),__vite__mapDeps([308,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,215,23,261,309,130,163,29,166,310,252,161,162,160,253,18,168,169,234,118,311,254,227,235,170])))}),mpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-10dzcGNV.js"),__vite__mapDeps([328,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,310,252,161,162,160,253,18,168,169,23,234,118,311,170,130,28,29,171,269,217,140,141,142,143,144,89,145,146,107,108,109,110,147,148,149,150,151,152,153,154,216,241])))}),hpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-CANELH-J.js"),__vite__mapDeps([329,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,272,87,238,92,93,94,103,104,257,273])))}),gpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Pv),component:Be(()=>Fe(()=>import("./library-DKGbQOFX.js"),__vite__mapDeps([330,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,7,111,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,289,290,291,292,293,33,20,294,206,324,246,95,247,130,248,135,165,154,146,142,300,21,301,245,302,192,18])))}),fpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-KNHptWXW.js"),__vite__mapDeps([331,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23])))}),Q4=we({view:ao(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:dL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),vpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:Q4,component:Be(()=>Fe(()=>import("./monitoring-NCSiQ2Pk.js"),__vite__mapDeps([332,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,192,130,333,252,161,162,160,253,23,166,96,311,255,107,108,109,110,129,131,132,28,29,133,134,294,310,18,168,169,234,118,319,87,91,92,93,94,89,95,97,98,10,99,100,101,102,151,170,158,159,171,128,227,313,314,156,125,126,127,135,136,20,157,315,191,186,221,334,33,264,268,21,32,287,216,335])))}),bpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-KNHptWXW.js"),__vite__mapDeps([331,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23])))}),ype=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:Q4,component:Be(()=>Fe(()=>import("./monitoring-NCSiQ2Pk.js"),__vite__mapDeps([332,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,192,130,333,252,161,162,160,253,23,166,96,311,255,107,108,109,110,129,131,132,28,29,133,134,294,310,18,168,169,234,118,319,87,91,92,93,94,89,95,97,98,10,99,100,101,102,151,170,158,159,171,128,227,313,314,156,125,126,127,135,136,20,157,315,191,186,221,334,33,264,268,21,32,287,216,335])))}),Spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-1n4s1YWq.js"),__vite__mapDeps([336,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,151,172,174,180,102])))}),wpe=De({getParentRoute:()=>kb,path:"/members",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/members",params:{org:t.org}})}}),xpe=we({main:io([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...K4,sidepanel:JB,mainpanel:XB,thread:$().optional()}),Tpe=De({getParentRoute:()=>Cb,path:"/",validateSearch:xpe,pendingComponent:Zd,component:Be(()=>Fe(()=>import("./index-DY7W6fVv.js"),__vite__mapDeps([337,244,65])))}),kpe=De({getParentRoute:()=>Cb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>kb,path:"/settings",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-wjqv8tCV.js"),__vite__mapDeps([338,7,111,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,339,23,130,168,169,109,108,209])))}),Cpe=De({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-D5oUlGVq.js"),__vite__mapDeps([340,292])))}),Epe=De({getParentRoute:()=>co,path:"/connections",validateSearch:Jr(()=>we({action:ao(["create"]).optional(),tab:ao(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),_pe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-C94Si9oS.js"),__vite__mapDeps([341,100,93,101,102,20,214,55,56,342,63,11,243,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,22,57,58,59,60,151,28,29,30,162,343,159,67,130,76,62,7,70,71,3,2,72,73,35,213,296,23,149,10,98,68,115,89,27,152,344,345,252,161,160,253,311,171,169,212,148,80]))),validateSearch:Jr(()=>we({tab:$().optional()}))}),Ppe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-Cq-xHp6m.js"),__vite__mapDeps([346,20,63,11,89,27,33,342,243,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,100,93,101,102,28,29,30,162,343,159,67,130,76,62,7,70,71,3,2,72,73,35,213,148,149,179,212,296,23,10,147,68,107,64,65,61,108,109,110,81,37,15,25,66,69,24,74,75,77,78,79,80,5,6,14,82,83,164,165,192]))),validateSearch:Jr(()=>we({replayId:$().optional()}))}),Ape=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index--SSY-JG1.js"),__vite__mapDeps([347,21,22,20,290,291,292,140,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,56,57,58,59,60,141,142,143,144,89,27,145,146,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,7,76,30,37,15,25,66,67,68,69,70,24,74,75,77,78,79,80,5,6,14,82,83,147,148,149,150,115,151,152,153,154,212,23,130,164,165,285,132,28,29,309,163,166,33,215,32,179,345,252,161,162,160,253,311,269,217,216,241,18,287,263,286,192,227,333,96,255,270,208,209]))),validateSearch:Jr(()=>we({tab:ao(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:ao(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),Rpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-j2gaIDEz.js"),__vite__mapDeps([348,283,349,32,39,81,35,73,151,63,11,350,23,28,29,30,31,292])))}),Dpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./connect-Bw0GJuTn.js"),__vite__mapDeps([351,179,23,28,29,30,31,171,169,142,40,41,42,19,43,44,45,38,46,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,251,352,192,27,343,63,11,243,132,21,68,353,216,217,79,80,101,102,151,290,291,292])))}),Ope=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./ai-providers-Dpuo8FL0.js"),__vite__mapDeps([354,41,109,46,81,35,73,281,6,7,107,64,65,61,62,63,11,71,3,2,72,108,110,131,132,51,28,29,30,31,43,47,50,42,22,133,134,52,283,339,55,23,130,168,169,76,209,231,32,77,56,232,290,291,292])))}),Npe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),Mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./infra-billing-cI61pY-d.js"),__vite__mapDeps([355,48,23,285,132,51,31,66,67,22,130,28,29,30,18,253,161,162,334,311,290,291,292])))}),Ipe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-BySkDPIF.js"),__vite__mapDeps([356,41,55,58,192,27,28,29,30,31,33,298,290,291,292])))}),Lpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./api-keys-VCcvSSAk.js"),__vite__mapDeps([357,352,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,192,27,23,343,28,29,30,63,11,243,132,21,68,353,216,217,79,80,101,102,151,290,291,292])))}),Bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./buckets-CzLaj5xW.js"),__vite__mapDeps([358,41,55,56,23,192,27,28,29,30,31,32,33,172,290,291,292])))}),Fpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:we({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Us("repositories"),component:Be(()=>Fe(()=>import("./repositories-BSWAcVK8.js"),__vite__mapDeps([359,360,75,43,55,76,30,27,77,78,79,80,22,45,24,81,35,73,44,132,51,58,192,23,179,95,141,28,29,31,33,56,297,298,290,291,292])))}),jpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./synced-repos-GfE9kIif.js"),__vite__mapDeps([361,55,192,75,43,76,30,27,77,78,79,80,22,45,24,81,35,73,301,290,291,292])))}),zpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-6JgQa8El.js"),__vite__mapDeps([362,132,51,33,47,54,55,170,66,67,22,130,285,23,31,28,29,30,32,284,349,39,81,35,73,151,63,11,24,263,262,59,60,95,76,115,206,78,79,61,62,72,2,290,291,292])))}),qpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/task-board",params:{org:t.org}})}}),Upe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-B3gCjiBk.js"),__vite__mapDeps([363,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,23,21,74,27,63,11,70,62,71,3,2,72,73,35,75,76,30,77,78,79,80,24,81,257,232,238,92,93,94,273,61,151])))}),$pe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./members-B5rwN-xs.js"),__vite__mapDeps([364,365,19,49,76,30,168,169,23,21,22,17,18,20,89,27,28,29,31,33,366,236,50,56,59,132,51,66,67,130,55,265,290,291,292])))}),Vpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./roles-miGbxbmy.js"),__vite__mapDeps([367,366,23,49,55,56,17,18,19,20,21,22,133,353,68,44,40,41,42,43,45,38,46,31,47,39,48,50,51,52,53,54,57,58,59,60,216,132,217,79,63,11,80,101,102,151,62,109,32,76,30,69,61,291,292]))),validateSearch:Jr(()=>we({role:$().optional()}))}),Hpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-BZDDOaue.js"),__vite__mapDeps([368,350,23,28,29,30,31,32,82,56,290,291,292])))}),Gpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-My2od47M.js"),__vite__mapDeps([369,158,159,29,56,57,32,28,30,31,168,169,76,52,53,54,283,207])))}),Wpe=De({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/projects",params:{org:t.org}})}}),Kpe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-DQrJLYNP.js"),__vite__mapDeps([370,55,60,21,22,20,263,63,11,70,62,71,3,2,72,73,35,279,23,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,56,57,58,59,290,291,292])))}),Ype=De({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:t})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),Zpe=De({getParentRoute:()=>co,path:"/memory",validateSearch:Jr(()=>we({scope:ao(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),Qpe=co.addChildren([Cpe,Epe,_pe,Ppe,Wpe,Kpe,Ype,Zpe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,Gpe]),Jpe=Eb.addChildren([zue,que,Uue]),Xpe=lo.addChildren([Bue,Fue,jue,Jpe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,Zue,Que,Jue,Xue,epe,tpe,ope,ape,npe,rpe,spe,ipe,lpe,bpe,ype]),eme=en.addChildren([Mue,Iue,Lue,Xpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,Spe,fpe,vpe]),tme=Cb.addChildren([Tpe,kpe,eme]),ome=kb.addChildren([tme,wpe,Qpe]),ame=GC.addChildren([kue,ome]),nme=Va.addChildren([ame,Tue,Cue,Eue,_ue,Pue,WC.addChildren([Aue,Rue]),Due,pue,mue,hue,gue,fue,vue,bue]);function rme(){const t=ye.c(16),e=Ua();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=b.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=b.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=b.jsx("button",{type:"button",onClick:sme,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function sme(){return window.history.back()}const _b=iV({routeTree:nme,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:rme});function Pe(...t){return QB(eC(t))}function ime(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Vo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function Xl(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function A0(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var lme={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"},cme={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"},dme={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."},ume={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."},pme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},mme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},hme={...pme,...mme},gme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},fme={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},vme={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},bme={INVALID_SESSION_TOKEN:"Invalid session token"},yme={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"},Sme={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"},wme={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"},xme={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"},Tme={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"},kme={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"},Cme={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"},Eme={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",...ume,...lme,...cme,...dme,...hme,...gme,...fme,...vme,...bme,...yme,...Sme,...wme,...xme,...Tme,...kme,...Cme},_me={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"},rN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},sN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const J4=A.createContext({});function X4(){return A.useContext(J4)}var hx,iN;function Pme(){if(iN)return hx;iN=1;var t=function(){};return hx=t,hx}var Ame=Pme();const Rme=Gl(Ame);function Dme({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var Ome=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const Av=new Set,Rv=new Set,Nme=typeof window<"u",Ed="___grecaptcha_cfg",e5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Mme(){if(!Nme)return;function t(o){if(em)o();else{window[Ed]||(window[Ed]={});const a=window[Ed];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Rv)o();Rv.clear()}window[e5]=e}function Ime({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function Lme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Ime({language:t,onLoadCallbackName:e5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,Dme(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function Bme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function Fme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Ome(e,["onLoadCallback","onLoadCallbackName"]);if(Av.size===0&&Mme(),Lme(n),Av.add(t),o&&(em?o():Rv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};em?r():Rv.add(r)}}function jme(t){var e,o,a;Av.delete(t),Av.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let lN=!1;function zme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const y=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{T(L)})}return Fme(y,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{jme(y),T(null)}},[t?.element,y,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const U={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(lN||(Rme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),lN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),E.current=!0,()=>{k(null),E.current=!1,Bme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!t?.element,P=C?x:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,C]);return b.jsx(J4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var qme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new qme;function Ume(){return()=>{}}function $s(){return A.useSyncExternalStore(Ume,()=>!0,()=>!1)}function t5(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function KC(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function $me({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:b.jsxs(zme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&b.jsx("style",{children:`
168
+ `),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=i2.test(f)?f.replace(i2,"$1"):f;if(!v.match(/\S*Error: /)){for(var y of r){var S=y(v,a);if(S){u.push(S);break}}if(u.length>=50)break}}}return(function(T){if(!T.length)return[];var x=Array.from(T);return x.reverse(),x.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(E=x,E[E.length-1]||{}).filename,function:k.function||qd});var E}))})(u)}})("web:javascript",ble,wle)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(XT))!==null&&e!==void 0?e:[],this.mo=pv(this.yo()),this.bo=new Nle(this.mo)}onConfigChange(){this.mo=pv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,o,a;if("errorTracking"in t){var n=(e=(o=t.errorTracking)==null?void 0:o.suppressionRules)!==null&&e!==void 0?e:[],r=(a=t.errorTracking)==null?void 0:a.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[XT]:this.fo,[e0]:r})}}get _o(){var t,e=!!this._instance.get_property(e0),o=this._instance.config.error_tracking.captureExtensionExceptions;return(t=o??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!_o(t)||t.trim().length===0)return void Ps.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(e),{sanitizedProperties:a,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>Ole.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&Ps.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[dv]:t,[uv]:new Date().toISOString()},a))}catch(r){Ps.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void Ps.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void Ps.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void Ps.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&_t(t.$exception_steps)?this.To(t):t;try{var a=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return a&&this.bo.clear(),a}catch(n){return Ps.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Ps.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(o){return Ps.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[dv]:t,[uv]:new Date().toISOString()})}wo(t){return Fo(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((o,a)=>{var{type:n,value:r}=a;return _o(n)&&n.length>0&&o.$exception_types.push(n),_o(r)&&r.length>0&&o.$exception_values.push(r),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var a=o.values.map((n=>{var r,i=p4[n.operator],c=It(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return o.type==="OR"?a.some(Boolean):a.every(Boolean)}))}xo(t){return t.flatMap((e=>{var o,a;return(o=(a=e.stacktrace)==null?void 0:a.frames)!==null&&o!==void 0?o:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,o,a,n,r=(e=(o=t[0].stacktrace)==null?void 0:o.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(a=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&a!==void 0&&a}return!1}Io(t){return!_t(t)&&It(t)}}},$ce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[o0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(o0)||this.ur((()=>this.Ro()))}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.generateProductTours?t():(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(a=>{a?H2.error("Could not load product tours script",a):t()}))}Ro(){var t;!this.Ao&&(t=ot.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=ot.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!It(this.Eo)||e){var o=this.ni;if(o){var a=o.props[Cf];if(It(a)&&!e)return this.Eo=a,void t(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return H2.error(i),void t([],{isLoaded:!1,error:i})}var c=It(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,o&&o.register({[Cf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){_t(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Cf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},Sb),Vce={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var o=this.globalsForEvent(e);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=ot._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,o,a,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:v,$set:y}=t;return{event:Me({},m3(t,Mce),{properties:Me({},t.properties,y?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},y)}:{},v?{$set_once:Me({},(a=(n=t.properties)==null?void 0:n.$set_once)!==null&&a!==void 0?a:{},v)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],o=()=>{var i;!e.errored&&this.No.length&&(Si.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},a=!1,n=i=>{e.errored=!i,e.loaded=!0,Si.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),a&&o()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),a=!0}catch(i){Si.error(G2+t.id,i),n(!1)}if(a&&e.loaded)try{o()}catch(i){Si.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of t)this.setupSiteApp(o)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(e)}catch(a){Si.error("Error while processing event "+t.event+" for site app "+o.id,a)}}}onRemoteConfig(t){var e,o,a,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(a=t.siteApps)!=null&&a.length)if(this.isEnabled){var r=function(d){var u;ot["__$$ph_site_app_"+d]=n._instance,(u=ot.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return Si.error(G2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else Si.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Hce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,o,a=this.Bo()||[];$e(this.Lo)&&((e=ot.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(a,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((o=ot.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(a,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,o;(e=ot.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(o=ot.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(a=>{if(a)return Oce.error("failed to load script",a);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},Gce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(_t(e))return oo.warn("Flags not loaded yet. Not loading surveys.");var o=It(e);this.jo=o?e.length>0:e,oo.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var o=localStorage.key(e);(o!=null&&o.startsWith(x0)||o!=null&&o.startsWith("inProgressSurvey_"))&&t.push(o)}t.forEach((a=>localStorage.removeItem(a)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)oo.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)oo.info(W2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())oo.info("Not loading surveys in cookieless mode without consent.");else{var t=ot?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=t.generateSurveys;if(o)return void this.Vo(o,e);var a=t.loadExternalDependency;if(!a)return void this.Ho(IC);a(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else oo.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new Bce(this._instance),oo.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){oo.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return oo.info(W2),t([]);var o,a=this._instance.get_property(i0);if(a&&!e)return t(a,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{o=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;oo.error(c);var d={isLoaded:!1,error:c};return t([],d),void(o==null||o({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[i0]:m});var f={isLoaded:!0};t(m,f),o?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(o){oo.error("Error in survey callback",o)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!_t(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);oo.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((o=>{var a;e=(a=o.find((n=>n.id===t)))!==null&&a!==void 0?a:null})),e}Yo(t){if(_t(this._surveyManager))return{eligible:!1,reason:dx};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(_t(this._surveyManager))return oo.warn("init was not called"),{visible:!1,disabledReason:dx};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return _t(this._surveyManager)?(oo.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:dx})):new Promise((o=>{this.getSurveys((a=>{var n,r=(n=a.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);o({visible:i.eligible,disabledReason:i.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,o){var a;if(_t(this._surveyManager))oo.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(vce.includes(n.type)){var r=ze?.querySelector(e);if(r)return(a=n.appearance)!=null&&a.surveyPopupDelaySeconds?(oo.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;oo.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,o),oo.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,o);oo.warn("Survey element not found")}else oo.warn("Surveys of type "+n.type+" cannot be rendered in the app");else oo.warn("Survey not found")}}displaySurvey(t,e){var o;if(_t(this._surveyManager))oo.warn("init was not called");else{var a=this.Uo(t);if(a){var n=a;if((o=a.appearance)!=null&&o.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},a,{appearance:Me({},a.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==f0.Popover&&e.initialResponses&&oo.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(a);if(!r.visible)return void oo.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==f0.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else oo.warn("Survey not found")}}cancelPendingSurvey(t){_t(this._surveyManager)?oo.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},Sb),Wce={toolbar:class{constructor(t){this.instance=t}Go(t){ot.ph_toolbar_state=t}Wo(){var t;return(t=ot.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,o){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),W3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,o=o??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var a,n=Fce||Tv(t.hash,"__posthog")||Tv(t.hash,"state"),r=n?c2((()=>JSON.parse(atob(decodeURIComponent(n)))))||c2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?t.hash=r.desiredHash:o?o.replaceState(o.state,"",t.pathname+t.search):t.hash="")):((a=JSON.parse(e.getItem(K2)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token||(this.loadToolbar(a),0))}catch{return!1}}Xo(t){var e=ot.ph_load_toolbar||ot.ph_load_editor;!_t(e)&&Rs(e)?e(t,this.instance):Y2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById($3));if(!ge||e)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,a=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(ge.localStorage.setItem(K2,JSON.stringify(Me({},a,{source:void 0}))),this.Wo()===2)this.Xo(a);else if(this.Wo()===0){var n;this.Go(1),(n=ot.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return Y2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Jo(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(a)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,o){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(t,e,o)}}},Kce=Me({experiments:La},Sb),Yce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Yr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||W3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=ot?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var o=t.loadExternalDependency;if(!o)return void this.ra(IC);o(this._instance,"conversations",(a=>{a||!t.initConversations?this.ra("Could not load conversations script",a):this.ta(t.initConversations),this.Qo=!1}))}catch(a){this.ra("Error initializing conversations",a),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!zs(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,o){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.sendMessage(t,e,o):(Zn.warn(Cl),null)}))()}getMessages(t,e){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.getMessages(t,e):(Zn.warn(Cl),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(Cl),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(Cl),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(Cl),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(Cl),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(Cl),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Zce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=To("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,o=(e=t.logs)==null?void 0:e.captureConsoleLogs;!_t(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=ot?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(o=>{var a;o||(a=t.logs)==null||!a.initializeLogs?this.Gt.error("Could not load logs script",o):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(IC)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,o,a,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(a=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&a!==void 0?a:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var v=h.level||"info",{text:y,number:S}=N3[v]||ple,T=String(Date.now())+"000000",x={};f.distinctId&&(x.posthogDistinctId=f.distinctId),f.sessionId&&(x.sessionId=f.sessionId),f.currentUrl&&(x["url.full"]=f.currentUrl),f.screenName&&(x["screen.name"]=f.screenName),f.appState&&(x["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(x.feature_flags=f.activeFeatureFlags);var k=Me({},x,h.attributes||{}),E={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:y,body:{stringValue:h.body},attributes:s2(k)};return h.trace_id&&(E.traceId=h.trace_id),h.span_id&&(E.spanId=h.span_id),$e(h.trace_flags)||(E.flags=h.trace_flags),E})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var o=this._instance.config.logs,a=Me({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:s2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),a,Qa.LIB_NAME,Qa.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=o}if(ot!=null&&(t=ot.location)!=null&&t.href&&(e.currentUrl=ot.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Qce=Me({},Sb,zce,qce,Uce,$ce,Vce,Gce,Hce,Wce,Kce,Yce,Zce);tr.__defaultExtensionClasses=Me({},Qce);var X2,qs=(X2=Pp[cd]=new tr,(function(){function t(){t.done||(t.done=!0,g4=!1,bo(Pp,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Jo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),X2);let Ls=!1,_0=null,eN=!1;const UC="studio:lp-distinct-id",k4="mesh:lp-distinct-id",px="/api/_reports/link-token/",Jce=1440*60*1e3;function C4(t){const e="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(t),a=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(px)&&n.pathname!==px&&(n.pathname=`${px}redacted`,r=!0),r?o?n.toString():a?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function mx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?C4(o):o]))}const Xce=t=>t?(t.properties=mx(t.properties),t.$set&&(t.$set=mx(t.$set)),t.$set_once&&(t.$set_once=mx(t.$set_once)),t):null;function E4(){try{const t=window.localStorage.getItem(UC)??window.localStorage.getItem(k4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=Jce?e:void 0}catch{return}}function ede(){try{window.localStorage.removeItem(UC),window.localStorage.removeItem(k4)}catch{}}function tde(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(UC,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??E4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function ode(t){const e=E4();if(e&&(ede(),e!==t))try{qs.alias(e)}catch{}}function ade(t,e){if(Ls||typeof window>"u")return;const o=tde();qs.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Xce,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:C4(a.name)}:{}})},person_profiles:"identified_only"}),Ls=!0}function nde(t,e){Ls&&(qs.identify(t,e),ode(t))}function rde(){Ls&&(qs.reset(),_0=null)}function _4(t,e){Ls&&qs.capture(t,e)}function DTe(){return Ls}function OTe(){if(!Ls||eN||typeof performance>"u")return;eN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};_4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:kJ(),org_cache_restored:CJ()})}function NTe(t,e){Ls&&t!==_0&&(qs.group("organization",t,e),_0=t)}function P4(t,e){if(Ls)try{qs.captureException(t,e)}catch{}}const sde=["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 ide(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:sde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=b.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,b.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),e[1]=o,e[2]=n):n=e[2],n}function A4(t){const e=ye.c(20),{orgName:o}=t,a=Ua(),n=lde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:b.jsx(Hj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a("common.archivedOrgScreen.orgUnavailable"),e[1]=a,e[2]=i):i=e[2];let c;e[3]!==i?(c=b.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==a?(d=o?a("common.archivedOrgScreen.deletedWithName",{orgName:o}):a("common.archivedOrgScreen.deletedGeneric"),e[5]=o,e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=b.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=b.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==a?(h=a("common.goHome"),e[13]=a,e[14]=h):h=e[14];let f;e[15]!==h?(f=b.jsx(bn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let v;return e[17]!==m||e[18]!==f?(v=b.jsxs(ide,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function lde(){window.location.href="/"}function cde(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=rm(e);let a;return t[1]!==o?(a=b.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:b.jsx(Wl,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),t[1]=o,t[2]=a):a=t[2],a}function dde(t){const e=ye.c(13),{area:o,description:a,action:n}=t,r=o?`No access to ${o}`:"No access",i=a??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:b.jsx(e3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=b.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=b.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=b.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??b.jsx(cde,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=b.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const tN="__studio_chunk_reload_ts";function R4(t){return t?.message===XX}function ude(t){return!!t?.message?.includes("Access denied")}function oN(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class pde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o),P4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:e,t:o}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:R4(this.state.error)?b.jsx(A4,{}):ude(this.state.error)?b.jsx(dde,{}):b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(CC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function mde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(pde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class hde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Uncaught error:",e,o);const a=oN(e);if(P4(e,{boundary:"chunk_root",is_chunk_load_error:a,error_name:e.name,error_message:e.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!a)return;const n=sessionStorage.getItem(tN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(tN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&oN(this.state.error)?b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:b.jsx(t3,{className:"h-6 w-6 text-primary"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),b.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?R4(this.state.error)?b.jsx(A4,{}):b.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[b.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:b.jsx(CC,{className:"h-6 w-6 text-destructive"})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),b.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),b.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function gde(t){const e=ye.c(3),o=Ua();let a;return e[0]!==t||e[1]!==o?(a=b.jsx(hde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const fde=Zl("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function vde(t){const e=ye.c(14);let o,a,n,r,i;e[0]!==t?({className:o,size:r,interactive:a,asChild:i,...n}=t,e[0]=t,e[1]=o,e[2]=a,e[3]=n,e[4]=r,e[5]=i):(o=e[1],a=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?ib:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Qe(fde({size:r,interactive:a}),o),e[6]=o,e[7]=a,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=b.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function MTe(t){const e=ye.c(11),{title:o,description:a,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Qe("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==o?(u=(o||a||n||r)&&b.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[b.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&b.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&b.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&b.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",b.jsx(Gj,{size:12})]})]})]}),r&&b.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=a,e[4]=n,e[5]=o,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=b.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function ITe(t){const e=ye.c(11),{className:o,children:a}=t;let n,r,i;if(e[0]!==a||e[1]!==o){const d=A.Children.toArray(a).filter(A.isValidElement);n=vde,e[5]!==o?(r=Qe("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(bde),e[0]=a,e[1]=o,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=b.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function bde(t,e){return b.jsxs("div",{children:[e>0&&b.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function LTe(t){const e=ye.c(27),{icon:o,title:a,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,v=i?0:void 0;let y;e[4]!==i?(y=i?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),i())}:void 0,e[4]=i,e[5]=y):y=e[5];let S;e[6]!==o?(S=o&&b.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:o}),e[6]=o,e[7]=S):S=e[7];let T;e[8]!==a?(T=b.jsx("div",{className:"text-sm font-medium",children:a}),e[8]=a,e[9]=T):T=e[9];let x;e[10]!==n?(x=n&&b.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=x):x=e[11];let k;e[12]!==d||e[13]!==T||e[14]!==x?(k=b.jsxs("div",{className:"flex-1 min-w-0",children:[T,x,d]}),e[12]=d,e[13]=T,e[14]=x,e[15]=k):k=e[15];let E;e[16]!==r?(E=r&&b.jsx("div",{className:"shrink-0",onClick:yde,children:r}),e[16]=r,e[17]=E):E=e[17];let C;return e[18]!==i||e[19]!==k||e[20]!==E||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==y||e[25]!==S?(C=b.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:y,children:[S,k,E]}),e[18]=i,e[19]=k,e[20]=E,e[21]=h,e[22]=f,e[23]=v,e[24]=y,e[25]=S,e[26]=C):C=e[26],C}function yde(t){return t.stopPropagation()}function BTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function FTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=b.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function Sde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Qe("flex flex-col gap-10",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=b.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const wb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:r3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:a3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Yj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:o3,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:Jj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:Qj,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function jTe(t){const e=wb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function zTe(t){return wb[t].tabs.length>0}const wde=new Set(["owner","admin"]);function D4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=ca.myCapabilities(o),t[0]=o,t[1]=a):a=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==a||t[5]!==n?(r={queryKey:a,queryFn:n,staleTime:3e4,retry:2},t[4]=a,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Gi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function qTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=D4();if(a){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=o?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=o?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function O4(){const t=ye.c(10),{data:e,loading:o,error:a}=D4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?wde.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==a||t[5]!==i||t[6]!==o||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:o,error:a,isPrivileged:i,roleSlug:n},t[4]=a,t[5]=i,t[6]=o,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function xde(){const t=ye.c(13),{org:e}=Yi(),o=Wk(),{capabilities:a,isPrivileged:n}=O4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=ca.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==o?(d=()=>o.call("INFRA_BILLING_SITES_LIST",{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Gi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Tde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let v;return t[10]!==h||t[11]!==f?(v={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=v):v=t[12],v}function Tde(t){return t.slug}function UTe(){const t=ye.c(7),e=Wk(),o=Ua();let a;t[0]!==e?(a=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=a):a=t[1];let n;t[2]!==o?(n=i=>Id.error(o("settings.infraBilling.portalError",{message:i.message})),t[2]=o,t[3]=n):n=t[3];let r;return t[4]!==a||t[5]!==n?(r={mutationFn:a,onSuccess:kde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],vf(r)}function kde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function $Te(t,e){const o=ye.c(14),{org:a}=Yi(),n=Wk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Gi,i=ca.infraBilling(a.id,r.join(","),e),o[0]=a.id,o[1]=e,o[2]=t,o[3]=r,o[4]=i,o[5]=c):(r=o[3],i=o[4],c=o[5]);const d=r.length>0;let u;o[6]!==e||o[7]!==r||o[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),o[6]=e,o[7]=r,o[8]=n,o[9]=u):u=o[9];let m;return o[10]!==i||o[11]!==d||o[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},o[10]=i,o[11]=d,o[12]=u,o[13]=m):m=o[13],c(m)}function Cde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=O4(),{sites:r,isLoading:i}=xde(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==o||t[3]!==a||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:a||n?!0:m.privilegedOnly?o:m.requires?o||e[m.requires]:!0;d=Object.fromEntries(Object.values(wb).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=o,t[3]=a,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function Ede(t){const e=ye.c(16),{group:o}=t,a=Ua();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:_de},e[1]=i):i=e[1];const c=vk(i),d=Cde()[o],{titleKey:u}=wb[o];let m;e[2]!==a||e[3]!==u?(m=a(u),e[2]=a,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=b.jsx(Td.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==o||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==d?(f=d.length>1&&b.jsx(pn.Toolbar.Left.Portal,{children:b.jsx(Td.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(y=>{const S=y.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return b.jsx(Td.Tab,{active:T,asChild:!0,children:b.jsx(Wl,{to:y.to,params:{org:r},onClick:()=>_4("settings_subnav_clicked",{group_key:o,tab_key:y.key}),children:a(y.labelKey)})},y.key)})})}),e[7]=o,e[8]=r,e[9]=c,e[10]=a,e[11]=d,e[12]=f):f=e[12];let v;return e[13]!==h||e[14]!==f?(v=b.jsxs(b.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function _de(t){return t.location.pathname}function N4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[b.jsx(kO,{className:"h-32 w-full"}),b.jsx(kO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Pde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=b.jsx(Ede,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??b.jsx(N4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=b.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=b.jsx(mde,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=b.jsx(Td,{children:b.jsx(Td.Content,{children:b.jsx(Td.Container,{children:b.jsxs(Sde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return b.jsx(Pde,{group:t,children:b.jsx(N4,{})})}}function Ade(t){try{localStorage.setItem(Or.lastLocation(),JSON.stringify(t))}catch{}}function Rde(){try{const t=localStorage.getItem(Or.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function VTe(){try{localStorage.removeItem(Or.lastLocation())}catch{}}function Dde(t,e){const o=t&&e?wJ(e,t):null;return{queryKey:ca.activeOrganization(t),queryFn:async()=>{if(!t)return null;const a={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ga.organization.getFullOrganization({query:a}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=Qk(n);return n&&!r&&localStorage.setItem(Or.lastOrgSlug(),t),e&&n&&xJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let aN;async function Ode(t){aN=t,await RB();const e=oee();if(!e)return;const o=await Yl.ensureQueryData(Dde(t,e)).catch(()=>null);o&&!Qk(o)&&aN===t&&Ade({org:t})}const Et={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:Et.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function HTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Nde},t[0]=e):e=t[0],vk(e)}function Nde(t){return t.matches.at(-1)?.fullPath??""}function GTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Mde},t[0]=e):e=t[0],vk(e)}function Mde(t){return t.matches.findLast(Ide)?.staticData.mainView}function Ide(t){return t.staticData.mainView}function Pf(t){return`agent-view:${encodeURIComponent(t)}`}function Lde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const o=decodeURIComponent(e);return o?{id:o}:null}catch{return null}}function M4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function $C(t,e){return`app:${t}:${e}`}function Bde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),o=e.indexOf(":");if(o<=0)return null;const a=e.slice(0,o),n=e.slice(o+1);return!a||!n?null:{connectionId:a,toolName:n}}function I4(t){return`deck:${encodeURIComponent(t)}`}function Fde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function L4(t){return`file:${encodeURIComponent(t)}`}function jde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function B4(t){return`library-file:${encodeURIComponent(t)}`}function zde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function F4(t){return`code:${encodeURIComponent(t)}`}function qde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const j4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Ude=new Set(j4),z4=new Set(["hosting","e2e","analytics","cdn"]),$de=new Set(["board","files","connect-sources","reports"]);function WTe(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Vde=new Map([["preview","site-editor"],["git","site-editor"]]);function xb(t){return Vde.get(t)??t}const VC=new Set(["instructions","connections","layout","settings"]);function Hde(t){return!!t&&VC.has(t)}const Gde=new Set(["overview","board","reports"]);function q4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=xb(e.type);if(VC.has(o))return"settings";if(Ude.has(o)||Gde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return $C(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?Pf(e.id):n[0]?Pf(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?Pf(a):"settings"}function KTe(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=q4(t);return o==="overview"?null:o}function YTe(t){const e=t.routeDefaultMain||q4(t.metadata),o=t.panelTabId&&VC.has(t.panelTabId)?"settings":t.panelTabId?xb(t.panelTabId):t.panelTabId,a=t.metadata?.defaultMainView??null,n=a==null||a.type==="chat";return{mainOpen:t.mainPanelParam??(!!o||!!t.routeDefaultMain||!n),activeTab:o??e}}function ZTe(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function QTe(t){return t.mainOpen?t.activeTab==="automations"?!0:M4(t.activeTab)!==null:!1}const Wde=new Set([...j4.filter(t=>!z4.has(t)),...$de,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Kde(t){return!!t&&Wde.has(t)}function Yde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?$C(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?L4(e.key):void 0;case"deck":return e.deck?I4(e.deck):void 0;case"library-file":return e.path?B4(e.path):void 0;case"code":return e.file?F4(e.file):"code";default:{const o=xb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function JTe(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?F4(o.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?$C(e.connectionId,e.toolName):void 0;case"view":return e.viewId?Pf(e.viewId):void 0;case"file":return o.key?L4(o.key):void 0;case"deck":return o.path?I4(o.path):void 0;case"library-file":return o.path?B4(o.path):void 0;default:return t.mainView}}const Zde={files:"library",discover:"discover"},Qde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},Jde={analytics:"audience",cdn:"performance"},Xde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function U4(t){const e=Lde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=Bde(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=M4(t);if(a)return{kind:"automations",automationId:a.id};const n=jde(t);if(n)return{kind:"output-file",key:n.key};const r=Fde(t);if(r)return{kind:"output-deck",path:r.path};const i=zde(t);if(i)return{kind:"library-file",path:i.path};const c=qde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Hde(t))return{kind:"agent-section",section:"settings"};const d=xb(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Qde[d];if(u){const f=Jde[d];return{kind:"project-destination",destination:u,...f?{monitorView:f}:{}}}const m=Zde[d];if(m)return{kind:"org-destination",destination:m};const h=Xde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function Ul(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=U4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Et.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Et.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:Et.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Et.monitoring,params:{org:e},search:i}:{to:tt.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Et.home,params:{org:e},search:{}};case"discover":return{to:Et.discover,params:{org:e},search:{}};case"library":return{to:Et.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:a,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:a,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:a,search:{file:n.file}}:{to:tt.siteEditor,params:a,search:{}};case"agent-section":return{to:tt[n.section],params:a,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...a,automationId:n.automationId},search:{}}:{to:tt.automations,params:a,search:{}};case"app":return{to:tt.app,params:{...a,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...a,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:a,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:a,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:a,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:a,search:{}}}}function XTe(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Et.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&U4(e).kind==="org-destination"?"overview":e;return Ul({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function eue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Et.tasks:t({to:Et.tasks,params:e.params,search:a,replace:n});return;case Et.home:t({to:Et.home,params:e.params,search:a,replace:n});return;case Et.reports:t({to:Et.reports,params:e.params,search:a,replace:n});return;case Et.discover:t({to:Et.discover,params:e.params,search:a,replace:n});return;case Et.plan:t({to:Et.plan,params:e.params,search:a,replace:n});return;case Et.monitoring:t({to:Et.monitoring,params:e.params,search:a,replace:n});return;case Et.library:t({to:Et.library,params:e.params,search:a,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:a,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:a,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:a,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:a,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:a,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:a,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:a,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:a,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:a,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:a,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:a,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:a,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:a,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:a,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:a,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:a,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.calendar:case tt.experiments:t({to:e.to,params:e.params,search:a,replace:n})}}function e0e(t,e){eue(t,Ul(e),e)}function tue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function oue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const aue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),$4=new Set(["main"]),nue=new Set(["virtualmcpid"]);function Tb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function Fl(t,e){return{...Tb(t,aue),...e.search}}function rue(t){return Tb(t,nue)}function t0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Et.tasks?"board":t.routePath===Et.reports?"reports":null;if(t.routePath===Et.home||o){const a=o?Ul({org:t.org,agentId:e,tabId:o}):Vd(t.org,e);return{kind:"canonical",route:a,search:Fl(t.search,a)}}}return t.routePath===Et.home||t.routePath===Et.tasks||t.routePath===Et.reports||t.routePath===Et.library?{kind:"same-route",search:rue(t.search)}:null}function kr(t){return t?.trim()||void 0}function V4(t){return Kde(t)||t!==void 0&&z4.has(t)}function H4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||ZL(e)!==null||GY(e)!==null||WY(e)!==null||JL(e)||XL(e):!1}function sue(t){const e=kr(t.agentIdParam),o=V4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function o0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=P0({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||oue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!H4(e);if(!(V4(e)||o))return null;const n=sue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=P0({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function iue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?Ul({org:e,agentId:n,tabId:"board"}):{to:Et.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=_i(o.path);return{to:Et.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?Ul({org:e,agentId:n,tabId:"reports"}):{to:Et.reports,params:{org:e},search:{}};case"overview":return{to:Et.home,params:{org:e},search:{}};case"discover":return{to:Et.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=iue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:Ul({org:t.org,agentId:o,tabId:t.tabId}):null}function Vd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:Et.home,params:{org:t},search:{}}}function lue(t){const{main:e}=t;if(e===void 0)return null;const o=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Tb(o,$4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...Fl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Jp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:Fl(o,a)}:null}function _i(t){return typeof t=="string"&&t.length>0?t:void 0}function P0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=P0({...t,search:Tb(e,$4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return lue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Vd(t.org,o);return{kind:"canonical",route:i,search:Fl(e,i)}}const n=Yde(a,{file:_i(e.file),key:_i(e.key),deck:_i(e.deck),path:_i(e.path),connection:_i(e.connection),tool:_i(e.tool),automation:_i(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&o?Ul({org:t.org,agentId:o,tabId:n}):Jp({org:t.org,agentId:o,tabId:n,search:e}):Jp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...Fl(e,r),sidepanel:!0,mainpanel:!1}:Fl(e,r)}:null}function a0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Jp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Et.home,params:{org:t.org},search:{}}}else r=Vd(t.org,o);return{route:r,search:{...Fl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function G4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const cue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},W4=cue,HC={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},due=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Pv={fileView:ao(["all","documents","media"]).catch("all").optional(),modified:ao(["any","today","week","month"]).catch("any").optional(),layout:ao(["list","grid"]).catch("list").optional(),sort:ao(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:uT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ao(due).catch("files").optional(),scope:ao(["user"]).optional().catch(void 0),action:ao(["create"]).optional().catch(void 0),tab:ao(["all","connected"]).optional().catch(void 0)},uue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Qv().optional(),siteUrl:$().optional(),...W4},K4={...uue,task:$().optional(),project:$().optional(),...HC,skill:Pv.skill,brand:Pv.brand},wm=we(K4),Va=Z$({component:()=>b.jsx(gde,{children:b.jsx(fk,{})})}),pue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-CmHRnJOc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),validateSearch:Jr(()=>we({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),mue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-7WGG5Ny7.js"),__vite__mapDeps([8,4])))}),hue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-GLJcH65P.js"),[])),validateSearch:Jr(()=>we({token:$().optional(),error:$().optional()}))}),gue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-DrPulr77.js"),[]))}),fue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-DisZamoA.js"),__vite__mapDeps([9,10,11])))}),vue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-BLSOh8Vc.js"),__vite__mapDeps([12,4,1,2,3])))}),bue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-CQY9pH53.js"),[]))}),xm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-mU_v4Bh-.js"),__vite__mapDeps([13,14,15])))}),yue=De({getParentRoute:()=>xm,path:"/",beforeLoad:()=>{throw po({to:"/_admin/users"})}}),Sue=De({getParentRoute:()=>xm,path:"/users",component:Be(()=>Fe(()=>import("./users-BL-cP3wa.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25])))}),wue=De({getParentRoute:()=>xm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-05_Ljhax.js"),__vite__mapDeps([26,17,18,19,20,21,22,27,24,28,29,30,31,32,33,23,34,35,25])))}),xue=De({getParentRoute:()=>xm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-ev7-vW68.js"),__vite__mapDeps([36,20,27,33,25])))}),Tue=xm.addChildren([yue,Sue,wue,xue]),GC=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-CUa5MDUh.js").then(t=>t.q),__vite__mapDeps([37,38,39,15,25,40,41,42,19,43,44,45,46,31,47,48,49,50,51,52,53,54,55,22,56,57,58,59,60,61,62,63,11,64,65,66,67,68,69,70,71,3,2,72,73,35,24,74,27,75,76,30,77,78,79,80,81,5,6,7,14,82,83])))}),kue=De({getParentRoute:()=>GC,path:"/",beforeLoad:async()=>{const t=Rde();if(t)throw po({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Or.lastOrgSlug());if(e)throw po({to:"/$org",params:{org:e}});const{data:o}=await DB();if(!o)return;const a=o[0];throw po(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Cue=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await DB();if(t&&t.length>0)throw po({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-knc2o8kj.js"),__vite__mapDeps([84,14,4,85,55,27,32,38,46,57])))}),Y4=Jr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Eue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-3NRLE0S7.js"),__vite__mapDeps([86,87,1,2,3,4,85,55,88,89,27,90,63,11,91,68,44,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,22,56,57,58,59,60,76,30,92,93,94,95,24,96,97,98,10,99,100,101,102,103,104]))),validateSearch:Y4}),_ue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:Y4,beforeLoad:({search:t})=>{throw po({to:"/reports-onboarding",search:t})}}),Pue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-K8PxtGC5.js"),__vite__mapDeps([105,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,14]))),validateSearch:Jr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),WC=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-BgYmGLHo.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])))}),Aue=De({getParentRoute:()=>WC,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-BgYmGLHo.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])),"SiteEditorPreview")}),Rue=De({getParentRoute:()=>WC,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-BgYmGLHo.js"),__vite__mapDeps([106,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,111,7,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,117,118,119,120,88,89,121,122,123,33,124,125,126,127,128,129,130,131,132,28,29,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,20,157,158,159,160,161,162,32,163,164,165,166,167,168,169,170,21,171,172,173,174,175,176,177,96,178,179,180,102,181,182,183,184,185,186,187,188,189,190,191,23,192,17,18,193,194,195,196,197,198,199,200,201,95,202,203,204,205,206,207,208,209,210,100,93,101,211,212,213,214,97,98,10,215,216,217,218,219,220,221,222])),"SiteEditorContent")}),Due=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-DaISkEl7.js"),__vite__mapDeps([223,99,3,1,2,224])))}),kb=De({getParentRoute:()=>GC,path:"/$org",loader:({params:t})=>Ode(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-ChpHpM6U.js"),__vite__mapDeps([225,117,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,7,14,82,83,115,118,119,120,88,89,121,122,123,33,130,203,109,108,209,163,29,226,227,228,23,229,230,174,172,128,133,231,32,232,134,182,194,193,233,234,218,110,235,132,95,236,207])))}),Cb=De({getParentRoute:()=>kb,id:"org-shell",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./thread-route-Df1f7USR.js"),__vite__mapDeps([237,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,87,238,92,93,94,44,90,91,68,40,41,42,19,43,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,89,27,95,24,96,97,98,10,99,100,101,102,239,103])))}),Oue=we({sidepanel:JB,mainpanel:XB,main:io([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Cb,id:"agent-shell",validateSearch:Oue,search:{middlewares:[S$(["sidepanel"])]},pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-D4eWmnLE.js"),__vite__mapDeps([240,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,112,113,65,64,61,62,63,11,71,3,2,72,73,35,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,7,14,82,83,115,200,107,108,109,110,144,152,143,89,145,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,182,198,199,175,127,126,139,20,128,111,116,241,242,243,194,184,183,230,174,172,180,193,121,244,245,246,247,248,135,165,124])))}),Nue=wm.extend({virtualmcpid:$().optional()}),Mue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:Nue,component:()=>null}),Bt=Be(()=>Fe(()=>import("./index-BW39Ccy3.js").then(t=>t.i),__vite__mapDeps([111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116])),"ChatLayoutPending"),Ft=Be(()=>Fe(()=>import("./index-BW39Ccy3.js").then(t=>t.i),__vite__mapDeps([111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116])),"ChatLayoutError"),Iue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-CVchwepi.js"),__vite__mapDeps([249,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,201,143,144,89,145,146,142,107,108,109,110,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,152,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,250,251,233,234,118,252,161,162,160,253,121,254,227,235,255,256,248,135,165,245,246,247,257,226,122])))}),Lue=De({getParentRoute:()=>en,path:"/projects",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=(e.project??e.virtualmcpid)?.trim(),a=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!o)throw po({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw po(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:o,taskKey:n},search:a,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a,hash:!0,replace:!0})}});let nN;const lo=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:wm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==nN;return nN=e.agentId,{enteredProject:o}},component:fk}),Bue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-BT1unfrS.js"),__vite__mapDeps([258,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,107,108,109,110,201,143,144,89,145,146,142,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,152,206,207,208,209,210,100,93,101,102,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,250,251,233,234,118,252,161,162,160,253,121,254,227,235,255,226,244])))}),Fue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HC}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:o?.taskKey??t.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-D5vOWT5d.js"),__vite__mapDeps([259,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,260,118,119,261,170,130,262,23,95,206,263,264,120,228,233,234,218,110,256,28,29,254,227,235,265,123,166,179,141,142,146,107,108,109,266,143,144,89,145,167,205,267,139,268,151,94,269,217,140,147,148,149,150,152,153,154,216,241,197,202,270,208,209])))}),jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-DmwAf8Qf.js"),__vite__mapDeps([271,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,272,87,238,92,93,94,103,104,257,273])))}),Eb=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...W4}),component:Be(()=>Fe(()=>import("./agent-site-editor--0x03xZz.js"),__vite__mapDeps([195,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,196,197,125,126,127,128,129,130,6,76,30,7,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,131,132,28,29,133,134,135,136,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,14,82,83,114,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,113,219,140,141,147,148,149,150,115,153,187,188,178,179,155,165,220,175,139,182,221,192,111,112,116,222])))}),zue=De({getParentRoute:()=>Eb,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-CLHaZdDj.js"),__vite__mapDeps([274,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,137,138,135,139,155,156,125,136,20,157,158,159,160,161,162,32,163,164,165,166,167,118,119,170,21,173,175,114,176,177,96,124,116,178,179,181])))}),que=De({getParentRoute:()=>Eb,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-T7SQ0eTX.js"),__vite__mapDeps([276,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,185,138,135,139,155,156,125,136,20,157,158,159,160,161,162,32,163,164,165,166,167,118,119,170,21,173,186,187,188,189,175,190,191,192,17,18])))}),Uue=De({getParentRoute:()=>Eb,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-B-MqMBV6.js"),__vite__mapDeps([277,275,242,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,243,149,145,182,200,107,108,109,110,81,144,76,30,6,80,7,152,143,89,27,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,78,79,207,208,209,210,100,93,101,102,211,212,68,33,213,214,97,98,10,215,23,216,217,218,219,140,141,37,15,25,66,67,69,70,24,74,75,77,5,14,82,83,147,148,150,115,153,127,126,194,184,183,230,174,172,128,180,270,20])))}),$ue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw po({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:o},search:a=>({...a,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-C9pDoA5t.js"),__vite__mapDeps([278,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,21,20,263,279,23])))}),Vue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:we({automationView:ao(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-CBfmQGxD.js"),__vite__mapDeps([280,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,132,32,130,144,151,243,281,107,108,109,110,131,28,29,133,134,282,263,141,283,204,205,143,89,145,146,142,152,206,284,234,118,285,171,169,164,165,286,18,20,287,216,241,269,217,140,147,148,149,150,153,154,215])))}),Hue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-CjJHki-K.js"),__vite__mapDeps([288,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,289,290,291,292,293,107,108,109,110,33,20,294,206,295,100,93,101,102,282,232,98,10,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,154,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,142,34,180,126,297,298,150,181,199])))}),Gue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Pv),component:Be(()=>Fe(()=>import("./agent-library-D7XfbskT.js"),__vite__mapDeps([299,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,300,21,107,108,109,110,206,301,33,146,142,289,290,291,292,293,20,294,247,130,245,246,95,248,135,165,154,302,192,18,295,100,93,101,102,282,232,98,10,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,163,182,230,174,172,128,229,34,180,126,297,298,150,181,199])))}),Wue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-CtfeFO-q.js"),__vite__mapDeps([303,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,275,242,151,243,149,145,182,200,107,108,109,110,144,152,143,89,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,150,153,127,126,194,184,183,230,174,172,128,180,21,173])))}),Kue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-dth3gbg2.js"),__vite__mapDeps([304,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,275,242,151,243,149,145,182,200,107,108,109,110,144,152,143,89,146,142,201,95,154,202,129,130,131,132,28,29,133,134,171,169,203,168,204,205,206,207,208,209,210,100,93,101,102,211,212,33,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,150,153,127,126,194,184,183,230,174,172,128,180,125,135,136,188])))}),Yue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-BcEptfro.js"),__vite__mapDeps([305,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,192,95,18,141,28,29,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,213,214,97,215,216,217,154,206,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),Zue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-Do0w1Fmk.js"),__vite__mapDeps([307,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23,28,29,18,192,141,171,169,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,213,214,97,215,216,217,154,206,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),Que=De({getParentRoute:()=>lo,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),Jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-Dmg8kQ7N.js"),__vite__mapDeps([308,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,215,23,261,309,130,163,29,166,310,252,161,162,160,253,18,168,169,234,118,311,254,227,235,170])))}),Xue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-i1khXsMD.js"),__vite__mapDeps([312,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,196,197,107,108,109,110,125,126,127,128,129,130,131,132,28,29,133,134,135,136,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,187,188,178,179,155,165,220,175,139,182,313,192,314,157,158,159,160,161,162,315,191,186,221])))}),epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-Dpbs8ukc.js"),__vite__mapDeps([316,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,196,197,107,108,109,110,125,126,127,128,129,130,131,132,28,29,133,134,135,136,171,169,198,199,180,102,177,156,20,200,144,152,143,89,145,146,142,201,95,154,202,203,168,204,205,206,207,208,209,210,100,93,101,211,212,33,151,213,214,97,98,10,215,23,216,217,218,219,140,141,147,148,149,150,153,187,188,178,179,155,165,220,175,139,182,163,186,314,157,158,159,160,161,162,315,191,190,221,192,306,295,282,232,283,296,243,32,230,174,172,229,293,34,297,298,181])))}),tpe=De({getParentRoute:()=>lo,path:"/cdn",beforeLoad:({params:t})=>{throw po({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),Z4=we({args:$().optional()}),ope=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/apps/$connectionId/$toolName",validateSearch:Z4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-D6yj-pMQ.js"),__vite__mapDeps([317,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,184,318,144,243,147,148,149,107,108,109,110,254,227,235,118,319,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102])))}),ape=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/views/$viewId",validateSearch:Z4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-BD06Jv6z.js"),__vite__mapDeps([320,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,318,144,243,147,148,149,107,108,109,110,254,227,235,118,319,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102,306,295,282,20,232,33,151,283,210,211,212,28,29,213,214,215,23,216,217,154,206,296,132,152,145,32,130,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),npe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-BGZ-rpXM.js"),__vite__mapDeps([321,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,154,248,206,135,165,146,142,107,108,109,110,153,306,295,100,93,101,102,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,130,163,182,230,174,172,128,229,293,34,180,126,297,298,150,181,199])))}),rpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-9cClb9g8.js"),__vite__mapDeps([322,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,247,206,130,306,295,100,93,101,102,107,108,109,110,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,154,296,149,132,243,152,145,32,163,182,230,174,172,128,229,293,142,34,180,126,297,298,150,181,199])))}),spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-BETUEujK.js"),__vite__mapDeps([323,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,324,246,95,247,206,130,248,135,165,154,146,142,107,108,109,110,306,295,100,93,101,102,282,20,232,98,10,33,151,283,210,211,212,89,28,29,213,214,97,215,23,216,217,296,149,132,243,152,145,32,163,182,230,174,172,128,229,293,34,180,126,297,298,150,181,199])))}),ipe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-CUOKdCzE.js"),__vite__mapDeps([325,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,90,87,91,92,93,94,89,95,96,97,98,10,99,100,101,102,239,103])))}),lpe=De({getParentRoute:()=>lo,path:"/$legacyView",component:()=>null}),cpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:wm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw po(o?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:o},search:a=>a,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:a=>a,hash:!0,replace:!0})}}),dpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:wm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!H4(o))return;const a=tue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw po({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-DOprMiQ8.js"),__vite__mapDeps([326,244,65])))}),upe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...HC}),beforeLoad:({params:t,search:e})=>{const o=G4(t.taskKey,e);if(o)throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-BiPHQc84.js"),__vite__mapDeps([327,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,260,118,119,261,170,130,262,23,95,206,263,264,120,228,233,234,218,110,256,28,29,254,227,235,265,123,166,179,141,142,146,107,108,109,266,143,144,89,145,167,205,267,139,268,151,94,269,217,140,147,148,149,150,152,153,154,216,241,197,202,270,208,209])))}),ppe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-Dmg8kQ7N.js"),__vite__mapDeps([308,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,215,23,261,309,130,163,29,166,310,252,161,162,160,253,18,168,169,234,118,311,254,227,235,170])))}),mpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-DD_Y3FQw.js"),__vite__mapDeps([328,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,310,252,161,162,160,253,18,168,169,23,234,118,311,170,130,28,29,171,269,217,140,141,142,143,144,89,145,146,107,108,109,110,147,148,149,150,151,152,153,154,216,241])))}),hpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Qv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-D8_7BSxz.js"),__vite__mapDeps([329,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,272,87,238,92,93,94,103,104,257,273])))}),gpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Pv),component:Be(()=>Fe(()=>import("./library-H2QdAzSR.js"),__vite__mapDeps([330,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,7,111,112,113,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,5,6,14,82,83,115,116,289,290,291,292,293,33,20,294,206,324,246,95,247,130,248,135,165,154,146,142,300,21,301,245,302,192,18])))}),fpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-C8ZCF1fK.js"),__vite__mapDeps([331,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23])))}),Q4=we({view:ao(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:dL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),vpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:Q4,component:Be(()=>Fe(()=>import("./monitoring-Ck9IWyMH.js"),__vite__mapDeps([332,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,192,130,333,252,161,162,160,253,23,166,96,311,255,107,108,109,110,129,131,132,28,29,133,134,294,310,18,168,169,234,118,319,87,91,92,93,94,89,95,97,98,10,99,100,101,102,151,170,158,159,171,128,227,313,314,156,125,126,127,135,136,20,157,315,191,186,221,334,33,264,268,21,32,287,216,335])))}),bpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-C8ZCF1fK.js"),__vite__mapDeps([331,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,23])))}),ype=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>lo,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:Q4,component:Be(()=>Fe(()=>import("./monitoring-Ck9IWyMH.js"),__vite__mapDeps([332,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,192,130,333,252,161,162,160,253,23,166,96,311,255,107,108,109,110,129,131,132,28,29,133,134,294,310,18,168,169,234,118,319,87,91,92,93,94,89,95,97,98,10,99,100,101,102,151,170,158,159,171,128,227,313,314,156,125,126,127,135,136,20,157,315,191,186,221,334,33,264,268,21,32,287,216,335])))}),Spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-COI3hr0O.js"),__vite__mapDeps([336,111,7,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,151,172,174,180,102])))}),wpe=De({getParentRoute:()=>kb,path:"/members",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/members",params:{org:t.org}})}}),xpe=we({main:io([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...K4,sidepanel:JB,mainpanel:XB,thread:$().optional()}),Tpe=De({getParentRoute:()=>Cb,path:"/",validateSearch:xpe,pendingComponent:Zd,component:Be(()=>Fe(()=>import("./index-WlHdhzWm.js"),__vite__mapDeps([337,244,65])))}),kpe=De({getParentRoute:()=>Cb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw po({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),co=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>kb,path:"/settings",pendingComponent:Zd,component:Be(()=>Fe(()=>import("./route-DpfhbI1P.js"),__vite__mapDeps([338,7,111,112,113,65,64,61,62,63,11,71,3,2,72,73,35,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,76,30,114,37,15,25,66,67,68,69,70,24,74,27,75,77,78,79,80,81,5,6,14,82,83,115,116,339,23,130,168,169,109,108,209])))}),Cpe=De({getParentRoute:()=>co,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-cM8n5Bf0.js"),__vite__mapDeps([340,292])))}),Epe=De({getParentRoute:()=>co,path:"/connections",validateSearch:Jr(()=>we({action:ao(["create"]).optional(),tab:ao(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),_pe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>co,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-vQx4JY7p.js"),__vite__mapDeps([341,100,93,101,102,20,214,55,56,342,63,11,243,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,22,57,58,59,60,151,28,29,30,162,343,159,67,130,76,62,7,70,71,3,2,72,73,35,213,296,23,149,10,98,68,115,89,27,152,344,345,252,161,160,253,311,171,169,212,148,80]))),validateSearch:Jr(()=>we({tab:$().optional()}))}),Ppe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>co,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-UPbZXX41.js"),__vite__mapDeps([346,20,63,11,89,27,33,342,243,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,151,100,93,101,102,28,29,30,162,343,159,67,130,76,62,7,70,71,3,2,72,73,35,213,148,149,179,212,296,23,10,147,68,107,64,65,61,108,109,110,81,37,15,25,66,69,24,74,75,77,78,79,80,5,6,14,82,83,164,165,192]))),validateSearch:Jr(()=>we({replayId:$().optional()}))}),Ape=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>co,path:"/monitor",component:Be(()=>Fe(()=>import("./index-BfxFxvBn.js"),__vite__mapDeps([347,21,22,20,290,291,292,140,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,56,57,58,59,60,141,142,143,144,89,27,145,146,107,64,65,61,62,63,11,71,3,2,72,73,35,108,109,110,81,7,76,30,37,15,25,66,67,68,69,70,24,74,75,77,78,79,80,5,6,14,82,83,147,148,149,150,115,151,152,153,154,212,23,130,164,165,285,132,28,29,309,163,166,33,215,32,179,345,252,161,162,160,253,311,269,217,216,241,18,287,263,286,192,227,333,96,255,270,208,209]))),validateSearch:Jr(()=>we({tab:ao(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:ao(["all","success","errors"]).default("all"),search:$().default(""),page:Mt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),Rpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>co,path:"/general",component:Be(()=>Fe(()=>import("./general-CYLLbCmH.js"),__vite__mapDeps([348,283,349,32,39,81,35,73,151,63,11,350,23,28,29,30,31,292])))}),Dpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/connect",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./connect-DiSxRkvs.js"),__vite__mapDeps([351,179,23,28,29,30,31,171,169,142,40,41,42,19,43,44,45,38,46,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,251,352,192,27,343,63,11,243,132,21,68,353,216,217,79,80,101,102,151,290,291,292])))}),Ope=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/ai-providers",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./ai-providers-BIsnOJUw.js"),__vite__mapDeps([354,41,109,46,81,35,73,281,6,7,107,64,65,61,62,63,11,71,3,2,72,108,110,131,132,51,28,29,30,31,43,47,50,42,22,133,134,52,283,339,55,23,130,168,169,76,209,231,32,77,56,232,290,291,292])))}),Npe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/billing",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),Mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>co,path:"/infra-billing",pendingComponent:Us("billing"),component:Be(()=>Fe(()=>import("./infra-billing-CVwEnJc4.js"),__vite__mapDeps([355,48,23,285,132,51,31,66,67,22,130,28,29,30,18,253,161,162,334,311,290,291,292])))}),Ipe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>co,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-D35RaSBM.js"),__vite__mapDeps([356,41,55,58,192,27,28,29,30,31,33,298,290,291,292])))}),Lpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>co,path:"/api-keys",pendingComponent:Us("connect"),component:Be(()=>Fe(()=>import("./api-keys-BEjN8NqZ.js"),__vite__mapDeps([357,352,41,40,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,192,27,23,343,28,29,30,63,11,243,132,21,68,353,216,217,79,80,101,102,151,290,291,292])))}),Bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/buckets",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./buckets-Bb4wZzzE.js"),__vite__mapDeps([358,41,55,56,23,192,27,28,29,30,31,32,33,172,290,291,292])))}),Fpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>co,path:"/repositories",validateSearch:we({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Mt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Us("repositories"),component:Be(()=>Fe(()=>import("./repositories-Rj9HwEBO.js"),__vite__mapDeps([359,360,75,43,55,76,30,27,77,78,79,80,22,45,24,81,35,73,44,132,51,58,192,23,179,95,141,28,29,31,33,56,297,298,290,291,292])))}),jpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>co,path:"/synced-repos",pendingComponent:Us("storage"),component:Be(()=>Fe(()=>import("./synced-repos-CsB9l6Mv.js"),__vite__mapDeps([361,55,192,75,43,76,30,27,77,78,79,80,22,45,24,81,35,73,301,290,291,292])))}),zpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>co,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-BSfgBHRO.js"),__vite__mapDeps([362,132,51,33,47,54,55,170,66,67,22,130,285,23,31,28,29,30,32,284,349,39,81,35,73,151,63,11,24,263,262,59,60,95,76,115,206,78,79,61,62,72,2,290,291,292])))}),qpe=De({getParentRoute:()=>co,path:"/tasks",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/task-board",params:{org:t.org}})}}),Upe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>co,path:"/projects",component:Be(()=>Fe(()=>import("./projects-BbuSRcBC.js"),__vite__mapDeps([363,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,55,22,56,57,58,59,60,23,21,74,27,63,11,70,62,71,3,2,72,73,35,75,76,30,77,78,79,80,24,81,257,232,238,92,93,94,273,61,151])))}),$pe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/members",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./members-ZiG-LF73.js"),__vite__mapDeps([364,365,19,49,76,30,168,169,23,21,22,17,18,20,89,27,28,29,31,33,366,236,50,56,59,132,51,66,67,130,55,265,290,291,292])))}),Vpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>co,path:"/roles",pendingComponent:Us("members"),component:Be(()=>Fe(()=>import("./roles-CV8Os6WH.js"),__vite__mapDeps([367,366,23,49,55,56,17,18,19,20,21,22,133,353,68,44,40,41,42,43,45,38,46,31,47,39,48,50,51,52,53,54,57,58,59,60,216,132,217,79,63,11,80,101,102,151,62,109,32,76,30,69,61,291,292]))),validateSearch:Jr(()=>we({role:$().optional()}))}),Hpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>co,path:"/sso",component:Be(()=>Fe(()=>import("./sso-0gVFO2bM.js"),__vite__mapDeps([368,350,23,28,29,30,31,32,82,56,290,291,292])))}),Gpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>co,path:"/profile",component:Be(()=>Fe(()=>import("./profile-DGZtmJpW.js"),__vite__mapDeps([369,158,159,29,56,57,32,28,30,31,168,169,76,52,53,54,283,207])))}),Wpe=De({getParentRoute:()=>co,path:"/agents",beforeLoad:({params:t})=>{throw po({to:"/$org/settings/projects",params:{org:t.org}})}}),Kpe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>co,path:"/automations",component:Be(()=>Fe(()=>import("./automations-B1iMF-BH.js"),__vite__mapDeps([370,55,60,21,22,20,263,63,11,70,62,71,3,2,72,73,35,279,23,40,41,42,19,43,44,45,38,46,31,47,39,48,49,50,51,52,53,54,56,57,58,59,290,291,292])))}),Ype=De({getParentRoute:()=>co,path:"/skills",beforeLoad:({params:t})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),Zpe=De({getParentRoute:()=>co,path:"/memory",validateSearch:Jr(()=>we({scope:ao(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw po({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),Qpe=co.addChildren([Cpe,Epe,_pe,Ppe,Wpe,Kpe,Ype,Zpe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,Gpe]),Jpe=Eb.addChildren([zue,que,Uue]),Xpe=lo.addChildren([Bue,Fue,jue,Jpe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,Zue,Que,Jue,Xue,epe,tpe,ope,ape,npe,rpe,spe,ipe,lpe,bpe,ype]),eme=en.addChildren([Mue,Iue,Lue,Xpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,Spe,fpe,vpe]),tme=Cb.addChildren([Tpe,kpe,eme]),ome=kb.addChildren([tme,wpe,Qpe]),ame=GC.addChildren([kue,ome]),nme=Va.addChildren([ame,Tue,Cue,Eue,_ue,Pue,WC.addChildren([Aue,Rue]),Due,pue,mue,hue,gue,fue,vue,bue]);function rme(){const t=ye.c(16),e=Ua();let o;t[0]!==e?(o=e("common.index.pageNotFound"),t[0]=e,t[1]=o):o=t[1];let a;t[2]!==o?(a=b.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),t[2]=o,t[3]=a):a=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=b.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=b.jsx("button",{type:"button",onClick:sme,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==a||t[13]!==r||t[14]!==c?(d=b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[a,r,c]})}),t[12]=a,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function sme(){return window.history.back()}const _b=iV({routeTree:nme,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:rme});function Pe(...t){return QB(eC(t))}function ime(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Vo({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function Xl(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function A0(t,e){for(const o in t)if(t[o]===e)return o}function Xp(t,e){let o=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(o=o.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(o=o.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(o=o.regex(t.regex,{message:e?.INVALID_PASSWORD})),o}var lme={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"},cme={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"},dme={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."},ume={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."},pme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},mme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},hme={...pme,...mme},gme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},fme={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},vme={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},bme={INVALID_SESSION_TOKEN:"Invalid session token"},yme={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"},Sme={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"},wme={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"},xme={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"},Tme={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"},kme={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"},Cme={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"},Eme={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",...ume,...lme,...cme,...dme,...hme,...gme,...fme,...vme,...bme,...yme,...Sme,...wme,...xme,...Tme,...kme,...Cme},_me={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"},rN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},sN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const J4=A.createContext({});function X4(){return A.useContext(J4)}var hx,iN;function Pme(){if(iN)return hx;iN=1;var t=function(){};return hx=t,hx}var Ame=Pme();const Rme=Gl(Ame);function Dme({async:t,appendTo:e,defer:o,id:a,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),o!==void 0&&(i.defer=o),a&&(i.id=a),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var Ome=function(t,e){var o={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(t,a[n])&&(o[a[n]]=t[a[n]]);return o};let Rp=null,em=!1;const Av=new Set,Rv=new Set,Nme=typeof window<"u",Ed="___grecaptcha_cfg",e5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function Mme(){if(!Nme)return;function t(o){if(em)o();else{window[Ed]||(window[Ed]={});const a=window[Ed];a.fns||(a.fns=[]),a.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const o of Rv)o();Rv.clear()}window[e5]=e}function Ime({language:t,onLoadCallbackName:e,render:o,useEnterprise:a=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=a?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function Lme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Ime({language:t,onLoadCallbackName:e5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,Dme(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function Bme(t){if(!window[Ed])return;const e=window[Ed];e.clients&&delete e.clients[t]}function Fme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Ome(e,["onLoadCallback","onLoadCallbackName"]);if(Av.size===0&&Mme(),Lme(n),Av.add(t),o&&(em?o():Rv.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};em?r():Rv.add(r)}}function jme(t){var e,o,a;Av.delete(t),Av.size===0&&(window.grecaptcha=void 0,window[Ed]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Rp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Rp=null,em=!1)}let lN=!1;function zme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const y=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),E=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{T(L)})}return Fme(y,{language:o,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":a,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{jme(y),T(null)}},[t?.element,y,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!S?.render)return;const U={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:a,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(lN||(Rme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),lN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),E.current=!0,()=>{k(null),E.current=!1,Bme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(v=t?.parameters)===null||v===void 0?void 0:v.theme,S,a]);const C=!!t?.element,P=C?x:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return C&&!E.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,C]);return b.jsx(J4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var qme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const o={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,o),this.notify(t)}setRefetching(t,e){const o=this.cache.get(t);o&&(o.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const o of e)this.notify(o)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const o=this.listeners.get(t);o&&(o.delete(e),o.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const o=Array.from(e);for(const a of o)a()}}},Qn=new qme;function Ume(){return()=>{}}function $s(){return A.useSyncExternalStore(Ume,()=>!0,()=>!1)}function t5(){const[t,e]=A.useState();return A.useEffect(()=>{const o=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};o();const a=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{lang:t}}function KC(){const[t,e]=A.useState("light");return A.useEffect(()=>{const o=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};o();const a=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&o()});return a.observe(document.documentElement,{attributes:!0}),()=>{a.disconnect()}},[]),{theme:t}}function $me({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:b.jsxs(zme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&b.jsx("style",{children:`
169
169
  .grecaptcha-badge {
170
170
  visibility: hidden;
171
171
  border-radius: var(--radius) !important;