decocms 4.566.0 → 4.567.0

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 (391) hide show
  1. package/dist/client/assets/{AlertCircle-vm4sk-x9.js → AlertCircle-77Slg1mo.js} +1 -1
  2. package/dist/client/assets/{AreaChart-D7_hgduK.js → AreaChart-SE-oSToz.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DDdp1fkC.js → ArrowLeft-0eZGIs9d.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DD_r1Y_T.js → ArrowUp-D3pp3g8x.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-DZaqdCN6.js → CartesianChart-oe8TUIzs.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-Dannm-85.js → CategoricalChart-D-0Fq-ih.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CO-Sp-gI.js → CheckCircle-TpvuszDI.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-BsQHRlTg.js → ChevronSelectorVertical-C6Gq0VMA.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DzfCpOxS.js → ChevronUp-BtMiI6cM.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-Dg0W_VbM.js → CreditCard01-5X4JuL9P.js} +1 -1
  11. package/dist/client/assets/{Globe04-CbE4fQfn.js → Globe04-DE5hlmxS.js} +1 -1
  12. package/dist/client/assets/{Key01-DnFTUPGs.js → Key01-BEX3raxr.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-BrWXpfvW.js → LinkBroken01-ClWYoOJF.js} +1 -1
  14. package/dist/client/assets/{Minus-CGC-Ky2T.js → Minus-Dqs0K-y6.js} +1 -1
  15. package/dist/client/assets/{Monitor01-DPIeBRgo.js → Monitor01-Dy43NIcG.js} +1 -1
  16. package/dist/client/assets/{Play-B9PgWZlg.js → Play-B9kSRU73.js} +1 -1
  17. package/dist/client/assets/{Plus-CZbPbPr7.js → Plus-DTA_qyzr.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-ZH8D8bPO.js → ReferenceLine-HOuLDy67.js} +1 -1
  19. package/dist/client/assets/{SearchMd-DseifSbW.js → SearchMd-DODrmRDH.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-TG8T0GTy.js → ShoppingBag01-CK3v09in.js} +1 -1
  21. package/dist/client/assets/{Sun-CBOZY0wW.js → Sun-BirMDMzO.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-CTmes_jp.js → SwitchHorizontal01-DFMegDqF.js} +1 -1
  23. package/dist/client/assets/{Tool01-BhHpHR3H.js → Tool01-Dhj9-e2p.js} +1 -1
  24. package/dist/client/assets/{Tooltip-ClzMOV5r.js → Tooltip-DUa9z7L4.js} +1 -1
  25. package/dist/client/assets/{Trash01-HGp7pYgQ.js → Trash01-DlPuy4hk.js} +1 -1
  26. package/dist/client/assets/{Upload01-B2W5ZMg1.js → Upload01-B7_UtIIy.js} +1 -1
  27. package/dist/client/assets/{UserSquare-6Sdby0FR.js → UserSquare-DRzDrNWv.js} +1 -1
  28. package/dist/client/assets/{Users01-DQRKjdTI.js → Users01-D2MH6X4i.js} +1 -1
  29. package/dist/client/assets/{XClose-DeFo1VOD.js → XClose-BPpAzkjm.js} +1 -1
  30. package/dist/client/assets/{Zap-DalPfKev.js → Zap-CSm2QafG.js} +1 -1
  31. package/dist/client/assets/{access-gate-QW6XL1k3.js → access-gate-VZjzTtj1.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-DSHTc4iD.js → add-connection-dialog-Dlb7QEF0.js} +1 -1
  33. package/dist/client/assets/agent-app-D-w7piVd.js +1 -0
  34. package/dist/client/assets/{agent-assets-DHBXzTkB.js → agent-assets-C17EfgRE.js} +1 -1
  35. package/dist/client/assets/{agent-automation-CkV5B9AK.js → agent-automation-B4ZBovsD.js} +1 -1
  36. package/dist/client/assets/{agent-automations-M5aYunrZ.js → agent-automations-qrK0F_qT.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-DFReqWL3.js → agent-calendar-DH2mwvW-.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-D6AEfG_r.js → agent-capabilities-_Toql8Rw.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-BAUjcdOy.js → agent-connect-sources-DKscloVB.js} +1 -1
  40. package/dist/client/assets/agent-deck-sQICWvWi.js +1 -0
  41. package/dist/client/assets/{agent-e2e-vXEqRzNY.js → agent-e2e-EecJC8x2.js} +1 -1
  42. package/dist/client/assets/agent-experiments-CYKGvEGA.js +1 -0
  43. package/dist/client/assets/{agent-file-ByXLEOEk.js → agent-file-iZ4NUGLw.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-DN3p71Ic.js → agent-hosting-Dv4dOzql.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CTjv6Gf3.js → agent-icon-Bw6QCyEx.js} +1 -1
  46. package/dist/client/assets/agent-library-BHDQegTE.js +1 -0
  47. package/dist/client/assets/agent-library-file-CVUtuonJ.js +1 -0
  48. package/dist/client/assets/agent-overview-WvKNJRaS.js +1 -0
  49. package/dist/client/assets/{agent-releases-HbfAzMUb.js → agent-releases-TATL9kUr.js} +1 -1
  50. package/dist/client/assets/agent-settings-CXIVbo4Q.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-ZQQDb3Rx.js → agent-site-editor-DNv8LivC.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-C8pZNRHE.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-CsMmLm8L.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-vjIMqLQd.js +1 -0
  55. package/dist/client/assets/agent-view-Doh3INR0.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-CvY79irZ.js → agent-view-guard-DZBM0b8V.js} +1 -1
  57. package/dist/client/assets/{ai-providers-hi0gzVEm.js → ai-providers-AE8XVdCE.js} +1 -1
  58. package/dist/client/assets/{alert-CBNKTKcv.js → alert-CdBC10NR.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-DLAuNCzk.js → analytics-sections-BeJKxwpX.js} +1 -1
  60. package/dist/client/assets/api-keys-Cbsqw06u.js +1 -0
  61. package/dist/client/assets/{api-keys-BFyU3rHn.js → api-keys-Dhr7aXaQ.js} +1 -1
  62. package/dist/client/assets/{app-editor-D6EIgj3g.js → app-editor-DKFrTznS.js} +1 -1
  63. package/dist/client/assets/{asset-utils-DC1EoBVm.js → asset-utils-7GGOgR3V.js} +1 -1
  64. package/dist/client/assets/{auth-BZ5Ef56k.js → auth-DsiBBvOi.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-DvKB5Itg.js → auth-catchall-BDiLMtRv.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BPV6B4VL.js → auth-entry-cOo1IIAQ.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-DhnEMT3K.js → auth-split-layout-BD7ZQtZI.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-DwlAs1ZZ.js → authenticate-and-persist-oauth-g4wWRHNx.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-CWJ60M-N.js → automation-list-row-DxL776kN.js} +1 -1
  70. package/dist/client/assets/{automation-runs-otqJFTtW.js → automation-runs-CLAvbaXa.js} +1 -1
  71. package/dist/client/assets/{automations-ByVN628t.js → automations-DTy3O45p.js} +1 -1
  72. package/dist/client/assets/{autosend-FOyswNSR.js → autosend-CLDsiYES.js} +1 -1
  73. package/dist/client/assets/{badge-D4fF-8ns.js → badge-CQfwGgw6.js} +1 -1
  74. package/dist/client/assets/{block-document-DZDOtPeq.js → block-document-Ds1SRHrx.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-B7BEJFAh.js → blocks-preview-workspace-context-BjUOv6Gn.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-DAhg2Ye6.js → blocks-tab-states-DTS9heYD.js} +1 -1
  77. package/dist/client/assets/{blog-schema-C6fspqby.js → blog-schema-D0od8ENQ.js} +1 -1
  78. package/dist/client/assets/{buckets-Ck5_X87E.js → buckets-DJa_BsNC.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-C7YK4Pu4.js → build-improve-prompt-doc-B3q_lki0.js} +1 -1
  80. package/dist/client/assets/{calendar-C6M3LMV4.js → calendar-DyqOJ3Yl.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-C2BQaZ2o.js → capability-load-error-BCivHBGk.js} +1 -1
  82. package/dist/client/assets/{category-editor-QazjTrf0.js → category-editor-CjAyQPuX.js} +1 -1
  83. package/dist/client/assets/{chart-g5ZZsRJb.js → chart-eHX6bECf.js} +1 -1
  84. package/dist/client/assets/{chat-context-C4aI-9Gh.js → chat-context-DGlvTnKl.js} +1 -1
  85. package/dist/client/assets/{chat-draft-v_nDJXuK.js → chat-draft-lDXn_WJo.js} +1 -1
  86. package/dist/client/assets/{checkbox-BpYZyZtV.js → checkbox-BicdYBus.js} +1 -1
  87. package/dist/client/assets/{choose-editor-D5eTMtDH.js → choose-editor-EWBezbD2.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-CAUQEN95.js → cli-auth-success-F_8HAZW5.js} +1 -1
  89. package/dist/client/assets/{client-icons-D2cDT816.js → client-icons-DajqMwYZ.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-5skFaLht.js → cms-settings-editor-BwSxTAM8.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-VPkfiqMe.js → cms-store-drafts-uQohRmgN.js} +1 -1
  92. package/dist/client/assets/{collapsible-BgpbICto.js → collapsible-BUfI2uMB.js} +1 -1
  93. package/dist/client/assets/{collection-detail-CEsMpM_C.js → collection-detail-DJM8n-Nh.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-PZqoRcbJ.js → collection-display-button-BwDkXlls.js} +1 -1
  95. package/dist/client/assets/{collection-search-CH54VXGp.js → collection-search-CX3zyrl-.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-bVMovNDL.js → collection-table-wrapper-YLWvJmM-.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-DF52b4Gj.js → collection-tabs-By2NKMgI.js} +1 -1
  98. package/dist/client/assets/{combobox-Bfj0PjLE.js → combobox-CfLj8nnB.js} +1 -1
  99. package/dist/client/assets/{command-CsBJ3GOI.js → command-gJAHYCw0.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-YQlM2-Os.js → companion-mcps-section-CfXFRKkt.js} +1 -1
  101. package/dist/client/assets/{config-BMlT5DPg.js → config-BmEe9Sll.js} +1 -1
  102. package/dist/client/assets/{connect-qXBtQ-OH.js → connect-Bv1wjltN.js} +1 -1
  103. package/dist/client/assets/{connect-layout-DLqiwduY.js → connect-layout-BWcLA-tm.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-Bsqg8dUA.js → connect-source-dialog-DSZRQtyq.js} +1 -1
  105. package/dist/client/assets/{connection-95gHZiW5.js → connection-C_2ILr0W.js} +1 -1
  106. package/dist/client/assets/{connection-card-CMMSZX4x.js → connection-card-CYwtBEJi.js} +1 -1
  107. package/dist/client/assets/{connection-detail-BaU7wg0S.js → connection-detail-Bou1FrgT.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-BJkokVuQ.js → connection-form-helpers-TcnlMaZD.js} +1 -1
  109. package/dist/client/assets/{connection-slug-CVtaxOKz.js → connection-slug-BW3zmzZg.js} +1 -1
  110. package/dist/client/assets/{connections-BtILN1R8.js → connections-k6Hr0O7B.js} +1 -1
  111. package/dist/client/assets/{content-tab-DQG8vdsL.js → content-tab-BZbNqACK.js} +3 -3
  112. package/dist/client/assets/{context-4QFXsbD6.js → context-BrQkqNcb.js} +1 -1
  113. package/dist/client/assets/{context-menu-1fzYZhm_.js → context-menu-vgijVtOb.js} +1 -1
  114. package/dist/client/assets/{context-shell-CCkAMmWr.js → context-shell-Ctmm-Xdc.js} +3 -3
  115. package/dist/client/assets/{core.esm-DYzatWGk.js → core.esm-BMG4ioMU.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-DCgZG2cL.js → create-organization-dialog-DVfXqnPV.js} +1 -1
  117. package/dist/client/assets/{device-hint-CFx01Kw_.js → device-hint-C-9B9AO-.js} +1 -1
  118. package/dist/client/assets/{discover-CoCxl4Q9.js → discover-PXb5-Euj.js} +1 -1
  119. package/dist/client/assets/{domain-settings-DuCeTo5C.js → domain-settings-BZ2zcLtt.js} +1 -1
  120. package/dist/client/assets/{drawer-B5at6I_u.js → drawer-7PMhL6c9.js} +1 -1
  121. package/dist/client/assets/{editor-DD0jwUtP.js → editor-C31TESmA.js} +1 -1
  122. package/dist/client/assets/{editor-classes-Dnkv0ExO.js → editor-classes-Cf4dLWq3.js} +1 -1
  123. package/dist/client/assets/{empty-state-Df2e2-7k.js → empty-state-Br5S8FBX.js} +1 -1
  124. package/dist/client/assets/{empty-state-D3yjfo9M.js → empty-state-CkiFzdzZ.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-DbCV3Tta.js → experiments-tab-choice-C_eZAy_m.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-Bw93eWWI.js → extract-connection-data-ByI5vK4V.js} +1 -1
  127. package/dist/client/assets/{feature-gate-CWwTIDAD.js → feature-gate-Fvf7MS-k.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-CAaY2lMU.js → feature-paywall-C6MAaSeS.js} +1 -1
  129. package/dist/client/assets/{feedback-ByVb71jj.js → feedback-uGs2nxfi.js} +1 -1
  130. package/dist/client/assets/{file-explorer-zWsChJTW.js → file-explorer-BYGhyWEG.js} +1 -1
  131. package/dist/client/assets/{file-preview-B5EKno-W.js → file-preview-DVtj98bP.js} +1 -1
  132. package/dist/client/assets/{file-share-button-C7-QuaCd.js → file-share-button-BRYVxpzc.js} +1 -1
  133. package/dist/client/assets/{file-type-icon-BsiKabia.js → file-type-icon-aib86xB6.js} +1 -1
  134. package/dist/client/assets/{folder-icon-DkUbY_Ow.js → folder-icon-xP_msldQ.js} +1 -1
  135. package/dist/client/assets/{form-C_M4QV9P.js → form-BBNzwOZG.js} +1 -1
  136. package/dist/client/assets/{general-BjfnjzGy.js → general-CeisvnAE.js} +1 -1
  137. package/dist/client/assets/{github-icon-BZYLnrQK.js → github-icon-Caf_vA32.js} +1 -1
  138. package/dist/client/assets/{home-DQQdj4Ea.js → home-jWQT8tJO.js} +1 -1
  139. package/dist/client/assets/{home-overview-CvCaFo1b.js → home-overview-C_lPrOCA.js} +1 -1
  140. package/dist/client/assets/{hosted-reconcile-DVCi8vCY.js → hosted-reconcile-C-wcyta_.js} +1 -1
  141. package/dist/client/assets/{icon-button-FgAeY2VI.js → icon-button-D7c84PdP.js} +1 -1
  142. package/dist/client/assets/{index-D-aBBLRs.js → index-2X0wZvq4.js} +1 -1
  143. package/dist/client/assets/{index-CA5MpDJ2.js → index-B2hAsS12.js} +1 -1
  144. package/dist/client/assets/{index-C0YexCRj.js → index-B8UywZZm.js} +3 -3
  145. package/dist/client/assets/{index-BqJ-zbRp.js → index-BXDjwwPk.js} +1 -1
  146. package/dist/client/assets/{index-vlmYuijH.js → index-C98dKlkT.js} +1 -1
  147. package/dist/client/assets/{index-CdLJWnRN.js → index-CGPEL67z.js} +1 -1
  148. package/dist/client/assets/{index-Deyc3saa.js → index-CMM5_x0M.js} +1 -1
  149. package/dist/client/assets/{index-Do6PllqG.js → index-CNvZmowt.js} +1 -1
  150. package/dist/client/assets/{index-CAMi4lK6.js → index-CkLGogIO.js} +1 -1
  151. package/dist/client/assets/{index-DB7GDsnk.js → index-CqcoXuFg.js} +1 -1
  152. package/dist/client/assets/{index-CZvihk7A.js → index-DJTz8tA2.js} +1 -1
  153. package/dist/client/assets/{index-hzDwssoq.js → index-DqnMzkHt.js} +1 -1
  154. package/dist/client/assets/{index--p_IIMqb.js → index-DrT_mubP.js} +1 -1
  155. package/dist/client/assets/{index-BVwTm9yy.js → index-qZbv6YO4.js} +1 -1
  156. package/dist/client/assets/{index-DqGr7Hc1.js → index-rV6-HlJv.js} +1 -1
  157. package/dist/client/assets/{index-4rp3iqoc.js → index-rbq2RwK4.js} +1 -1
  158. package/dist/client/assets/{index-redirect-Bu_aNRdm.js → index-redirect-DCqW-S58.js} +1 -1
  159. package/dist/client/assets/{infiniteQueryObserver-BMqABh4H.js → infiniteQueryObserver-BGhionND.js} +1 -1
  160. package/dist/client/assets/{infra-billing-TR3zcfyD.js → infra-billing-CkEQLhps.js} +1 -1
  161. package/dist/client/assets/{input-Br1caJ_d.js → input-30s27Dwt.js} +1 -1
  162. package/dist/client/assets/{input--UVdiTAB.js → input-DE1KZAH4.js} +3 -3
  163. package/dist/client/assets/{integration-icon-D6ksbVbr.js → integration-icon-DXRPTOXy.js} +1 -1
  164. package/dist/client/assets/{jira-icon-Dw9qRy7z.js → jira-icon-CfexjHAg.js} +1 -1
  165. package/dist/client/assets/{label-CnHmgvIU.js → label-bffvb9RR.js} +1 -1
  166. package/dist/client/assets/{layout-DNHVxHcF.js → layout-DUb1_0Na.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-phbsWihE.js → legacy-agents-deep-CGYaMIvK.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-COYA2M-b.js → legacy-main-redirect-DTIlt7DJ.js} +1 -1
  169. package/dist/client/assets/library-KpfW-byA.js +1 -0
  170. package/dist/client/assets/{library-tab-Dizgrk4k.js → library-tab-ChfMhJEt.js} +1 -1
  171. package/dist/client/assets/{login-C_kb8goZ.js → login-oQzZnf04.js} +1 -1
  172. package/dist/client/assets/{markdown-CN4Sgkcu.js → markdown-C594pPG2.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-B7qZoNog.js → mcp-app-renderer-BgKMzsSF.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-tf6SdsCd.js → mcp-oauth-BzKawp-_.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-BTwGti_Q.js → mcp-oauth-Dm95e807.js} +1 -1
  176. package/dist/client/assets/{members-kEy-UuPd.js → members-DEZJ5Mkk.js} +1 -1
  177. package/dist/client/assets/{memory-K-xVpveK.js → memory-D8k1PjtE.js} +1 -1
  178. package/dist/client/assets/{mock-board-CYPKmuLz.js → mock-board-DbSEkLmB.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-DRELyy_D.js → monaco-editor-Cp-Ik4oF.js} +1 -1
  180. package/dist/client/assets/{monitoring-QNe1nTpU.js → monitoring-DcVl24hV.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-BJ3mVu8v.js → monitoring-stats-row-do-o5vGg.js} +1 -1
  182. package/dist/client/assets/{multi-select-ZlDR0NXs.js → multi-select-CTRCP8n_.js} +1 -1
  183. package/dist/client/assets/{mustache-CMDiec2Z.js → mustache-ezjY74jH.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-vbAzCqnU.js → named-rule-view-DvHwI-Uj.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-C0bl_2Ba.js → new-project-dialog-C8Uv8Lu7.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-seyUpLHE.js → oauth-callback-CUY5LMrV.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-C5tN-P7D.js → oauth-callback-ai-provider-BM4j1Kp6.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-Csxt2TlH.js → oauth-consent-CGVwKR_T.js} +1 -1
  189. package/dist/client/assets/{onboarding-CLe1nQhR.js → onboarding-Rp6hEouh.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-BrNIC0gU.js → openai-conversation-DEpsjI9o.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-CxAVgylL.js → optimistic-project-sidebar-views-DWyqj7gv.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-pxrX3JmM.js → order-monitor-day-Bu3YI8SD.js} +1 -1
  193. package/dist/client/assets/{organization-choice-BpSAzd2p.js → organization-choice-CH8EbPmN.js} +1 -1
  194. package/dist/client/assets/{orgs-p1XKp1ZG.js → orgs-Rdz1cKF2.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-CbvkYG1v.js → own-accounts-section-B5fmcBw0.js} +1 -1
  196. package/dist/client/assets/{pair-D-1ihySL.js → pair-xiFs456g.js} +1 -1
  197. package/dist/client/assets/{parse-sections-DAzG_Y-i.js → parse-sections-CWxm7mRm.js} +3 -3
  198. package/dist/client/assets/{plan-Ct48TCKI.js → plan-iqz5I5FG.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-EgyMICws.js → plan-ladder-5XW4hCzP.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-55U4oLof.js → plan-usage-card-Cj9Gz5rK.js} +1 -1
  201. package/dist/client/assets/{popover-ChvCIlNB.js → popover-Bcm8q-UM.js} +1 -1
  202. package/dist/client/assets/{post-calendar-B-eIxloA.js → post-calendar-C-wpEVEt.js} +1 -1
  203. package/dist/client/assets/{post-editor-DCSvvVMs.js → post-editor-DSrYz5eu.js} +1 -1
  204. package/dist/client/assets/{preview-content-DV3ORZ_c.js → preview-content-BZTSsgR7.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-BREniLg2.js → preview-dialog-Si16X-hs.js} +1 -1
  206. package/dist/client/assets/{preview-panel-UEmA70eG.js → preview-panel-BUZ06et3.js} +1 -1
  207. package/dist/client/assets/preview-tab-IspVWI2P.js +551 -0
  208. package/dist/client/assets/{product-picker-dialog-C9QNyiBq.js → product-picker-dialog-QdVrFrEF.js} +1 -1
  209. package/dist/client/assets/{profile-DCr1-Qvc.js → profile-BU9rPDry.js} +1 -1
  210. package/dist/client/assets/{project-app-view-rhGgr5Sc.js → project-app-view-BBFj0BFi.js} +1 -1
  211. package/dist/client/assets/{project-apps-DgmZ54eE.js → project-apps-J9B-3GYC.js} +1 -1
  212. package/dist/client/assets/{project-icon-CmV5zxWN.js → project-icon-BYuH9rQ-.js} +1 -1
  213. package/dist/client/assets/{project-index-ComZIF5j.js → project-index-DAfZ854O.js} +1 -1
  214. package/dist/client/assets/project-reports-ByPdonNL.js +1 -0
  215. package/dist/client/assets/{project-sidebar-views-CDN0Y7nM.js → project-sidebar-views-Czma7tbo.js} +1 -1
  216. package/dist/client/assets/project-tasks-Da5LxTaa.js +1 -0
  217. package/dist/client/assets/{projects-BH7yFrNo.js → projects-DHRuNCso.js} +1 -1
  218. package/dist/client/assets/{projects-empty-state-D7JOaHzT.js → projects-empty-state-DAINcqhx.js} +1 -1
  219. package/dist/client/assets/{prompts-BE2oz-mN.js → prompts-BwCKANv5.js} +1 -1
  220. package/dist/client/assets/record-editor-CBUfhtyf.js +1 -0
  221. package/dist/client/assets/{redirect-editor-BbsrbYSo.js → redirect-editor-DKgcJLei.js} +1 -1
  222. package/dist/client/assets/{reports-CqsqZ5NG.js → reports-B-KM0N71.js} +1 -1
  223. package/dist/client/assets/reports-BOoYfaIC.js +1 -0
  224. package/dist/client/assets/{reports-onboarding-DN1rE25Z.js → reports-onboarding-lrKJ48LY.js} +1 -1
  225. package/dist/client/assets/{reports-tab-BkEWE3Wb.js → reports-tab-7YQe_lby.js} +2 -2
  226. package/dist/client/assets/repositories-DHNSFbbH.js +1 -0
  227. package/dist/client/assets/{repositories-D5p56rp8.js → repositories-DZ-YNWPW.js} +1 -1
  228. package/dist/client/assets/{repository-binding-zAuhrRNl.js → repository-binding-DtOS-5pr.js} +1 -1
  229. package/dist/client/assets/{repository-picker-C8xivTfl.js → repository-picker-BkanTJ3i.js} +1 -1
  230. package/dist/client/assets/{require-capability-DcSbNfND.js → require-capability-DJA2DKIk.js} +1 -1
  231. package/dist/client/assets/{required-auth-layout-CQCCkUAY.js → required-auth-layout-FfGW_C4w.js} +1 -1
  232. package/dist/client/assets/{reset-password-qF03il-Y.js → reset-password-Do7rzjnV.js} +1 -1
  233. package/dist/client/assets/{resizable-BbH6Rq9j.js → resizable-C3wpOoRo.js} +1 -1
  234. package/dist/client/assets/{resolve-tab-icon-DT-C34an.js → resolve-tab-icon-D0LRqEAN.js} +1 -1
  235. package/dist/client/assets/{review-settings-zQhgda-0.js → review-settings-Dknq5J3l.js} +1 -1
  236. package/dist/client/assets/{role-color-Ce0vE_lJ.js → role-color-C15OiMK-.js} +1 -1
  237. package/dist/client/assets/{roles-CS8RSWSS.js → roles-BnyT0Tpg.js} +1 -1
  238. package/dist/client/assets/route-D6Y4UL2U.js +1 -0
  239. package/dist/client/assets/{route-CmtRblLz.js → route-cyGY1xFk.js} +1 -1
  240. package/dist/client/assets/{route-Ci6YieJ3.js → route-wsTyUIFW.js} +1 -1
  241. package/dist/client/assets/{sandbox-lifecycle-context-NUpZmc9C.js → sandbox-lifecycle-context-CTE-NRJ8.js} +1 -1
  242. package/dist/client/assets/{schema-DfRf1jxZ.js → schema-BeGOWHqJ.js} +1 -1
  243. package/dist/client/assets/{schema-CbQkhAdU.js → schema-HsTF1Pc5.js} +1 -1
  244. package/dist/client/assets/{scroll-area-C8lIzaxm.js → scroll-area-C4JxE3Sd.js} +1 -1
  245. package/dist/client/assets/{search-input-D2E1z19V.js → search-input-CqVCmKRX.js} +1 -1
  246. package/dist/client/assets/{search-toggle-CZItDB1R.js → search-toggle-2zm3S8SV.js} +1 -1
  247. package/dist/client/assets/{secret-picker-DGsGo-lH.js → secret-picker-BWL5LPg8.js} +1 -1
  248. package/dist/client/assets/{secrets-Dac8hncd.js → secrets-tbMtsvU-.js} +1 -1
  249. package/dist/client/assets/{section-array-field-3fy_eFLn.js → section-array-field-DAQuFQGC.js} +1 -1
  250. package/dist/client/assets/{sections-BSqM_8t2.js → sections-BlIgOACC.js} +1 -1
  251. package/dist/client/assets/sections-editor-BW_YSgr6.js +1 -0
  252. package/dist/client/assets/{select-C67xaSM-.js → select-74xFBRwJ.js} +1 -1
  253. package/dist/client/assets/{select-model-B7BkbJ8q.js → select-model-DhRUUoEu.js} +1 -1
  254. package/dist/client/assets/{seo-editor-D6BbHFAR.js → seo-editor-Ckanf0Y7.js} +1 -1
  255. package/dist/client/assets/{separator-BJXdAG6q.js → separator-oNbzaXZp.js} +1 -1
  256. package/dist/client/assets/settings-tab-DHUT_FZr.js +1 -0
  257. package/dist/client/assets/{sheet-D1FdDYgh.js → sheet-DSOCEYQs.js} +1 -1
  258. package/dist/client/assets/{shell-layout-q9TPgR4S.js → shell-layout-DLOpHw0Q.js} +1 -1
  259. package/dist/client/assets/{site-draft-actions-DEdhulne.js → site-draft-actions-DZN15MLN.js} +1 -1
  260. package/dist/client/assets/{site-draft-view-Du5u3dh2.js → site-draft-view-M5zMgyWp.js} +1 -1
  261. package/dist/client/assets/site-editor-CQZ_UVRr.js +1 -0
  262. package/dist/client/assets/{site-editor-toast-BQb3pwds.js → site-editor-toast-BU0n_ImS.js} +1 -1
  263. package/dist/client/assets/{skills-BO__rEmW.js → skills-BNUPWCHo.js} +1 -1
  264. package/dist/client/assets/{slider-COwHhiq0.js → slider-COhKeoXK.js} +1 -1
  265. package/dist/client/assets/{sortable.esm-BoEIu5W0.js → sortable.esm-DcEMfWKZ.js} +1 -1
  266. package/dist/client/assets/{sso-DzouQIR7.js → sso-gKduWE5w.js} +1 -1
  267. package/dist/client/assets/{suggestion-0IJfbUde.js → suggestion-tumipUUi.js} +1 -1
  268. package/dist/client/assets/{switch-By9JubUf.js → switch-DhJh_HPi.js} +1 -1
  269. package/dist/client/assets/{synced-repos-D6Z7ziCu.js → synced-repos-n432_4GJ.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-BIJxIcux.js → tab-icon-glyph-P5ldYfjO.js} +1 -1
  271. package/dist/client/assets/{table-BiZFGesF.js → table-BsHAPl3y.js} +1 -1
  272. package/dist/client/assets/{tabs-Bb2xgzcm.js → tabs-ChqaRicq.js} +1 -1
  273. package/dist/client/assets/{task-board-4SvjUpMb.js → task-board-BEneHA34.js} +1 -1
  274. package/dist/client/assets/{task-route-DVEP01nU.js → task-route-P15E5tiK.js} +1 -1
  275. package/dist/client/assets/{task-status-DcO-XRPI.js → task-status-C56yYxCa.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-BSun1TbW.js → taskboard-analytics-sEKNVpnd.js} +1 -1
  277. package/dist/client/assets/{tasks--l87WFyL.js → tasks-BGXHV-F9.js} +1 -1
  278. package/dist/client/assets/tasks-Du9Lvkep.js +1 -0
  279. package/dist/client/assets/{textarea-Duz08Iqx.js → textarea-DB65Cb4P.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-oUI0Ldjh.js → thread-analytics-DBVrKrEw.js} +1 -1
  281. package/dist/client/assets/{thread-intent-BGQF0i18.js → thread-intent-CWn1HmtU.js} +1 -1
  282. package/dist/client/assets/{thread-route-D3Npgdwy.js → thread-route-BYTJQqVq.js} +1 -1
  283. package/dist/client/assets/{thread-route-Cjav7kKF.js → thread-route-BjJwVBtH.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body--mz7LDhh.js → thread-sheet-body-D86XTeGF.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-Dcl7u7UC.js → time-range-picker-NUSfs4B1.js} +1 -1
  286. package/dist/client/assets/{toggle-group-CCnoRxJ5.js → toggle-group-C49gUsJz.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-0JnTVTOi.js → tool-namespace-Bj1cvBDc.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-Cs7GdO0i.js → tool-set-selector-Bs7M3rhU.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-CpfF_t2h.js → toolbar-icon-button-D-DoL4BQ.js} +1 -1
  290. package/dist/client/assets/{tooltip-B4vnoW3c.js → tooltip-CSjs8EXx.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-Di8C4u-8.js → tooltipContext-D6EVwPYC.js} +1 -1
  292. package/dist/client/assets/{track-Byem6YG_.js → track-iPianFfO.js} +1 -1
  293. package/dist/client/assets/{types-Cvkdtetr.js → types-Cr7M9oTi.js} +1 -1
  294. package/dist/client/assets/{url-slug-T5nyiyN7.js → url-slug-DYxjfT2K.js} +1 -1
  295. package/dist/client/assets/{usage-stats-D9-LtkOq.js → usage-stats-QKrG0Chq.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-DKBQ22lC.js → use-ai-providers-BvE5F9lZ.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-hAr6r48R.js → use-apply-named-rule-CI1WcDAo.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-CLDGXLQz.js +1 -0
  299. package/dist/client/assets/{use-automations-pTfMxWF2.js → use-automations-C6CsqXzM.js} +1 -1
  300. package/dist/client/assets/{use-autosave-CwoAt-Cr.js → use-autosave-DXTXn5fk.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-DA_MqDc2.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-DMTZvG3v.js → use-chat-layout-state-C7mDb3bl.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-C7a0pDGH.js → use-cms-publish-actions-CQy1zqVQ.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-Bw9DztfC.js → use-connect-companion-FoCT7yyy.js} +1 -1
  305. package/dist/client/assets/{use-connection-Cd0tT7Hz.js → use-connection-Cbht658s.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-B7G_IDZR.js → use-content-sync--RnYhndo.js} +1 -1
  307. package/dist/client/assets/{use-copy-L2uJJmEn.js → use-copy-pqG4JWZ9.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-BWR3I0yD.js → use-date-fns-locale-LBGPcKQF.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-D6uv4Ht0.js → use-debounced-autosave-BhHBDt6n.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-yze9Agx0.js → use-debounced-value-DZeaw_xf.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-CpL6RZMd.js → use-deco-credits-DRZjLOnu.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-Emf31ERY.js → use-decopilot-events-B4_GF30e.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-BOGW-gWO.js → use-delete-connection-BwZvQv2v.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-C05Wl5hm.js → use-deployment-admin-CWBM5pU4.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-DyCdoeJS.js → use-entitlements-DRzAxQMt.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-CUn670We.js → use-fast-preview-draft-url-CLbSHMWD.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-C2_msq8y.js → use-file-configs-Cbnx7meP.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-DAVcESqY.js → use-id-selection-Bo8PJDCH.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-CDj71yb0.js → use-inbox-feed-CbhFgNvg.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-D1VEiyLA.js → use-infinite-scroll-D2U3wOff.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-Cn6BUpqb.js → use-join-requests-IG9tsdHd.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-C43j023G.js → use-main-panel-tabs-z25jEKcZ.js} +1 -1
  323. package/dist/client/assets/{use-mcp-auth-status-B0TiKwJF.js → use-mcp-auth-status-DBT7VWeT.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-DBEWWTcM.js → use-mcp-client-IDMULkw-.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-CQ9PPuTj.js → use-mcp-prompts-DdK4Oz96.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-BCKxSU46.js → use-mcp-tools-Dua9SLd1.js} +1 -1
  327. package/dist/client/assets/{use-mobile-CRjTpdEZ.js → use-mobile-C9EJZpJe.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-Dn5Uj2rh.js → use-move-blocks-RdGjZI5s.js} +1 -1
  329. package/dist/client/assets/{use-navigate-to-agent-B9-xP8hn.js → use-navigate-to-agent-CnITDZ1K.js} +1 -1
  330. package/dist/client/assets/{use-org-fs-CAEafaQy.js → use-org-fs-D39JXIqn.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-D7vGRv_1.js → use-org-repo-syncs-CaKxuApg.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-DcHAsgmH.js → use-org-sso-DHFjLEgz.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-Df-csuDo.js → use-organization-settings-DNsCw29W.js} +1 -1
  334. package/dist/client/assets/{use-project-scope-DwEcCTYT.js → use-project-scope-BDLA_MFt.js} +1 -1
  335. package/dist/client/assets/{use-recent-apps-Bewb5o_E.js → use-recent-apps-DiJWCjqp.js} +1 -1
  336. package/dist/client/assets/{use-reports-diagnostic-B92d9OS0.js → use-reports-diagnostic-DIEvib1u.js} +1 -1
  337. package/dist/client/assets/{use-sandbox-events-BxZfdvM3.js → use-sandbox-events-BFY14jyB.js} +1 -1
  338. package/dist/client/assets/{use-secrets-4gWR8BJM.js → use-secrets-CCi4Nf5b.js} +1 -1
  339. package/dist/client/assets/{use-section-preview-base-nthVDFUD.js → use-section-preview-base-BDzVvnhP.js} +1 -1
  340. package/dist/client/assets/{use-sidebar-collapsed-B_25RrQb.js → use-sidebar-collapsed-BUc8VCoH.js} +1 -1
  341. package/dist/client/assets/{use-tags-BPdkrSTc.js → use-tags-DVR6me46.js} +1 -1
  342. package/dist/client/assets/{use-task-board-analytics-DWzCS1h7.js → use-task-board-analytics-DN7o6q3R.js} +1 -1
  343. package/dist/client/assets/{use-task-board-events-C0AmYx3j.js → use-task-board-events-D0AhUaeo.js} +1 -1
  344. package/dist/client/assets/{use-task-board-item-prs-BwjTfRBq.js → use-task-board-item-prs-C8FVkZ-C.js} +1 -1
  345. package/dist/client/assets/{use-task-board-items-Bueh6O2r.js → use-task-board-items-CdM5j7aW.js} +1 -1
  346. package/dist/client/assets/{use-task-board-prompts-BeKRCQFj.js → use-task-board-prompts-C-FdeWq2.js} +1 -1
  347. package/dist/client/assets/{use-task-metadata-CpevmR5K.js → use-task-metadata-CRegh7J_.js} +1 -1
  348. package/dist/client/assets/{use-thread-outputs-D4glxnBY.js → use-thread-outputs-WXqq1m_V.js} +1 -1
  349. package/dist/client/assets/{use-voice-input-CXfzcEw1.js → use-voice-input-8QaSlWvq.js} +1 -1
  350. package/dist/client/assets/useInfiniteQuery-CVYcell7.js +1 -0
  351. package/dist/client/assets/{useQueries-BZNL1IMW.js → useQueries-ZkLHF4yp.js} +1 -1
  352. package/dist/client/assets/useSuspenseInfiniteQuery-kNSTEkih.js +1 -0
  353. package/dist/client/assets/{users-Cdd9D-dR.js → users-CmySmLhu.js} +1 -1
  354. package/dist/client/assets/{utils-CtoE4BzT.js → utils-DJ4kGZR9.js} +1 -1
  355. package/dist/client/assets/{variant-calendar-DMEwLCMH.js → variant-calendar-Dp3dcJps.js} +1 -1
  356. package/dist/client/assets/{variant-matcher-override-BCR-xrVe.js → variant-matcher-override-Bg1xLD4H.js} +1 -1
  357. package/dist/client/assets/{view-header-KJ6rsezd.js → view-header-BT81K0Rv.js} +1 -1
  358. package/dist/client/assets/{virtual-mcp-wrwCllE9.js → virtual-mcp-R0xcD8OP.js} +1 -1
  359. package/dist/client/assets/{watch-sse-pool-BNZW-YJq.js → watch-sse-pool-BBUNHexJ.js} +1 -1
  360. package/dist/client/index.html +1 -1
  361. package/dist/client/studio-modules/v1/wireframe.js +53 -45
  362. package/dist/server/server.js +1 -1
  363. package/package.json +1 -1
  364. package/dist/client/assets/agent-app-BOWDvrpS.js +0 -1
  365. package/dist/client/assets/agent-deck-Bx7kJg98.js +0 -1
  366. package/dist/client/assets/agent-experiments-DMJmKtxn.js +0 -1
  367. package/dist/client/assets/agent-library-_YpYk3se.js +0 -1
  368. package/dist/client/assets/agent-library-file-BGthAKoz.js +0 -1
  369. package/dist/client/assets/agent-overview-CunpO2WP.js +0 -1
  370. package/dist/client/assets/agent-settings-Cf2re97I.js +0 -1
  371. package/dist/client/assets/agent-site-editor-code-CBnPLDwR.js +0 -2
  372. package/dist/client/assets/agent-site-editor-content-BMrNzhJ0.js +0 -1
  373. package/dist/client/assets/agent-site-editor-preview-GFFDvuZl.js +0 -1
  374. package/dist/client/assets/agent-view-BoMty4cJ.js +0 -1
  375. package/dist/client/assets/api-keys-3ZWG2OME.js +0 -1
  376. package/dist/client/assets/library-PQWanCvO.js +0 -1
  377. package/dist/client/assets/preview-tab-BrupxuLJ.js +0 -551
  378. package/dist/client/assets/project-reports-CVQtK-Va.js +0 -1
  379. package/dist/client/assets/project-tasks-CtZ4MN1R.js +0 -1
  380. package/dist/client/assets/record-editor-SI7Q-pVr.js +0 -1
  381. package/dist/client/assets/reports-C-TsCVxa.js +0 -1
  382. package/dist/client/assets/repositories-CE7fOdIh.js +0 -1
  383. package/dist/client/assets/route-BCTRYX9A.js +0 -1
  384. package/dist/client/assets/sections-editor-UNPiBRIi.js +0 -1
  385. package/dist/client/assets/settings-tab-BKHHd0_C.js +0 -1
  386. package/dist/client/assets/site-editor-BSjvpXJX.js +0 -1
  387. package/dist/client/assets/tasks-CXuVo5e-.js +0 -1
  388. package/dist/client/assets/use-ask-in-chat-CMwCc1F-.js +0 -1
  389. package/dist/client/assets/use-blocks-v8-project-FZUFv9Vq.js +0 -1
  390. package/dist/client/assets/useInfiniteQuery-Bq3XzHMD.js +0 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-B3WDnHYO.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-C_kb8goZ.js","assets/auth-entry-BPV6B4VL.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DhnEMT3K.js","assets/cli-auth-success-CAUQEN95.js","assets/oauth-callback-seyUpLHE.js","assets/mcp-oauth-BTwGti_Q.js","assets/auth-BZ5Ef56k.js","assets/oauth-consent-Csxt2TlH.js","assets/layout-DNHVxHcF.js","assets/required-auth-layout-CQCCkUAY.js","assets/use-deployment-admin-C05Wl5hm.js","assets/users-Cdd9D-dR.js","assets/collection-table-wrapper-bVMovNDL.js","assets/table-BiZFGesF.js","assets/ArrowUp-DD_r1Y_T.js","assets/empty-state-D3yjfo9M.js","assets/search-input-D2E1z19V.js","assets/SearchMd-DseifSbW.js","assets/badge-D4fF-8ns.js","assets/use-debounced-value-yze9Agx0.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-p1XKp1ZG.js","assets/label-CnHmgvIU.js","assets/select-C67xaSM-.js","assets/index-BdQq_4o_.js","assets/index-CdLJWnRN.js","assets/ChevronUp-DzfCpOxS.js","assets/switch-By9JubUf.js","assets/textarea-Duz08Iqx.js","assets/roles-DW32thi2.js","assets/schema-DfRf1jxZ.js","assets/prompts-BE2oz-mN.js","assets/shell-layout-q9TPgR4S.js","assets/Globe04-CbE4fQfn.js","assets/UserSquare-6Sdby0FR.js","assets/agent-icon-CTjv6Gf3.js","assets/AlertCircle-vm4sk-x9.js","assets/Tool01-BhHpHR3H.js","assets/ArrowLeft-DDdp1fkC.js","assets/LinkBroken01-BrWXpfvW.js","assets/ShoppingBag01-TG8T0GTy.js","assets/CheckCircle-CO-Sp-gI.js","assets/ChevronSelectorVertical-BsQHRlTg.js","assets/CreditCard01-Dg0W_VbM.js","assets/SwitchHorizontal01-CTmes_jp.js","assets/Key01-DnFTUPGs.js","assets/Minus-CGC-Ky2T.js","assets/Monitor01-DPIeBRgo.js","assets/Sun-CBOZY0wW.js","assets/Play-B9PgWZlg.js","assets/Plus-CZbPbPr7.js","assets/Trash01-HGp7pYgQ.js","assets/Upload01-B2W5ZMg1.js","assets/Users01-DQRKjdTI.js","assets/XClose-DeFo1VOD.js","assets/Zap-DalPfKev.js","assets/use-project-scope-DwEcCTYT.js","assets/repository-binding-zAuhrRNl.js","assets/use-mcp-client-DBEWWTcM.js","assets/autosend-FOyswNSR.js","assets/thread-route-D3Npgdwy.js","assets/command-CsBJ3GOI.js","assets/index-Do6PllqG.js","assets/integration-icon-D6ksbVbr.js","assets/project-icon-CmV5zxWN.js","assets/use-navigate-to-agent-B9-xP8hn.js","assets/thread-intent-BGQF0i18.js","assets/watch-sse-pool-BNZW-YJq.js","assets/task-board-4SvjUpMb.js","assets/new-project-dialog-C0bl_2Ba.js","assets/repository-picker-C8xivTfl.js","assets/tooltip-B4vnoW3c.js","assets/github-icon-BZYLnrQK.js","assets/useInfiniteQuery-Bq3XzHMD.js","assets/infiniteQueryObserver-BMqABh4H.js","assets/collection-search-CH54VXGp.js","assets/use-organization-settings-Df-csuDo.js","assets/use-org-sso-DcHAsgmH.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-CLe1nQhR.js","assets/organization-choice-BpSAzd2p.js","assets/reports-onboarding-DN1rE25Z.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DCgZG2cL.js","assets/form-C_M4QV9P.js","assets/companion-mcps-section-YQlM2-Os.js","assets/use-connect-companion-Bw9DztfC.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-FgAeY2VI.js","assets/useQueries-BZNL1IMW.js","assets/authenticate-and-persist-oauth-DwlAs1ZZ.js","assets/mcp-oauth-tf6SdsCd.js","assets/track-Byem6YG_.js","assets/extract-connection-data-Bw93eWWI.js","assets/connection-95gHZiW5.js","assets/url-slug-T5nyiyN7.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-D5eTMtDH.js","assets/site-editor-BSjvpXJX.js","assets/chat-context-C4aI-9Gh.js","assets/use-entitlements-DyCdoeJS.js","assets/use-ai-providers-DKBQ22lC.js","assets/use-decopilot-events-Emf31ERY.js","assets/index-CAMi4lK6.js","assets/use-mobile-CRjTpdEZ.js","assets/use-sidebar-collapsed-B_25RrQb.js","assets/use-chat-layout-state-DMTZvG3v.js","assets/toolbar-icon-button-CpfF_t2h.js","assets/sheet-D1FdDYgh.js","assets/resizable-BbH6Rq9j.js","assets/index-Deyc3saa.js","assets/core.esm-DYzatWGk.js","assets/sortable.esm-BoEIu5W0.js","assets/context-menu-1fzYZhm_.js","assets/project-apps-DgmZ54eE.js","assets/use-recent-apps-Bewb5o_E.js","assets/blocks-preview-workspace-context-B7BEJFAh.js","assets/site-editor-toast-BQb3pwds.js","assets/use-voice-input-CXfzcEw1.js","assets/popover-ChvCIlNB.js","assets/drawer-B5at6I_u.js","assets/index-BVwTm9yy.js","assets/checkbox-BpYZyZtV.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/use-blocks-v8-project-FZUFv9Vq.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-CtoE4BzT.js","assets/use-sandbox-events-BxZfdvM3.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-BrupxuLJ.js","assets/parse-sections-DAzG_Y-i.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-D-1ihySL.js","assets/collapsible-BgpbICto.js","assets/use-copy-L2uJJmEn.js","assets/usage-stats-D9-LtkOq.js","assets/tool-namespace-0JnTVTOi.js","assets/utils-CVEq3hMx.js","assets/markdown-CN4Sgkcu.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-B7qZoNog.js","assets/types-Cvkdtetr.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-Cd0tT7Hz.js","assets/use-mcp-prompts-CQ9PPuTj.js","assets/use-thread-outputs-D4glxnBY.js","assets/file-type-icon-BsiKabia.js","assets/section-array-field-3fy_eFLn.js","assets/blocks-tab-states-DAhg2Ye6.js","assets/hosted-reconcile-DVCi8vCY.js","assets/slider-COwHhiq0.js","assets/index-BqJ-zbRp.js","assets/tooltipContext-Di8C4u-8.js","assets/CategoricalChart-Dannm-85.js","assets/index-DqGr7Hc1.js","assets/scroll-area-C8lIzaxm.js","assets/monaco-editor-DRELyy_D.js","assets/editor-DD0jwUtP.js","assets/calendar-C6M3LMV4.js","assets/editor-classes-Dnkv0ExO.js","assets/toggle-group-CCnoRxJ5.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-Bfj0PjLE.js","assets/tabs-Bb2xgzcm.js","assets/use-file-configs-C2_msq8y.js","assets/asset-utils-DC1EoBVm.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-NUpZmc9C.js","assets/variant-matcher-override-BCR-xrVe.js","assets/use-fast-preview-draft-url-CUn670We.js","assets/device-hint-CFx01Kw_.js","assets/alert-CBNKTKcv.js","assets/virtual-mcp-wrwCllE9.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-D6AEfG_r.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-CpevmR5K.js","assets/content-tab-DQG8vdsL.js","assets/view-header-KJ6rsezd.js","assets/use-cms-publish-actions-C7a0pDGH.js","assets/use-content-sync-B7G_IDZR.js","assets/mustache-CMDiec2Z.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-Dn5Uj2rh.js","assets/empty-state-Df2e2-7k.js","assets/tab-icon-glyph-BIJxIcux.js","assets/resolve-tab-icon-DT-C34an.js","assets/agent-site-editor-ZQQDb3Rx.js","assets/site-draft-actions-DEdhulne.js","assets/separator-BJXdAG6q.js","assets/cms-store-drafts-VPkfiqMe.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-4rp3iqoc.js","assets/input--UVdiTAB.js","assets/chat-draft-v_nDJXuK.js","assets/use-deco-credits-CpL6RZMd.js","assets/input-Br1caJ_d.js","assets/suggestion-0IJfbUde.js","assets/use-org-fs-CAEafaQy.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-CAaY2lMU.js","assets/plan-ladder-EgyMICws.js","assets/add-connection-dialog-DSHTc4iD.js","assets/connection-card-CMMSZX4x.js","assets/connection-slug-CVtaxOKz.js","assets/schema-CbQkhAdU.js","assets/connection-form-helpers-BJkokVuQ.js","assets/collection-tabs-DF52b4Gj.js","assets/use-infinite-scroll-D1VEiyLA.js","assets/useSuspenseInfiniteQuery-B3WDnHYO.js","assets/use-task-board-events-C0AmYx3j.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-Du5u3dh2.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-CqsqZ5NG.js","assets/reports-Dl0n8WK0.css","assets/route-Ci6YieJ3.js","assets/use-inbox-feed-CDj71yb0.js","assets/task-key-BCHdFiOO.js","assets/feedback-ByVb71jj.js","assets/own-accounts-section-CbvkYG1v.js","assets/use-date-fns-locale-BWR3I0yD.js","assets/project-sidebar-views-CDN0Y7nM.js","assets/optimistic-project-sidebar-views-CxAVgylL.js","assets/use-task-board-items-Bueh6O2r.js","assets/config-BMlT5DPg.js","assets/project-index-ComZIF5j.js","assets/use-join-requests-Cn6BUpqb.js","assets/thread-route-Cjav7kKF.js","assets/use-reports-diagnostic-B92d9OS0.js","assets/connect-layout-DLqiwduY.js","assets/route-CmtRblLz.js","assets/task-status-DcO-XRPI.js","assets/use-main-panel-tabs-C43j023G.js","assets/use-mcp-tools-BCKxSU46.js","assets/legacy-main-redirect-COYA2M-b.js","assets/preview-dialog-BREniLg2.js","assets/preview-content-DV3ORZ_c.js","assets/file-share-button-C7-QuaCd.js","assets/file-preview-B5EKno-W.js","assets/home-DQQdj4Ea.js","assets/home-overview-CvCaFo1b.js","assets/client-icons-D2cDT816.js","assets/chart-g5ZZsRJb.js","assets/CartesianChart-DZaqdCN6.js","assets/task-route-DVEP01nU.js","assets/ReferenceLine-ZH8D8bPO.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-D7JOaHzT.js","assets/agent-overview-CunpO2WP.js","assets/project-tasks-CtZ4MN1R.js","assets/mock-board-CYPKmuLz.js","assets/use-task-board-analytics-DWzCS1h7.js","assets/use-task-board-prompts-BeKRCQFj.js","assets/use-automations-pTfMxWF2.js","assets/search-toggle-CZItDB1R.js","assets/use-tags-BPdkrSTc.js","assets/index-D-aBBLRs.js","assets/index-CA5MpDJ2.js","assets/use-task-board-item-prs-BwjTfRBq.js","assets/thread-sheet-body--mz7LDhh.js","assets/feature-gate-CWwTIDAD.js","assets/project-reports-CVQtK-Va.js","assets/reports-tab-BkEWE3Wb.js","assets/project-profile-dMAv1_XF.js","assets/agent-site-editor-preview-GFFDvuZl.js","assets/agent-view-guard-CvY79irZ.js","assets/agent-site-editor-content-BMrNzhJ0.js","assets/agent-site-editor-code-CBnPLDwR.js","assets/agent-automations-M5aYunrZ.js","assets/automation-list-row-CWJ60M-N.js","assets/agent-automation-CkV5B9AK.js","assets/select-model-B7BkbJ8q.js","assets/build-improve-prompt-doc-C7YK4Pu4.js","assets/use-debounced-autosave-D6uv4Ht0.js","assets/jira-icon-Dw9qRy7z.js","assets/multi-select-ZlDR0NXs.js","assets/automation-runs-otqJFTtW.js","assets/use-id-selection-DAVcESqY.js","assets/agent-settings-Cf2re97I.js","assets/context-shell-CCkAMmWr.js","assets/require-capability-DcSbNfND.js","assets/access-gate-QW6XL1k3.js","assets/capability-load-error-C2BQaZ2o.js","assets/sections-BSqM_8t2.js","assets/use-ask-in-chat-CMwCc1F-.js","assets/index-DB7GDsnk.js","assets/use-mcp-auth-status-B0TiKwJF.js","assets/secret-picker-DGsGo-lH.js","assets/use-secrets-4gWR8BJM.js","assets/agent-library-_YpYk3se.js","assets/library-tab-Dizgrk4k.js","assets/use-org-repo-syncs-D7vGRv_1.js","assets/folder-icon-DkUbY_Ow.js","assets/agent-assets-DHBXzTkB.js","assets/agent-releases-HbfAzMUb.js","assets/agent-hosting-DN3p71Ic.js","assets/settings-tab-BKHHd0_C.js","assets/agent-e2e-vXEqRzNY.js","assets/taskboard-analytics-BSun1TbW.js","assets/time-range-picker-Dcl7u7UC.js","assets/analytics-sections-DLAuNCzk.js","assets/AreaChart-D7_hgduK.js","assets/agent-experiments-DMJmKtxn.js","assets/experiments-tab-choice-DbCV3Tta.js","assets/named-rule-view-vbAzCqnU.js","assets/use-apply-named-rule-hAr6r48R.js","assets/agent-calendar-DFReqWL3.js","assets/agent-app-BOWDvrpS.js","assets/project-app-view-rhGgr5Sc.js","assets/connect-source-dialog-Bsqg8dUA.js","assets/agent-view-BoMty4cJ.js","assets/agent-file-ByXLEOEk.js","assets/agent-deck-Bx7kJg98.js","assets/agent-library-file-BGthAKoz.js","assets/preview-panel-UEmA70eG.js","assets/agent-connect-sources-BAUjcdOy.js","assets/legacy-agents-deep-phbsWihE.js","assets/tasks-CXuVo5e-.js","assets/thread-analytics-oUI0Ldjh.js","assets/reports-C-TsCVxa.js","assets/library-PQWanCvO.js","assets/plan-Ct48TCKI.js","assets/monitoring-QNe1nTpU.js","assets/order-monitor-day-pxrX3JmM.js","assets/Tooltip-ClzMOV5r.js","assets/monitoring-D_tSeZWt.css","assets/discover-CoCxl4Q9.js","assets/index-hzDwssoq.js","assets/route-BCTRYX9A.js","assets/plan-usage-card-55U4oLof.js","assets/index-redirect-Bu_aNRdm.js","assets/connection-detail-BaU7wg0S.js","assets/index--p_IIMqb.js","assets/index-vlmYuijH.js","assets/use-delete-connection-BOGW-gWO.js","assets/monitoring-stats-row-BJ3mVu8v.js","assets/collection-detail-CEsMpM_C.js","assets/index-CZvihk7A.js","assets/general-BjfnjzGy.js","assets/review-settings-zQhgda-0.js","assets/domain-settings-DuCeTo5C.js","assets/connect-qXBtQ-OH.js","assets/api-keys-BFyU3rHn.js","assets/tool-set-selector-Cs7GdO0i.js","assets/ai-providers-hi0gzVEm.js","assets/infra-billing-TR3zcfyD.js","assets/secrets-Dac8hncd.js","assets/api-keys-3ZWG2OME.js","assets/buckets-Ck5_X87E.js","assets/repositories-CE7fOdIh.js","assets/repositories-D5p56rp8.js","assets/synced-repos-D6Z7ziCu.js","assets/tasks--l87WFyL.js","assets/projects-BH7yFrNo.js","assets/members-kEy-UuPd.js","assets/collection-display-button-PZqoRcbJ.js","assets/role-color-Ce0vE_lJ.js","assets/roles-CS8RSWSS.js","assets/sso-DzouQIR7.js","assets/profile-DCr1-Qvc.js","assets/automations-ByVN628t.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-oQzZnf04.js","assets/auth-entry-cOo1IIAQ.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BD7ZQtZI.js","assets/cli-auth-success-F_8HAZW5.js","assets/oauth-callback-CUY5LMrV.js","assets/mcp-oauth-Dm95e807.js","assets/auth-DsiBBvOi.js","assets/oauth-consent-CGVwKR_T.js","assets/layout-DUb1_0Na.js","assets/required-auth-layout-FfGW_C4w.js","assets/use-deployment-admin-CWBM5pU4.js","assets/users-CmySmLhu.js","assets/collection-table-wrapper-YLWvJmM-.js","assets/table-BsHAPl3y.js","assets/ArrowUp-D3pp3g8x.js","assets/empty-state-CkiFzdzZ.js","assets/search-input-CqVCmKRX.js","assets/SearchMd-DODrmRDH.js","assets/badge-CQfwGgw6.js","assets/use-debounced-value-DZeaw_xf.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-Rdz1cKF2.js","assets/label-bffvb9RR.js","assets/select-74xFBRwJ.js","assets/index-BdQq_4o_.js","assets/index-CGPEL67z.js","assets/ChevronUp-BtMiI6cM.js","assets/switch-DhJh_HPi.js","assets/textarea-DB65Cb4P.js","assets/roles-DW32thi2.js","assets/schema-BeGOWHqJ.js","assets/prompts-BwCKANv5.js","assets/shell-layout-DLOpHw0Q.js","assets/Globe04-DE5hlmxS.js","assets/UserSquare-DRzDrNWv.js","assets/agent-icon-Bw6QCyEx.js","assets/AlertCircle-77Slg1mo.js","assets/Tool01-Dhj9-e2p.js","assets/ArrowLeft-0eZGIs9d.js","assets/LinkBroken01-ClWYoOJF.js","assets/ShoppingBag01-CK3v09in.js","assets/CheckCircle-TpvuszDI.js","assets/ChevronSelectorVertical-C6Gq0VMA.js","assets/CreditCard01-5X4JuL9P.js","assets/SwitchHorizontal01-DFMegDqF.js","assets/Key01-BEX3raxr.js","assets/Minus-Dqs0K-y6.js","assets/Monitor01-Dy43NIcG.js","assets/Sun-BirMDMzO.js","assets/Play-B9kSRU73.js","assets/Plus-DTA_qyzr.js","assets/Trash01-DlPuy4hk.js","assets/Upload01-B7_UtIIy.js","assets/Users01-D2MH6X4i.js","assets/XClose-BPpAzkjm.js","assets/Zap-CSm2QafG.js","assets/use-project-scope-BDLA_MFt.js","assets/repository-binding-DtOS-5pr.js","assets/use-mcp-client-IDMULkw-.js","assets/autosend-CLDsiYES.js","assets/thread-route-BYTJQqVq.js","assets/command-gJAHYCw0.js","assets/index-CNvZmowt.js","assets/integration-icon-DXRPTOXy.js","assets/project-icon-BYuH9rQ-.js","assets/use-navigate-to-agent-CnITDZ1K.js","assets/thread-intent-CWn1HmtU.js","assets/watch-sse-pool-BBUNHexJ.js","assets/task-board-BEneHA34.js","assets/new-project-dialog-C8Uv8Lu7.js","assets/repository-picker-BkanTJ3i.js","assets/tooltip-CSjs8EXx.js","assets/github-icon-Caf_vA32.js","assets/useInfiniteQuery-CVYcell7.js","assets/infiniteQueryObserver-BGhionND.js","assets/collection-search-CX3zyrl-.js","assets/use-organization-settings-DNsCw29W.js","assets/use-org-sso-DHFjLEgz.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-Rp6hEouh.js","assets/organization-choice-CH8EbPmN.js","assets/reports-onboarding-lrKJ48LY.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DVfXqnPV.js","assets/form-BBNzwOZG.js","assets/companion-mcps-section-CfXFRKkt.js","assets/use-connect-companion-FoCT7yyy.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-D7c84PdP.js","assets/useQueries-ZkLHF4yp.js","assets/authenticate-and-persist-oauth-g4wWRHNx.js","assets/mcp-oauth-BzKawp-_.js","assets/track-iPianFfO.js","assets/extract-connection-data-ByI5vK4V.js","assets/connection-C_2ILr0W.js","assets/url-slug-DYxjfT2K.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-EWBezbD2.js","assets/site-editor-CQZ_UVRr.js","assets/chat-context-DGlvTnKl.js","assets/use-entitlements-DRzAxQMt.js","assets/use-ai-providers-BvE5F9lZ.js","assets/use-decopilot-events-B4_GF30e.js","assets/index-CkLGogIO.js","assets/use-mobile-C9EJZpJe.js","assets/use-sidebar-collapsed-BUc8VCoH.js","assets/use-chat-layout-state-C7mDb3bl.js","assets/toolbar-icon-button-D-DoL4BQ.js","assets/sheet-DSOCEYQs.js","assets/resizable-C3wpOoRo.js","assets/index-CMM5_x0M.js","assets/core.esm-BMG4ioMU.js","assets/sortable.esm-DcEMfWKZ.js","assets/context-menu-vgijVtOb.js","assets/project-apps-J9B-3GYC.js","assets/use-recent-apps-DiJWCjqp.js","assets/blocks-preview-workspace-context-BjUOv6Gn.js","assets/site-editor-toast-BU0n_ImS.js","assets/use-voice-input-8QaSlWvq.js","assets/popover-Bcm8q-UM.js","assets/drawer-7PMhL6c9.js","assets/index-qZbv6YO4.js","assets/checkbox-BicdYBus.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/use-blocks-v8-project-DA_MqDc2.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-DJ4kGZR9.js","assets/use-sandbox-events-BFY14jyB.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-IspVWI2P.js","assets/parse-sections-CWxm7mRm.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-xiFs456g.js","assets/collapsible-BUfI2uMB.js","assets/use-copy-pqG4JWZ9.js","assets/usage-stats-QKrG0Chq.js","assets/tool-namespace-Bj1cvBDc.js","assets/utils-CVEq3hMx.js","assets/markdown-C594pPG2.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-BgKMzsSF.js","assets/types-Cr7M9oTi.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-Cbht658s.js","assets/use-mcp-prompts-DdK4Oz96.js","assets/use-thread-outputs-WXqq1m_V.js","assets/file-type-icon-aib86xB6.js","assets/section-array-field-DAQuFQGC.js","assets/blocks-tab-states-DTS9heYD.js","assets/hosted-reconcile-C-wcyta_.js","assets/slider-COhKeoXK.js","assets/index-BXDjwwPk.js","assets/tooltipContext-D6EVwPYC.js","assets/CategoricalChart-D-0Fq-ih.js","assets/index-rV6-HlJv.js","assets/scroll-area-C4JxE3Sd.js","assets/monaco-editor-Cp-Ik4oF.js","assets/editor-C31TESmA.js","assets/calendar-DyqOJ3Yl.js","assets/editor-classes-Cf4dLWq3.js","assets/toggle-group-C49gUsJz.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-CfLj8nnB.js","assets/tabs-ChqaRicq.js","assets/use-file-configs-Cbnx7meP.js","assets/asset-utils-7GGOgR3V.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-CTE-NRJ8.js","assets/variant-matcher-override-Bg1xLD4H.js","assets/use-fast-preview-draft-url-CLbSHMWD.js","assets/device-hint-C-9B9AO-.js","assets/alert-CdBC10NR.js","assets/virtual-mcp-R0xcD8OP.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-_Toql8Rw.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-CRegh7J_.js","assets/content-tab-BZbNqACK.js","assets/view-header-BT81K0Rv.js","assets/use-cms-publish-actions-CQy1zqVQ.js","assets/use-content-sync--RnYhndo.js","assets/mustache-ezjY74jH.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-RdGjZI5s.js","assets/empty-state-Br5S8FBX.js","assets/tab-icon-glyph-P5ldYfjO.js","assets/resolve-tab-icon-D0LRqEAN.js","assets/agent-site-editor-DNv8LivC.js","assets/site-draft-actions-DZN15MLN.js","assets/separator-oNbzaXZp.js","assets/cms-store-drafts-uQohRmgN.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-rbq2RwK4.js","assets/input-DE1KZAH4.js","assets/chat-draft-lDXn_WJo.js","assets/use-deco-credits-DRZjLOnu.js","assets/input-30s27Dwt.js","assets/suggestion-tumipUUi.js","assets/use-org-fs-D39JXIqn.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-C6MAaSeS.js","assets/plan-ladder-5XW4hCzP.js","assets/add-connection-dialog-Dlb7QEF0.js","assets/connection-card-CYwtBEJi.js","assets/connection-slug-BW3zmzZg.js","assets/schema-HsTF1Pc5.js","assets/connection-form-helpers-TcnlMaZD.js","assets/collection-tabs-By2NKMgI.js","assets/use-infinite-scroll-D2U3wOff.js","assets/useSuspenseInfiniteQuery-kNSTEkih.js","assets/use-task-board-events-D0AhUaeo.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-M5zMgyWp.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-B-KM0N71.js","assets/reports-Dl0n8WK0.css","assets/route-wsTyUIFW.js","assets/use-inbox-feed-CbhFgNvg.js","assets/task-key-BCHdFiOO.js","assets/feedback-uGs2nxfi.js","assets/own-accounts-section-B5fmcBw0.js","assets/use-date-fns-locale-LBGPcKQF.js","assets/project-sidebar-views-Czma7tbo.js","assets/optimistic-project-sidebar-views-DWyqj7gv.js","assets/use-task-board-items-CdM5j7aW.js","assets/config-BmEe9Sll.js","assets/project-index-DAfZ854O.js","assets/use-join-requests-IG9tsdHd.js","assets/thread-route-BjJwVBtH.js","assets/use-reports-diagnostic-DIEvib1u.js","assets/connect-layout-BWcLA-tm.js","assets/route-cyGY1xFk.js","assets/task-status-C56yYxCa.js","assets/use-main-panel-tabs-z25jEKcZ.js","assets/use-mcp-tools-Dua9SLd1.js","assets/legacy-main-redirect-DTIlt7DJ.js","assets/preview-dialog-Si16X-hs.js","assets/preview-content-BZTSsgR7.js","assets/file-share-button-BRYVxpzc.js","assets/file-preview-DVtj98bP.js","assets/home-jWQT8tJO.js","assets/home-overview-C_lPrOCA.js","assets/client-icons-DajqMwYZ.js","assets/chart-eHX6bECf.js","assets/CartesianChart-oe8TUIzs.js","assets/task-route-P15E5tiK.js","assets/ReferenceLine-HOuLDy67.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-DAINcqhx.js","assets/agent-overview-WvKNJRaS.js","assets/project-tasks-Da5LxTaa.js","assets/mock-board-DbSEkLmB.js","assets/use-task-board-analytics-DN7o6q3R.js","assets/use-task-board-prompts-C-FdeWq2.js","assets/use-automations-C6CsqXzM.js","assets/search-toggle-2zm3S8SV.js","assets/use-tags-DVR6me46.js","assets/index-2X0wZvq4.js","assets/index-B2hAsS12.js","assets/use-task-board-item-prs-C8FVkZ-C.js","assets/thread-sheet-body-D86XTeGF.js","assets/feature-gate-Fvf7MS-k.js","assets/project-reports-ByPdonNL.js","assets/reports-tab-7YQe_lby.js","assets/project-profile-dMAv1_XF.js","assets/agent-site-editor-preview-vjIMqLQd.js","assets/agent-view-guard-DZBM0b8V.js","assets/agent-site-editor-content-CsMmLm8L.js","assets/agent-site-editor-code-C8pZNRHE.js","assets/agent-automations-qrK0F_qT.js","assets/automation-list-row-DxL776kN.js","assets/agent-automation-B4ZBovsD.js","assets/select-model-DhRUUoEu.js","assets/build-improve-prompt-doc-B3q_lki0.js","assets/use-debounced-autosave-BhHBDt6n.js","assets/jira-icon-CfexjHAg.js","assets/multi-select-CTRCP8n_.js","assets/automation-runs-CLAvbaXa.js","assets/use-id-selection-Bo8PJDCH.js","assets/agent-settings-CXIVbo4Q.js","assets/context-shell-Ctmm-Xdc.js","assets/require-capability-DJA2DKIk.js","assets/access-gate-VZjzTtj1.js","assets/capability-load-error-BCivHBGk.js","assets/sections-BlIgOACC.js","assets/use-ask-in-chat-CLDGXLQz.js","assets/index-CqcoXuFg.js","assets/use-mcp-auth-status-DBT7VWeT.js","assets/secret-picker-BWL5LPg8.js","assets/use-secrets-CCi4Nf5b.js","assets/agent-library-BHDQegTE.js","assets/library-tab-ChfMhJEt.js","assets/use-org-repo-syncs-CaKxuApg.js","assets/folder-icon-xP_msldQ.js","assets/agent-assets-C17EfgRE.js","assets/agent-releases-TATL9kUr.js","assets/agent-hosting-Dv4dOzql.js","assets/settings-tab-DHUT_FZr.js","assets/agent-e2e-EecJC8x2.js","assets/taskboard-analytics-sEKNVpnd.js","assets/time-range-picker-NUSfs4B1.js","assets/analytics-sections-BeJKxwpX.js","assets/AreaChart-SE-oSToz.js","assets/agent-experiments-CYKGvEGA.js","assets/experiments-tab-choice-C_eZAy_m.js","assets/named-rule-view-DvHwI-Uj.js","assets/use-apply-named-rule-CI1WcDAo.js","assets/agent-calendar-DH2mwvW-.js","assets/agent-app-D-w7piVd.js","assets/project-app-view-BBFj0BFi.js","assets/connect-source-dialog-DSZRQtyq.js","assets/agent-view-Doh3INR0.js","assets/agent-file-iZ4NUGLw.js","assets/agent-deck-sQICWvWi.js","assets/agent-library-file-CVUtuonJ.js","assets/preview-panel-BUZ06et3.js","assets/agent-connect-sources-DKscloVB.js","assets/legacy-agents-deep-CGYaMIvK.js","assets/tasks-Du9Lvkep.js","assets/thread-analytics-DBVrKrEw.js","assets/reports-BOoYfaIC.js","assets/library-KpfW-byA.js","assets/plan-iqz5I5FG.js","assets/monitoring-DcVl24hV.js","assets/order-monitor-day-Bu3YI8SD.js","assets/Tooltip-DUa9z7L4.js","assets/monitoring-D_tSeZWt.css","assets/discover-PXb5-Euj.js","assets/index-DqnMzkHt.js","assets/route-D6Y4UL2U.js","assets/plan-usage-card-Cj9Gz5rK.js","assets/index-redirect-DCqW-S58.js","assets/connection-detail-Bou1FrgT.js","assets/index-DrT_mubP.js","assets/index-C98dKlkT.js","assets/use-delete-connection-BwZvQv2v.js","assets/monitoring-stats-row-do-o5vGg.js","assets/collection-detail-DJM8n-Nh.js","assets/index-DJTz8tA2.js","assets/general-CeisvnAE.js","assets/review-settings-Dknq5J3l.js","assets/domain-settings-BZ2zcLtt.js","assets/connect-Bv1wjltN.js","assets/api-keys-Dhr7aXaQ.js","assets/tool-set-selector-Bs7M3rhU.js","assets/ai-providers-AE8XVdCE.js","assets/infra-billing-CkEQLhps.js","assets/secrets-tbMtsvU-.js","assets/api-keys-Cbsqw06u.js","assets/buckets-DJa_BsNC.js","assets/repositories-DHNSFbbH.js","assets/repositories-DZ-YNWPW.js","assets/synced-repos-n432_4GJ.js","assets/tasks-BGXHV-F9.js","assets/projects-DHRuNCso.js","assets/members-DEZJ5Mkk.js","assets/collection-display-button-BwDkXlls.js","assets/role-color-C15OiMK-.js","assets/roles-BnyT0Tpg.js","assets/sso-gKduWE5w.js","assets/profile-BU9rPDry.js","assets/automations-DTy3O45p.js"])))=>i.map(i=>d[i]);
2
2
  function bq(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 lxe=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 WS={exports:{}},qu={};var _A;function yq(){if(_A)return qu;_A=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 PA;function Sq(){return PA||(PA=1,WS.exports=yq()),WS.exports}var y=Sq(),KS={exports:{}},dt={};var AA;function wq(){if(AA)return dt;AA=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 b={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||b}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 C(M,G,V){this.props=M,this.context=G,this.refs=T,this.updater=V||b}var E=C.prototype=new k;E.constructor=C,S(E,x.prototype),E.isPureReactComponent=!0;var P=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function I(M,G,V){var L=V.ref;return{$$typeof:t,type:M,key:G,ref:L!==void 0?L:null,props:V}}function U(M,G){return I(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function j(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?j(""+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,L,z){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,L,z)}}if(de)return z=z(M),de=L===""?"."+W(M,0):L,P(z)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(z,G,V,"",function(Ue){return Ue})):z!=null&&(B(z)&&(z=U(z,V+(z.key==null||M&&M.key===z.key?"":(""+z.key).replace(F,"$&/")+"/")+de)),G.push(z)),1;de=0;var ue=L===""?".":L+":";if(P(M))for(var Ee=0;Ee<M.length;Ee++)L=M[Ee],X=ue+W(L,Ee),de+=H(L,G,V,X,z);else if(Ee=v(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(L=M.next()).done;)L=L.value,X=ue+W(L,Ee++),de+=H(L,G,V,X,z);else if(X==="object"){if(typeof M.then=="function")return H(oe(M),G,V,L,z);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 L=[],z=0;return H(M,L,"","",function(X){return G.call(V,X,z++)}),L}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=C,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 L=S({},M.props),z=M.key;if(G!=null)for(X in G.key!==void 0&&(z=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(L[X]=G[X]);var X=arguments.length-2;if(X===1)L.children=V;else if(1<X){for(var de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];L.children=de}return I(M.type,z,L)},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 L,z={},X=null;if(G!=null)for(L in G.key!==void 0&&(X=""+G.key),G)O.call(G,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(z[L]=G[L]);var de=arguments.length-2;if(de===1)z.children=V;else if(1<de){for(var ue=Array(de),Ee=0;Ee<de;Ee++)ue[Ee]=arguments[Ee+2];z.children=ue}if(M&&M.defaultProps)for(L in de=M.defaultProps,de)z[L]===void 0&&(z[L]=de[L]);return I(M,X,z)},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 L=M(),z=R.S;z!==null&&z(V,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.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 RA;function Hi(){return RA||(RA=1,KS.exports=wq()),KS.exports}var A=Hi();const ee=Gl(A),ck=bq({__proto__:null,default:ee},[A]);var YS={exports:{}},$u={},ZS={exports:{}},QS={};var DA;function xq(){return DA||(DA=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],L=G+1,z=H[L];if(0>n(V,J))L<Q&&0>n(z,V)?(H[se]=z,H[L]=J,se=L):(H[se]=V,H[G]=J,se=G);else if(L<Q&&0>n(z,J))H[se]=z,H[L]=J,se=L;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,b=!1,S=!1,T=!1,x=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function E(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,E(H),!b)if(o(d)!==null)b=!0,D||(D=!0,j());else{var K=o(u);K!==null&&oe(P,K.startTime-H)}}var D=!1,R=-1,O=5,I=-1;function U(){return T?!0:!(t.unstable_now()-I<O)}function B(){if(T=!1,D){var H=t.unstable_now();I=H;var K=!0;try{e:{b=!1,S&&(S=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(E(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,E(H),K=!0;break t}h===o(d)&&a(d),E(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?j():D=!1}}}var j;if(typeof C=="function")j=function(){C(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,j=function(){W.postMessage(null)}}else j=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),b||v||(b=!0,D||(D=!0,j()))),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}}}})(QS)),QS}var OA;function Tq(){return OA||(OA=1,ZS.exports=xq()),ZS.exports}var JS={exports:{}},Ma={};var NA;function kq(){if(NA)return Ma;NA=1;var t=Hi();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 MA;function AM(){if(MA)return JS.exports;MA=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(),JS.exports=kq(),JS.exports}var IA;function Eq(){if(IA)return $u;IA=1;var t=Tq(),e=Hi(),o=AM();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"),b=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"),C=Symbol.for("react.context"),E=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"),I=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function j(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 I:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case C:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case E: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 L=M(null),z=M(null),X=M(null),de=M(null);function ue(s,l){switch(V(X,l),V(z,s),V(L,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?Z1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=Z1(l),s=Q1(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(L),V(L,s)}function Ee(){G(L),G(z),G(X)}function Ue(s){s.memoizedState!==null&&V(de,s);var l=L.current,p=Q1(l,s.type);l!==p&&(V(z,s),V(L,p))}function Z(s){z.current===s&&(G(L),G(z)),de.current===s&&(G(de),Fu._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(I,(0,a._)`[${D}]`)}}}function f({gen:k,parentData:C,parentDataProperty:E},P){k.if((0,a._)`${C} !== undefined`,()=>k.assign((0,a._)`${C}[${E}]`,P))}function v(k,C,E,P=r.Correct){const D=P===r.Correct?a.operators.EQ:a.operators.NEQ;let R;switch(k){case"null":return(0,a._)`${C} ${D} null`;case"array":R=(0,a._)`Array.isArray(${C})`;break;case"object":R=(0,a._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":R=O((0,a._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":R=O();break;default:return(0,a._)`typeof ${C} ${D} ${k}`}return P===r.Correct?R:(0,a.not)(R);function O(I=a.nil){return(0,a.and)((0,a._)`typeof ${C} == "number"`,I,E?(0,a._)`isFinite(${C})`:a.nil)}}xa.checkDataType=v;function b(k,C,E,P){if(k.length===1)return v(k[0],C,E,P);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,a._)`typeof ${C} != "object"`;D=R.null?O:(0,a._)`!${C} || ${O}`,delete R.null,delete R.array,delete R.object}else D=a.nil;R.number&&delete R.integer;for(const O in R)D=(0,a.and)(D,v(O,C,E,P));return D}xa.checkDataTypes=b;const S={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:C})=>typeof k=="string"?(0,a._)`{type: ${k}}`:(0,a._)`{type: ${C}}`};function T(k){const C=x(k);(0,o.reportError)(C,S)}xa.reportTypeError=T;function x(k){const{gen:C,data:E,schema:P}=k,D=(0,n.schemaRefOrVal)(k,P,"type");return{gen:C,keyword:"type",data:E,schema:P.type,schemaCode:D,schemaValue:D,parentSchema:P,params:{},it:k}}return xa}var Ku={},tD;function GZ(){if(tD)return Ku;tD=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.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))}Ku.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 Ku}var gr={},Zt={},oD;function Dr(){if(oD)return Zt;oD=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,C){const{gen:E,data:P,it:D}=k;E.if(m(E,P,C,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,t._)`${C}`},!0),k.error()})}Zt.checkReportMissingProp=n;function r({gen:k,data:C,it:{opts:E}},P,D){return(0,t.or)(...P.map(R=>(0,t.and)(m(k,C,R,E.ownProperties),(0,t._)`${D} = ${R}`)))}Zt.checkMissingProp=r;function i(k,C){k.setParams({missingProperty:C},!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,C,E){return(0,t._)`${c(k)}.call(${C}, ${E})`}Zt.isOwnProperty=d;function u(k,C,E,P){const D=(0,t._)`${C}${(0,t.getProperty)(E)} !== undefined`;return P?(0,t._)`${D} && ${d(k,C,E)}`:D}Zt.propertyInData=u;function m(k,C,E,P){const D=(0,t._)`${C}${(0,t.getProperty)(E)} === undefined`;return P?(0,t.or)(D,(0,t.not)(d(k,C,E))):D}Zt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(C=>C!=="__proto__"):[]}Zt.allSchemaProperties=h;function f(k,C){return h(C).filter(E=>!(0,e.alwaysValidSchema)(k,C[E]))}Zt.schemaProperties=f;function v({schemaCode:k,data:C,it:{gen:E,topSchemaRef:P,schemaPath:D,errorPath:R},it:O},I,U,B){const j=B?(0,t._)`${k}, ${C}, ${P}${D}`:C,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._)`${j}, ${E.object(...F)}`;return U!==t.nil?(0,t._)`${I}.call(${U}, ${W})`:(0,t._)`${I}(${W})`}Zt.callValidateCode=v;const b=(0,t._)`new RegExp`;function S({gen:k,it:{opts:C}},E){const P=C.unicodeRegExp?"u":"",{regExp:D}=C.code,R=D(E,P);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?b:(0,a.useFunc)(k,D)}(${E}, ${P})`})}Zt.usePattern=S;function T(k){const{gen:C,data:E,keyword:P,it:D}=k,R=C.name("valid");if(D.allErrors){const I=C.let("valid",!0);return O(()=>C.assign(I,!1)),I}return C.var(R,!0),O(()=>C.break()),R;function O(I){const U=C.const("len",(0,t._)`${E}.length`);C.forRange("i",0,U,B=>{k.subschema({keyword:P,dataProp:B,dataPropType:e.Type.Num},R),C.if((0,t.not)(R),I)})}}Zt.validateArray=T;function x(k){const{gen:C,schema:E,keyword:P,it:D}=k;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(U=>(0,e.alwaysValidSchema)(D,U))&&!D.opts.unevaluated)return;const O=C.let("valid",!1),I=C.name("_valid");C.block(()=>E.forEach((U,B)=>{const j=k.subschema({keyword:P,schemaProp:B,compositeRule:!0},I);C.assign(O,(0,t._)`${O} || ${I}`),k.mergeValidEvaluated(j,I)||C.if((0,t.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Zt.validateUnion=x,Zt}var aD;function WZ(){if(aD)return gr;aD=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=ob();function n(f,v){const{gen:b,keyword:S,schema:T,parentSchema:x,it:k}=f,C=v.macro.call(k.self,T,x,k),E=u(b,S,C);k.opts.validateSchema!==!1&&k.self.validateSchema(C,!0);const P=b.name("valid");f.subschema({schema:C,schemaPath:t.nil,errSchemaPath:`${k.errSchemaPath}/${S}`,topSchemaRef:E,compositeRule:!0},P),f.pass(P,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,v){var b;const{gen:S,keyword:T,schema:x,parentSchema:k,$data:C,it:E}=f;d(E,v);const P=!C&&v.compile?v.compile.call(E.self,x,k,E):v.validate,D=u(S,T,P),R=S.let("valid");f.block$data(R,O),f.ok((b=v.valid)!==null&&b!==void 0?b:R);function O(){if(v.errors===!1)B(),v.modifying&&i(f),j(()=>f.error());else{const F=v.async?I():U();v.modifying&&i(f),j(()=>c(f,F))}}function I(){const F=S.let("ruleErrs",null);return S.try(()=>B((0,t._)`await `),W=>S.assign(R,!1).if((0,t._)`${W} instanceof ${E.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=E.opts.passContext?e.default.this:e.default.self,oe=!("compile"in v&&!C||v.schema===!1);S.assign(R,(0,t._)`${F}${(0,o.callValidateCode)(f,D,W,oe)}`,v.modifying)}function j(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:b,it:S}=f;v.if(S.parentData,()=>v.assign(b,(0,t._)`${S.parentData}[${S.parentDataProperty}]`))}function c(f,v){const{gen:b}=f;b.if((0,t._)`Array.isArray(${v})`,()=>{b.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,b){if(b===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,t.stringify)(b)})}function m(f,v,b=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(f):S==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==S||b&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:v,self:b,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(C=>!Object.prototype.hasOwnProperty.call(f,C)))throw new Error(`parent schema must have dependencies of ${x}: ${k.join(",")}`);if(T.validateSchema&&!T.validateSchema(f[x])){const E=`keyword "${x}" value is invalid at path "${S}": `+b.errorsText(T.validateSchema.errors);if(v.validateSchema==="log")b.logger.error(E);else throw new Error(E)}}return gr.validateKeywordUsage=h,gr}var ks={},nD;function KZ(){if(nD)return ks;nD=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.extendSubschemaMode=ks.extendSubschemaData=ks.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')}ks.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:b,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)`${b}${(0,e.getErrorPath)(c,d,T.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...S,r.parentDataProperty]}if(u!==void 0){const b=u instanceof t.Name?u:f.let("data",u,!0);v(b),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(b){r.data=b,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,b]}}ks.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 ks.extendSubschemaMode=n,ks}var Wa={},Sw,rD;function dB(){return rD||(rD=1,Sw=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}),Sw}var ww={exports:{}},sD;function YZ(){if(sD)return ww.exports;sD=1;var t=ww.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 b=i[v];if(Array.isArray(b)){if(v in t.arrayKeywords)for(var S=0;S<b.length;S++)e(a,n,r,b[S],c+"/"+v+"/"+S,d,c,v,i,S)}else if(v in t.propsKeywords){if(b&&typeof b=="object")for(var T in b)e(a,n,r,b[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,b,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 ww.exports}var iD;function ab(){if(iD)return Wa;iD=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=dB(),o=YZ(),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 b(S,T){if(typeof S=="boolean")return{};const{schemaId:x,uriResolver:k}=this.opts,C=h(S[x]||T),E={"":C},P=d(k,C,!1),D={},R=new Set;return o(S,{allKeys:!0},(U,B,j,F)=>{if(F===void 0)return;const W=P+B;let oe=E[F];typeof U[x]=="string"&&(oe=H.call(this,U[x])),K.call(this,U.$anchor),K.call(this,U.$dynamicAnchor),E[B]=oe;function H(J){const se=this.opts.uriResolver.resolve;if(J=h(oe?se(oe,J):J),R.has(J))throw I(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,j){if(B!==void 0&&!e(U,B))throw I(j)}function I(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Wa.getSchemaRefs=b,Wa}var lD;function nb(){if(lD)return xs;lD=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.getData=xs.KeywordCxt=xs.validateFunctionCode=void 0;const t=HZ(),e=Jf(),o=cB(),a=Jf(),n=GZ(),r=WZ(),i=KZ(),c=yt(),d=Zi(),u=ab(),m=Lt(),h=ob();function f(Z){if(P(Z)&&(R(Z),E(Z))){T(Z);return}v(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}xs.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}, ${b(Te)}`,ie.$async,()=>Z.code(k(ve,Te)).code(_e))}function b(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 C(Z,ne){if(P(Z)&&(R(Z),E(Z))){D(Z,ne);return}(0,t.boolOrEmptySchema)(Z,ne)}function E({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),j(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),I(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 I(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 j(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)||z(Z,`type "${ve}" not allowed by context "${Z.dataTypes.join(",")}"`)}),L(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&z(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))&&z(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 L(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 z(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",Ue(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 C(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}}xs.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)*$/,Ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ue(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=Ee.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 xs.getData=Ue,xs}var og={},cD;function Hk(){if(cD)return og;cD=1,Object.defineProperty(og,"__esModule",{value:!0});class t extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return og.default=t,og}var ag={},dD;function rb(){if(dD)return ag;dD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=ab();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 ag.default=e,ag}var _n={},uD;function Gk(){if(uD)return _n;uD=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.resolveSchema=_n.getCompilingSchema=_n.resolveRef=_n.compileSchema=_n.SchemaEnv=void 0;const t=yt(),e=Hk(),o=Zi(),a=ab(),n=Lt(),r=nb();class i{constructor(x){var k;this.refs={},this.dynamicAnchors={};let C;typeof x.schema=="object"&&(C=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)(C?.[x.schemaId||"$id"]),this.schemaPath=x.schemaPath,this.localRefs=x.localRefs,this.meta=x.meta,this.$async=C?.$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:C,lines:E}=this.opts.code,{ownProperties:P}=this.opts,D=new t.CodeGen(this.scope,{es5:C,lines:E,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 I={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)(I),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}=I;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 C;k=(0,a.resolveUrl)(this.opts.uriResolver,x,k);const E=T.refs[k];if(E)return E;let P=f.call(this,T,k);if(P===void 0){const D=(C=T.localRefs)===null||C===void 0?void 0:C[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),C=(0,a._getFullPath)(this.opts.uriResolver,k);let E=(0,a.getFullPath)(this.opts.uriResolver,T.baseId,void 0);if(Object.keys(T.schema).length>0&&C===E)return S.call(this,k,T);const P=(0,a.normalizeId)(C),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,I=R[O];return I&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,I)),new i({schema:R,schemaId:O,root:T,baseId:E})}return S.call(this,k,D)}}_n.resolveSchema=v;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(T,{baseId:x,schema:k,root:C}){var E;if(((E=T.fragment)===null||E===void 0?void 0:E[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 I=typeof k=="object"&&k[this.opts.schemaId];!b.has(R)&&I&&(x=(0,a.resolveUrl)(this.opts.uriResolver,x,I))}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,C,R)}const{schemaId:D}=this.opts;if(P=P||new i({schema:k,schemaId:D,root:C,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)",JZ="object",XZ=["$data"],eQ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},tQ=!1,oQ={$id:ZZ,description:QZ,type:JZ,required:XZ,properties:eQ,additionalProperties:tQ};var ng={},Yu={exports:{}},xw,pD;function uB(){if(pD)return xw;pD=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="",b=0,S=0;for(S=0;S<f.length;S++)if(b=f[S].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[S];break}for(S+=1;S<f.length;S++){if(b=f[S].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=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,b){if(f.length){const S=o(f);if(S!=="")v.push(S);else return b.error=!0,!1;f.length=0}return!0}function i(f){let v=0;const b={error:!1,address:"",zone:""},S=[],T=[];let x=!1,k=!1,C=r;for(let E=0;E<f.length;E++){const P=f[E];if(!(P==="["||P==="]"))if(P===":"){if(x===!0&&(k=!0),!C(T,S,b))break;if(++v>7){b.error=!0;break}E>0&&f[E-1]===":"&&(x=!0),S.push(":");continue}else if(P==="%"){if(!C(T,S,b))break;C=n}else{T.push(P);continue}}return T.length&&(C===n?b.zone=T.join(""):k?S.push(T.join("")):S.push(o(T))),b.address=S.join(""),b}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 b=v.address,S=v.address;return v.zone&&(b+="%"+v.zone,S+="%25"+v.zone),{host:b,isIPV6:!0,escapedHost:S}}}function d(f,v){let b=0;for(let S=0;S<f.length;S++)f[S]===v&&b++;return b}function u(f){let v=f;const b=[];let S=-1,T=0;for(;T=v.length;){if(T===1){if(v===".")break;if(v==="/"){b.push("/");break}else{b.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]==="/")){b.push("/");break}}else if(T===3&&v==="/.."){b.length!==0&&b.pop(),b.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),b.length!==0&&b.pop();continue}}if((S=v.indexOf("/",1))===-1){b.push(v);break}else b.push(v.slice(0,S)),v=v.slice(S)}return b.join("")}function m(f,v){const b=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=b(f.scheme)),f.userinfo!==void 0&&(f.userinfo=b(f.userinfo)),f.host!==void 0&&(f.host=b(f.host)),f.path!==void 0&&(f.path=b(f.path)),f.query!==void 0&&(f.query=b(f.query)),f.fragment!==void 0&&(f.fragment=b(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let b=unescape(f.host);if(!e(b)){const S=c(b);S.isIPV6===!0?b=`[${S.escapedHost}]`:b=f.host}v.push(b)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return xw={nonSimpleDomain:a,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:o},xw}var Tw,mD;function aQ(){if(mD)return Tw;mD=1;const{isUUID:t}=uB(),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 I=`${O}:${D.nid||P.nid}`,U=E(I);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(),I=`${R}:${D.nid||O}`,U=E(I);U&&(P=U.serialize(P,D));const B=P,j=P.nss;return B.path=`${O||D.nid}:${j}`,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},b={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},C={http:v,https:b,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(C,null);function E(P){return P&&(C[P]||C[P.toLowerCase()])||void 0}return Tw={wsIsSecure:n,SCHEMES:C,isValidSchemeName:a,getSchemeHandler:E},Tw}var hD;function nQ(){if(hD)return Yu.exports;hD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:o,normalizeComponentEncoding:a,isIPv4:n,nonSimpleDomain:r}=uB(),{SCHEMES:i,getSchemeHandler:c}=aQ();function d(T,x){return typeof T=="string"?T=f(b(T,x),x):typeof T=="object"&&(T=b(f(T,x),x)),T}function u(T,x,k){const C=k?Object.assign({scheme:"null"},k):{scheme:"null"},E=m(b(T,C),b(x,C),C,!0);return C.skipEscape=!0,f(E,C)}function m(T,x,k,C){const E={};return C||(T=b(f(T,k),k),x=b(f(x,k),k)),k=k||{},!k.tolerant&&x.scheme?(E.scheme=x.scheme,E.userinfo=x.userinfo,E.host=x.host,E.port=x.port,E.path=e(x.path||""),E.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(E.userinfo=x.userinfo,E.host=x.host,E.port=x.port,E.path=e(x.path||""),E.query=x.query):(x.path?(x.path[0]==="/"?E.path=e(x.path):((T.userinfo!==void 0||T.host!==void 0||T.port!==void 0)&&!T.path?E.path="/"+x.path:T.path?E.path=T.path.slice(0,T.path.lastIndexOf("/")+1)+x.path:E.path=x.path,E.path=e(E.path)),E.query=x.query):(E.path=T.path,x.query!==void 0?E.query=x.query:E.query=T.query),E.userinfo=T.userinfo,E.host=T.host,E.port=T.port),E.scheme=T.scheme),E.fragment=x.fragment,E}function h(T,x,k){return typeof T=="string"?(T=unescape(T),T=f(a(b(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(b(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:""},C=Object.assign({},x),E=[],P=c(C.scheme||k.scheme);P&&P.serialize&&P.serialize(k,C),k.path!==void 0&&(C.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),C.reference!=="suffix"&&k.scheme&&E.push(k.scheme,":");const D=o(k);if(D!==void 0&&(C.reference!=="suffix"&&E.push("//"),E.push(D),k.path&&k.path[0]!=="/"&&E.push("/")),k.path!==void 0){let R=k.path;!C.absolutePath&&(!P||!P.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),E.push(R)}return k.query!==void 0&&E.push("?",k.query),k.fragment!==void 0&&E.push("#",k.fragment),E.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(T,x){const k=Object.assign({},x),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;k.reference==="suffix"&&(k.scheme?T=k.scheme+":"+T:T="//"+T);const P=T.match(v);if(P){if(C.scheme=P[1],C.userinfo=P[3],C.host=P[4],C.port=parseInt(P[5],10),C.path=P[6]||"",C.query=P[7],C.fragment=P[8],isNaN(C.port)&&(C.port=P[5]),C.host)if(n(C.host)===!1){const O=t(C.host);C.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==C.reference&&(C.error=C.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||C.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&C.host&&(k.domainHost||D&&D.domainHost)&&E===!1&&r(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(R){C.error=C.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(T.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=unescape(C.host))),C.path&&(C.path=escape(unescape(C.path))),C.fragment&&(C.fragment=encodeURI(decodeURIComponent(C.fragment)))),D&&D.parse&&D.parse(C,k)}else C.error=C.error||"URI can not be parsed.";return C}const S={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:b};return Yu.exports=S,Yu.exports.default=S,Yu.exports.fastUri=S,Yu.exports}var gD;function rQ(){if(gD)return ng;gD=1,Object.defineProperty(ng,"__esModule",{value:!0});const t=nQ();return t.code='require("ajv/dist/runtime/uri").default',ng.default=t,ng}var fD;function sQ(){return fD||(fD=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=nb();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=Hk(),n=rb(),r=lB(),i=Gk(),c=yt(),d=ab(),u=Jf(),m=Lt(),h=oQ,f=rQ(),v=(Q,M)=>new RegExp(Q,M);v.code="new RegExp";const b=["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 C(Q){var M,G,V,L,z,X,de,ue,Ee,Ue,Z,ne,ve,ie,Te,_e,it,ct,Ge,at,Ne,Oe,He,Y,ae;const le=Q.strict,Ce=(M=Q.code)===null||M===void 0?void 0:M.optimize,Ae=Ce===!0||Ce===void 0?1:Ce||0,Re=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Ie=(L=Q.uriResolver)!==null&&L!==void 0?L:f.default;return{strictSchema:(X=(z=Q.strictSchema)!==null&&z!==void 0?z:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(Ue=(Ee=Q.strictTypes)!==null&&Ee!==void 0?Ee:le)!==null&&Ue!==void 0?Ue:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(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 E{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,...C(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:S,es5:G,lines:V}),this.logger=j(M.logger);const L=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&&I.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),R.call(this),M.validateFormats=L}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let L=h;V==="id"&&(L={...h},L.id=L.$id,delete L.$id),G&&M&&this.addMetaSchema(L,L[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 L=V(G);return"$async"in V||(this.errors=V.errors),L}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 L.call(this,M,G);async function L(Ue,Z){await z.call(this,Ue.$schema);const ne=this._addSchema(Ue,Z);return ne.validate||X.call(this,ne)}async function z(Ue){Ue&&!this.getSchema(Ue)&&await L.call(this,{$ref:Ue},!0)}async function X(Ue){try{return this._compileSchemaEnv(Ue)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,Ue)}}function de({missingSchema:Ue,missingRef:Z}){if(this.refs[Ue])throw new Error(`AnySchema ${Ue} is loaded but ${Z} cannot be resolved`)}async function ue(Ue){const Z=await Ee.call(this,Ue);this.refs[Ue]||await z.call(this,Z.$schema),this.refs[Ue]||this.addSchema(Z,Ue,G)}async function Ee(Ue){const Z=this._loading[Ue];if(Z)return Z;try{return await(this._loading[Ue]=V(Ue))}finally{delete this._loading[Ue]}}}addSchema(M,G,V,L=this.opts.validateSchema){if(Array.isArray(M)){for(const X of M)this.addSchema(X,void 0,V,L);return this}let z;if(typeof M=="object"){const{schemaId:X}=this.opts;if(z=M[X],z!==void 0&&typeof z!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||z),this._checkUnique(G),this.schemas[G]=this._addSchema(M,V,G,L,!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 L=this.validate(V,M);if(!L&&G){const z="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(z);else throw new Error(z)}return L}getSchema(M){let G;for(;typeof(G=D.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,L=new i.SchemaEnv({schema:{},schemaId:V});if(G=i.resolveSchema.call(this,L,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,z=>oe.call(this,z)),this;K.call(this,G);const L={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,L.type.length===0?z=>oe.call(this,z,L):z=>L.type.forEach(X=>oe.call(this,z,L,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 L=V.rules.findIndex(z=>z.keyword===M);L>=0&&V.rules.splice(L,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(L=>`${V}${L.instancePath} ${L.message}`).reduce((L,z)=>L+G+z)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const L of G){const z=L.split("/").slice(1);let X=M;for(const de of z)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ee}=ue.definition,Ue=X[de];Ee&&Ue&&(X[de]=se(Ue))}}return M}_removeAllSchemas(M,G){for(const V in M){const L=M[V];(!G||G.test(V))&&(typeof L=="string"?delete M[V]:L&&!L.meta&&(this._cache.delete(L.schema),delete M[V]))}}_addSchema(M,G,V,L=this.opts.validateSchema,z=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 Ee=d.getSchemaRefs.call(this,M,V);return ue=new i.SchemaEnv({schema:M,schemaId:de,meta:G,baseId:V,localRefs:Ee}),this._cache.set(ue.schema,ue),z&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),L&&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}}}E.ValidationError=a.default,E.MissingRefError=n.default,t.default=E;function P(Q,M,G,V="error"){for(const L in Q){const z=L;z in M&&this.logger[V](`${G}: option ${L}. ${Q[z]}`)}}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 I(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 b)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function j(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 L=M?.post;if(G&&L)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:z}=this;let X=L?z.post:z.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},z.rules.push(X)),z.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),z.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(L=>L.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]}}})(gw)),gw}var rg={},sg={},ig={},vD;function iQ(){if(vD)return ig;vD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ig.default=t,ig}var gi={},bD;function lQ(){if(bD)return gi;bD=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.callRef=gi.getValidate=void 0;const t=rb(),e=Dr(),o=yt(),a=Zi(),n=Gk(),r=Lt(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:b,validateName:S,opts:T,self:x}=f,{root:k}=b;if((h==="#"||h==="#/")&&v===k.baseId)return E();const C=n.resolveRef.call(x,k,v,h);if(C===void 0)throw new t.default(f.opts.uriResolver,v,h);if(C instanceof n.SchemaEnv)return P(C);return D(C);function E(){if(b===k)return d(u,S,b,b.$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}),I=m.name("valid"),U=u.subschema({schema:R,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:h},I);u.mergeEvaluated(U),u.ok(I)}}};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:b}=u,{allErrors:S,schemaEnv:T,opts:x}=b,k=x.passContext?a.default.this:o.nil;f?C():E();function C(){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 ${b.ValidationError})`,()=>v.throw(O)),P(O),S||v.assign(R,!1)}),u.ok(R)}function E(){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(!b.opts.unevaluated)return;const I=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(b.props!==!0)if(I&&!I.dynamicProps)I.props!==void 0&&(b.props=r.mergeEvaluated.props(v,I.props,b.props));else{const U=v.var("props",(0,o._)`${R}.evaluated.props`);b.props=r.mergeEvaluated.props(v,U,b.props,o.Name)}if(b.items!==!0)if(I&&!I.dynamicItems)I.items!==void 0&&(b.items=r.mergeEvaluated.items(v,I.items,b.items));else{const U=v.var("items",(0,o._)`${R}.evaluated.items`);b.items=r.mergeEvaluated.items(v,U,b.items,o.Name)}}}return gi.callRef=d,gi.default=i,gi}var yD;function cQ(){if(yD)return sg;yD=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=iQ(),e=lQ(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return sg.default=o,sg}var lg={},cg={},SD;function dQ(){if(SD)return cg;SD=1,Object.defineProperty(cg,"__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 cg.default=n,cg}var dg={},wD;function uQ(){if(wD)return dg;wD=1,Object.defineProperty(dg,"__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 dg.default=o,dg}var ug={},pg={},xD;function pQ(){if(xD)return pg;xD=1,Object.defineProperty(pg,"__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 pg.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',pg}var TD;function mQ(){if(TD)return ug;TD=1,Object.defineProperty(ug,"__esModule",{value:!0});const t=yt(),e=Lt(),o=pQ(),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 ug.default=n,ug}var mg={},kD;function hQ(){if(kD)return mg;kD=1,Object.defineProperty(mg,"__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,b=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,e.useFunc)(i,v),S=i.let("valid");i.try(()=>i.assign(S,(0,o._)`${b}(${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 mg.default=n,mg}var hg={},ED;function gQ(){if(ED)return hg;ED=1,Object.defineProperty(hg,"__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 hg.default=o,hg}var gg={},CD;function fQ(){if(CD)return gg;CD=1,Object.defineProperty(gg,"__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?b():S(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:C}=r.it;for(const E of c)if(k?.[E]===void 0&&!C.has(E)){const P=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${E}" is not defined at "${P}" (strictRequired)`;(0,o.checkStrictMode)(h,D,h.opts.strictRequired)}}function b(){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 C=i.let("valid",!0);r.block$data(C,()=>x(k,C)),r.ok(C)}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,C){r.setParams({missingProperty:k}),i.forOf(k,d,()=>{i.assign(C,(0,t.propertyInData)(i,u,k,f.ownProperties)),i.if((0,e.not)(C),()=>{r.error(),i.break()})},e.nil)}}};return gg.default=n,gg}var fg={},_D;function vQ(){if(_D)return fg;_D=1,Object.defineProperty(fg,"__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 fg.default=o,fg}var vg={},bg={},PD;function Wk(){if(PD)return bg;PD=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=dB();return t.code='require("ajv/dist/runtime/equal").default',bg.default=t,bg}var AD;function bQ(){if(AD)return vg;AD=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=Jf(),e=yt(),o=Lt(),a=Wk(),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 b=c.let("valid"),S=h.items?(0,t.getSchemaTypes)(h.items):[];i.block$data(b,T,(0,e._)`${f} === false`),i.ok(b);function T(){const E=c.let("i",(0,e._)`${d}.length`),P=c.let("j");i.setParams({i:E,j:P}),c.assign(b,!0),c.if((0,e._)`${E} > 1`,()=>(x()?k:C)(E,P))}function x(){return S.length>0&&!S.some(E=>E==="object"||E==="array")}function k(E,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._)`;${E}--;`,()=>{c.let(D,(0,e._)`${d}[${E}]`),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(b,!1).break()}).code((0,e._)`${O}[${D}] = ${E}`)})}function C(E,P){const D=(0,o.useFunc)(c,a.default),R=c.name("outer");c.label(R).for((0,e._)`;${E}--;`,()=>c.for((0,e._)`${P} = ${E}; ${P}--;`,()=>c.if((0,e._)`${D}(${d}[${E}], ${d}[${P}])`,()=>{i.error(),c.assign(b,!1).break(R)})))}}};return vg.default=r,vg}var yg={},RD;function yQ(){if(RD)return yg;RD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Wk(),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 yg.default=n,yg}var Sg={},DD;function SQ(){if(DD)return Sg;DD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Wk(),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 b=()=>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((C,E)=>x(k,E)))}r.pass(S);function T(){i.assign(S,!1),i.forOf("v",m,k=>i.if((0,t._)`${b()}(${c}, ${k})`,()=>i.assign(S,!0).break()))}function x(k,C){const E=u[C];return typeof E=="object"&&E!==null?(0,t._)`${b()}(${c}, ${k}[${C}])`:(0,t._)`${c} === ${E}`}}};return Sg.default=n,Sg}var OD;function wQ(){if(OD)return lg;OD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=dQ(),e=uQ(),o=mQ(),a=hQ(),n=gQ(),r=fQ(),i=vQ(),c=bQ(),d=yQ(),u=SQ(),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 lg.default=m,lg}var wg={},$c={},ND;function pB(){if(ND)return $c;ND=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.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 b=c.var("valid",(0,t._)`${f} <= ${i.length}`);c.if((0,t.not)(b),()=>v(b)),r.ok(b)}function v(b){c.forRange("i",i.length,f,S=>{r.subschema({keyword:m,dataProp:S,dataPropType:e.Type.Num},b),h.allErrors||c.if((0,t.not)(b),()=>c.break())})}}return $c.validateAdditionalItems=n,$c.default=a,$c}var xg={},Vc={},MD;function mB(){if(MD)return Vc;MD=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.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"),b=d.const("len",(0,t._)`${m}.length`);c.forEach((T,x)=>{(0,e.alwaysValidSchema)(f,T)||(d.if((0,t._)`${b} > ${x}`,()=>r.subschema({keyword:h,schemaProp:x,dataProp:x},v)),r.ok(v))});function S(T){const{opts:x,errSchemaPath:k}=f,C=c.length,E=C===T.minItems&&(C===T.maxItems||T[i]===!1);if(x.strictTuples&&!E){const P=`"${h}" is ${C}-tuple, but minItems or maxItems/${i} are not specified or different at path "${k}"`;(0,e.checkStrictMode)(f,P,x.strictTuples)}}}return Vc.validateTuple=n,Vc.default=a,Vc}var ID;function xQ(){if(ID)return xg;ID=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=mB(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,t.validateTuple)(o,"items")};return xg.default=e,xg}var Tg={},LD;function TQ(){if(LD)return Tg;LD=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=yt(),e=Lt(),o=Dr(),a=pB(),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 Tg.default=r,Tg}var kg={},BD;function kQ(){if(BD)return kg;BD=1,Object.defineProperty(kg,"__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 b=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 C=(0,t._)`${b} >= ${m}`;h!==void 0&&(C=(0,t._)`${C} && ${b} <= ${h}`),n.pass(C);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 C=r.name("_valid"),E=r.let("count",0);x(C,()=>r.if(C,()=>k(E)))}function x(C,E){r.forRange("i",0,b,P=>{n.subschema({keyword:"contains",dataProp:P,dataPropType:e.Type.Num,compositeRule:!0},C),E()})}function k(C){r.code((0,t._)`${C}++`),h===void 0?r.if((0,t._)`${C} >= ${m}`,()=>r.assign(S,!0).break()):(r.if((0,t._)`${C} > ${h}`,()=>r.assign(S,!1).break()),m===1?r.assign(S,!0):r.if((0,t._)`${C} >= ${m}`,()=>r.assign(S,!0)))}}};return kg.default=a,kg}var kw={},FD;function EQ(){return FD||(FD=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 b in u){const S=u[b];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,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,b=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},b);d.mergeValidEvaluated(T,b)},()=>m.var(b,!0)),d.ok(b))}t.validateSchemaDeps=c,t.default=n})(kw)),kw}var Eg={},jD;function CQ(){if(jD)return Eg;jD=1,Object.defineProperty(Eg,"__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 Eg.default=a,Eg}var Cg={},zD;function hB(){if(zD)return Cg;zD=1,Object.defineProperty(Cg,"__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:b}=f;if(f.props=!0,b.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?E(D):c.if(k(D),()=>E(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 C(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(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");b.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),C(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const I={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(I,R)}}};return Cg.default=r,Cg}var _g={},UD;function _Q(){if(UD)return _g;UD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=nb(),e=Dr(),o=Lt(),a=hB(),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)b(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 b(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 _g.default=n,_g}var Pg={},qD;function PQ(){if(qD)return Pg;qD=1,Object.defineProperty(Pg,"__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(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=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 E of f)b&&k(E),m.allErrors?C(E):(i.var(S,!0),C(E),i.if(S))}function k(E){for(const P in b)new RegExp(E).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,P=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${P})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,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 Pg.default=n,Pg}var Ag={},$D;function AQ(){if($D)return Ag;$D=1,Object.defineProperty(Ag,"__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 Ag.default=e,Ag}var Rg={},VD;function RQ(){if(VD)return Rg;VD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=e,Rg}var Dg={},HD;function DQ(){if(HD)return Dg;HD=1,Object.defineProperty(Dg,"__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((b,S)=>{let T;(0,e.alwaysValidSchema)(d,b)?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 Dg.default=a,Dg}var Og={},GD;function OQ(){if(GD)return Og;GD=1,Object.defineProperty(Og,"__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 Og.default=e,Og}var Ng={},WD;function NQ(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__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,b("then",S),b("else",S))}else u?i.if(f,b("then")):i.if((0,t.not)(f),b("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 b(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 Ng.default=a,Ng}var Mg={},KD;function MQ(){if(KD)return Mg;KD=1,Object.defineProperty(Mg,"__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 Mg.default=e,Mg}var YD;function IQ(){if(YD)return wg;YD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=pB(),e=xQ(),o=mB(),a=TQ(),n=kQ(),r=EQ(),i=CQ(),c=hB(),d=_Q(),u=PQ(),m=AQ(),h=RQ(),f=DQ(),v=OQ(),b=NQ(),S=MQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,b.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 wg.default=T,wg}var Ig={},Lg={},ZD;function LQ(){if(ZD)return Lg;ZD=1,Object.defineProperty(Lg,"__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:b}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,t._)`${k}.type || "string"`).assign(E,(0,t._)`${k}.validate`),()=>r.assign(C,(0,t._)`"string"`).assign(E,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function T(){const x=b.formats[d];if(!x){P();return}if(x===!0)return;const[k,C,E]=D(x);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const I=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:I});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 ${E}(${i})`}return typeof C=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Lg.default=o,Lg}var QD;function BQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const e=[LQ().default];return Ig.default=e,Ig}var wl={},JD;function FQ(){return JD||(JD=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.contentVocabulary=wl.metadataVocabulary=void 0,wl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wl}var XD;function jQ(){if(XD)return rg;XD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t=cQ(),e=wQ(),o=IQ(),a=BQ(),n=FQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Zu={},eO;function zQ(){if(eO)return Zu;eO=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Zu.DiscrError=t={})),Zu}var tO;function UQ(){if(tO)return Bg;tO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const t=yt(),e=zQ(),o=Gk(),a=rb(),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 b=m.propertyName;if(typeof b!="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)(b)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:b})),c.ok(S);function x(){const E=C();d.if(!1);for(const P in E)d.elseIf((0,t._)`${T} === ${P}`),d.assign(S,k(E[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:b}),d.endIf()}function k(E){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},P);return c.mergeEvaluated(D,t.Name),P}function C(){var E;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let j=v[B];if(j?.$ref&&!(0,n.schemaHasRulesButRef)(j,f.self.RULES)){const W=j.$ref;if(j=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),j instanceof o.SchemaEnv&&(j=j.schema),j===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=j?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(j)),I(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function I(B,j){if(B.const)U(B.const,j);else if(B.enum)for(const F of B.enum)U(F,j);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,j){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${b}" values must be unique strings`);P[B]=j}}}};return Bg.default=i,Bg}const qQ="http://json-schema.org/draft-07/schema#",$Q="http://json-schema.org/draft-07/schema#",VQ="Core schema meta-schema",HQ={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:[]}},GQ=["object","boolean"],WQ={$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:"#"}},KQ={$schema:qQ,$id:$Q,title:VQ,definitions:HQ,type:GQ,properties:WQ,default:!0};var oO;function YQ(){return oO||(oO=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=sQ(),a=jQ(),n=UQ(),r=KQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,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=nb();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=Hk();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=rb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},Ew={},aO;function ZQ(){return aO||(aO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,j){return{validate:B,compare:j}}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(),b),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:C,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,b),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 j=a.exec(B);if(!j)return!1;const F=+j[1],W=+j[2],oe=+j[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,j){if(B&&j)return B>j?1:B<j?-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,j){if(!(B&&j))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+j).valueOf();if(F&&W)return F-W}function m(B,j){if(!(B&&j))return;const F=c.exec(B),W=c.exec(j);if(F&&W)return B=F[1]+F[2]+F[3],j=W[1]+W[2]+W[3],B>j?1:B<j?-1:0}const h=/t|\s/i;function f(B){const j=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&j(oe[1])}}function v(B,j){if(!(B&&j))return;const F=new Date(B).valueOf(),W=new Date(j).valueOf();if(F&&W)return F-W}function b(B,j){if(!(B&&j))return;const[F,W]=B.split(h),[oe,H]=j.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 C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const I=/[^\\]\\Z/;function U(B){if(I.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(Ew)),Ew}var Cw={},nO;function QQ(){return nO||(nO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=YQ(),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:b}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,b.RULES.all.format.definition,"format");S.$data?T():x();function T(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function x(){const C=S.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const P=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(P))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Cw)),Cw}var rO;function JQ(){return rO||(rO=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,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.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})(Fg,Fg.exports)),Fg.exports}var XQ=JQ();const Jxe=Gl(XQ);function eJ({studioUrl:t,meshUrl:e},o){return t??e??o}let Kk;Kk=globalThis.crypto;async function tJ(t){return(await Kk).getRandomValues(new Uint8Array(t))}async function oJ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await tJ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function aJ(t){return await oJ(t)}async function nJ(t){const e=await(await Kk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Xxe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await aJ(t),o=await nJ(e);return{code_verifier:e,code_challenge:o}}const Ca=SL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:nK.custom,message:"URL must be parseable",fatal:!0}),d7}).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"}),eTe=_a({resource:$().url(),authorization_servers:je(Ca).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()}),rJ=_a({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.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:Ca.optional(),revocation_endpoint:Ca.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()}),sJ=_a({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.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:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),tTe=we({...sJ.shape,...rJ.pick({code_challenge_methods_supported:!0}).shape}),oTe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:AL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),aTe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),sO=Ca.optional().or(Qe("").transform(()=>{})),iJ=we({redirect_uris:je(Ca),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ca.optional(),logo_uri:sO,scope:$().optional(),contacts:je($()).optional(),tos_uri:sO,policy_uri:$().optional(),jwks_uri:Ca.optional(),jwks:RW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),lJ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),nTe=iJ.merge(lJ);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 gT extends Oa{}gT.errorCode="invalid_request";class fT extends Oa{}fT.errorCode="invalid_client";class vT extends Oa{}vT.errorCode="invalid_grant";class bT extends Oa{}bT.errorCode="unauthorized_client";class yT extends Oa{}yT.errorCode="unsupported_grant_type";class ST extends Oa{}ST.errorCode="invalid_scope";class wT extends Oa{}wT.errorCode="access_denied";class xT extends Oa{}xT.errorCode="server_error";class TT extends Oa{}TT.errorCode="temporarily_unavailable";class kT extends Oa{}kT.errorCode="unsupported_response_type";class ET extends Oa{}ET.errorCode="unsupported_token_type";class CT extends Oa{}CT.errorCode="invalid_token";class _T extends Oa{}_T.errorCode="method_not_allowed";class PT extends Oa{}PT.errorCode="too_many_requests";class AT extends Oa{}AT.errorCode="invalid_client_metadata";class RT extends Oa{}RT.errorCode="insufficient_scope";class DT extends Oa{}DT.errorCode="invalid_target";const rTe={[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,[ET.errorCode]:ET,[CT.errorCode]:CT,[_T.errorCode]:_T,[PT.errorCode]:PT,[AT.errorCode]:AT,[RT.errorCode]:RT,[DT.errorCode]:DT};async function gB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof tb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function cJ(t,e){return await t.readResource({uri:e})}function sTe(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=no.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>gB(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 iTe(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=no.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>gB(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],Ls(c)}function lTe(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=no.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>cJ(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 fB="ui-resource-html";function cTe(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=no.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=`${eJ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.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 vB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class OT extends Error{constructor(e,o,a){super(e),this.status=o,this.code=a,this.name="StudioToolError"}status;code}function bB(t){return t instanceof OT&&Object.values(vB).includes(t.code??"")?t.code:null}async function dJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r;try{const i=await a.json();i?.error&&(n=i.error),typeof i?.code=="string"&&(r=i.code)}catch{}throw new OT(n,a.status,r)}try{return await a.json()}catch{throw new OT(`${e} returned a non-JSON response`,a.status)}}function Yk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>dJ(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 Zk(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 uJ="studio-ui-resources",Xf="html",pJ=10080*60*1e3,mJ=50,hJ=16*1024*1024;function gJ(t){return t[0]==="mcp"&&t[1]===fB}function sb(){return new Promise((t,e)=>{const o=indexedDB.open(uJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Fd(t,e){return t.transaction(Xf,e).objectStore(Xf)}function NT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function fJ(t){if(!(typeof indexedDB>"u"))try{const e=await sb(),o=Fd(e,"readonly"),a=await NT(o.getAllKeys()),n=await NT(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>pJ||d>=mJ){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=Fd(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function vJ(t){if(typeof indexedDB>"u")return()=>{};const e=sb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!gJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>hJ||e.then(r=>{if(r)try{Fd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function bJ(){typeof indexedDB>"u"||sb().then(t=>Fd(t,"readwrite").clear()).catch(()=>{})}async function dTe(t){if(!(typeof indexedDB>"u"))try{const e=await sb(),o=await NT(Fd(e,"readonly").getAllKeys()),a=Fd(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===fB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Qk=1440*60*1e3,yJ=1e3,SJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),wJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let yB=!1,SB=!1;function xJ(t){const e=t[0];return typeof e=="string"&&SJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&wJ.has(t[4])}function TJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(ev);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Qk;if(o.buster!=="4.566.0"||a||!o.state){window.localStorage.removeItem(ev);return}UV(t,o.state),t.invalidateQueries({queryKey:no.publicConfig(),refetchType:"none"}),yB=!0}catch{AJ()}}function kJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=zV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&xJ(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.566.0",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,yJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const wB="studio:org-cache:",EJ=20;function CJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Qk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>EJ;)o.shift();return Object.fromEntries(o)}function xB(t){return`${wB}${t}`}function _J(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(xB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Qk?null:(SB=!0,a)}catch{return null}}function PJ(t,e,o){if(!(typeof window>"u"))try{const a=xB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(CJ(r)))}catch{}}function AJ(){if(bJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(wB)&&window.localStorage.removeItem(e)}}catch{}}function RJ(){return yB}function DJ(){return SB}function iO(t){const e=bB(t);if(!e)return;const o=e===vB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Bd.error(o,{id:`plan-refusal:${e}`})}const tv={feature:"",budget:""},Zl=new JV({queryCache:new mI({onError:iO}),mutationCache:new pI({onError:iO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>bB(e)===null&&t<1,gcTime:300*1e3}}});Zk(Zl);TJ(Zl);kJ(Zl);fJ(Zl);vJ(Zl);const Jk=5*6e4;async function TB(){return(await(await fetch("/api/config")).json()).config}function kB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:no.publicConfig(),queryFn:TB,staleTime:Jk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function uTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:no.publicConfig(),queryFn:TB,staleTime:Jk},t[0]=e):e=t[0],Ls(e).data}const EB=A.createContext(void 0);function OJ(t){const e=ye.c(3),{children:o}=t,a=kB();let n;return e[0]!==o||e[1]!==a.auth?(n=y.jsx(EB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function pTe(){const t=A.useContext(EB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var NJ={},lO={};const wf=Object.create(null),Qu=t=>NJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?wf:globalThis),Xn=new Proxy(wf,{get(t,e){return Qu()[e]??wf[e]},has(t,e){return e in Qu()||e in wf},set(t,e,o){const a=Qu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Qu(!0);return delete o[e],!0},ownKeys(){const t=Qu(!0);return Object.keys(t)}});function Qo(t,e){return typeof process<"u"&&lO?lO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Ju=1,ma=4,Vr=8,Nn=24,cO={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},MJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Nn,DRONE:Vr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Vr,TRAVIS:Vr})),IJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function LJ(){if(Qo("FORCE_COLOR")!==void 0)switch(Qo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Vr;case"3":return Nn;default:return Ju}if(Qo("NODE_DISABLE_COLORS")!==void 0&&Qo("NODE_DISABLE_COLORS")!==""||Qo("NO_COLOR")!==void 0&&Qo("NO_COLOR")!==""||Qo("TERM")==="dumb")return Ju;if(Qo("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 MJ)if(t in Xn)return e;return Qo("CI_NAME")==="codeship"?Vr:Ju}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Qo("TEAMCITY_VERSION"))!==null?ma:Ju;switch(Qo("TERM_PROGRAM")){case"iTerm.app":return!Qo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Qo("TERM_PROGRAM_VERSION"))!==null?Vr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Vr}if(Qo("COLORTERM")==="truecolor"||Qo("COLORTERM")==="24bit")return Nn;if(Qo("TERM")){if(/truecolor/.exec(Qo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Qo("TERM"))!==null)return Vr;const t=Qo("TERM").toLowerCase();if(cO[t])return cO[t];if(IJ.some(e=>e.exec(t)!==null))return ma}return Qo("COLORTERM")?ma:Ju}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},MT=["debug","info","success","warn","error"];function BJ(t,e){return MT.indexOf(e)>=MT.indexOf(t)}const FJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},jJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Hr.dim}${a}${Hr.reset} ${FJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},zJ=t=>{const e="warn",o=LJ()!==1,a=(n,r,i=[])=>{if(!BJ(e,n))return;const c=jJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(MT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};zJ();function UJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ep=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function qJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Ep(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function $J(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Ep(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Ep?e:new Ep(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function _w(t,e="/api/auth"){if($J(t),qJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function VJ(t,e,o,a,n){if(t)return _w(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 _w(r,e)}if(typeof window<"u"&&window.location)return _w(window.location.origin,e)}const HJ={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{}}}},GJ={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*:/},WJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,dO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},KJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function YJ(t){return t instanceof Date&&!isNaN(t.getTime())}function ZJ(t){const e=KJ.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 YJ(f)?f:null}function QJ(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 dO)return dO[c];if(!WJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(GJ).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=ZJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function JJ(t,e={strict:!0}){return QJ(t,e)}let fr=[],fi=0;const jg=4,XJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+jg;r<fr.length;)fr[r]===a?fr.splice(r,jg):r+=jg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){XJ.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+=jg)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},eX=5,zg=6,Ug=10;let tX=(t,e,o,a)=>(t.events=t.events||{},t.events[o+Ug]||(t.events[o+Ug]=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+Ug](),delete t.events[o+Ug])});const oX=1e3;let CB=(t,e)=>tX(t,a=>{let n=e(a);n&&t.events[zg].push(n)},eX,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[zg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[zg])i();t.events[zg]=[]}},oX)},()=>{t.listen=n,t.off=r}});function aX(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 nX=()=>typeof window>"u",hp=(t,e,o,a)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{nX()||(i?await r():CB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},Pw=Symbol.for("better-auth:broadcast-channel"),rX=()=>Math.floor(Date.now()/1e3);var sX=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:rX()}))}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 Aw(t="better-auth.message"){return globalThis[Pw]||(globalThis[Pw]=new sX(t)),globalThis[Pw]}const Rw=Symbol.for("better-auth:focus-manager");var iX=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 uO(){return globalThis[Rw]||(globalThis[Rw]=new iX),globalThis[Rw]}const Dw=Symbol.for("better-auth:online-manager");var lX=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 Ow(){return globalThis[Dw]||(globalThis[Dw]=new lX),globalThis[Dw]}const Hc=()=>Math.floor(Date.now()/1e3),cX=5;function dX(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||Ow().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Hc(),o.set(!o.get());return}const C=e.get();if(k?.event==="poll"){d.lastSessionRequest=Hc(),a("/get-session").then(E=>{E.error?e.set({...C,data:null,error:E.error}):e.set({...C,data:E.data,error:null}),d.lastSync=Hc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<cX)return;d.lastSessionRequest=Hc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Hc(),o.set(!o.get()))},h=k=>{Aw().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=Aw().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=uO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Ow().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),S(),Aw().setup(),uO().setup(),Ow().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 uX(t,e){const o=hd(!1),a=hp(o,"/get-session",t,{method:"GET"});return CB(a,()=>{const n=dX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Nw(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 IT(t,e,o=".",a){if(!Nw(e))return IT(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]]:Nw(i)&&Nw(n[r])?n[r]=IT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function pX(t){return(...e)=>e.reduce((o,a)=>IT(o,a,"",t),{})}const mX=pX();var hX=Object.defineProperty,gX=Object.defineProperties,fX=Object.getOwnPropertyDescriptors,pO=Object.getOwnPropertySymbols,vX=Object.prototype.hasOwnProperty,bX=Object.prototype.propertyIsEnumerable,mO=(t,e,o)=>e in t?hX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))vX.call(e,o)&&mO(t,o,e[o]);if(pO)for(var o of pO(e))bX.call(e,o)&&mO(t,o,e[o]);return t},Ur=(t,e)=>gX(t,fX(e)),yX=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)}},SX=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}},hO=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}},wX=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 xX(t){if(typeof t=="number")return new hO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new hO(t);case"exponential":return new wX(t);default:throw new Error("Invalid retry strategy")}}var TX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},kX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function EX(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 kX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function CX(t){try{return JSON.parse(t),!0}catch{return!1}}function LT(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 gO(t){try{return JSON.parse(t)}catch{return t}}function fO(t){return typeof t=="function"}function _X(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&fO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&fO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function PX(t){const e=new Headers(t?.headers),o=await TX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=AX(t?.body);a&&e.set("content-type",a)}return e}function AX(t){return LT(t)?"application/json":null}function RX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(LT(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"&&LT(t.body)?new URLSearchParams(t.body).toString():t.body}function DX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return PB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function OX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var NX=class _B extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,_B.prototype)}};async function xf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new NX(o.issues);return o.value}var PB=["get","post","put","patch","delete"],MX=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 xf(u.input,o?.body):o?.body,params:u.params?await xf(u.params,o?.params):o?.params,query:u.query?await xf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),IX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],MX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await BT(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 BT(o,n)}return e};function LX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];PB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[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 b of f)d.append(h,b);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 b=a[f];i=i.replace(v,b)}}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 BT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await SX(t,e),v=_X(f),b=new AbortController,S=(o=f.signal)!=null?o:b.signal,T=LX(h,f),x=RX(f),k=await PX(f),C=DX(h,f);let E=Ur(Sr({},f),{url:T,headers:k,body:x,method:C,signal:S});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:P}=OX(f,b);let D=await v(E.url,E);P();const R={response:D,request:E};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(!(E.method!=="HEAD"))return{data:"",error:null};const W=EX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:gO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await xf(E.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:gO,I=await D.text(),U=CX(I),B=U?await O(I):null,j={response:D,responseText:I,request:E,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},j),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=xX(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 BT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new yX(D.status,D.statusText,U?B:I);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const BX=(t,e)=>{const o="credentials"in Request.prototype,a=VJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==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=IX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?JJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[HJ],...n]}),{$sessionSignal:f,session:v}=uX(h,t),b=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(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(T,E.getAtoms?.(h)),E.pathMethods&&Object.assign(x,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{T[E].set(!T[E].get())},listen:(E,P)=>{T[E].subscribe(P)},atoms:T};for(const E of b)E.getActions&&(S=mX(E.getActions?.(h,C,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:C}};function FX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function jX(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 zX(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"||FX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...S}=h,T={...f,...b},x=jX(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 C=n.filter(P=>P.matcher(m));if(!C.length)return;const E=new Set;for(const P of C){const D=a[P.signal];if(!D)return;if(E.has(P.signal))continue;E.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function UX(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?aX(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function qX(t){return`use${UJ(t)}`}function $X(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=BX(t),c={};for(const[d,u]of Object.entries(a))c[qX(d)]=()=>UX(u);return zX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function VX(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 Ep("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 AB(t){return{newRole(e){return VX(e)},statements:t}}const HX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},RB=AB(HX),DB=RB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),OB=RB.newRole({user:[],session:[]}),GX={admin:DB,user:OB},WX=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||GX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},KX=t=>{const e={admin:DB,user:OB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>WX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},YX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),ZX=()=>({id:"magic-link",$InferServerPlugin:{}}),QX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Xk=AB(QX),NB=Xk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),MB=Xk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),IB=Xk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),JX={admin:NB,owner:MB,member:IB},XX=(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},eee=t=>XX(t,t.options.roles||JX),tee=t=>{const e=hd(!1),o=hd(!1),a=hd(!1),n=hd(!1),r={admin:NB,member:IB,owner:MB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>eee({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=hp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:hp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:hp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:hp([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"}]}},oee="1.6.11",aee=t=>({id:"sso-client",version:oee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function nee(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 eE(t){return nee(t?.metadata).archived===!0}function LB(t){const e=new Set;return t.filter(o=>eE(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const ree="Organization is archived",ga=$X({plugins:[tee({}),KX(),aee(),ZX(),YX()]}),see=8e3;let vO;function BB(){return vO??=new Promise(t=>{const e=setTimeout(t,see);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),vO}const iee=we({data:we({user:we({id:$()})}).nullish()});function lee(){const t=iee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const cee=3e4;let gp=null,qg=null;function FB(){if(gp&&gp.expiresAt>Date.now())return Promise.resolve(gp.result);if(qg)return qg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:LB(e.data)}:e;return o.data&&(gp={result:o,expiresAt:Date.now()+cee}),o}).finally(()=>{qg=null});return qg=t,t}function mTe(){const t=ga.useListOrganizations(),e=t.data?LB(t.data):void 0;return{...t,data:e}}function hTe(){gp=null}const dee="modulepreload",uee=function(t){return"/"+t},bO={},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=uee(u),u in bO)return;bO[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":dee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(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 pee(t){try{return JSON.parse(t)}catch{return}}function yO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?pee(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 mee(t,e){const o=ye.c(17),a=Kl();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=()=>yO(t,e),c=()=>yO(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}=Ls(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=b=>{const S=a.getQueryData(r),T=typeof b=="function"?b(S):b;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 Qi={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},jB=["en","pt-BR"],gTe={en:"en-US","pt-BR":"pt-BR"};function tE(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const hee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:tE(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},zB=["auto","readonly"],fTe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],gee=["light","dark","system"];function vTe(){try{const t=JSON.parse(localStorage.getItem(Qi.preferences())??"{}");if(zB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ib(){try{const t=JSON.parse(localStorage.getItem(Qi.preferences())??"{}");if(jB.includes(t.language))return t.language}catch{}return tE()}function fee(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 oE(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Qi.preferences(),t[0]=e):e=t[0],mee(e,vee)}function vee(t){const e={...hee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,zB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),gee.includes(e.theme)||(e.theme="system"),jB.includes(e.language)||(e.language=tE()),e.taskBoardLaneVisibility=fee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const bee={"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"},yee={"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"},See={"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 b in u){const S=u[b];if(S.length===0)continue;const T=(0,a.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,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,b=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},b);d.mergeValidEvaluated(T,b)},()=>m.var(b,!0)),d.ok(b))}t.validateSchemaDeps=c,t.default=n})(kw)),kw}var Eg={},jD;function CQ(){if(jD)return Eg;jD=1,Object.defineProperty(Eg,"__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 Eg.default=a,Eg}var Cg={},zD;function hB(){if(zD)return Cg;zD=1,Object.defineProperty(Cg,"__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:b}=f;if(f.props=!0,b.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?E(D):c.if(k(D),()=>E(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 C(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(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");b.removeAdditional==="failing"?(P(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),C(D)})):(P(D,R),v||c.if((0,e.not)(R),()=>c.break()))}}function P(D,R,O){const I={keyword:"additionalProperties",dataProp:D,dataPropType:a.Type.Str};O===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(I,R)}}};return Cg.default=r,Cg}var _g={},UD;function _Q(){if(UD)return _g;UD=1,Object.defineProperty(_g,"__esModule",{value:!0});const t=nb(),e=Dr(),o=Lt(),a=hB(),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)b(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 b(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 _g.default=n,_g}var Pg={},qD;function PQ(){if(qD)return Pg;qD=1,Object.defineProperty(Pg,"__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(E=>(0,o.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=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 E of f)b&&k(E),m.allErrors?C(E):(i.var(S,!0),C(E),i.if(S))}function k(E){for(const P in b)new RegExp(E).test(P)&&(0,o.checkStrictMode)(m,`property ${P} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,P=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${P})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,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 Pg.default=n,Pg}var Ag={},$D;function AQ(){if($D)return Ag;$D=1,Object.defineProperty(Ag,"__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 Ag.default=e,Ag}var Rg={},VD;function RQ(){if(VD)return Rg;VD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=e,Rg}var Dg={},HD;function DQ(){if(HD)return Dg;HD=1,Object.defineProperty(Dg,"__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((b,S)=>{let T;(0,e.alwaysValidSchema)(d,b)?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 Dg.default=a,Dg}var Og={},GD;function OQ(){if(GD)return Og;GD=1,Object.defineProperty(Og,"__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 Og.default=e,Og}var Ng={},WD;function NQ(){if(WD)return Ng;WD=1,Object.defineProperty(Ng,"__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,b("then",S),b("else",S))}else u?i.if(f,b("then")):i.if((0,t.not)(f),b("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 b(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 Ng.default=a,Ng}var Mg={},KD;function MQ(){if(KD)return Mg;KD=1,Object.defineProperty(Mg,"__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 Mg.default=e,Mg}var YD;function IQ(){if(YD)return wg;YD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=pB(),e=xQ(),o=mB(),a=TQ(),n=kQ(),r=EQ(),i=CQ(),c=hB(),d=_Q(),u=PQ(),m=AQ(),h=RQ(),f=DQ(),v=OQ(),b=NQ(),S=MQ();function T(x=!1){const k=[m.default,h.default,f.default,v.default,b.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 wg.default=T,wg}var Ig={},Lg={},ZD;function LQ(){if(ZD)return Lg;ZD=1,Object.defineProperty(Lg,"__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:b}=m;if(!h.validateFormats)return;c?S():T();function S(){const x=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,t._)`${x}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,t._)`${k}.type || "string"`).assign(E,(0,t._)`${k}.validate`),()=>r.assign(C,(0,t._)`"string"`).assign(E,k)),a.fail$data((0,t.or)(P(),D()));function P(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=v.$async?(0,t._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function T(){const x=b.formats[d];if(!x){P();return}if(x===!0)return;const[k,C,E]=D(x);k===n&&a.pass(R());function P(){if(h.strictSchema===!1){b.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const I=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:I});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 ${E}(${i})`}return typeof C=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Lg.default=o,Lg}var QD;function BQ(){if(QD)return Ig;QD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const e=[LQ().default];return Ig.default=e,Ig}var wl={},JD;function FQ(){return JD||(JD=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.contentVocabulary=wl.metadataVocabulary=void 0,wl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],wl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),wl}var XD;function jQ(){if(XD)return rg;XD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t=cQ(),e=wQ(),o=IQ(),a=BQ(),n=FQ(),r=[t.default,e.default,(0,o.default)(),a.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Zu={},eO;function zQ(){if(eO)return Zu;eO=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Zu.DiscrError=t={})),Zu}var tO;function UQ(){if(tO)return Bg;tO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const t=yt(),e=zQ(),o=Gk(),a=rb(),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 b=m.propertyName;if(typeof b!="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)(b)}`);d.if((0,t._)`typeof ${T} == "string"`,()=>x(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:T,tagName:b})),c.ok(S);function x(){const E=C();d.if(!1);for(const P in E)d.elseIf((0,t._)`${T} === ${P}`),d.assign(S,k(E[P]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:T,tagName:b}),d.endIf()}function k(E){const P=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},P);return c.mergeEvaluated(D,t.Name),P}function C(){var E;const P={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let j=v[B];if(j?.$ref&&!(0,n.schemaHasRulesButRef)(j,f.self.RULES)){const W=j.$ref;if(j=o.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),j instanceof o.SchemaEnv&&(j=j.schema),j===void 0)throw new a.default(f.opts.uriResolver,f.baseId,W)}const F=(E=j?.properties)===null||E===void 0?void 0:E[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(j)),I(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return P;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function I(B,j){if(B.const)U(B.const,j);else if(B.enum)for(const F of B.enum)U(F,j);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,j){if(typeof B!="string"||B in P)throw new Error(`discriminator: "${b}" values must be unique strings`);P[B]=j}}}};return Bg.default=i,Bg}const qQ="http://json-schema.org/draft-07/schema#",$Q="http://json-schema.org/draft-07/schema#",VQ="Core schema meta-schema",HQ={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:[]}},GQ=["object","boolean"],WQ={$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:"#"}},KQ={$schema:qQ,$id:$Q,title:VQ,definitions:HQ,type:GQ,properties:WQ,default:!0};var oO;function YQ(){return oO||(oO=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=sQ(),a=jQ(),n=UQ(),r=KQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,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=nb();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=Hk();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=rb();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},Ew={},aO;function ZQ(){return aO||(aO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,j){return{validate:B,compare:j}}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(),b),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:C,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,b),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 j=a.exec(B);if(!j)return!1;const F=+j[1],W=+j[2],oe=+j[3];return W>=1&&W<=12&&oe>=1&&oe<=(W===2&&o(F)?29:n[W])}function i(B,j){if(B&&j)return B>j?1:B<j?-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,j){if(!(B&&j))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+j).valueOf();if(F&&W)return F-W}function m(B,j){if(!(B&&j))return;const F=c.exec(B),W=c.exec(j);if(F&&W)return B=F[1]+F[2]+F[3],j=W[1]+W[2]+W[3],B>j?1:B<j?-1:0}const h=/t|\s/i;function f(B){const j=d(B);return function(W){const oe=W.split(h);return oe.length===2&&r(oe[0])&&j(oe[1])}}function v(B,j){if(!(B&&j))return;const F=new Date(B).valueOf(),W=new Date(j).valueOf();if(F&&W)return F-W}function b(B,j){if(!(B&&j))return;const[F,W]=B.split(h),[oe,H]=j.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 C(B){return k.lastIndex=0,k.test(B)}const E=-2147483648,P=2**31-1;function D(B){return Number.isInteger(B)&&B<=P&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const I=/[^\\]\\Z/;function U(B){if(I.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(Ew)),Ew}var Cw={},nO;function QQ(){return nO||(nO=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=YQ(),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:b}=f;if(!v.validateFormats)return;const S=new e.KeywordCxt(f,b.RULES.all.format.definition,"format");S.$data?T():x();function T(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${C}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,k(E)))}function x(){const C=S.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const P=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(C)}`:void 0});c.fail$data(k(P))}function k(C){return(0,o._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(Cw)),Cw}var rO;function JQ(){return rO||(rO=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,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.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})(Fg,Fg.exports)),Fg.exports}var XQ=JQ();const Jxe=Gl(XQ);function eJ({studioUrl:t,meshUrl:e},o){return t??e??o}let Kk;Kk=globalThis.crypto;async function tJ(t){return(await Kk).getRandomValues(new Uint8Array(t))}async function oJ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%e.length;let a="";for(;a.length<t;){const n=await tJ(t-a.length);for(const r of n)r<o&&(a+=e[r%e.length])}return a}async function aJ(t){return await oJ(t)}async function nJ(t){const e=await(await Kk).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Xxe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await aJ(t),o=await nJ(e);return{code_verifier:e,code_challenge:o}}const Ca=SL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:nK.custom,message:"URL must be parseable",fatal:!0}),d7}).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"}),eTe=_a({resource:$().url(),authorization_servers:je(Ca).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()}),rJ=_a({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,registration_endpoint:Ca.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:Ca.optional(),revocation_endpoint:Ca.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()}),sJ=_a({issuer:$(),authorization_endpoint:Ca,token_endpoint:Ca,userinfo_endpoint:Ca.optional(),jwks_uri:Ca,registration_endpoint:Ca.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:Ca.optional(),op_tos_uri:Ca.optional(),client_id_metadata_document_supported:Vt().optional()}),tTe=we({...sJ.shape,...rJ.pick({code_challenge_methods_supported:!0}).shape}),oTe=we({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:AL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),aTe=we({error:$(),error_description:$().optional(),error_uri:$().optional()}),sO=Ca.optional().or(Qe("").transform(()=>{})),iJ=we({redirect_uris:je(Ca),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Ca.optional(),logo_uri:sO,scope:$().optional(),contacts:je($()).optional(),tos_uri:sO,policy_uri:$().optional(),jwks_uri:Ca.optional(),jwks:RW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),lJ=we({client_id:$(),client_secret:$().optional(),client_id_issued_at:Mt().optional(),client_secret_expires_at:Mt().optional()}).strip(),nTe=iJ.merge(lJ);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 gT extends Oa{}gT.errorCode="invalid_request";class fT extends Oa{}fT.errorCode="invalid_client";class vT extends Oa{}vT.errorCode="invalid_grant";class bT extends Oa{}bT.errorCode="unauthorized_client";class yT extends Oa{}yT.errorCode="unsupported_grant_type";class ST extends Oa{}ST.errorCode="invalid_scope";class wT extends Oa{}wT.errorCode="access_denied";class xT extends Oa{}xT.errorCode="server_error";class TT extends Oa{}TT.errorCode="temporarily_unavailable";class kT extends Oa{}kT.errorCode="unsupported_response_type";class ET extends Oa{}ET.errorCode="unsupported_token_type";class CT extends Oa{}CT.errorCode="invalid_token";class _T extends Oa{}_T.errorCode="method_not_allowed";class PT extends Oa{}PT.errorCode="too_many_requests";class AT extends Oa{}AT.errorCode="invalid_client_metadata";class RT extends Oa{}RT.errorCode="insufficient_scope";class DT extends Oa{}DT.errorCode="invalid_target";const rTe={[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,[ET.errorCode]:ET,[CT.errorCode]:CT,[_T.errorCode]:_T,[PT.errorCode]:PT,[AT.errorCode]:AT,[RT.errorCode]:RT,[DT.errorCode]:DT};async function gB(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(o){if(o instanceof tb&&o.code===qp.MethodNotFound)return{resources:[]};throw o}}async function cJ(t,e){return await t.readResource({uri:e})}function sTe(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=no.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>gB(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 iTe(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=no.mcpResourcesList(o),e[3]=o,e[4]=n):n=e[4];let r;e[5]!==o?(r=()=>gB(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],Ls(c)}function lTe(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=no.mcpReadResource(o,n),e[4]=o,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==o||e[8]!==n?(i=()=>cJ(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 fB="ui-resource-html";function cTe(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=no.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=`${eJ({studioUrl:i,meshUrl:a},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.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 vB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class OT extends Error{constructor(e,o,a){super(e),this.status=o,this.code=a,this.name="StudioToolError"}status;code}function bB(t){return t instanceof OT&&Object.values(vB).includes(t.code??"")?t.code:null}async function dJ(t,e,o){const a=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o??{})});if(!a.ok){let n=`${e} failed (${a.status})`,r;try{const i=await a.json();i?.error&&(n=i.error),typeof i?.code=="string"&&(r=i.code)}catch{}throw new OT(n,a.status,r)}try{return await a.json()}catch{throw new OT(`${e} returned a non-JSON response`,a.status)}}function Yk(){const t=ye.c(5),{org:e}=Yi(),o=e.slug;let a;t[0]!==o?(a=(r,i)=>dJ(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 Zk(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 uJ="studio-ui-resources",Xf="html",pJ=10080*60*1e3,mJ=50,hJ=16*1024*1024;function gJ(t){return t[0]==="mcp"&&t[1]===fB}function sb(){return new Promise((t,e)=>{const o=indexedDB.open(uJ,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Xf)||o.result.createObjectStore(Xf)},o.onsuccess=()=>t(o.result),o.onerror=()=>e(o.error)})}function Fd(t,e){return t.transaction(Xf,e).objectStore(Xf)}function NT(t){return new Promise((e,o)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>o(t.error)})}async function fJ(t){if(!(typeof indexedDB>"u"))try{const e=await sb(),o=Fd(e,"readonly"),a=await NT(o.getAllKeys()),n=await NT(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>pJ||d>=mJ){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=Fd(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function vJ(t){if(typeof indexedDB>"u")return()=>{};const e=sb().catch(()=>null);return t.getQueryCache().subscribe(o=>{const a=o.query;if(!Array.isArray(a.queryKey)||!gJ(a.queryKey)||a.state.status!=="success")return;const n=a.state.data;typeof n!="string"||n.length>hJ||e.then(r=>{if(r)try{Fd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(a.queryKey))}catch{}})})}function bJ(){typeof indexedDB>"u"||sb().then(t=>Fd(t,"readwrite").clear()).catch(()=>{})}async function dTe(t){if(!(typeof indexedDB>"u"))try{const e=await sb(),o=await NT(Fd(e,"readonly").getAllKeys()),a=Fd(e,"readwrite");for(const n of o)try{const r=JSON.parse(String(n));r[1]===fB&&r[3]===t&&a.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Qk=1440*60*1e3,yJ=1e3,SJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),wJ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let yB=!1,SB=!1;function xJ(t){const e=t[0];return typeof e=="string"&&SJ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&wJ.has(t[4])}function TJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(ev);if(!e)return;const o=JSON.parse(e),a=!o.timestamp||Date.now()-o.timestamp>Qk;if(o.buster!=="4.567.0"||a||!o.state){window.localStorage.removeItem(ev);return}UV(t,o.state),t.invalidateQueries({queryKey:no.publicConfig(),refetchType:"none"}),yB=!0}catch{AJ()}}function kJ(t){if(typeof window>"u")return()=>{};let e=null;const o=()=>{e=null;try{const r=zV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&xJ(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.567.0",timestamp:Date.now(),state:r}))}catch{}},a=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(o,yJ))}),n=()=>{e!=null&&(clearTimeout(e),o())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),a()}}const wB="studio:org-cache:",EJ=20;function CJ(t){const e=Date.now(),o=Object.entries(t).filter(([,a])=>e-a.updatedAt<=Qk);for(o.sort(([,a],[,n])=>a.updatedAt-n.updatedAt);o.length>EJ;)o.shift();return Object.fromEntries(o)}function xB(t){return`${wB}${t}`}function _J(t,e){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(xB(t));if(!o)return null;const a=JSON.parse(o)[e];return!a||Date.now()-a.updatedAt>Qk?null:(SB=!0,a)}catch{return null}}function PJ(t,e,o){if(!(typeof window>"u"))try{const a=xB(t),n=window.localStorage.getItem(a),r=n?JSON.parse(n):{};r[e]={data:o,updatedAt:Date.now()},window.localStorage.setItem(a,JSON.stringify(CJ(r)))}catch{}}function AJ(){if(bJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(wB)&&window.localStorage.removeItem(e)}}catch{}}function RJ(){return yB}function DJ(){return SB}function iO(t){const e=bB(t);if(!e)return;const o=e===vB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Bd.error(o,{id:`plan-refusal:${e}`})}const tv={feature:"",budget:""},Zl=new JV({queryCache:new mI({onError:iO}),mutationCache:new pI({onError:iO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>bB(e)===null&&t<1,gcTime:300*1e3}}});Zk(Zl);TJ(Zl);kJ(Zl);fJ(Zl);vJ(Zl);const Jk=5*6e4;async function TB(){return(await(await fetch("/api/config")).json()).config}function kB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:no.publicConfig(),queryFn:TB,staleTime:Jk},t[0]=e):e=t[0];const{data:o}=Wi(e);return o}function uTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:no.publicConfig(),queryFn:TB,staleTime:Jk},t[0]=e):e=t[0],Ls(e).data}const EB=A.createContext(void 0);function OJ(t){const e=ye.c(3),{children:o}=t,a=kB();let n;return e[0]!==o||e[1]!==a.auth?(n=y.jsx(EB.Provider,{value:a.auth,children:o}),e[0]=o,e[1]=a.auth,e[2]=n):n=e[2],n}function pTe(){const t=A.useContext(EB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var NJ={},lO={};const wf=Object.create(null),Qu=t=>NJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?wf:globalThis),Xn=new Proxy(wf,{get(t,e){return Qu()[e]??wf[e]},has(t,e){return e in Qu()||e in wf},set(t,e,o){const a=Qu(!0);return a[e]=o,!0},deleteProperty(t,e){if(!e)return!1;const o=Qu(!0);return delete o[e],!0},ownKeys(){const t=Qu(!0);return Object.keys(t)}});function Qo(t,e){return typeof process<"u"&&lO?lO[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Ju=1,ma=4,Vr=8,Nn=24,cO={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},MJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Nn,DRONE:Vr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Vr,TRAVIS:Vr})),IJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function LJ(){if(Qo("FORCE_COLOR")!==void 0)switch(Qo("FORCE_COLOR")){case"":case"1":case"true":return ma;case"2":return Vr;case"3":return Nn;default:return Ju}if(Qo("NODE_DISABLE_COLORS")!==void 0&&Qo("NODE_DISABLE_COLORS")!==""||Qo("NO_COLOR")!==void 0&&Qo("NO_COLOR")!==""||Qo("TERM")==="dumb")return Ju;if(Qo("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 MJ)if(t in Xn)return e;return Qo("CI_NAME")==="codeship"?Vr:Ju}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Qo("TEAMCITY_VERSION"))!==null?ma:Ju;switch(Qo("TERM_PROGRAM")){case"iTerm.app":return!Qo("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Qo("TERM_PROGRAM_VERSION"))!==null?Vr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Vr}if(Qo("COLORTERM")==="truecolor"||Qo("COLORTERM")==="24bit")return Nn;if(Qo("TERM")){if(/truecolor/.exec(Qo("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Qo("TERM"))!==null)return Vr;const t=Qo("TERM").toLowerCase();if(cO[t])return cO[t];if(IJ.some(e=>e.exec(t)!==null))return ma}return Qo("COLORTERM")?ma:Ju}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},MT=["debug","info","success","warn","error"];function BJ(t,e){return MT.indexOf(e)>=MT.indexOf(t)}const FJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},jJ=(t,e,o)=>{const a=new Date().toISOString();return o?`${Hr.dim}${a}${Hr.reset} ${FJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${a} ${t.toUpperCase()} [Better Auth]: ${e}`},zJ=t=>{const e="warn",o=LJ()!==1,a=(n,r,i=[])=>{if(!BJ(e,n))return;const c=jJ(n,r,o);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(MT.map(n=>[n,(...[r,...i])=>a(n,r,i)])),get level(){return e}}};zJ();function UJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ep=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function qJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Ep(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function $J(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Ep(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Ep?e:new Ep(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function _w(t,e="/api/auth"){if($J(t),qJ(t))return t;const o=t.replace(/\/+$/,"");return!e||e==="/"?o:(e=e.startsWith("/")?e:`/${e}`,`${o}${e}`)}function VJ(t,e,o,a,n){if(t)return _w(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 _w(r,e)}if(typeof window<"u"&&window.location)return _w(window.location.origin,e)}const HJ={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{}}}},GJ={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*:/},WJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,dO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},KJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function YJ(t){return t instanceof Date&&!isNaN(t.getTime())}function ZJ(t){const e=KJ.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 YJ(f)?f:null}function QJ(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 dO)return dO[c];if(!WJ.test(i)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(GJ).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=ZJ(m);if(h)return h}return n?n(u,m):m})}catch(d){if(o)throw d;return t}}function JJ(t,e={strict:!0}){return QJ(t,e)}let fr=[],fi=0;const jg=4,XJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:t,lc:0,listen(a){return o.lc=e.push(a),()=>{for(let r=fi+jg;r<fr.length;)fr[r]===a?fr.splice(r,jg):r+=jg;let n=e.indexOf(a);~n&&(e.splice(n,1),--o.lc||o.off())}},notify(a,n){XJ.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+=jg)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},eX=5,zg=6,Ug=10;let tX=(t,e,o,a)=>(t.events=t.events||{},t.events[o+Ug]||(t.events[o+Ug]=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+Ug](),delete t.events[o+Ug])});const oX=1e3;let CB=(t,e)=>tX(t,a=>{let n=e(a);n&&t.events[zg].push(n)},eX,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[zg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[zg])i();t.events[zg]=[]}},oX)},()=>{t.listen=n,t.off=r}});function aX(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 nX=()=>typeof window>"u",hp=(t,e,o,a)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof a=="function"?a({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):a;o(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,v=h.retryAttempt||0;f&&v<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{nX()||(i?await r():CB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},Pw=Symbol.for("better-auth:broadcast-channel"),rX=()=>Math.floor(Date.now()/1e3);var sX=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:rX()}))}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 Aw(t="better-auth.message"){return globalThis[Pw]||(globalThis[Pw]=new sX(t)),globalThis[Pw]}const Rw=Symbol.for("better-auth:focus-manager");var iX=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 uO(){return globalThis[Rw]||(globalThis[Rw]=new iX),globalThis[Rw]}const Dw=Symbol.for("better-auth:online-manager");var lX=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 Ow(){return globalThis[Dw]||(globalThis[Dw]=new lX),globalThis[Dw]}const Hc=()=>Math.floor(Date.now()/1e3),cX=5;function dX(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||Ow().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Hc(),o.set(!o.get());return}const C=e.get();if(k?.event==="poll"){d.lastSessionRequest=Hc(),a("/get-session").then(E=>{E.error?e.set({...C,data:null,error:E.error}):e.set({...C,data:E.data,error:null}),d.lastSync=Hc(),o.set(!o.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<cX)return;d.lastSessionRequest=Hc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Hc(),o.set(!o.get()))},h=k=>{Aw().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=Aw().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=uO().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=Ow().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),S(),Aw().setup(),uO().setup(),Ow().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 uX(t,e){const o=hd(!1),a=hp(o,"/get-session",t,{method:"GET"});return CB(a,()=>{const n=dX({sessionAtom:a,sessionSignal:o,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:a,$sessionSignal:o}}function Nw(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 IT(t,e,o=".",a){if(!Nw(e))return IT(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]]:Nw(i)&&Nw(n[r])?n[r]=IT(i,n[r],(o?`${o}.`:"")+r.toString(),a):n[r]=i))}return n}function pX(t){return(...e)=>e.reduce((o,a)=>IT(o,a,"",t),{})}const mX=pX();var hX=Object.defineProperty,gX=Object.defineProperties,fX=Object.getOwnPropertyDescriptors,pO=Object.getOwnPropertySymbols,vX=Object.prototype.hasOwnProperty,bX=Object.prototype.propertyIsEnumerable,mO=(t,e,o)=>e in t?hX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Sr=(t,e)=>{for(var o in e||(e={}))vX.call(e,o)&&mO(t,o,e[o]);if(pO)for(var o of pO(e))bX.call(e,o)&&mO(t,o,e[o]);return t},Ur=(t,e)=>gX(t,fX(e)),yX=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)}},SX=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}},hO=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}},wX=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 xX(t){if(typeof t=="number")return new hO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new hO(t);case"exponential":return new wX(t);default:throw new Error("Invalid retry strategy")}}var TX=async t=>{const e={},o=async a=>typeof a=="function"?await a():a;if(t?.auth){if(t.auth.type==="Bearer"){const a=await o(t.auth.token);if(!a)return e;e.authorization=`Bearer ${a}`}else if(t.auth.type==="Basic"){const[a,n]=await Promise.all([o(t.auth.username),o(t.auth.password)]);if(!a||!n)return e;e.authorization=`Basic ${btoa(`${a}:${n}`)}`}else if(t.auth.type==="Custom"){const[a,n]=await Promise.all([o(t.auth.prefix),o(t.auth.value)]);if(!n)return e;e.authorization=`${a??""} ${n}`}}return e},kX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function EX(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 kX.test(a)?"json":o.has(a)||a.startsWith("text/")?"text":"blob"}function CX(t){try{return JSON.parse(t),!0}catch{return!1}}function LT(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 gO(t){try{return JSON.parse(t)}catch{return t}}function fO(t){return typeof t=="function"}function _X(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&fO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&fO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function PX(t){const e=new Headers(t?.headers),o=await TX(t);for(const[a,n]of Object.entries(o||{}))e.set(a,n);if(!e.has("content-type")){const a=AX(t?.body);a&&e.set("content-type",a)}return e}function AX(t){return LT(t)?"application/json":null}function RX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(LT(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"&&LT(t.body)?new URLSearchParams(t.body).toString():t.body}function DX(t,e){var o;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const a=(o=t.split("@")[1])==null?void 0:o.split("/")[0];return PB.includes(a)?a.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function OX(t,e){let o;return!t?.signal&&t?.timeout&&(o=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var NX=class _B extends Error{constructor(e,o){super(o||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,_B.prototype)}};async function xf(t,e){const o=await t["~standard"].validate(e);if(o.issues)throw new NX(o.issues);return o.value}var PB=["get","post","put","patch","delete"],MX=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 xf(u.input,o?.body):o?.body,params:u.params?await xf(u.params,o?.params):o?.params,query:u.query?await xf(u.query,o?.query):o?.query})),{url:e,options:m}}}return{url:e,options:o}}}),IX=t=>{async function e(o,a){const n=Ur(Sr(Sr({},t),a),{plugins:[...t?.plugins||[],MX(t||{}),...a?.plugins||[]]});if(t?.catchAllError)try{return await BT(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 BT(o,n)}return e};function LX(t,e){const{baseURL:o,params:a,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):o||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];PB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[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 b of f)d.append(h,b);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 b=a[f];i=i.replace(v,b)}}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 BT=async(t,e)=>{var o,a,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await SX(t,e),v=_X(f),b=new AbortController,S=(o=f.signal)!=null?o:b.signal,T=LX(h,f),x=RX(f),k=await PX(f),C=DX(h,f);let E=Ur(Sr({},f),{url:T,headers:k,body:x,method:C,signal:S});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((a=e?.body)==null?void 0:a.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:P}=OX(f,b);let D=await v(E.url,E);P();const R={response:D,request:E};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(!(E.method!=="HEAD"))return{data:"",error:null};const W=EX(D),oe={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:gO;oe.data=await K(H)}else oe.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(oe.data=await xf(E.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:gO,I=await D.text(),U=CX(I),B=U?await O(I):null,j={response:D,responseText:I,request:E,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Sr({},j),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=xX(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 BT(t,Ur(Sr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new yX(D.status,D.statusText,U?B:I);return{data:null,error:Ur(Sr({},B),{status:D.status,statusText:D.statusText})}};const BX=(t,e)=>{const o="credentials"in Request.prototype,a=VJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==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=IX({baseURL:a,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?JJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[HJ],...n]}),{$sessionSignal:f,session:v}=uX(h,t),b=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(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of b)E.getAtoms&&Object.assign(T,E.getAtoms?.(h)),E.pathMethods&&Object.assign(x,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{T[E].set(!T[E].get())},listen:(E,P)=>{T[E].subscribe(P)},atoms:T};for(const E of b)E.getActions&&(S=mX(E.getActions?.(h,C,t)??{},S));return{get baseURL(){return a},pluginsActions:S,pluginsAtoms:T,pluginPathMethods:x,atomListeners:k,$fetch:h,$store:C}};function FX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function jX(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 zX(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"||FX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...S}=h,T={...f,...b},x=jX(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 C=n.filter(P=>P.matcher(m));if(!C.length)return;const E=new Set;for(const P of C){const D=a[P.signal];if(!D)return;if(E.has(P.signal))continue;E.add(P.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function UX(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?aX(t,a,d):t.listen(d)},n),i=()=>o.current;return A.useSyncExternalStore(r,i,i)}function qX(t){return`use${UJ(t)}`}function $X(t){const{pluginPathMethods:e,pluginsActions:o,pluginsAtoms:a,$fetch:n,$store:r,atomListeners:i}=BX(t),c={};for(const[d,u]of Object.entries(a))c[qX(d)]=()=>UX(u);return zX({...o,...c,$fetch:n,$store:r},n,e,a,i)}function VX(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 Ep("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 AB(t){return{newRole(e){return VX(e)},statements:t}}const HX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},RB=AB(HX),DB=RB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),OB=RB.newRole({user:[],session:[]}),GX={admin:DB,user:OB},WX=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||GX;for(const a of e)if(o[a]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},KX=t=>{const e={admin:DB,user:OB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>WX({role:o.role,options:{ac:t?.ac,roles:e},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},YX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),ZX=()=>({id:"magic-link",$InferServerPlugin:{}}),QX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Xk=AB(QX),NB=Xk.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),MB=Xk.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),IB=Xk.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),JX={admin:NB,owner:MB,member:IB},XX=(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},eee=t=>XX(t,t.options.roles||JX),tee=t=>{const e=hd(!1),o=hd(!1),a=hd(!1),n=hd(!1),r={admin:NB,member:IB,owner:MB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>eee({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=hp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:o,$activeMemberSignal:a,$activeMemberRoleSignal:n,activeOrganization:hp([o],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:hp([a],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:hp([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"}]}},oee="1.6.11",aee=t=>({id:"sso-client",version:oee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function nee(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 eE(t){return nee(t?.metadata).archived===!0}function LB(t){const e=new Set;return t.filter(o=>eE(o)||e.has(o.id)?!1:(e.add(o.id),!0))}const ree="Organization is archived",ga=$X({plugins:[tee({}),KX(),aee(),ZX(),YX()]}),see=8e3;let vO;function BB(){return vO??=new Promise(t=>{const e=setTimeout(t,see);ga.$store.listen("session",o=>{o&&typeof o=="object"&&"isPending"in o&&(o.isPending||(clearTimeout(e),t()))})}),vO}const iee=we({data:we({user:we({id:$()})}).nullish()});function lee(){const t=iee.safeParse(ga.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const cee=3e4;let gp=null,qg=null;function FB(){if(gp&&gp.expiresAt>Date.now())return Promise.resolve(gp.result);if(qg)return qg;const t=ga.organization.list().then(e=>{const o=e.data?{...e,data:LB(e.data)}:e;return o.data&&(gp={result:o,expiresAt:Date.now()+cee}),o}).finally(()=>{qg=null});return qg=t,t}function mTe(){const t=ga.useListOrganizations(),e=t.data?LB(t.data):void 0;return{...t,data:e}}function hTe(){gp=null}const dee="modulepreload",uee=function(t){return"/"+t},bO={},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=uee(u),u in bO)return;bO[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":dee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(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 pee(t){try{return JSON.parse(t)}catch{return}}function yO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const o=localStorage.getItem(t),a=o?pee(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 mee(t,e){const o=ye.c(17),a=Kl();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=()=>yO(t,e),c=()=>yO(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}=Ls(d);let m;o[10]!==t||o[11]!==a||o[12]!==r?(m=b=>{const S=a.getQueryData(r),T=typeof b=="function"?b(S):b;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 Qi={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},jB=["en","pt-BR"],gTe={en:"en-US","pt-BR":"pt-BR"};function tE(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const hee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:tE(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},zB=["auto","readonly"],fTe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],gee=["light","dark","system"];function vTe(){try{const t=JSON.parse(localStorage.getItem(Qi.preferences())??"{}");if(zB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ib(){try{const t=JSON.parse(localStorage.getItem(Qi.preferences())??"{}");if(jB.includes(t.language))return t.language}catch{}return tE()}function fee(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 oE(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Qi.preferences(),t[0]=e):e=t[0],mee(e,vee)}function vee(t){const e={...hee,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,"projectFirstNav"in e&&delete e.projectFirstNav,zB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),gee.includes(e.theme)||(e.theme="system"),jB.includes(e.language)||(e.language=tE()),e.taskBoardLaneVisibility=fee(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),e}const bee={"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"},yee={"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"},See={"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
  `)},dse=0,Yc=[];function use(t){var e=A.useRef([]),o=A.useRef([0,0]),a=A.useRef(),n=A.useState(dse++)[0],r=A.useState(tj)[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=Ore([t.lockRef.current],(t.shards||[]).map(e2),!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=Zg(S),k=o.current,C="deltaX"in S?S.deltaX:k[0]-x[0],E="deltaY"in S?S.deltaY:k[1]-x[1],P,D=S.target,R=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in S&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),I=O&&O.anchorNode,U=I?I===D||I.contains(D):!1;if(U)return!1;var B=JO(R,D);if(!B)return!0;if(B?P=R:(P=R==="v"?"h":"v",B=JO(R,D)),!B)return!1;if(!a.current&&"changedTouches"in S&&(C||E)&&(a.current=P),!P)return!0;var j=a.current||P;return ise(j,T,S,j==="h"?C:E)},[]),d=A.useCallback(function(S){var T=S;if(!(!Yc.length||Yc[Yc.length-1]!==r)){var x="deltaY"in T?XO(T):Zg(T),k=e.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&lse(P.delta,x)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var C=(i.current.shards||[]).map(e2).filter(Boolean).filter(function(P){return P.contains(T.target)}),E=C.length>0?c(T,C[0]):!i.current.noIsolation;E&&T.cancelable&&T.preventDefault()}}},[]),u=A.useCallback(function(S,T,x,k){var C={name:S,delta:T,target:x,should:k,shadowParent:pse(x)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(E){return E!==C})},1)},[]),m=A.useCallback(function(S){o.current=Zg(S),a.current=void 0},[]),h=A.useCallback(function(S){u(S.type,XO(S),S.target,c(S,t.lockRef.current))},[]),f=A.useCallback(function(S){u(S.type,Zg(S),S.target,c(S,t.lockRef.current))},[]);A.useEffect(function(){return Yc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Kc),document.addEventListener("touchmove",d,Kc),document.addEventListener("touchstart",m,Kc),function(){Yc=Yc.filter(function(S){return S!==r}),document.removeEventListener("wheel",d,Kc),document.removeEventListener("touchmove",d,Kc),document.removeEventListener("touchstart",m,Kc)}},[]);var v=t.removeScrollBar,b=t.inert;return A.createElement(A.Fragment,null,b?A.createElement(r,{styles:cse(n)}):null,v?A.createElement(ese,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function pse(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const mse=Ure(ej,use);var yE=A.forwardRef(function(t,e){return A.createElement(mb,Gr({},t,{ref:e,sideCar:mse}))});yE.classNames=mb.classNames;var VT=["Enter"," "],hse=["ArrowDown","PageUp","Home"],rj=["ArrowUp","PageDown","End"],gse=[...hse,...rj],fse={ltr:[...VT,"ArrowRight"],rtl:[...VT,"ArrowLeft"]},vse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ym="Menu",[Gp,bse,yse]=pF(ym),[Xl,sj]=Xi(ym,[yse,MF,HF]),Sm=MF(),ij=HF(),[lj,el]=Xl(ym),[Sse,wm]=Xl(ym),cj=t=>{const{__scopeMenu:e,open:o=!1,children:a,dir:n,onOpenChange:r,modal:i=!0}=t,c=Sm(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Cr(r),f=mF(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),y.jsx($F,{...c,children:y.jsx(lj,{scope:e,open:o,onOpenChange:h,content:d,onContentChange:u,children:y.jsx(Sse,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:a})})})};cj.displayName=ym;var wse="MenuAnchor",SE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=Sm(o);return y.jsx(dre,{...n,...a,ref:e})});SE.displayName=wse;var wE="MenuPortal",[xse,dj]=Xl(wE,{forceMount:void 0}),uj=t=>{const{__scopeMenu:e,forceMount:o,children:a,container:n}=t,r=el(wE,e);return y.jsx(xse,{scope:e,forceMount:o,children:y.jsx(js,{present:o||r.open,children:y.jsx(bE,{asChild:!0,container:n,children:a})})})};uj.displayName=wE;var nr="MenuContent",[Tse,xE]=Xl(nr),pj=A.forwardRef((t,e)=>{const o=dj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=el(nr,t.__scopeMenu),i=wm(nr,t.__scopeMenu);return y.jsx(Gp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Gp.Slot,{scope:t.__scopeMenu,children:i.modal?y.jsx(kse,{...n,ref:e}):y.jsx(Ese,{...n,ref:e})})})})}),kse=A.forwardRef((t,e)=>{const o=el(nr,t.__scopeMenu),a=A.useRef(null),n=Vo(e,a);return A.useEffect(()=>{const r=a.current;if(r)return QF(r)},[]),y.jsx(TE,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),Ese=A.forwardRef((t,e)=>{const o=el(nr,t.__scopeMenu);return y.jsx(TE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})}),Cse=Vp("MenuContent.ScrollLock"),TE=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:b,...S}=t,T=el(nr,o),x=wm(nr,o),k=Sm(o),C=ij(o),E=bse(o),[P,D]=A.useState(null),R=A.useRef(null),O=Vo(e,R,T.onContentChange),I=A.useRef(0),U=A.useRef(""),B=A.useRef(0),j=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),oe=b?yE:A.Fragment,H=b?{as:Cse,allowPinchZoom:!0}:void 0,K=se=>{const Q=U.current+se,M=E().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,L=M.map(de=>de.textValue),z=Fse(L,Q,V),X=M.find(de=>de.textValue===z)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(I.current),ue!==""&&(I.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(I.current),[]),fF();const J=A.useCallback(se=>F.current===j.current?.side&&zse(se,j.current?.area),[]);return y.jsx(Tse,{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=>{j.current=se},[]),children:y.jsx(oe,{...H,children:y.jsx(lE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(iE,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:y.jsx(_re,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{x.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(ure,{role:"menu","aria-orientation":"vertical","data-state":Aj(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 L=R.current;if(se.target!==L||!gse.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);rj.includes(se.key)&&X.reverse(),Lse(X)}),onBlur:mt(t.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(I.current),U.current="")}),onPointerMove:mt(t.onPointerMove,Wp(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}}))})})})})})})});pj.displayName=nr;var _se="MenuGroup",kE=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Oo.div,{role:"group",...a,ref:e})});kE.displayName=_se;var Pse="MenuLabel",mj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Oo.div,{...a,ref:e})});mj.displayName=Pse;var lv="MenuItem",t2="menu.itemSelect",hb=A.forwardRef((t,e)=>{const{disabled:o=!1,onSelect:a,...n}=t,r=A.useRef(null),i=wm(lv,t.__scopeMenu),c=xE(lv,t.__scopeMenu),d=Vo(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!o&&h){const f=new CustomEvent(t2,{bubbles:!0,cancelable:!0});h.addEventListener(t2,v=>a?.(v),{once:!0}),uF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return y.jsx(hj,{...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===" "||VT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});hb.displayName=lv;var hj=A.forwardRef((t,e)=>{const{__scopeMenu:o,disabled:a=!1,textValue:n,...r}=t,i=xE(lv,o),c=ij(o),d=A.useRef(null),u=Vo(e,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[r.children]),y.jsx(Gp.ItemSlot,{scope:o,disabled:a,textValue:n??f,children:y.jsx(Pre,{asChild:!0,...c,focusable:!a,children:y.jsx(Oo.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,Wp(b=>{a?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Wp(b=>i.onItemLeave(b))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),Ase="MenuCheckboxItem",gj=A.forwardRef((t,e)=>{const{checked:o=!1,onCheckedChange:a,...n}=t;return y.jsx(Sj,{scope:t.__scopeMenu,checked:o,children:y.jsx(hb,{role:"menuitemcheckbox","aria-checked":cv(o)?"mixed":o,...n,ref:e,"data-state":_E(o),onSelect:mt(n.onSelect,()=>a?.(cv(o)?!0:!o),{checkForDefaultPrevented:!1})})})});gj.displayName=Ase;var fj="MenuRadioGroup",[Rse,Dse]=Xl(fj,{value:void 0,onValueChange:()=>{}}),vj=A.forwardRef((t,e)=>{const{value:o,onValueChange:a,...n}=t,r=Cr(a);return y.jsx(Rse,{scope:t.__scopeMenu,value:o,onValueChange:r,children:y.jsx(kE,{...n,ref:e})})});vj.displayName=fj;var bj="MenuRadioItem",yj=A.forwardRef((t,e)=>{const{value:o,...a}=t,n=Dse(bj,t.__scopeMenu),r=o===n.value;return y.jsx(Sj,{scope:t.__scopeMenu,checked:r,children:y.jsx(hb,{role:"menuitemradio","aria-checked":r,...a,ref:e,"data-state":_E(r),onSelect:mt(a.onSelect,()=>n.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});yj.displayName=bj;var EE="MenuItemIndicator",[Sj,Ose]=Xl(EE,{checked:!1}),wj=A.forwardRef((t,e)=>{const{__scopeMenu:o,forceMount:a,...n}=t,r=Ose(EE,o);return y.jsx(js,{present:a||cv(r.checked)||r.checked===!0,children:y.jsx(Oo.span,{...n,ref:e,"data-state":_E(r.checked)})})});wj.displayName=EE;var Nse="MenuSeparator",xj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t;return y.jsx(Oo.div,{role:"separator","aria-orientation":"horizontal",...a,ref:e})});xj.displayName=Nse;var Mse="MenuArrow",Tj=A.forwardRef((t,e)=>{const{__scopeMenu:o,...a}=t,n=Sm(o);return y.jsx(pre,{...n,...a,ref:e})});Tj.displayName=Mse;var CE="MenuSub",[Ise,kj]=Xl(CE),Ej=t=>{const{__scopeMenu:e,children:o,open:a=!1,onOpenChange:n}=t,r=el(CE,e),i=Sm(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Cr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),y.jsx($F,{...i,children:y.jsx(lj,{scope:e,open:a,onOpenChange:h,content:u,onContentChange:m,children:y.jsx(Ise,{scope:e,contentId:Fi(),triggerId:Fi(),trigger:c,onTriggerChange:d,children:o})})})};Ej.displayName=CE;var fp="MenuSubTrigger",Cj=A.forwardRef((t,e)=>{const o=el(fp,t.__scopeMenu),a=wm(fp,t.__scopeMenu),n=kj(fp,t.__scopeMenu),r=xE(fp,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]),y.jsx(SE,{asChild:!0,...u,children:y.jsx(hj,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":n.contentId,"data-state":Aj(o.open),...t,ref:gm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Wp(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,Wp(h=>{m();const f=o.content?.getBoundingClientRect();if(f){const v=o.content?.dataset.side,b=v==="right",S=b?-5:5,T=f[b?"left":"right"],x=f[b?"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===" "||fse[a.dir].includes(h.key)&&(o.onOpenChange(!0),o.content?.focus(),h.preventDefault())})})})});Cj.displayName=fp;var _j="MenuSubContent",Pj=A.forwardRef((t,e)=>{const o=dj(nr,t.__scopeMenu),{forceMount:a=o.forceMount,...n}=t,r=el(nr,t.__scopeMenu),i=wm(nr,t.__scopeMenu),c=kj(_j,t.__scopeMenu),d=A.useRef(null),u=Vo(e,d);return y.jsx(Gp.Provider,{scope:t.__scopeMenu,children:y.jsx(js,{present:a||r.open,children:y.jsx(Gp.Slot,{scope:t.__scopeMenu,children:y.jsx(TE,{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=vse[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});Pj.displayName=_j;function Aj(t){return t?"open":"closed"}function cv(t){return t==="indeterminate"}function _E(t){return cv(t)?"indeterminate":t?"checked":"unchecked"}function Lse(t){const e=document.activeElement;for(const o of t)if(o===e||(o.focus(),document.activeElement!==e))return}function Bse(t,e){return t.map((o,a)=>t[(e+a)%t.length])}function Fse(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=Bse(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 jse(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 zse(t,e){if(!e)return!1;const o={x:t.clientX,y:t.clientY};return jse(o,e)}function Wp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Use=cj,qse=SE,$se=uj,Vse=pj,Hse=kE,Gse=mj,Wse=hb,Kse=gj,Yse=vj,Zse=yj,Qse=wj,Jse=xj,Xse=Tj,eie=Ej,tie=Cj,oie=Pj,gb="DropdownMenu",[aie]=Xi(gb,[sj]),$a=sj(),[nie,Rj]=aie(gb),Dj=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]=fm({prop:n,defaultProp:r??!1,onChange:i,caller:gb});return y.jsx(nie,{scope:e,triggerId:Fi(),triggerRef:u,contentId:Fi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:y.jsx(Use,{...d,open:m,onOpenChange:h,dir:a,modal:c,children:o})})};Dj.displayName=gb;var Oj="DropdownMenuTrigger",Nj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,disabled:a=!1,...n}=t,r=Rj(Oj,o),i=$a(o);return y.jsx(qse,{asChild:!0,...i,children:y.jsx(Oo.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:gm(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())})})})});Nj.displayName=Oj;var rie="DropdownMenuPortal",Mj=t=>{const{__scopeDropdownMenu:e,...o}=t,a=$a(e);return y.jsx($se,{...a,...o})};Mj.displayName=rie;var Ij="DropdownMenuContent",Lj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=Rj(Ij,o),r=$a(o),i=A.useRef(!1);return y.jsx(Vse,{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)"}})});Lj.displayName=Ij;var sie="DropdownMenuGroup",iie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Hse,{...n,...a,ref:e})});iie.displayName=sie;var lie="DropdownMenuLabel",Bj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Gse,{...n,...a,ref:e})});Bj.displayName=lie;var cie="DropdownMenuItem",Fj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Wse,{...n,...a,ref:e})});Fj.displayName=cie;var die="DropdownMenuCheckboxItem",jj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Kse,{...n,...a,ref:e})});jj.displayName=die;var uie="DropdownMenuRadioGroup",zj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Yse,{...n,...a,ref:e})});zj.displayName=uie;var pie="DropdownMenuRadioItem",Uj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Zse,{...n,...a,ref:e})});Uj.displayName=pie;var mie="DropdownMenuItemIndicator",qj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Qse,{...n,...a,ref:e})});qj.displayName=mie;var hie="DropdownMenuSeparator",$j=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Jse,{...n,...a,ref:e})});$j.displayName=hie;var gie="DropdownMenuArrow",fie=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(Xse,{...n,...a,ref:e})});fie.displayName=gie;var vie=t=>{const{__scopeDropdownMenu:e,children:o,open:a,onOpenChange:n,defaultOpen:r}=t,i=$a(e),[c,d]=fm({prop:a,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return y.jsx(eie,{...i,open:c,onOpenChange:d,children:o})},bie="DropdownMenuSubTrigger",Vj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(tie,{...n,...a,ref:e})});Vj.displayName=bie;var yie="DropdownMenuSubContent",Hj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:o,...a}=t,n=$a(o);return y.jsx(oie,{...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)"}})});Hj.displayName=yie;var Gj=Dj,Wj=Nj,Kj=Mj,Yj=Lj,Sie=Bj,Zj=Fj,wie=jj,xie=zj,Tie=Uj,Qj=qj,kie=$j,Eie=vie,Cie=Vj,_ie=Hj;const PE=({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"}));PE.displayName="AlertTriangle";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:"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"}));Jj.displayName="Archive";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:"M7 17 17 7m0 0H7m10 0v10"}));Xj.displayName="ArrowUpRight";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:"M20 6 9 17l-5-5"}));e3.displayName="Check";const AE=({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"}));AE.displayName="ChevronRight";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:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));t3.displayName="Circle";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:"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"}));o3.displayName="CpuChip01";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:"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"}));a3.displayName="DotsHorizontal";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:"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"}));n3.displayName="GitBranch01";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:"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"}));r3.displayName="HardDrive";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:"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"}));s3.displayName="LinkExternal01";const i3=({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"}));i3.displayName="Lock01";const l3=({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"}));l3.displayName="RefreshCw01";const c3=({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"}));c3.displayName="Server01";const d3=({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"}));d3.displayName="Shield01";const u3=({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"}));u3.displayName="User01";const p3=({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"}));p3.displayName="Users03";const m3=({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"}));m3.displayName="X";function Pie(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=y.jsx(Gj,{"data-slot":"dropdown-menu",...o}),e[2]=o,e[3]=a):a=e[3],a}function Aie(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=y.jsx(Wj,{"data-slot":"dropdown-menu-trigger",...o}),e[2]=o,e[3]=a):a=e[3],a}function Rie(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=Ze("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=y.jsx(Kj,{children:y.jsx(Yj,{"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 Die(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=Ze("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=y.jsx(Zj,{"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 xTe(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=Ze("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=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Qj,{children:y.jsx(e3,{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=y.jsxs(wie,{"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 TTe(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=y.jsx(xie,{"data-slot":"dropdown-menu-radio-group",...o}),e[2]=o,e[3]=a):a=e[3],a}function kTe(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=Ze("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=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Qj,{children:y.jsx(t3,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let c;return e[7]!==o||e[8]!==n||e[9]!==r?(c=y.jsxs(Tie,{"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 ETe(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=Ze("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=y.jsx(Sie,{"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 CTe(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=Ze("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=y.jsx(kie,{"data-slot":"dropdown-menu-separator",className:n,...a}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function _Te(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=y.jsx(Eie,{"data-slot":"dropdown-menu-sub",...o}),e[2]=o,e[3]=a):a=e[3],a}function PTe(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=Ze("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=y.jsx(AE,{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=y.jsxs(Cie,{"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 ATe(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=Ze("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=y.jsx(_ie,{"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 Oie(){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 Nie(){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 RE=A.createContext(null);function Mie(t){const e=ye.c(3),{children:o}=t,[a]=A.useState(Nie);let n;return e[0]!==o||e[1]!==a?(n=y.jsx(RE,{value:a,children:o}),e[0]=o,e[1]=a,e[2]=n):n=e[2],n}function Iie(t){const e=ye.c(2),{children:o}=t;let a;return e[0]!==o?(a=y.jsx(RE,{value:null,children:o}),e[0]=o,e[1]=a):a=e[1],a}function fb(){return A.use(RE)}function h3(t){const e=ye.c(3),o=fb();if(!o)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let a;return e[0]!==t||e[1]!==o?(a=y.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 Lie(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 Bie(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 g3=5;function Fie(t,e=!1,o=g3){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 f3=tV(function(e){return y.jsx("a",{...e,"aria-current":void 0})});function jie(t){const e=ye.c(12),{items:o}=t,a=qa();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=y.jsx(a3,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let i;e[3]!==n?(i=y.jsx(Aie,{asChild:!0,children:y.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(zie),e[5]=o,e[6]=c):c=e[6];let d;e[7]!==c?(d=y.jsx(Rie,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==i||e[10]!==d?(u=y.jsxs(Pie,{children:[i,d]}),e[9]=i,e[10]=d,e[11]=u):u=e[11],u}function zie(t){const e=y.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return y.jsx(Die,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?y.jsx(f3,{...t.link,children:e}):e},t.key)}function Uie(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=y.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=y.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=y.jsx(f3,{...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=y.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 v3(t){const e=ye.c(21),{items:o}=t,a=qa(),[n,r]=Oie();let i,c,d,u,m,h;if(e[0]!==o||e[1]!==r||e[2]!==a||e[3]!==n){const b=Fie(o,n>=0&&n<320,g3);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=b.map((S,T)=>y.jsxs("li",{className:Ze("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&&y.jsx(AE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),S.type==="item"?y.jsx(Uie,{item:S.item,current:T===b.length-1}):y.jsx(jie,{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=y.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=y.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 qie(t){const e=ye.c(12),{items:o,scope:a}=t,n=fb();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=Lie(o,r),c=Bie(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&&y.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==i?(m=y.jsx(v3,{items:i}),e[7]=i,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=y.jsxs(y.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function $ie(t){const e=ye.c(3),o=fb();let a;return e[0]!==t||e[1]!==o?(a=o?y.jsx(h3,{...t}):y.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:y.jsx(v3,{items:t.items??[]})}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const Vie=Object.assign($ie,{Provider:Mie,Detached:Iie});function Hie(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=Ze("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=y.jsx("div",{...a,"data-slot":"page",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}function Gie(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=Ze("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=y.jsx("div",{...a,"data-slot":"page-content",className:n}),e[5]=a,e[6]=n,e[7]=r):r=e[7],r}const Wie={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},Kie="px-4 md:pl-6 md:pr-8",b3=A.createContext(!1);function Yie(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(b3);let c;e[4]!==o||e[5]!==i||e[6]!==r?(c=Ze("w-full",i?Ze(Kie,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",Wie[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=y.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 Zie(t){const e=ye.c(9),{children:o,actions:a,className:n}=t,r=fb();let i;e[0]!==o||e[1]!==n||e[2]!==r?(i=r?y.jsx(h3,{after:"page",parent:{label:o}}):y.jsx("div",{"data-slot":"page-title",className:Ze("flex flex-wrap items-center justify-between gap-3",n),children:y.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&&y.jsx(y3,{children:a}),e[4]=a,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==c?(d=y.jsxs(y.Fragment,{children:[i,c]}),e[6]=i,e[7]=c,e[8]=d):d=e[8],d}function y3(t){const e=ye.c(3),{children:o,secondary:a}=t;let n;if(e[0]!==o||e[1]!==a){const r=y.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[a,o]});n=y.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 Qie(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=y.jsx(qie,{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=y.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=y.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=y.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=y.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=y.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 b;e[13]!==m||e[14]!==v?(b=y.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]=b):b=e[15];let S;e[16]!==i?(S=y.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=y.jsx(pn.Toolbar.Left.Target,{}),e[18]=T):T=e[18];let x;e[19]!==S?(x=y.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=y.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:y.jsx(pn.Toolbar.Center.Target,{})}),e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=y.jsx(pn.Toolbar.Right,{children:y.jsx(pn.Toolbar.Right.Target,{})}),e[22]=C):C=e[22];let E;e[23]!==x?(E=y.jsxs(pn.Toolbar,{children:[x,k,C]}),e[23]=x,e[24]=E):E=e[24];let P;return e[25]!==E||e[26]!==b?(P=y.jsxs(y.Fragment,{children:[b,E]}),e[25]=E,e[26]=b,e[27]=P):P=e[27],P}function Jie(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=qa();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let i;e[5]!==o?(i=Ze("-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=y.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 Xie(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=Ze("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=y.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 kd=Object.assign(Hie,{Header:Qie,Tabs:Jie,Tab:Xie,Actions:y3,Content:Gie,Container:Object.assign(Yie,{Inset:b3}),Title:Zie,Breadcrumbs:Vie});var ge=typeof window<"u"?window:void 0,la=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(la.self=la),typeof File>"u"&&(la.File=function(){});var Mn=la?.navigator,ze=la?.document,ka=la?.location,HT=la?.fetch,GT=la!=null&&la.XMLHttpRequest&&"withCredentials"in new la.XMLHttpRequest?la.XMLHttpRequest:void 0,o2=la?.AbortController,ele=la?.CompressionStream,mn=Mn?.userAgent,ot=ge??{},a2="1.372.3",Qa={DEBUG:!1,LIB_VERSION:a2,LIB_NAME:"web",JS_SDK_VERSION:a2};function n2(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){n2(r,a,n,i,c,"next",d)}function c(d){n2(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 S3(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 WT(){return WT=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}})),WT.apply(this,arguments)}var tle=["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"],r2=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var o=t.toLowerCase();return tle.concat(e).some((a=>{var n=a.toLowerCase();return o.indexOf(n)!==-1}))},ole=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Et(t,e){return t.indexOf(e)!==-1}var vb=function(t){return t.trim()},KT=function(t){return t.replace(/^\$/,"")},w3=Object.prototype,x3=w3.hasOwnProperty,bb=w3.toString,It=Array.isArray||function(t){return bb.call(t)==="[object Array]"},As=t=>typeof t=="function",jo=t=>t===Object(t)&&!It(t),gd=t=>{if(jo(t)){for(var e in t)if(x3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,Po=t=>bb.call(t)=="[object String]",Cf=t=>Po(t)&&t.trim().length===0,zs=t=>t===null,_t=t=>$e(t)||zs(t),sr=t=>bb.call(t)=="[object Number]"&&t==t,id=t=>sr(t)&&t>0,Kr=t=>bb.call(t)==="[object Boolean]",ale=t=>t instanceof FormData,nle=t=>Et(ole,t);function T3(t){return t===null||typeof t!="object"}function dv(t,e){return{}.toString.call(t)==="[object "+e+"]"}function DE(t){return typeof Event<"u"&&(function(e,o){try{return e instanceof o}catch{return!1}})(t,Event)}var rle=[!0,"true",1,"1","yes"],Gw=t=>Et(rle,t),sle=[!1,"false",0,"0","no"];function Yr(t,e,o,a,n){return e>o&&(a.warn("min cannot be greater than max."),e=o),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),Yr(n||o,e,o,a))}let ile=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Yr(e.bucketSize,0,100,e.Gt),this.Wt=Yr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Yr(e.refillInterval,0,864e5,e.Gt)}Jt(e,o){var a=Math.floor((o-e.lastAccess)/this.Xt);a>0&&(e.tokens=Math.min(e.tokens+a*this.Wt,this.Ut),e.lastAccess=e.lastAccess+a*this.Xt)}consumeRateLimit(e){var o,a=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,a):this.$t[n]=r={tokens:this.Ut,lastAccess:a},r.tokens===0||(r.tokens--,r.tokens===0&&((o=this.zt)==null||o.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Qg,s2,Ww,Ln="Mobile",uv="iOS",Ns="Android",Ud="Tablet",k3=Ns+" "+Ud,E3="iPad",C3="Apple",_3=C3+" Watch",Cp="Safari",qd="BlackBerry",P3="Samsung",A3=P3+"Browser",R3=P3+" Internet",Fl="Chrome",lle=Fl+" OS",D3=Fl+" "+uv,OE="Internet Explorer",O3=OE+" "+Ln,NE="Opera",cle=NE+" Mini",ME="Edge",N3="Microsoft "+ME,Ed="Firefox",M3=Ed+" "+uv,Kp="Nintendo",Yp="PlayStation",Cd="Xbox",I3=Ns+" "+Ln,L3=Ln+" "+Cp,vp="Windows",YT=vp+" Phone",i2="Nokia",ZT="Ouya",B3="Generic",dle=B3+" "+Ln.toLowerCase(),F3=B3+" "+Ud.toLowerCase(),QT="Konqueror",Za="(\\d+(\\.\\d+)?)",Kw=new RegExp("Version/"+Za),ule=new RegExp(Cd,"i"),ple=new RegExp(Yp+" \\w+","i"),mle=new RegExp(Kp+" \\w+","i"),IE=new RegExp(qd+"|PlayBook|BB10","i"),hle={"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"},j3=function(t,e){return e=e||"",Et(t," OPR/")&&Et(t,"Mini")?cle:Et(t," OPR/")?NE:IE.test(t)?qd:Et(t,"IE"+Ln)||Et(t,"WPDesktop")?O3:Et(t,A3)?R3:Et(t,ME)||Et(t,"Edg/")?N3:Et(t,"FBIOS")?"Facebook "+Ln:Et(t,"UCWEB")||Et(t,"UCBrowser")?"UC Browser":Et(t,"CriOS")?D3:Et(t,"CrMo")||Et(t,Fl)?Fl:Et(t,Ns)&&Et(t,Cp)?I3:Et(t,"FxiOS")?M3:Et(t.toLowerCase(),QT.toLowerCase())?QT:((o,a)=>a&&Et(a,C3)||(function(n){return Et(n,Cp)&&!Et(n,Fl)&&!Et(n,Ns)})(o))(t,e)?Et(t,Ln)?L3:Cp:Et(t,Ed)?Ed:Et(t,"MSIE")||Et(t,"Trident/")?OE:Et(t,"Gecko")?Ed:""},gle={[O3]:[new RegExp("rv:"+Za)],[N3]:[new RegExp(ME+"?\\/"+Za)],[Fl]:[new RegExp("("+Fl+"|CrMo)\\/"+Za)],[D3]:[new RegExp("CriOS\\/"+Za)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Za)],[Cp]:[Kw],[L3]:[Kw],[NE]:[new RegExp("(Opera|OPR)\\/"+Za)],[Ed]:[new RegExp(Ed+"\\/"+Za)],[M3]:[new RegExp("FxiOS\\/"+Za)],[QT]:[new RegExp("Konqueror[:/]?"+Za,"i")],[qd]:[new RegExp(qd+" "+Za),Kw],[I3]:[new RegExp("android\\s"+Za,"i")],[R3]:[new RegExp(A3+"\\/"+Za)],[OE]:[new RegExp("(rv:|MSIE )"+Za)],Mozilla:[new RegExp("rv:"+Za)]},fle=function(t,e){var o=j3(t,e),a=gle[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},l2=[[new RegExp(Cd+"; "+Cd+" (.*?)[);]","i"),t=>[Cd,t&&t[1]||""]],[new RegExp(Kp,"i"),[Kp,""]],[new RegExp(Yp,"i"),[Yp,""]],[IE,[qd,""]],[new RegExp(vp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[YT,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[vp+" "+Ln,""];var o=/Windows NT ([0-9.]+)/i.exec(e);if(o&&o[1]){var a=hle[o[1]]||"";return/arm/i.test(e)&&(a="RT"),[vp,a]}return[vp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[uv,[t[3],t[4],t[5]||"0"].join(".")]:[uv,""]],[/(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("("+Ns+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ns+")","i"),t=>t&&t[2]?[Ns,[t[2],t[3],t[4]||"0"].join(".")]:[Ns,""]],[/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/,[lle,""]],[/Linux|debian/i,["Linux",""]]],c2=function(t){return mle.test(t)?Kp:ple.test(t)?Yp:ule.test(t)?Cd:new RegExp(ZT,"i").test(t)?ZT:new RegExp("("+YT+"|WPDesktop)","i").test(t)?YT:/iPad/.test(t)?E3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?_3:IE.test(t)?qd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(i2,"i").test(t)?i2:/(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)?Ns:k3:new RegExp("(pda|"+Ln+")","i").test(t)?dle:new RegExp(Ud,"i").test(t)&&!new RegExp(Ud+" pc","i").test(t)?F3:""},vle=t=>t instanceof Error,z3={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}},ble=z3.info;function U3(t){if(Kr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(It(t))return{arrayValue:{values:t.map((e=>U3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function d2(t){var e=[];for(var o in t){var a=t[o];zs(a)||$e(a)||e.push({key:o,value:U3(a)})}return e}function yle(t){var e=globalThis._posthogChunkIds;if(e){var o=Object.keys(e);return Ww&&o.length===s2||(s2=o.length,Ww=o.reduce(((a,n)=>{Qg||(Qg={});var r=Qg[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,Qg[n]=[u,m];break}}return a}),{})),Ww}}class Sle{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:yle(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 $d="?";function JT(t,e,o,a,n){var r={platform:t,filename:e,function:o==="<anonymous>"?$d:o,in_app:!0};return $e(a)||(r.lineno=a),$e(n)||(r.colno=n),r}var q3=(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]:$d,o?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},wle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xle=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Tle=/\((\S*)(?::(\d+))(?::(\d+))\)/,kle=(t,e)=>{var o=wle.exec(t);if(o){var[,a,n,r]=o;return JT(e,a,$d,+n,+r)}var i=xle.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=Tle.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=q3(i[1]||$d,i[2]);return JT(e,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},Ele=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_le=(t,e)=>{var o=Ele.exec(t);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var a=Cle.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]||$d;return[r,n]=q3(r,n),JT(e,n,r,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},u2=/\(error: (.*)\)/;let Ple=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,o){var a=Po(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 dv(e,"DOMException")}isDOMError(e){return dv(e,"DOMError")}};class Ale{match(e){return(o=>o instanceof Error)(e)}coerce(e,o){return{type:this.getType(e),value:this.getMessage(e,o),stack:this.getStack(e),cause:e.cause?o.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,o){var a=e.message;return String(a.error&&typeof a.error.message=="string"?a.error.message:a)}getStack(e){return e.stacktrace||e.stack||void 0}}let Rle=class{constructor(){}match(e){return dv(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 Dle=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Ole=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(Dle);return n&&(o=n[1],a=n[2]),[o,a]}};var Nle=["fatal","error","warning","log","info","debug"];function $3(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 Mle=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 DE(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: "+$3(e)}isSeverityLevel(e){return Po(e)&&!Cf(e)&&Nle.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var o in e)if({}.hasOwnProperty.call(e,o)){var a=e[o];if(vle(a))return a}}getObjectClassName(e){try{var o=Object.getPrototypeOf(e);return o?o.constructor.name:void 0}catch{return}}},Ile=class{match(e){return DE(e)}coerce(e,o){var a,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+$3(e),stack:(a=o.syntheticException)==null?void 0:a.stack,synthetic:!0}}},Lle=class{match(e){return T3(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}}},Ble=class{match(e){return dv(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!DE(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 T3(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 pv="$message",mv="$timestamp",Fle=new Set([pv,mv]),Yw={enabled:!0,max_bytes:32768};function hv(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:Yw.enabled,max_bytes:zle(t.max_bytes,Yw.max_bytes)}:Me({},Yw)}let jle=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=hv(e)}setConfig(e){this.Bt=hv(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(!jo(i))return;var c=i,d=c[pv],u=c[mv];return!Po(d)||d.trim().length===0||!Po(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 zle(t,e){if(!sr(t)||t===1/0||t===-1/0)return e;var o=Math.floor(t);return 0>o?e:o}var V3=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)=>V3(t+" "+n,r)};return a},qe=V3("[PostHog.js]"),ko=qe.createLogger,Ule=ko("[ExternalScriptsLoader]"),Zw=(t,e,o)=>{if(t.config.disable_external_dependency_loading)return Ule.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)}Zw(t,a,o)}else{var i=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");Zw(t,i,o)}},ot.__PosthogExtensions__.loadSiteApp=(t,e,o)=>{var a=t.requestRouter.endpointFor("api",e);Zw(t,a,o)};var H3="$people_distinct_id",gv="$device_id",bp="__alias",yp="__timers",XT="$autocapture_disabled_server_side",e0="$heatmaps_enabled_server_side",t0="$exception_capture_enabled_server_side",o0="$error_tracking_suppression_rules",a0="$error_tracking_capture_extension_exceptions",n0="$web_vitals_enabled_server_side",LE="$dead_clicks_enabled_server_side",r0="$product_tours_enabled_server_side",s0="$web_vitals_allowed_metrics",Sp="$session_recording_remote_config",G3="$replay_override_sampling",W3="$replay_override_linked_flag",K3="$replay_override_url_trigger",Y3="$replay_override_event_trigger",fv="$sesid",BE="$session_is_sampled",fd="$enabled_feature_flags",_f="$active_feature_flags",wp="$early_access_features",i0="$feature_flag_details",l0="$feature_flag_payloads",c0="$feature_flag_request_id",Ps="$override_feature_flags",ld="$override_feature_flag_payloads",xp="$stored_person_properties",Al="$stored_group_properties",d0="$surveys",u0="$surveys_activated",Pf="ph_product_tours",_p="$flag_call_reported",p0="$flag_call_reported_session_id",m0="$feature_flag_errors",vv="$feature_flag_evaluated_at",br="$user_state",h0="$client_session_props",g0="$capture_rate_limit",f0="$initial_campaign_params",v0="$initial_referrer_info",bv="$initial_person_info",yv="$epp",Z3="__POSTHOG_TOOLBAR__",Jg="$posthog_cookieless",Q3="$sdk_debug_extensions_init_method",J3="$sdk_debug_extensions_init_time_ms",X3="$sdk_debug_recording_script_not_loaded",FE="PostHog loadExternalDependency extension not found.",Rl="on_reject",Rs="always",Zc="anonymous",Qc="identified",b0="identified_only",Sv="visibilitychange",wv="beforeunload",cd="$pageview",Qw="$pageleave",Jw="$identify",p2="$groupidentify";function Xg(t,e){It(t)&&t.forEach(e)}function yo(t,e){if(!_t(t))if(It(t))t.forEach(e);else if(ale(t))t.forEach(((a,n)=>e(a,n)));else for(var o in t)x3.call(t,o)&&e(t[o],o)}var Io=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 Af(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 m2=function(t){try{return t()}catch{return}},qle=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){qe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),qe.critical(n)}}},jE=function(t){var e={};return yo(t,(function(o,a){(Po(o)&&o.length>0||sr(o))&&(e[a]=o)})),e},$le=["herokuapp.com","vercel.app","netlify.app"];function Vle(t){var e=t?.hostname;if(!Po(e))return!1;var o=e.split(".").slice(-2).join(".");for(var a of $le)if(o===a)return!1;return!0}function Xo(t,e,o,a){var{capture:n=!1,passive:r=!0}=a??{};t?.addEventListener(e,o,{capture:n,passive:r})}function e4(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 xv{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 xv(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 xv(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 Hle{constructor(){this.I=0,this.S=0,this.k=new Gle}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 xv.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 h2,t4=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&&(t4=t=>crypto.getRandomValues(t));class Gle{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(t4(this.T),this.N=0),this.T[this.N++]}}var Ri=()=>Wle().toString(),Wle=()=>(h2||(h2=new Hle)).generate(),ep="",Kle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Wr={R:()=>!!ze,B(t){qe.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",o=ze.cookie.split(";").filter((r=>r.length)),a=0;o.length>a;a++){for(var n=o[a];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Wr.O(t))||{}}catch{}return e},M(t,e,o,a,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(b,S){if(S===void 0&&(S=ze),ep)return ep;if(!S||["localhost","127.0.0.1"].includes(b))return"";for(var T=b.split("."),x=Math.min(T.length,8),k="dmn_chk_"+Ri();!ep&&x--;){var C=T.slice(x).join("."),E=k+"=1;domain=."+C+";path=/";S.cookie=E+";max-age=3",S.cookie.includes(k)&&(S.cookie=E+";max-age=0",ep=C)}return ep})(m);if(!f){var v=(b=>{var S=b.match(Kle);return S?S[0]:""})(m);v!==f&&qe.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&&qe.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Wr.M(t,"",-1,e)}catch{return}}},Xw=null,_o={R(){if(!zs(Xw))return Xw;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";_o.M(e,"xyz"),_o.O(e)!=='"xyz"'&&(t=!1),_o.F(e)}catch{t=!1}return t||qe.error("localStorage unsupported; falling back to cookie store"),Xw=t,t},B(t){qe.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){_o.B(e)}return null},Z(t){try{return JSON.parse(_o.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(o){_o.B(o)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){_o.B(e)}}},Yle=[gv,"distinct_id",fv,BE,yv,bv,br],ef={},Zle={R:()=>!0,B(t){qe.error("memoryStorage error: "+t)},O:t=>ef[t]||null,Z:t=>ef[t]||null,M(t,e){ef[t]=e},F(t){delete ef[t]}},kl=null,Ea={R(){if(!zs(kl))return kl;if(kl=!0,$e(ge))kl=!1;else try{var t="__support__";Ea.M(t,"xyz"),Ea.O(t)!=='"xyz"'&&(kl=!1),Ea.F(t)}catch{kl=!1}return kl},B(t){qe.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Ea.B(e)}return null},Z(t){try{return JSON.parse(Ea.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(o){Ea.B(o)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Ea.B(e)}}};class Qle{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===Rs||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Rl}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 Gw(e)?1:Et(sle,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,o=e==="localStorage"?_o:Wr;if(!this.ar||this.ar!==o){this.ar=o;var a=e==="localStorage"?Wr:_o;a.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(Gw(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=>Gw(e)))}}var tf=ko("[Dead Clicks]"),Jle=()=>!0,Xle=t=>{var e,o=!((e=t.instance.persistence)==null||!e.get_property(LE)),a=t.instance.config.capture_dead_clicks;return Kr(a)?a:!!jo(a)||o};class g2{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({[LE]: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?tf.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=ot.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var o=jo(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),tf.info("starting...")}}else tf.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,tf.info("stopping..."))}}var ex=ko("[SegmentIntegration]"),o4="posthog-js";function a4(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 b,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((C=>Me({},C,{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&&((b=t.exceptions)==null||b.sendExceptionEvent(x)),c}}class ece{constructor(e,o,a,n,r,i){this.name=o4,this.setupOnce=function(c){c(a4(e,{organization:o,projectId:a,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class f2{constructor(e){this.cr=(o,a,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(qe.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?Yr(c/i,0,1,qe):1,v=i>1?Yr(d/i,0,1,qe):1,b=u>1?Yr(m/u,0,1,qe):1,S=u>1?Yr(h/u,0,1,qe):1;n=Io(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:b,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:S})}}return a.pathname&&(n.$prev_pageview_pathname=a.pathname),a.timestamp&&(n.$prev_pageview_duration=(e.getTime()-a.timestamp.getTime())/1e3),n}}var tce={[H3]:{exposure:"hidden"},[bp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[yp]:{exposure:"hidden"},[XT]:{exposure:"event"},[e0]:{exposure:"hidden"},[t0]:{exposure:"event"},[o0]:{exposure:"hidden"},[a0]:{exposure:"event"},[n0]:{exposure:"event"},[LE]:{exposure:"event"},[r0]:{exposure:"hidden"},[s0]:{exposure:"event"},[Sp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[fv]:{exposure:"hidden"},[BE]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[fd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!jo(t))return{};for(var e={},o=Object.keys(t),a=0;o.length>a;a++)e["$feature/"+o[a]]=t[o[a]];return e}},[_f]:{exposure:"event"},[wp]:{exposure:"hidden"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[c0]:{exposure:"event"},[Ps]:{exposure:"event"},[ld]:{exposure:"hidden"},[xp]:{exposure:"hidden"},[Al]:{exposure:"hidden"},[d0]:{exposure:"hidden"},[u0]:{exposure:"event"},[Pf]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[_p]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{exposure:"hidden"},[vv]:{exposure:"hidden"},[br]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[g0]:{exposure:"hidden"},[f0]:{exposure:"hidden"},[v0]:{exposure:"hidden"},[bv]:{exposure:"hidden"},[yv]:{exposure:"hidden"},[G3]:{exposure:"event"},[W3]:{exposure:"event"},[K3]:{exposure:"event"},[Y3]:{exposure:"event"},[Q3]:{exposure:"event"},[J3]:{exposure:"event"},[X3]:{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"}},oce=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Tv=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},kv=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{qe.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Zp=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},Ev=function(t,e){var o=t.match(new RegExp(e+"=([^&]*)"));return o?o[1]:null},of="https?://(.*)",Vd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ace=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Vd],Qp="<masked>",nce=["li_fat_id"];function n4(t,e,o){if(!ze)return{};var a,n=e?[...Vd,...o||[]]:[],r=r4(Zp(ze.URL,n,Qp),t),i=(a={},yo(nce,(function(c){var d=Wr.O(c);a[c]=d||null})),a);return Io(i,r)}function r4(t,e){var o=ace.concat(e||[]),a={};return yo(o,(function(n){var r=kv(t,n);a[n]=r||null})),a}function s4(t){var e=(function(r){return r?r.search(of+"google.([^/?]*)")===0?"google":r.search(of+"bing.com")===0?"bing":r.search(of+"yahoo.com")===0?"yahoo":r.search(of+"duckduckgo.com")===0?"duckduckgo":null:null})(t),o=e!="yahoo"?"q":"p",a={};if(!zs(e)){a.$search_engine=e;var n=ze?kv(ze.referrer,o):"";n.length&&(a.ph_keyword=n)}return a}function v2(){return navigator.language||navigator.userLanguage}var Cv="$direct";function i4(){return ze?.referrer||Cv}function l4(t,e){var o=t?[...Vd,...e||[]]:[],a=ka?.href.substring(0,1e3);return{r:i4().substring(0,1e3),u:a?Zp(a,o,Qp):void 0}}function c4(t){var e,{r:o,u:a}=t,n={$referrer:o,$referring_domain:o==null?void 0:o==Cv?Cv:(e=Tv(o))==null?void 0:e.host};if(a){n.$current_url=a;var r=Tv(a);n.$host=r?.host,n.$pathname=r?.pathname;var i=r4(a);Io(n,i)}if(o){var c=s4(o);Io(n,c)}return n}function d4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function rce(){try{return new Date().getTimezoneOffset()}catch{return}}var sce=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class tx{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&&qe.info("Persistence loaded",e.persistence,Me({},this.props)),this.update_config(e,e,o),this.save()}isDisabled(){return!!this._r}br(e){sce.indexOf(e.persistence.toLowerCase())===-1&&(qe.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=[...Yle,...n];return Me({},_o,{Z(i){try{var c={};try{c=Wr.Z(i)||{}}catch{}var d=Io(c,JSON.parse(_o.O(i)||"{}"));return _o.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{_o.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Wr.M(i,f,d,u,m,h)}catch(v){_o.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Wr.F(i,c)}catch(d){_o.B(d)}}})})(e.cookie_persisted_properties||[]),a=e.persistence.toLowerCase();return a==="localstorage"&&_o.R()?_o:a==="localstorage+cookie"&&o.R()?o:a==="sessionstorage"&&Ea.R()?Ea:a==="memory"?Zle:a==="cookie"?Wr:o.R()?o:Wr}wr(e){var o=e??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var a=this.props[vv];return!a||typeof a!="number"||Date.now()-a>o}properties(){var e={};return yo(this.props,((o,a)=>{var n=(r=>{var i=tce[r];if(i)return i;for(var[c,d]of oce)if(r.indexOf(c)===0)return d})(a);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(o,a===fd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Io(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=Io({},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(jo(e)){$e(o)&&(o="None"),this.Ir=$e(a)?this.kr:a;var n=!1;if(yo(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(jo(e)){this.Ir=$e(o)?this.kr:o;var a=!1;if(yo(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=n4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);gd(jE(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?s4(e):{})}update_referrer_info(){var e;this.register_once({$referrer:i4(),$referring_domain:ze!=null&&ze.referrer&&((e=Tv(ze.referrer))==null?void 0:e.host)||Cv},void 0)}set_initial_person_info(){this.props[f0]||this.props[v0]||this.register_once({[bv]:l4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};yo([v0,f0],(i=>{var c=this.props[i];c&&yo(c,(function(d,u){e["$initial_"+KT(u)]=d}))}));var o,a,n=this.props[bv];if(n){var r=(o=c4(n),a={},yo(o,(function(i,c){a["$initial_"+KT(c)]=i})),a);Io(e,r)}return e}safe_merge(e){return yo(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[yp]||{};a[e]=o,this.Tr(yp,a),this.save()}remove_event_timer(e){var o=this.props[yp]||{},a=o[e];return $e(a)||(delete o[e],this.Tr(yp,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 tp={Activation:"events",Cancellation:"cancelEvents"},ox={Popover:"popover",API:"api",Widget:"widget"},Tp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ax={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},y0={Popover:"popover",Inline:"inline"},ice={SHOWN:"product tour shown"},b2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},y2=ko("[RateLimiter]");class lce{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=>{y2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void y2.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(g0))!==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(g0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var o=this.serverLimits[e||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var op=ko("[RemoteConfig]");class u4{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 op.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void op.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return op.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){op.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||op.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 qr={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,Hd=Uint32Array,zE=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]),UE=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]),S2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p4=function(t,e){for(var o=new fn(31),a=0;31>a;++a)o[a]=e+=1<<t[a-1];var n=new Hd(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]},m4=p4(zE,2),S0=m4[1];m4[0][28]=258,S0[258]=28;for(var w2=p4(UE,0)[1],h4=new fn(32768),So=0;32768>So;++So){var Jc=(43690&So)>>>1|(21845&So)<<1;h4[So]=((65280&(Jc=(61680&(Jc=(52428&Jc)>>>2|(13107&Jc)<<2))>>>4|(3855&Jc)<<4))>>>8|(255&Jc)<<8)>>>1}var Pp=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]=h4[c[t[n]-1]++]>>>15-t[n];return i},Ul=new rr(288);for(So=0;144>So;++So)Ul[So]=8;for(So=144;256>So;++So)Ul[So]=9;for(So=256;280>So;++So)Ul[So]=7;for(So=280;288>So;++So)Ul[So]=8;var _v=new rr(32);for(So=0;32>So;++So)_v[So]=5;var cce=Pp(Ul,9),dce=Pp(_v,5),g4=function(t){return(t/8>>0)+(7&t&&1)},f4=function(t,e,o){(o==null||o>t.length)&&(o=t.length);var a=new(t instanceof fn?fn:t instanceof Hd?Hd:rr)(o-e);return a.set(t.subarray(e,o)),a},Cs=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8},ap=function(t,e,o){var a=e/8>>0;t[a]|=o<<=7&e,t[a+1]|=o>>>8,t[a+2]|=o>>>16},nx=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),b=w0(o[m-1],v,0);if(b>e){a=0;var S=0,T=b-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<<b-v[k]),v[k]=e}for(S>>>=T;S>0;){var C=r[a].s;e>v[C]?S-=1<<e-v[C]++-1:++a}for(;a>=0&&S;--a){var E=r[a].s;v[E]==e&&(--v[E],++S)}b=e}return[new rr(v),b]},w0=function(t,e,o){return t.s==-1?Math.max(w0(t.l,e,o+1),w0(t.r,e,o+1)):e[t.s]=o},x2=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]},np=function(t,e){for(var o=0,a=0;e.length>a;++a)o+=t[a]*e[a];return o},x0=function(t,e,o){var a=o.length,n=g4(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)},T2=function(t,e,o,a,n,r,i,c,d,u,m){Cs(e,m++,o),++n[256];for(var h=nx(n,15),f=h[0],v=h[1],b=nx(r,15),S=b[0],T=b[1],x=x2(f),k=x[0],C=x[1],E=x2(S),P=E[0],D=E[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 I=nx(R,7),U=I[0],B=I[1],j=19;j>4&&!U[S2[j-1]];--j);var F,W,oe,H,K=u+5<<3,J=np(n,Ul)+np(r,_v)+i,se=np(n,f)+np(r,S)+i+14+3*j+np(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return x0(e,m,t.subarray(d,d+u));if(Cs(e,m,1+(J>se)),m+=2,J>se){F=Pp(f,v),W=f,oe=Pp(S,T),H=S;var Q=Pp(U,B);for(Cs(e,m,C-257),Cs(e,m+5,D-1),Cs(e,m+10,j-4),m+=14,O=0;j>O;++O)Cs(e,m+3*O,U[S2[O]]);m+=3*j;for(var M=[k,P],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)Cs(e,m,Q[L=31&V[O]]),m+=U[L],L>15&&(Cs(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=cce,W=Ul,oe=dce,H=_v;for(O=0;c>O;++O)if(a[O]>255){var L;ap(e,m,F[257+(L=a[O]>>>18&31)]),m+=W[L+257],L>7&&(Cs(e,m,a[O]>>>23&31),m+=zE[L]);var z=31&a[O];ap(e,m,oe[z]),m+=H[z],z>3&&(ap(e,m,a[O]>>>5&8191),m+=UE[z])}else ap(e,m,F[a[O]]),m+=W[a[O]];return ap(e,m,F[256]),m+W[256]},uce=new Hd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pce=(function(){for(var t=new Hd(256),e=0;256>e;++e){for(var o=e,a=9;--a;)o=(1&o&&3988292384)^o>>>1;t[e]=o}return t})(),rx=function(t,e,o){for(;o;++e)t[e]=o,o>>>=8};function mce(t,e){e===void 0&&(e={});var o=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=pce[255&v^f[b]]^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,b,S,T){var x=h.length,k=new rr(b+x+5*(1+Math.floor(x/7e3))+S),C=k.subarray(b,k.length-S),E=0;if(!f||8>x)for(var P=0;x>=P;P+=65535){var D=P+65535;x>D?E=x0(C,E,h.subarray(P,D)):(C[P]=!0,E=x0(C,E,h.subarray(P,x)))}else{for(var R=uce[f-1],O=R>>>13,I=8191&R,U=(1<<v)-1,B=new fn(32768),j=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 Hd(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 L=oe(P),z=32767&P,X=j[L];if(B[z]=X,j[L]=z,P>=G){var de=x-P;if((se>7e3||M>24576)&&de>423){E=T2(h,C,0,H,K,J,Q,M,V,P-V,E),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 Ee=2,Ue=0,Z=I,ne=z-X&32767;if(de>2&&L==oe(P-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,P),Te=Math.min(258,de);ie>=ne&&--Z&&z!=X;){if(h[P+Ee]==h[P+Ee-ne]){for(var _e=0;Te>_e&&h[P+_e]==h[P+_e-ne];++_e);if(_e>Ee){if(Ee=_e,Ue=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+=(z=X)-(X=B[z])+32768&32767}if(Ue){H[M++]=268435456|S0[Ee]<<18|w2[Ue];var Ne=31&S0[Ee],Oe=31&w2[Ue];Q+=zE[Ne]+UE[Oe],++K[257+Ne],++J[Oe],G=P+Ee,++se}else H[M++]=h[P],++K[h[P]]}}E=T2(h,C,!0,H,K,J,Q,M,V,P-V,E)}return f4(k,0,b+g4(E)+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&&rx(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var b=0;v.length>=b;++b)h[b+10]=v.charCodeAt(b)}})(u,e),rx(u,m-8,o.d()),rx(u,m-4,a),u}var hce=!!GT||!!HT,v4="text/plain",k2=!1,yb=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 yo(u,(function(b,S){$e(b)||$e(S)||S==="undefined"||(h=encodeURIComponent((T=>T instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(S),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},vd=(t,e)=>JSON.stringify(t,((o,a)=>typeof a=="bigint"?a.toString():a),e),sx=t=>{if(t.tr)return t.tr;var{data:e,compression:o}=t;if(e){if(o===qr.GZipJS){var a=mce((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 b=new rr(h+8+(u-v<<1));b.set(m),m=b}var S=c.charCodeAt(v);128>S?f(S):2048>S?(f(192|S>>>6),f(128|63&S)):S>55295&&57344>S?(f(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),f(128|S>>>12&63),f(128|S>>>6&63),f(128|63&S)):(f(224|S>>>12),f(128|S>>>6&63),f(128|63&S))}return f4(m,0,h)})(vd(e)),{mtime:0});return{contentType:v4,body:a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength),estimatedSize:a.byteLength}}if(o===qr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(vd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:vd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=vd(e);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},gce=(function(){var t=er((function*(e){var o=vd(e.data),a=yield(function(r,i,c){return WT.apply(this,arguments)})(o,Qa.DEBUG,{rethrow:!0});if(!a)return e;var n=yield a.arrayBuffer();return Me({},e,{tr:{contentType:v4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),E2=(t,e)=>yb(t,{_:new Date().getTime().toString(),ver:Qa.JS_SDK_VERSION,compression:e}),Rf=[];HT&&Rf.push({transport:"fetch",method(t){var e,o,{contentType:a,body:n,estimatedSize:r}=(e=sx(t))!==null&&e!==void 0?e:{},i=new Headers;yo(t.headers,(function(m,h){i.append(h,m)})),a&&i.append("Content-Type",a);var c=t.url,d=null;if(o2){var u=new o2;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}HT(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){qe.error(v)}t.callback==null||t.callback(f)})))).catch((m=>{qe.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),GT&&Rf.push({transport:"XHR",method(t){var e,o=new GT;o.open(t.method||"GET",t.url,!0);var{contentType:a,body:n}=(e=sx(t))!==null&&e!==void 0?e:{};yo(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&&Rf.push({transport:"sendBeacon",method(t){var e=yb(t.url,{beacon:"1"});try{var o,{contentType:a,body:n}=(o=sx(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 T0=3e3;class fce{constructor(e,o){this.Pr=!0,this.Lr=[],this.Dr=Yr(o?.flush_interval_ms||T0,250,5e3,qe.createLogger("flush interval"),T0),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)&&yo(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 yo(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 vce=["retriesPerformedSoFar"];class bce{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},Xo(ge,"online",this.Ur),Xo(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:o}=e,a=S3(e,vce);id(o)&&(a.url=yb(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)"),qe.warn(r),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var e=Date.now(),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){qe.error(o)}this.Lr=[]}}class yce{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(){Xo(ge,"scroll",this.Kr,{capture:!0}),Xo(ge,"scrollend",this.Kr,{capture:!0}),Xo(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 Sce=t=>l4(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class C2{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({[h0]:c})}},this._instance=e,this.si=o,this.ni=a,this.ii=n||Sce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[h0]}getSetOnceProps(){var e,o=(e=this.ri())==null?void 0:e.props;return o?"r"in o?c4(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 yo(jE(this.getSetOnceProps()),((o,a)=>{a==="$current_url"&&(a="url"),e["$session_entry_"+KT(a)]=o})),e}}class qE{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 ix=ko("[SessionId]");class _2{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 qE,this.hi=(u,m)=>!(!id(u)||!id(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Rs)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*Yr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,ix.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=Ea.Z(this.gi),c=Ea.Z(this.mi);i&&!c?this.ci=i:Ea.F(this.gi),Ea.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){ix.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&&Ea.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Ea.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Ea.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({[fv]:[o,e,a]}))}Si(){var e=this.ni.props[fv];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(wv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Ea.F(this.mi)},Xo(ge,wv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,o){if(e===void 0&&(e=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===Rs)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=id(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(),ix.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=id(n)&&e&&!d?n:a,v=id(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),e||this.pi(),u&&this.li.forEach((b=>b(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 b4=function(t,e){if(!t)return!1;var o=t.userAgent;if(o&&r2(o,e))return!0;try{var a=t?.userAgentData;if(a!=null&&a.brands&&a.brands.some((n=>r2(n?.brand,e))))return!0}catch{}return!!t.webdriver},Pv=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 P2(t,e,o){return vd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:o})}var y4={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=>Pv(o,a))))),not_regex:(t,e)=>e.every((o=>t.every((a=>!Pv(o,a))))),icontains:(t,e)=>e.map(af).some((o=>t.map(af).some((a=>o.includes(a))))),not_icontains:(t,e)=>e.map(af).every((o=>t.map(af).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)))}))},af=t=>t.toLowerCase();function S4(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=y4[n.operator];return!!c&&c(n.values,i)}))}var k0="custom",A2="i.posthog.com",wce=/^\/static\//;class xce{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("."+A2,".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":k0),this.ki[this.apiHost]}Ti(e){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&wce.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===k0)return this.apiHost+o;var n=A2+o;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var oo=ko("[Surveys]"),E0="seenSurvey_",Tce=[ox.Popover,ox.Widget,ox.API],kce={ignoreConditions:!1,ignoreDelay:!1,displayType:y0.Popover},Ece=ko("[PostHog ExternalIntegrations]"),Cce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class _ce{constructor(e){this._instance=e}ur(e,o){var a;(a=ot.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,e,(n=>{if(n)return Ece.error("failed to load script",n);o()}))}startIfEnabledOrStop(){var e=this,o=function(i){var c,d,u;!n||(c=ot.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||e.ur(Cce[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 Xc,Ap={},lx=0,C0=()=>{},R2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',rp="Surveys module not available",D2="sanitize_properties is deprecated. Use before_send instead",w4="Invalid value for property_denylist config: ",dd="posthog",x4=!hce&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,O2=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:Vle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:C0,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&&Po(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){qe.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:b0,before_send:void 0,request_queue_config:{flush_interval_ms:T0},error_tracking:{},_onCapture:C0,__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))},Pce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],N2=t=>{var e={};for(var[o,a]of Pce)$e(t[o])||(e[a]=t[o]);var n=Io({},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]:qe.error(w4+t.property_denylist)),n};class Ace{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){qe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,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===Rs||this.config.cookieless_mode===Rl&&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 Ace,this.Mi=!1,this.version=Qa.LIB_VERSION,this.Fi=new qE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=O2(),this.SentryIntegration=ece,this.sentryIntegration=a=>(function(n,r){var i=a4(n,r);return{name:o4,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 yce(this),this.pageViewManager=new f2(this),this.rateLimiter=new lce(this),this.requestRouter=new xce(this),this.consent=new Qle(this),this.externalIntegrations=new _ce(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=Po(a)?{[a]:n}:a;this.setPersonProperties(i),r?.({})},set_once:(a,n,r)=>{var i=Po(a)?{[a]:n}:a;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(a=>qe.info('send "'+a?.event+'"',a)))}init(e,o,a){if(a&&a!==dd){var n,r=(n=Ap[a])!==null&&n!==void 0?n:new tr;return r._init(e,o,a),Ap[a]=r,Ap[dd][a]=r,r}return this._init(e,o,a)}_init(e,o,a){var n,r;if(o===void 0&&(o={}),$e(e)||Cf(e))return qe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},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(Io({},O2(o.defaults),N2(o),{name:a,token:e})),this.config.on_xhr_error&&qe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:qr.GZipJS;var i=this.qi();this.persistence=new tx(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new tx(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 fce((T=>this.Vi(T)),this.config.request_queue_config),this.Hi=new bce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new _2(this),this.sessionPropsManager=new C2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(qe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(qe.info("Initializing extensions synchronously"),this.zi(u)),Qa.DEBUG=Qa.DEBUG||this.config.debug,Qa.DEBUG&&qe.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===Zc)this.identify(m);else if(o.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Qc)qe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(Ri()),b=o.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(br,o.bootstrap.isIdentifiedID?Qc:Zc),this.register({distinct_id:m,$device_id:b})}}if(u)this.register_once({distinct_id:Jg,$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,Zc)}return Xo(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(C,E){var P=C.config.segment;if(!P)return E();var D=O=>{var I=()=>O.anonymousId()||Ri();C.config.get_device_id=I,O.id()&&(C.register({distinct_id:O.id(),$device_id:I()}),C.persistence.set_property(br,Qc)),E()},R=P.user();"then"in R&&As(R.then)?R.then(D):D(R)})(T,(()=>{k.register((C=>{Promise&&Promise.resolve||ex.warn("This browser does not have Promise support, and can not use the segment integration");var E=(P,D)=>{if(!D)return P;P.event.userId||P.event.anonymousId===C.get_distinct_id()||(ex.info("No userId set, resetting PostHog"),C.reset()),P.event.userId&&P.event.userId!==C.get_distinct_id()&&(ex.info("UserId set, identifying with PostHog"),C.identify(P.event.userId));var R=C.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=>E(P,P.event.event),page:P=>E(P,cd),identify:P=>E(P,Jw),screen:P=>E(P,"$screen")}})(T)).then((()=>{x()}))}))})(this,(()=>this.Ui())):this.Ui(),As(this.config._onCapture)&&this.config._onCapture!==C0&&(qe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),this.config.ip&&qe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(e){var 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,Xle)),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){qe.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-o);this.register_for_session({[Q3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[J3]:n}),this.config.__preview_deferred_init_extensions&&qe.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var o;if(!ze||!ze.body)return qe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(e.supportedCompression,qr.GZipJS)?qr.GZipJS:Et(e.supportedCompression,qr.Base64)?qr.Base64:void 0),(o=e.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:b0}),this.Ri.forEach((a=>a.onRemoteConfig==null?void 0:a.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(a){qe.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 u4(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()&&Xg(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(Qw),(o=this.logs)==null||o.flushLogs("sendBeacon"),(a=this.Zi)==null||a.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(Qw,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(x4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=yb(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=E2(i.url,i.compression);var c=(a=i.transport)!==null&&a!==void 0?a:"fetch",d=Rf.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===qr.GZipJS&&ele&&!k2?gce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return k2=!0,void u(Me({},i,{compression:void 0,url:E2(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){lx++;try{var o,a=[],n=[],r=[];Xg(e,(c=>{c&&(It(o=c[0])?r.push(c):As(c)?c.call(this):It(c)&&o==="alias"?a.push(c):It(c)&&o.indexOf("capture")!==-1&&As(this[o])?r.push(c):n.push(c))}));var i=function(c,d){Xg(c,(function(u){if(It(u[0])){var m=d;yo(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{lx--}}push(e){if(lx>0&&It(e)&&Po(e[0])){var o=tr.prototype[e[0]];As(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)&&Po(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&&!Po(o?.$current_url)&&(qe.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||qe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,f=a?.timestamp||h,v=Ri(),b={uuid:v,event:e,properties:this.calculateEventProperties(e,o||{},f,v)};e===cd&&this.config.__preview_capture_bot_pageviews&&u&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),m&&(b.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),a?.$set&&(b.$set=a?.$set);var S,T,x,k=this.tn(a?.$set_once,e!==p2,e===Jw);if(k&&(b.$set_once=k),a!=null&&a._noTruncate||(r=this.config.properties_string_max_length,i=b,c=I=>Po(I)?I.slice(0,r):I,d=new Set,b=(function I(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),It(U)?(j=[],Xg(U,(F=>{j.push(I(F))}))):(j={},yo(U,((F,W)=>{d.has(F)||(j[W]=I(F))}))),j);var j})(i)),b.timestamp=f,$e(a?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),e===Tp.DISMISSED||e===Tp.SENT){var C=o?.[ax.SURVEY_ID],E=o?.[ax.SURVEY_ITERATION];(I=>{try{var U=(B=>((j,F)=>{var W=""+E0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+E0+F.id+"_"+F.current_iteration),W})(0,B))(I);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){oo.error("Failed to persist survey seen state",B)}})({id:C,current_iteration:E}),b.$set=Me({},b.$set,{[(S={id:C,current_iteration:E},T=e===Tp.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===Tp.SHOWN&&(b.$set=Me({},b.$set,{[ax.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===ice.SHOWN){var P=o?.[b2.TOUR_TYPE];P&&(b.$set=Me({},b.$set,{[b2.TOUR_LAST_SEEN_DATE+"/"+P]:new Date().toISOString()}))}var D=Me({},b.properties.$set,b.$set);if(gd(D)||this.setPersonPropertiesForFlags(D),!_t(this.config.before_send)){var R=this.rn(b);if(!R)return;b=R}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=a?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,compression:"best-available",batchKey:a?._batchKey};return!this.config.request_batching||a&&(a==null||!a._batchKey)||a!=null&&a.send_instantly?this.Vi(O):this.Zi.enqueue(O),b}qe.critical("This capture call is ignored due to client rate limiting.")}}else qe.error("No event name provided to posthog.capture")}else qe.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(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,(!Po(c.distinct_id)&&!sr(c.distinct_id)||Cf(c.distinct_id))&&qe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(x,k){var C,E,P,D;if(!mn)return{};var R,O,I,U,B,j,F,W,oe=x?[...Vd,...k||[]]:[],[H,K]=(function(J){for(var se=0;l2.length>se;se++){var[Q,M]=l2[se],G=Q.exec(J),V=G&&(As(M)?M(G,J):M);if(V)return V}return["",""]})(mn);return Io(jE({$os:H,$os_version:K,$browser:j3(mn,navigator.vendor),$device:c2(mn),$device_type:(O=mn,I={userAgentDataPlatform:(C=navigator)==null||(C=C.userAgentData)==null?void 0:C.platform,maxTouchPoints:(E=navigator)==null?void 0:E.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=c2(O),W===E3||W===k3||W==="Kobo"||W==="Kindle Fire"||W===F3?Ud:W===Kp||W===Cd||W===Yp||W===ZT?"Console":W===_3?"Wearable":W?Ln:I?.userAgentDataPlatform==="Android"&&((U=I?.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((B=I?.screenWidth)!==null&&B!==void 0?B:0,(j=I?.screenHeight)!==null&&j!==void 0?j:0)/((F=I?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:Ud:"Desktop"),$timezone:d4(),$timezone_offset:rce()}),{$current_url:Zp(ka?.href,oe,Qp),$host:ka?.host,$pathname:ka?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:fle(mn,navigator.vendor),$browser_language:v2(),$browser_language_prefix:(R=v2(),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&&Io(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Io(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===k0&&(c.$lib_custom_api_host=this.config.api_host),u=e!==cd||r?e!==Qw||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(a):this.pageViewManager.doPageView(a,n),c=Io(c,u),e===cd&&ze&&(c.title=ze.title),!$e(i)){var b=a.getTime()-i;c.$duration=parseFloat((b/1e3).toFixed(3))}mn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Io({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),It(this.config.property_denylist)?yo(this.config.property_denylist,(function(x){delete c[x]})):qe.error(w4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(qe.error(D2),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=Io({},r,i||{},e||{}),d=this.config.sanitize_properties;return d&&(qe.error(D2),c=d(c,"$set_once")),o&&(this.Mi=!0),gd(c)?void 0:c}register(e,o){var a;(a=this.persistence)==null||a.register(e,o)}register_once(e,o,a){var n;(n=this.persistence)==null||n.register_once(e,o,a)}register_for_session(e){var o;(o=this.sessionPersistence)==null||o.register(e)}unregister(e){var o;(o=this.persistence)==null||o.unregister(e)}unregister_for_session(e){var o;(o=this.sessionPersistence)==null||o.unregister(e)}an(e,o){this.register({[e]:o})}getFeatureFlag(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlag(e,o)}getFeatureFlagPayload(e){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(e)}getFeatureFlagResult(e,o){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagResult(e,o)}isFeatureEnabled(e,o){var a;return(a=this.featureFlags)==null?void 0:a.isFeatureEnabled(e,o)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,o,a){var n;(n=this.featureFlags)==null||n.updateFlags(e,o,a)}updateEarlyAccessFeatureEnrollment(e,o,a){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,o,a)}getEarlyAccessFeatures(e,o,a){var n;return o===void 0&&(o=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,o,a)}on(e,o){return this.Fi.on(e,o)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:rp}),()=>{})}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:rp})}getActiveMatchingSurveys(e,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,o):e([],{isLoaded:!1,error:rp})}renderSurvey(e,o){var a;(a=this.surveys)==null||a.renderSurvey(e,o)}displaySurvey(e,o){var a;o===void 0&&(o=kce),(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:rp}}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:rp})}ln(e){return!e||Cf(e)?(qe.critical("Unique user id has not been set in posthog.identify"),!1):e===Jg?(qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,o,a){if(!this.__loaded||!this.persistence)return qe.uninitializedWarning("posthog.identify");if(sr(e)&&(e=e.toString(),qe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(gv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(bp)&&(this.unregister(bp),this.register({distinct_id:e}));var r,i=(this.persistence.get_property(br)||Zc)===Zc;e!==n&&i?(this.persistence.set_property(br,Qc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:a||{}},!1),this.capture(Jw,{distinct_id:e,$anon_distinct_id:n},{$set:o||{},$set_once:a||{}}),this.Di=P2(e,o,a),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(o||a)&&this.setPersonProperties(o,a),e!==n&&(this.reloadFeatureFlags(),this.unregister(_p))}}setPersonProperties(e,o){if((e||o)&&this.sn("posthog.setPersonProperties")){var a=P2(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):qe.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(p2,i)}a&&this.setGroupPropertiesForFlags({[e]:a}),r&&!a&&this.reloadFeatureFlags()}else qe.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(qe.info("reset"),!this.__loaded)return qe.uninitializedWarning("posthog.reset");var m=this.get_property(gv);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,Zc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Rs)this.register_once({distinct_id:Jg,$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(H3)?(qe.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(bp,e),this.capture("$create_alias",{alias:e,distinct_id:o})):(qe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var o=Me({},this.config);if(jo(e)){var a,n,r,i,c,d,u,m,h,f;Io(this.config,N2(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 tx(Me({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);Kr(b)&&(this.config.debug=b),Kr(this.config.debug)&&(this.config.debug?(Qa.DEBUG=!0,_o.R()&&_o.M("ph_debug",!0),qe.info("set_config",{config:e,oldConfig:o,newConfig:Me({},this.config)})):(Qa.DEBUG=!1,_o.R()&&_o.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:dd;return o!==dd&&(o=dd+"."+o),o}_isIdentified(){var e,o;return((e=this.persistence)==null?void 0:e.get_property(br))===Qc||((o=this.sessionPersistence)==null?void 0:o.get_property(br))===Qc}nn(){var e,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===b0&&!this._isIdentified()&&gd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[bp])&&((o=this.persistence)==null||(o=o.props)==null||!o[yv]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(e){return this.config.person_profiles==="never"?(qe.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(yv,!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!==Rl)}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!==Rs){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 _2(this),this.pageViewManager=new f2(this),this.persistence&&(this.sessionPropsManager=new C2(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==Rl&&((m=this.surveys)==null||m.loadIfEnabled()),($e(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else qe.warn(R2)}opt_out_capturing(){var e,o,a;this.config.cookieless_mode!==Rs?(this.config.cookieless_mode===Rl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Rl&&(this.register({distinct_id:Jg,$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())):qe.warn(R2)}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===Rs||(this.config.cookieless_mode===Rl?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?b4(Mn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(cd,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(Sv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Xo(ze,Sv,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?(qe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(a="advanced_disable_decide",n=qe,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 nle(e.event)?qe.warn(r+". This can cause unexpected behavior."):qe.info(r),null}a.properties&&!gd(a.properties)||qe.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return a}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,o){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:o})}captureTraceMetric(e,o,a){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:o,$ai_metric_value:String(a)})}Bi(e){var o=Kr(e)&&!e,a=_o.R()&&_o.O("ph_debug")==="true";return!o&&(!!a||e)}}function M2(t){return t instanceof Element&&(t.id===Z3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function Sb(t){return!!t&&t.nodeType===1}function ji(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function T4(t){return!!t&&t.nodeType===3}function k4(t){return!!t&&t.nodeType===11}function $E(t){return t?vb(t).split(/\s+/):[]}function I2(t){var e=ge?.location.href;return!!(e&&t&&t.some((o=>e.match(o))))}function Av(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 $E(e)}function E4(t){return _t(t)?null:vb(t).split(/(\s+)/).filter((e=>Rp(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Jp(t){var e="";return P0(t)&&!_4(t)&&t.childNodes&&t.childNodes.length&&yo(t.childNodes,(function(o){var a;T4(o)&&o.textContent&&(e+=(a=E4(o.textContent))!==null&&a!==void 0?a:"")})),vb(e)}function L2(t){return $e(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Xc=()=>{},debug:Xc,info:Xc,warn:Xc,error:Xc,fatal:Xc},(function(t,e){for(var o=0;e.length>o;o++)t.prototype[e[o]]=qle(t.prototype[e[o]])})(tr,["identify"]);var VE=["a","button","form","input","select","textarea","label"];function B2(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 C4(t){var e=t.parentNode;return!(!e||!Sb(e))&&e}var Rce=["next","previous","prev",">","<"],F2=[".ph-no-rageclick",".ph-no-capture"],_0=t=>!t||ji(t,"html")||!Sb(t),j2=(t,e)=>{if(!ge||_0(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,a=[t],n=t;n.parentNode&&!ji(n,"body");)if(k4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=C4(n);if(!r)break;if(e||VE.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 P0(t){for(var e=t;e.parentNode&&!ji(e,"body");e=e.parentNode){var o=Av(e);if(Et(o,"ph-sensitive")||Et(o,"ph-no-capture"))return!1}if(Et(Av(t),"ph-include"))return!0;var a=t.type||"";if(Po(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Po(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 _4(t){return!!(ji(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ji(t,"select")||ji(t,"textarea")||t.getAttribute("contenteditable")==="true")}var P4="(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})",Dce=new RegExp("^(?:"+P4+")$"),Oce=new RegExp(P4),A4="\\d{3}-?\\d{2}-?\\d{4}",Nce=new RegExp("^("+A4+")$"),Mce=new RegExp("("+A4+")");function Rp(t,e){return e===void 0&&(e=!0),!(_t(t)||Po(t)&&(t=vb(t),(e?Dce:Oce).test((t||"").replace(/[- ]/g,""))||(e?Nce:Mce).test(t)))}function z2(t){var e=Jp(t);return Rp(e=(e+" "+R4(t)).trim())?e:""}function R4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&yo(t.childNodes,(function(o){var a;if(o&&((a=o.tagName)==null?void 0:a.toLowerCase())==="span")try{var n=Jp(o);e=(e+" "+n).trim(),o.childNodes&&o.childNodes.length&&(e=(e+" "+R4(o)).trim())}catch(r){qe.error("[AutoCapture]",r)}})),e}function U2(t){return t.replace(/"|\\"/g,'\\"')}function Ice(t){var e=t.attr__class;return e?It(e)?e:$E(e):void 0}class q2{constructor(e){this.disabled=e===!1;var o=jo(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 cx="$copy_autocapture",$2=ko("[AutoCapture]");function dx(t,e){return e.length>t?e.slice(0,t)+"...":e}function Lce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Sb(e));return e}function Bce(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");)k4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},S=!1,T=!1;if(yo(u,(P=>{var D=P0(P);P.tagName.toLowerCase()==="a"&&(S=P.getAttribute("href"),S=D&&S&&Rp(S)&&S),Et(Av(P),"ph-no-capture")&&(T=!0),v.push((function(O,I,U,B){var j=O.tagName.toLowerCase(),F={tag_name:j};VE.indexOf(j)>-1&&!U&&(F.$el_text=j.toLowerCase()==="a"||j.toLowerCase()==="button"?dx(1024,z2(O)):dx(1024,Jp(O)));var W=Av(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),yo(O.attributes,(function(J){var se;if((!_4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!I&&Rp(J.value)&&(!Po(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=$E(Q).join(" ")),F["attr__"+J.name]=dx(1024,Q)}}));for(var oe=1,H=1,K=O;K=Lce(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(!P0(O))return{};var I={};return yo(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),j=U.value;B&&j&&Rp(j)&&(I[B]=j)}})),I})(P);Io(b,R)})),T)return{props:{},explicitNoCapture:T};if(i||(v[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?z2(t):Jp(t)),S){var x,k;v[0].attr__href=S;var C=(x=Tv(S))==null?void 0:x.host,E=ge==null||(k=ge.location)==null?void 0:k.host;C&&E&&C!==E&&(h=S)}return{props:Io({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(P){return P.map((D=>{var R,O,I="";if(D.tag_name&&(I+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))I+="."+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),j={};return Af(B).sort(((F,W)=>{var[oe]=F,[H]=W;return oe.localeCompare(H)})).forEach((F=>{var[W,oe]=F;return j[U2(W.toString())]=U2(oe.toString())})),(I+=":")+Af(j).map((F=>{var[W,oe]=F;return W+'="'+oe+'"'})).join("")})).join(";")})((function(P){return P.map((D=>{var R,O,I={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:Ice(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Af(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,j]=U;return I.attributes[B]=j})),I}))})(f)))},(o=v[0])!=null&&o.$el_text?{$el_text:(a=v[0])==null?void 0:a.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},b)}}var sp=ko("[ExceptionAutocapture]");function V2(t,e,o){try{if(!(e in t))return()=>{};var a=t[e],n=o(a);return As(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=a}}catch{return()=>{}}}var Fce=ko("[TracingHeaders]"),bi=ko("[Web Vitals]"),H2=9e5,G2="disabled",W2="lazy_loading",ip="awaiting_config",nf="missing_config";ko("[SessionRecording]"),ko("[SessionRecording]");var A0="[SessionRecording]",yi=ko(A0),jce=ko("[Heatmaps]");function K2(t){return jo(t)&&"clientX"in t&&"clientY"in t&&sr(t.clientX)&&sr(t.clientY)}var Y2=ko("[Product Tours]"),zce=["$set_once","$set"],Si=ko("[SiteApps]"),Z2="Error while initializing PostHog app with config id ";function ed(t,e,o){if(_t(t))return!1;switch(o){case"exact":return t===e;case"contains":var a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(a,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Uce{constructor(e){this.vn=new qE,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"||!ed(n,o.url,o.url_matching||"contains"))return!1}return!0}mn(e,o){return!!this.Cn(e,o)&&!!this.Sn(e,o)&&!!this.xn(e,o)}Cn(e,o){var a;if(o==null||!o.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>ed(c.href,o.href,o.href_matching||"exact")));var r,i=(e==null||(a=e.properties)==null?void 0:a.$elements_chain)||"";return!!i&&ed((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=>ed(u.text,o.text,o.text_matching||"exact")||ed(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=>ed(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||S4(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 qce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,o){return!!e&&S4(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===tp.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 Uce(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,tp.Activation),this.An=this.Nn(e,tp.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,tp.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var S=c.indexOf(b.id);0>S||c.splice(S,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(e)){n.info("event name matched",{event:e,eventPayload:o,items:this.Tn.get(e)});var v=this.Mn(e,o,tp.Activation);this.jn(c.concat(v.map((b=>b.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 $ce extends qce{constructor(e){super(e)}Dn(){return u0}Bn(){return Tp.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({[u0]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var ux="SDK is not enabled or survey functionality is not yet loaded",Q2="Disabled. Not loading surveys.",Vce=ge!=null&&ge.location?Ev(ge.location.hash,"__posthog")||Ev(location.hash,"state"):null,J2="_postHogToolbarParams",X2=ko("[Toolbar]"),Ka=ko("[FeatureFlags]"),El=ko("[FeatureFlags]",{debugEnabled:!0}),px=`" failed. Feature flags didn't load in time.`,eN=t=>{for(var e={},o=0;t.length>o;o++)e[t[o]]=!0;return e},tN=t=>{var e={};for(var[o,a]of Af(t||{}))a&&(e[o]=a);return e},_s=ko("[Error tracking]"),oN="Refusing to render web experiment since the viewer is a likely bot",Hce={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&&Pv(e.href,t),not_regex:(t,e)=>!!ge&&!Pv(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);Po(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(oN);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=kv(e?.search,"__experiment_id"),a=kv(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||Hce[(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=n4();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,b=(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&&b&&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];qe.info("[WebExperiments] "+e,a)}Un(e,o,a){this._is_bot()?La.Hn(oN):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?b4(Mn,this.Bt.custom_blocked_useragents):void 0}}var Zn=ko("[Conversations]"),Cl="Conversations not available yet.",wb={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(i0),e=this.os(Ps),o=this.os(ld);if(!o&&!e)return t||{};var a=Io({},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(fd),e=this.os(Ps);if(!e)return t||{};for(var o=Io({},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(l0),e=this.os(ld);if(!e)return t||{};for(var o=Io({},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(gv),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(xp)||{}),group_properties:this.os(Al),timezone:d4()};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:qr.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({[m0]: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+px)}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(c0)||void 0,d=this.os(vv)||void 0,u=this.os(_p)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(p0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[_p]:u,[p0]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(i))){var v,b,S,T,x,k,C,E,P,D;It(u[t])?u[t].push(i):u[t]=[i],(v=this.ni)==null||v.register({[_p]:u});var R=this.getFeatureFlagDetails(t),O=[...(b=this.os(m0))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var I={$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)||(I.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(C=R.reason)==null?void 0:C.description)!==null&&k!==void 0?k:R==null||(E=R.reason)==null?void 0:E.code;B&&(I.$feature_flag_reason=B),R!=null&&(P=R.metadata)!=null&&P.id&&(I.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(I.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(I.$feature_flag_original_payload=R==null||(U=R.metadata)==null?void 0:U.original_payload),O.length&&(I.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",I)}if(a){var j=r;if(!$e(r))try{j=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:j}}}}else Ka.warn('getFeatureFlagResult for key "'+t+px)}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:qr.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+px)}}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 I=O.flags;return I?(O.featureFlags=Object.fromEntries(Object.keys(I).map((U=>{var B;return[U,(B=I[U].variant)!==null&&B!==void 0?B:I[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(I).filter((U=>I[U].enabled)).filter((U=>{var B;return(B=I[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=I[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,b=f.featureFlags,S=f.featureFlagPayloads;if(b){var T=i.requestId,x=i.evaluatedAt;if(It(b)){Ka.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(b)for(var C=0;b.length>C;C++)k[b[C]]=!0;c&&c.register({[_f]:b,[fd]:k})}else{var E=b,P=S,D=v;if(h!=null&&h.partialResponse)E=Me({},d,E),P=Me({},u,P),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var I;return!((I=v[O])!=null&&I.failed)})));E=Me({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[I]=O;return R.has(I)})))),P=Me({},u,Object.fromEntries(Object.entries(P||{}).filter((O=>{var[I]=O;return R.has(I)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[I]=O;return R.has(I)}))))}else E=Me({},d,E),P=Me({},u,P),D=Me({},m,D);c&&c.register(Me({[_f]:Object.keys(tN(E)),[fd]:E||{},[l0]:P||{},[i0]:D||{}},T?{[c0]:T}:{},x?{[vv]: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(Ps),this.ni.unregister(ld),this.ps(),El.info("All overrides cleared");if(It(t)){var e=eN(t);return this.ni.register({[Ps]:e}),this.ps(),El.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(Ps),El.info("Flag overrides cleared");else if(a.flags){if(It(a.flags)){var n=eN(a.flags);this.ni.register({[Ps]:n})}else this.ni.register({[Ps]:a.flags});El.info("Flag overrides set",{flags:a.flags})}}return"payloads"in a&&(a.payloads===!1?(this.ni.unregister(ld),El.info("Payload overrides cleared")):a.payloads&&(this.ni.register({[ld]:a.payloads}),El.info("Payload overrides set",{payloads:a.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[Ps]:t}),this.ps(),El.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(wp)||[]).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({[_f]:Object.keys(tN(c)),[fd]:c}),this.ps()}getEarlyAccessFeatures(t,e,o){e===void 0&&(e=!1);var a=this.os(wp),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(wp),(c=this.ni)==null||c.register({[wp]: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(xp)||{},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({[xp]:Me({},o,r,a)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(xp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var o=this.os(Al)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((a=>{o[a]=Me({},o[a],t[a]),delete t[a]})),this._instance.register({[Al]:Me({},o,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(Al)||{};this._instance.register({[Al]:Me({},e,{[t]:{}})})}else this._instance.unregister(Al)}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}}},Gce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===ip||this.bs===nf?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=G2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw yi.error("started without valid sessionManager"),new Error(A0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Rs)throw new Error(A0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(Sp))==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=G2,this.stopRecording())}}Is(t){var e,o,a;this.ws&&(this.bs!==ip&&this.bs!==nf&&(this.bs=W2),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(BE)}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({[Sp]: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===ip&&(this.bs=nf,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(Sp);return(o==null||(e=o.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(Sp);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({[X3]:!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===nf||this.bs===ip?void 0:(this.bs=ip,yi.info("persisted remote config is stale, requesting fresh config before starting"),void new u4(this._instance).load());this.bs=W2,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({[W3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[G3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,o;this.ys||(o=this.ni)==null||o.register({[t==="url"?K3:Y3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(t,e))}}},Wce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new q2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,o=jo(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){$2.error("Failed to capture event",a)}};if(Xo(ze,"submit",t,{capture:!0}),Xo(ze,"change",t,{capture:!0}),Xo(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=o=>{this.Ps(o=o||ge?.event,cx)};Xo(ze,"copy",e,{capture:!0}),Xo(ze,"cut",e,{capture:!0})}}}else $2.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({[XT]:!!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[XT];if(zs(this.Ns)&&!Kr(o)&&!this.instance.Fr())return!1;var a=(e=this.Ns)!==null&&e!==void 0?e:!!o;return!!this.instance.config.autocapture&&!a}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var o,a=L2(t);T4(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||_0(h))return!1;var v,b,S;if(Kr(f)?(v=!!f&&F2,b=void 0):(v=(S=f?.css_selector_ignorelist)!==null&&S!==void 0?S:F2,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:T}=j2(h,!1);return!(function(x,k){if(x===!1||$e(x))return!1;var C;if(x===!0)C=Rce;else{if(!It(x))return!1;if(x.length>10)return qe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;C=x.map((E=>E.toLowerCase()))}return k.some((E=>{var{safeText:P,ariaLabel:D}=E;return C.some((R=>P.includes(R)||D.includes(R)))}))})(b,T.map((x=>{var k;return{safeText:Jp(x).toLowerCase(),ariaLabel:((k=x.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!B2(T,v)})(a,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===cx;if(a&&(function(h,f,v,b,S){var T,x,k,C;if(v===void 0&&(v=void 0),!ge||_0(h)||(T=v)!=null&&T.url_allowlist&&!I2(v.url_allowlist)||(x=v)!=null&&x.url_ignorelist&&I2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((I=>f.type===I)))return!1}var{parentIsUsefulElement:P,targetElementList:D}=j2(h,b);if(!(function(I,U){var B=U?.element_allowlist;if($e(B))return!0;var j,F=function(oe){if(B.some((H=>oe.tagName.toLowerCase()===H)))return{v:!0}};for(var W of I)if(j=F(W))return j.v;return!1})(D,v)||!B2(D,(C=v)==null?void 0:C.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&&(VE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(a,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=Bce(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===cx){var d,u=E4(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 As(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(qe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,qe.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(ge&&ge.history){var o=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||V2(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__||V2(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(cd,{navigation_type:t}),this.Ls=o}catch(a){qe.error("Error capturing "+t+" pageview",a)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Xo(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[e0]),this.rageclicks=new q2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return jo(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;jce.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({[e0]: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),Xo(ge,wv,this.zs),this.Us=t=>this.Tt(t||ge?.event),Xo(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Xo(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new g2(this.instance,Jle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Xo(ze,Sv,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(wv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(Sv,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&&Sb(u)&&!ji(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=C4(u)}return!1})(L2(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"),!M2(t.target)&&K2(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){!M2(t.target)&&K2(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?[...Vd,...o||[]]:[],n=Zp(e,a,Qp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!gd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:g2,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[n0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,o=jo(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[s0])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(jo(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=jo(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=jo(this.oo)&&sr(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:H2;return t>0&&6e4>=t?H2: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=jo(this.oo)?this.oo.web_vitals:Kr(this.oo)?this.oo:void 0;return Kr(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=jo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,o=jo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[n0]:e}),this._instance.persistence.register({[s0]: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?[...Vd,...e||[]]:[];return Zp(t,o,Qp)}bi.error("Could not determine current URL")}}},Kce={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){sp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[t0]),this.do=new ile({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:sp}),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 jo(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?(sp.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 sp.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({[t0]: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)?sp.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 Sle([new Ple,new Ble,new Rle,new Ale,new Ile,new Mle,new Ole,new Lle],(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=u2.test(f)?f.replace(u2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var S=b(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||(C=x,C[C.length-1]||{}).filename,function:k.function||$d});var C}))})(u)}})("web:javascript",kle,_le)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(o0))!==null&&e!==void 0?e:[],this.mo=hv(this.yo()),this.bo=new jle(this.mo)}onConfigChange(){this.mo=hv(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({[o0]:this.fo,[a0]:r})}}get _o(){var t,e=!!this._instance.get_property(a0),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(!Po(t)||t.trim().length===0)return void _s.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)=>Fle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&_s.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[pv]:t,[mv]:new Date().toISOString()},a))}catch(r){_s.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 _s.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 _s.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 _s.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 _s.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _s.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 _s.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[pv]:t,[mv]:new Date().toISOString()})}wo(t){return jo(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 Po(n)&&n.length>0&&o.$exception_types.push(n),Po(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=y4[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)}}},Yce=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({[r0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(r0)||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?Y2.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[Pf];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 Y2.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({[Pf]: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(Pf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},wb),Zce={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:b}=t;return{event:Me({},S3(t,zce),{properties:Me({},t.properties,b?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},b)}:{},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(Z2+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(Z2+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.')}}},Qce={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 Fce.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)}}},Jce=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(E0)||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(Q2);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(FE);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 $ce(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(Q2),t([]);var o,a=this._instance.get_property(d0);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(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[d0]: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:ux};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:ux};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:ux})):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(Tce.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!==y0.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!==y0.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()}}},wb),Xce={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),e4(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=Vce||Ev(t.hash,"__posthog")||Ev(t.hash,"state"),r=n?m2((()=>JSON.parse(atob(decodeURIComponent(n)))))||m2((()=>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(J2)||"{}")).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)&&As(e)?e(t,this.instance):X2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(Z3));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(J2,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 X2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Xo(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)}}},ede=Me({experiments:La},wb),tde={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||e4(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(FE);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()}}},ode={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=ko("[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(FE)}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:b,number:S}=z3[v]||ble,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||{}),C={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:d2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(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:d2(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}}},ade=Me({},wb,Gce,Wce,Kce,Yce,Zce,Jce,Qce,Xce,ede,tde,ode);tr.__defaultExtensionClasses=Me({},ade);var aN,Us=(aN=Ap[dd]=new tr,(function(){function t(){t.done||(t.done=!0,x4=!1,yo(Ap,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Xo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),aN);let Is=!1,R0=null,nN=!1;const HE="studio:lp-distinct-id",D4="mesh:lp-distinct-id",mx="/api/_reports/link-token/",nde=1440*60*1e3;function O4(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(mx)&&n.pathname!==mx&&(n.pathname=`${mx}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 hx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?O4(o):o]))}const rde=t=>t?(t.properties=hx(t.properties),t.$set&&(t.$set=hx(t.$set)),t.$set_once&&(t.$set_once=hx(t.$set_once)),t):null;function N4(){try{const t=window.localStorage.getItem(HE)??window.localStorage.getItem(D4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=nde?e:void 0}catch{return}}function sde(){try{window.localStorage.removeItem(HE),window.localStorage.removeItem(D4)}catch{}}function ide(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(HE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??N4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function lde(t){const e=N4();if(e&&(sde(),e!==t))try{Us.alias(e)}catch{}}function cde(t,e){if(Is||typeof window>"u")return;const o=ide();Us.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:rde,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:O4(a.name)}:{}})},person_profiles:"identified_only"}),Is=!0}function dde(t,e){Is&&(Us.identify(t,e),lde(t))}function ude(){Is&&(Us.reset(),R0=null)}function M4(t,e){Is&&Us.capture(t,e)}function jTe(){return Is}function zTe(){if(!Is||nN||typeof performance>"u")return;nN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};M4("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:RJ(),org_cache_restored:DJ()})}function UTe(t,e){Is&&t!==R0&&(Us.group("organization",t,e),R0=t)}function I4(t,e){if(Is)try{Us.captureException(t,e)}catch{}}const pde=["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 mde(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:pde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.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 L4(t){const e=ye.c(20),{orgName:o}=t,a=qa(),n=hde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(Jj,{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=y.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=y.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=y.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=y.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=y.jsxs(mde,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function hde(){window.location.href="/"}function gde(){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}=sm(e);let a;return t[1]!==o?(a=y.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:y.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 fde(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=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(i3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=y.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=y.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??y.jsx(gde,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=y.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 rN="__studio_chunk_reload_ts";function B4(t){return t?.message===ree}function vde(t){return!!t?.message?.includes("Access denied")}function sN(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 bde 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),I4(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:B4(this.state.error)?y.jsx(L4,{}):vde(this.state.error)?y.jsx(fde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(PE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function yde(t){const e=ye.c(3),o=qa();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(bde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class Sde 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=sN(e);if(I4(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(rN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(rN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&sN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(l3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),y.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?B4(this.state.error)?y.jsx(L4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(PE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function wde(t){const e=ye.c(3),o=qa();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(Sde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const xde=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Tde(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)?lb:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Ze(xde({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=y.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 qTe(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=Ze("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)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(Xj,{size:12})]})]})]}),r&&y.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=y.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function $Te(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=Tde,e[5]!==o?(r=Ze("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(kde),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=y.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function kde(t,e){return y.jsxs("div",{children:[e>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function VTe(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=Ze(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 b;e[4]!==i?(b=i?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),i())}:void 0,e[4]=i,e[5]=b):b=e[5];let S;e[6]!==o?(S=o&&y.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=y.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&&y.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=y.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 C;e[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:Ede,children:r}),e[16]=r,e[17]=C):C=e[17];let E;return e[18]!==i||e[19]!==k||e[20]!==C||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==b||e[25]!==S?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[S,k,C]}),e[18]=i,e[19]=k,e[20]=C,e[21]=h,e[22]=f,e[23]=v,e[24]=b,e[25]=S,e[26]=E):E=e[26],E}function Ede(t){return t.stopPropagation()}function HTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Ze("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function GTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Ze("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=y.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function Cde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Ze("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=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const xb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:p3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:d3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:o3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:c3,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:r3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:n3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function WTe(t){const e=xb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function KTe(t){return xb[t].tabs.length>0}const _de=new Set(["owner","admin"]);function F4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=no.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}=Ls(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 YTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=F4();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 j4(){const t=ye.c(10),{data:e,loading:o,error:a}=F4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?_de.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 Pde(){const t=ye.c(13),{org:e}=Yi(),o=Yk(),{capabilities:a,isPrivileged:n}=j4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=no.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}=Ls(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Ade)??[],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 Ade(t){return t.slug}function ZTe(){const t=ye.c(7),e=Yk(),o=qa();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=>Bd.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:Rde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],Sf(r)}function Rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function QTe(t,e){const o=ye.c(14),{org:a}=Yi(),n=Yk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Ls,i=no.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 Dde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=j4(),{sites:r,isLoading:i}=Pde(),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(xb).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 Ode(t){const e=ye.c(16),{group:o}=t,a=qa();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=sm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Nde},e[1]=i):i=e[1];const c=Sk(i),d=Dde()[o],{titleKey:u}=xb[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=y.jsx(kd.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&&y.jsx(pn.Toolbar.Left.Portal,{children:y.jsx(kd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return y.jsx(kd.Tab,{active:T,asChild:!0,children:y.jsx(Wl,{to:b.to,params:{org:r},onClick:()=>M4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.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=y.jsxs(y.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function Nde(t){return t.location.pathname}function z4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(PO,{className:"h-32 w-full"}),y.jsx(PO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Mde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=y.jsx(Ode,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??y.jsx(z4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=y.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=y.jsx(yde,{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=y.jsx(kd,{children:y.jsx(kd.Content,{children:y.jsx(kd.Container,{children:y.jsxs(Cde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function qs(t){return function(){return y.jsx(Mde,{group:t,children:y.jsx(z4,{})})}}function Ide(t){try{localStorage.setItem(Qi.lastLocation(),JSON.stringify(t))}catch{}}function Lde(){try{const t=localStorage.getItem(Qi.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function JTe(){try{localStorage.removeItem(Qi.lastLocation())}catch{}}function Bde(t,e){const o=t&&e?_J(e,t):null;return{queryKey:no.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=eE(n);return n&&!r&&localStorage.setItem(Qi.lastOrgSlug(),t),e&&n&&PJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let iN;async function Fde(t){iN=t,await BB();const e=lee();if(!e)return;const o=await Zl.ensureQueryData(Bde(t,e)).catch(()=>null);o&&!eE(o)&&iN===t&&Ide({org:t})}const Ct={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:Ct.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 XTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:jde},t[0]=e):e=t[0],Sk(e)}function jde(t){return t.matches.at(-1)?.fullPath??""}function e0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:zde},t[0]=e):e=t[0],Sk(e)}function zde(t){return t.matches.findLast(Ude)?.staticData.mainView}function Ude(t){return t.staticData.mainView}function Df(t){return`agent-view:${encodeURIComponent(t)}`}function qde(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 U4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function GE(t,e){return`app:${t}:${e}`}function $de(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 q4(t){return`deck:${encodeURIComponent(t)}`}function Vde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function $4(t){return`file:${encodeURIComponent(t)}`}function Hde(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 V4(t){return`library-file:${encodeURIComponent(t)}`}function Gde(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 H4(t){return`code:${encodeURIComponent(t)}`}function Wde(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 G4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Kde=new Set(G4),W4=new Set(["hosting","e2e","analytics","cdn"]),Yde=new Set(["board","files","connect-sources","reports"]);function t0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Zde=new Map([["preview","site-editor"],["git","site-editor"]]);function Tb(t){return Zde.get(t)??t}const WE=new Set(["instructions","connections","layout","settings"]);function Qde(t){return!!t&&WE.has(t)}const Jde=new Set(["overview","board","reports"]);function K4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=Tb(e.type);if(WE.has(o))return"settings";if(Kde.has(o)||Jde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return GE(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?Df(e.id):n[0]?Df(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?Df(a):"settings"}function o0e(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=K4(t);return o==="overview"?null:o}function a0e(t){const e=t.routeDefaultMain||K4(t.metadata),o=t.panelTabId&&WE.has(t.panelTabId)?"settings":t.panelTabId?Tb(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 n0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function r0e(t){return t.mainOpen?t.activeTab==="automations"?!0:U4(t.activeTab)!==null:!1}const Xde=new Set([...G4.filter(t=>!W4.has(t)),...Yde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function eue(t){return!!t&&Xde.has(t)}function tue(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?GE(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?$4(e.key):void 0;case"deck":return e.deck?q4(e.deck):void 0;case"library-file":return e.path?V4(e.path):void 0;case"code":return e.file?H4(e.file):"code";default:{const o=Tb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function s0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?H4(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?GE(e.connectionId,e.toolName):void 0;case"view":return e.viewId?Df(e.viewId):void 0;case"file":return o.key?$4(o.key):void 0;case"deck":return o.path?q4(o.path):void 0;case"library-file":return o.path?V4(o.path):void 0;default:return t.mainView}}const oue={files:"library",discover:"discover"},aue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},nue={analytics:"audience",cdn:"performance"},rue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function Y4(t){const e=qde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=$de(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=U4(t);if(a)return{kind:"automations",automationId:a.id};const n=Hde(t);if(n)return{kind:"output-file",key:n.key};const r=Vde(t);if(r)return{kind:"output-deck",path:r.path};const i=Gde(t);if(i)return{kind:"library-file",path:i.path};const c=Wde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Qde(t))return{kind:"agent-section",section:"settings"};const d=Tb(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=aue[d];if(u){const f=nue[d];return{kind:"project-destination",destination:u,...f?{monitorView:f}:{}}}const m=oue[d];if(m)return{kind:"org-destination",destination:m};const h=rue[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function ql(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=Y4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:e},search:i}:{to:tt.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};case"library":return{to:Ct.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 i0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Ct.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&Y4(e).kind==="org-destination"?"overview":e;return ql({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function sue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Ct.tasks:t({to:Ct.tasks,params:e.params,search:a,replace:n});return;case Ct.home:t({to:Ct.home,params:e.params,search:a,replace:n});return;case Ct.reports:t({to:Ct.reports,params:e.params,search:a,replace:n});return;case Ct.discover:t({to:Ct.discover,params:e.params,search:a,replace:n});return;case Ct.plan:t({to:Ct.plan,params:e.params,search:a,replace:n});return;case Ct.monitoring:t({to:Ct.monitoring,params:e.params,search:a,replace:n});return;case Ct.library:t({to:Ct.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 l0e(t,e){sue(t,ql(e),e)}function iue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function lue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const cue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),Z4=new Set(["main"]),due=new Set(["virtualmcpid"]);function kb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function jl(t,e){return{...kb(t,cue),...e.search}}function uue(t){return kb(t,due)}function c0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Ct.tasks?"board":t.routePath===Ct.reports?"reports":null;if(t.routePath===Ct.home||o){const a=o?ql({org:t.org,agentId:e,tabId:o}):Gd(t.org,e);return{kind:"canonical",route:a,search:jl(t.search,a)}}}return t.routePath===Ct.home||t.routePath===Ct.tasks||t.routePath===Ct.reports||t.routePath===Ct.library?{kind:"same-route",search:uue(t.search)}:null}function kr(t){return t?.trim()||void 0}function Q4(t){return eue(t)||t!==void 0&&W4.has(t)}function J4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||aB(e)!==null||oZ(e)!==null||aZ(e)!==null||rB(e)||sB(e):!1}function pue(t){const e=kr(t.agentIdParam),o=Q4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function d0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=D0({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||lue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!J4(e);if(!(Q4(e)||o))return null;const n=pue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=D0({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 mue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?ql({org:e,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=_i(o.path);return{to:Ct.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?ql({org:e,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:e},search:{}};case"overview":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};default:return null}}function Xp(t){const e=mue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Gd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:ql({org:t.org,agentId:o,tabId:t.tabId}):null}function Gd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:Ct.home,params:{org:t},search:{}}}function hue(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:{...kb(o,Z4),mainpanel:!1}};if(e==="chat"){const n=Gd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Xp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:jl(o,a)}:null}function _i(t){return typeof t=="string"&&t.length>0?t:void 0}function D0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=D0({...t,search:kb(e,Z4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return hue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Gd(t.org,o);return{kind:"canonical",route:i,search:jl(e,i)}}const n=tue(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?ql({org:t.org,agentId:o,tabId:n}):Xp({org:t.org,agentId:o,tabId:n,search:e}):Xp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function u0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Gd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Xp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Xp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Ct.home,params:{org:t.org},search:{}}}else r=Gd(t.org,o);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function X4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const gue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},e5=gue,KE={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()},fue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Rv={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:pT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ao(fue).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)},vue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Jv().optional(),siteUrl:$().optional(),...e5},t5={...vue,task:$().optional(),project:$().optional(),...KE,skill:Rv.skill,brand:Rv.brand},xm=we(t5),Va=sV({component:()=>y.jsx(wde,{children:y.jsx(yk,{})})}),bue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-C_kb8goZ.js"),__vite__mapDeps([0,1,2,3]))),validateSearch:Qr(()=>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()}))}),yue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-CAUQEN95.js"),__vite__mapDeps([4,3])))}),Sue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-qF03il-Y.js"),[])),validateSearch:Qr(()=>we({token:$().optional(),error:$().optional()}))}),wue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-DvKB5Itg.js"),[]))}),xue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-seyUpLHE.js"),__vite__mapDeps([5,6,7])))}),Tue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-Csxt2TlH.js"),__vite__mapDeps([8,3,1,2])))}),kue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-C5tN-P7D.js"),[]))}),Tm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-DNHVxHcF.js"),__vite__mapDeps([9,10,11])))}),Eue=De({getParentRoute:()=>Tm,path:"/",beforeLoad:()=>{throw mo({to:"/_admin/users"})}}),Cue=De({getParentRoute:()=>Tm,path:"/users",component:Be(()=>Fe(()=>import("./users-Cdd9D-dR.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),_ue=De({getParentRoute:()=>Tm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-p1XKp1ZG.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),Pue=De({getParentRoute:()=>Tm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-BE2oz-mN.js"),__vite__mapDeps([32,16,23,29,21])))}),Aue=Tm.addChildren([Eue,Cue,_ue,Pue]),YE=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-q9TPgR4S.js").then(t=>t.e),__vite__mapDeps([33,34,35,11,21,36,37,38,15,39,40,41,42,27,43,44,45,46,47,48,49,50,51,18,52,53,54,55,56,57,58,59,7,60,61,62,63,64,65,66,67,2,68,69,31,70,23,71,72,26,73,74,75,76,20,77,10,78,79])))}),Rue=De({getParentRoute:()=>YE,path:"/",beforeLoad:async()=>{const t=Lde();if(t)throw mo({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Qi.lastOrgSlug());if(e)throw mo({to:"/$org",params:{org:e}});const{data:o}=await FB();if(!o)return;const a=o[0];throw mo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Due=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await FB();if(t&&t.length>0)throw mo({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-CLe1nQhR.js"),__vite__mapDeps([80,10,3,81,51,23,28,34,42,53])))}),o5=Qr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Oue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-DN1rE25Z.js"),__vite__mapDeps([82,83,1,2,3,81,51,84,85,23,86,59,7,87,64,40,36,37,38,15,39,41,34,42,27,43,35,44,45,46,47,48,49,50,18,52,53,54,55,56,72,26,88,89,90,91,20,92,93,94,6,95,96,97,98,99,100]))),validateSearch:o5}),Nue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:o5,beforeLoad:({search:t})=>{throw mo({to:"/reports-onboarding",search:t})}}),Mue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-D5eTMtDH.js"),__vite__mapDeps([101,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,10]))),validateSearch:Qr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),ZE=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-BSjvpXJX.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])))}),Iue=De({getParentRoute:()=>ZE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-BSjvpXJX.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])),"SiteEditorPreview")}),Lue=De({getParentRoute:()=>ZE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-BSjvpXJX.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])),"SiteEditorContent")}),Bue=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-CqsqZ5NG.js"),__vite__mapDeps([220,95,2,1,221])))}),Eb=De({getParentRoute:()=>YE,path:"/$org",loader:({params:t})=>Fde(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-Ci6YieJ3.js"),__vite__mapDeps([222,114,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,108,112,115,116,117,84,85,118,119,123,124,200,105,104,206,160,25,223,224,225,19,127,226,28,227,128,29,179,228,171,169,129,229,191,190,230,231,215,106,232,126,91,233,204])))}),Cb=De({getParentRoute:()=>Eb,id:"org-shell",pendingComponent:Qd,component:Be(()=>Fe(()=>import("./thread-route-Cjav7kKF.js"),__vite__mapDeps([234,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,83,235,88,89,90,40,86,87,64,36,37,38,15,39,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,85,23,91,20,92,93,94,6,95,96,97,98,236,99])))}),Fue=we({sidepanel:rF,mainpanel:sF,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Cb,id:"agent-shell",validateSearch:Fue,search:{middlewares:[R$(["sidepanel"])]},pendingComponent:Qd,component:Be(()=>Fe(()=>import("./route-CmtRblLz.js"),__vite__mapDeps([237,37,36,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,109,110,61,60,57,58,59,7,67,2,68,69,31,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,108,112,197,103,104,105,106,141,124,149,140,85,142,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,179,195,196,172,132,130,136,16,129,107,113,238,239,240,191,181,180,228,171,169,177,190,118,241,242,243,244,245,131,162,120])))}),jue=xm.extend({virtualmcpid:$().optional()}),zue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:jue,component:()=>null}),Bt=Be(()=>Fe(()=>import("./index-CAMi4lK6.js").then(t=>t.i),__vite__mapDeps([107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113])),"ChatLayoutPending"),Ft=Be(()=>Fe(()=>import("./index-CAMi4lK6.js").then(t=>t.i),__vite__mapDeps([107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113])),"ChatLayoutError"),Uue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-DQQdj4Ea.js"),__vite__mapDeps([246,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,198,140,141,85,142,143,139,103,104,105,106,91,151,199,122,123,124,125,126,24,25,127,128,168,166,200,165,201,202,149,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,247,248,230,231,115,249,158,159,157,250,118,251,224,232,252,253,245,131,162,242,243,244,254,223,119])))}),que=De({getParentRoute:()=>en,path:"/projects",validateSearch:xm,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 mo({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw mo(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 lN;const co=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==lN;return lN=e.agentId,{enteredProject:o}},component:yk}),$ue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-CunpO2WP.js"),__vite__mapDeps([255,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,103,104,105,106,198,140,141,85,142,143,139,91,151,199,122,123,124,125,126,24,25,127,128,168,166,200,165,201,202,149,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,247,248,230,231,115,249,158,159,157,250,118,251,224,232,252,223,241])))}),Vue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...KE}),beforeLoad:({params:t,search:e})=>{const o=X4(t.taskKey,e);if(o)throw mo({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-CtZ4MN1R.js"),__vite__mapDeps([256,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,257,115,116,258,167,123,259,19,91,203,260,261,117,225,230,231,215,106,253,24,25,251,224,232,262,163,176,138,139,143,103,104,105,263,140,141,85,142,164,202,264,136,265,148,90,266,214,137,144,145,146,147,149,150,151,213,238,194,199,267,205,206])))}),Hue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-CVQtK-Va.js"),__vite__mapDeps([268,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,269,83,235,88,89,90,99,100,254,270])))}),_b=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...e5}),component:Be(()=>Fe(()=>import("./agent-site-editor-ZQQDb3Rx.js"),__vite__mapDeps([192,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,193,194,121,122,123,124,72,26,108,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,125,126,24,25,127,128,129,130,131,132,133,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,111,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,110,216,137,138,144,145,146,147,112,150,184,185,175,176,152,162,217,172,136,179,218,189,107,109,113,219])))}),Gue=De({getParentRoute:()=>_b,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-GFFDvuZl.js"),__vite__mapDeps([271,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,134,135,131,136,152,153,121,133,16,154,155,156,157,158,159,28,160,161,162,163,164,115,116,167,17,170,172,111,173,174,92,120,113,175,176,178])))}),Wue=De({getParentRoute:()=>_b,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-BMrNzhJ0.js"),__vite__mapDeps([273,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,182,154,155,156,157,158,159,153,121,131,133,16,135,136,152,28,160,161,162,163,164,115,116,167,17,170,183,184,185,186,172,187,188,189,13,14])))}),Kue=De({getParentRoute:()=>_b,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-CBnPLDwR.js"),__vite__mapDeps([274,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,16])))}),Yue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw mo({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-M5aYunrZ.js"),__vite__mapDeps([275,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,17,16,260,276,19])))}),Zue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,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-CkV5B9AK.js"),__vite__mapDeps([277,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,126,28,123,141,148,240,278,124,103,104,105,106,125,24,25,127,128,279,260,138,280,201,202,140,85,142,143,139,149,203,281,231,115,282,168,166,161,162,283,14,16,284,213,238,266,214,137,144,145,146,147,150,151,212])))}),Que=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-Cf2re97I.js"),__vite__mapDeps([285,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,286,287,288,289,290,103,104,105,106,29,16,291,203,292,96,89,97,98,279,227,94,6,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,151,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,139,30,177,130,294,295,147,178,196])))}),Jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Rv),component:Be(()=>Fe(()=>import("./agent-library-_YpYk3se.js"),__vite__mapDeps([296,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,297,17,103,104,105,106,203,298,29,143,139,286,287,288,289,290,16,291,244,123,242,243,91,245,131,162,151,299,189,14,292,96,89,97,98,279,227,94,6,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,160,179,228,171,169,129,229,30,177,130,294,295,147,178,196])))}),Xue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-DHBXzTkB.js"),__vite__mapDeps([300,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,272,239,148,240,146,142,179,197,103,104,105,106,141,124,149,140,85,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,147,150,132,130,191,181,180,228,171,169,129,177,17,170])))}),epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-HbfAzMUb.js"),__vite__mapDeps([301,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,272,239,148,240,146,142,179,197,103,104,105,106,141,124,149,140,85,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,147,150,132,130,191,181,180,228,171,169,129,177,121,131,133,185])))}),tpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-DN3p71Ic.js"),__vite__mapDeps([302,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,189,91,14,138,24,25,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,210,211,93,212,213,214,151,203,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ope=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-vXEqRzNY.js"),__vite__mapDeps([304,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,24,25,14,189,138,168,166,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,210,211,93,212,213,214,151,203,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ape=De({getParentRoute:()=>co,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),npe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-BSun1TbW.js"),__vite__mapDeps([305,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,212,19,258,306,123,160,25,163,307,249,158,159,157,250,14,165,166,231,115,308,251,224,232,167])))}),rpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-DMJmKtxn.js"),__vite__mapDeps([309,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,193,194,103,104,105,106,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,184,185,175,176,152,162,217,172,136,179,310,189,311,154,155,156,157,158,159,312,188,183,218])))}),spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-DFReqWL3.js"),__vite__mapDeps([313,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,193,194,103,104,105,106,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,184,185,175,176,152,162,217,172,136,179,160,183,311,154,155,156,157,158,159,312,188,187,218,189,303,292,279,227,280,293,240,28,228,171,169,229,290,30,294,295,178])))}),ipe=De({getParentRoute:()=>co,path:"/cdn",beforeLoad:({params:t})=>{throw mo({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),a5=we({args:$().optional()}),lpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/apps/$connectionId/$toolName",validateSearch:a5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-BOWDvrpS.js"),__vite__mapDeps([314,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,181,315,141,240,144,145,146,103,104,105,106,251,224,232,115,316,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98])))}),cpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/views/$viewId",validateSearch:a5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-BoMty4cJ.js"),__vite__mapDeps([317,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,315,141,240,144,145,146,103,104,105,106,251,224,232,115,316,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98,303,292,279,16,227,29,148,280,207,208,209,124,24,25,210,211,212,19,213,214,151,203,293,126,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),dpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-ByXLEOEk.js"),__vite__mapDeps([318,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,151,245,203,131,162,143,139,103,104,105,106,150,303,292,96,89,97,98,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,30,177,130,294,295,147,178,196])))}),upe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-Bx7kJg98.js"),__vite__mapDeps([319,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,244,203,123,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,151,293,146,126,240,149,142,28,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ppe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-BGthAKoz.js"),__vite__mapDeps([320,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,321,243,91,244,203,123,245,131,162,151,143,139,103,104,105,106,303,292,96,89,97,98,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,160,179,228,171,169,129,229,290,30,177,130,294,295,147,178,196])))}),mpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-BAUjcdOy.js"),__vite__mapDeps([322,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,86,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98,236,99])))}),hpe=De({getParentRoute:()=>co,path:"/$legacyView",component:()=>null}),gpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:xm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw mo(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})}}),fpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:xm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!J4(o))return;const a=iue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw mo({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-phbsWihE.js"),__vite__mapDeps([323,241,61])))}),vpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...KE}),beforeLoad:({params:t,search:e})=>{const o=X4(t.taskKey,e);if(o)throw mo({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-CXuVo5e-.js"),__vite__mapDeps([324,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,257,115,116,258,167,123,259,19,91,203,260,261,117,225,230,231,215,106,253,24,25,251,224,232,262,163,176,138,139,143,103,104,105,263,140,141,85,142,164,202,264,136,265,148,90,266,214,137,144,145,146,147,149,150,151,213,238,194,199,267,205,206])))}),bpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-BSun1TbW.js"),__vite__mapDeps([305,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,212,19,258,306,123,160,25,163,307,249,158,159,157,250,14,165,166,231,115,308,251,224,232,167])))}),ype=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-oUI0Ldjh.js"),__vite__mapDeps([325,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,307,249,158,159,157,250,14,165,166,19,231,115,308,167,123,24,25,168,266,214,137,138,139,140,141,85,142,143,103,104,105,106,144,145,146,147,148,149,150,151,213,238])))}),Spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-C-TsCVxa.js"),__vite__mapDeps([326,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,269,83,235,88,89,90,99,100,254,270])))}),wpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Rv),component:Be(()=>Fe(()=>import("./library-PQWanCvO.js"),__vite__mapDeps([327,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,108,107,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,286,287,288,289,290,29,16,291,203,321,243,91,244,123,245,131,162,151,143,139,297,17,298,242,299,189,14])))}),xpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-Ct48TCKI.js"),__vite__mapDeps([328,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19])))}),n5=we({view:ao(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:fL().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()}),Tpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:n5,component:Be(()=>Fe(()=>import("./monitoring-QNe1nTpU.js"),__vite__mapDeps([329,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,189,123,330,249,158,159,157,250,19,163,92,308,252,103,104,105,106,122,124,125,126,24,25,127,128,291,307,14,165,166,231,115,316,83,87,88,89,90,85,91,93,94,6,95,96,97,98,148,167,155,156,168,129,224,310,311,153,121,130,131,132,133,16,154,312,188,183,218,331,29,261,265,17,28,284,213,332])))}),kpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-Ct48TCKI.js"),__vite__mapDeps([328,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19])))}),Epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:n5,component:Be(()=>Fe(()=>import("./monitoring-QNe1nTpU.js"),__vite__mapDeps([329,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,189,123,330,249,158,159,157,250,19,163,92,308,252,103,104,105,106,122,124,125,126,24,25,127,128,291,307,14,165,166,231,115,316,83,87,88,89,90,85,91,93,94,6,95,96,97,98,148,167,155,156,168,129,224,310,311,153,121,130,131,132,133,16,154,312,188,183,218,331,29,261,265,17,28,284,213,332])))}),Cpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-CoCxl4Q9.js"),__vite__mapDeps([333,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,148,169,171,177,98])))}),_pe=De({getParentRoute:()=>Eb,path:"/members",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/members",params:{org:t.org}})}}),Ppe=we({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...t5,sidepanel:rF,mainpanel:sF,thread:$().optional()}),Ape=De({getParentRoute:()=>Cb,path:"/",validateSearch:Ppe,pendingComponent:Qd,component:Be(()=>Fe(()=>import("./index-hzDwssoq.js"),__vite__mapDeps([334,241,61])))}),Rpe=De({getParentRoute:()=>Cb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw mo({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),uo=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Eb,path:"/settings",pendingComponent:Qd,component:Be(()=>Fe(()=>import("./route-BCTRYX9A.js"),__vite__mapDeps([335,108,107,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,336,19,123,165,166,105,104,206])))}),Dpe=De({getParentRoute:()=>uo,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-Bu_aNRdm.js"),__vite__mapDeps([337,289])))}),Ope=De({getParentRoute:()=>uo,path:"/connections",validateSearch:Qr(()=>we({action:ao(["create"]).optional(),tab:ao(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),Npe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>uo,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-BaU7wg0S.js"),__vite__mapDeps([338,96,89,97,98,16,211,51,52,339,59,7,240,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,18,53,54,55,56,148,24,25,26,159,340,156,63,123,72,58,108,66,67,2,68,69,31,210,293,19,146,6,94,64,112,85,23,149,341,342,249,158,157,250,308,168,166,209,145,76]))),validateSearch:Qr(()=>we({tab:$().optional()}))}),Mpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>uo,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-CEsMpM_C.js"),__vite__mapDeps([343,16,59,7,85,23,29,339,240,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,96,89,97,98,24,25,26,159,340,156,63,123,72,58,108,66,67,2,68,69,31,210,145,146,176,209,293,19,6,144,64,103,60,61,57,104,105,106,77,33,11,21,62,65,70,71,73,74,75,76,20,10,78,79,161,162,189]))),validateSearch:Qr(()=>we({replayId:$().optional()}))}),Ipe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>uo,path:"/monitor",component:Be(()=>Fe(()=>import("./index-CZvihk7A.js"),__vite__mapDeps([344,17,18,16,287,288,289,137,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,52,53,54,55,56,138,139,140,141,85,23,142,143,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,108,72,26,33,11,21,62,63,64,65,66,70,71,73,74,75,76,20,10,78,79,144,145,146,147,112,148,149,150,151,209,19,123,161,162,282,126,24,25,306,160,163,29,212,28,176,342,249,158,159,157,250,308,266,214,213,238,14,284,260,283,189,224,330,92,252,267,205,206]))),validateSearch:Qr(()=>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)}))}),Lpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>uo,path:"/general",component:Be(()=>Fe(()=>import("./general-BjfnjzGy.js"),__vite__mapDeps([345,280,346,28,35,77,31,69,148,59,7,347,19,24,25,26,27,289])))}),Bpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>uo,path:"/connect",pendingComponent:qs("connect"),component:Be(()=>Fe(()=>import("./connect-qXBtQ-OH.js"),__vite__mapDeps([348,176,19,24,25,26,27,168,166,139,36,37,38,15,39,40,41,34,42,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,248,349,189,23,340,59,7,240,126,17,64,350,213,214,75,76,97,98,148,287,288,289])))}),Fpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/ai-providers",pendingComponent:qs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-hi0gzVEm.js"),__vite__mapDeps([351,37,105,42,77,31,69,278,124,108,103,60,61,57,58,59,7,67,2,68,104,106,125,126,47,24,25,26,27,39,43,46,38,18,127,128,48,280,336,51,19,123,165,166,72,206,226,28,73,52,227,287,288,289])))}),jpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/billing",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),zpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/infra-billing",pendingComponent:qs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-TR3zcfyD.js"),__vite__mapDeps([352,44,19,282,126,47,27,62,63,18,123,24,25,26,14,250,158,159,331,308,287,288,289])))}),Upe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>uo,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-Dac8hncd.js"),__vite__mapDeps([353,37,51,54,189,23,24,25,26,27,29,295,287,288,289])))}),qpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>uo,path:"/api-keys",pendingComponent:qs("connect"),component:Be(()=>Fe(()=>import("./api-keys-3ZWG2OME.js"),__vite__mapDeps([354,349,37,36,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,189,23,19,340,24,25,26,59,7,240,126,17,64,350,213,214,75,76,97,98,148,287,288,289])))}),$pe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>uo,path:"/buckets",pendingComponent:qs("storage"),component:Be(()=>Fe(()=>import("./buckets-Ck5_X87E.js"),__vite__mapDeps([355,37,51,52,19,189,23,24,25,26,27,28,29,169,287,288,289])))}),Vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>uo,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:qs("repositories"),component:Be(()=>Fe(()=>import("./repositories-CE7fOdIh.js"),__vite__mapDeps([356,357,71,39,51,72,26,23,73,74,75,76,18,41,20,77,31,69,40,126,47,54,189,19,176,91,138,24,25,27,29,52,294,295,287,288,289])))}),Hpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>uo,path:"/synced-repos",pendingComponent:qs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-D6Z7ziCu.js"),__vite__mapDeps([358,51,189,71,39,72,26,23,73,74,75,76,18,41,20,77,31,69,298,287,288,289])))}),Gpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>uo,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks--l87WFyL.js"),__vite__mapDeps([359,126,47,29,43,50,51,167,62,63,18,123,282,19,27,24,25,26,28,281,346,35,77,31,69,148,59,7,20,260,259,55,56,91,72,112,203,74,75,57,58,68,287,288,289])))}),Wpe=De({getParentRoute:()=>uo,path:"/tasks",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/task-board",params:{org:t.org}})}}),Kpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>uo,path:"/projects",component:Be(()=>Fe(()=>import("./projects-BH7yFrNo.js"),__vite__mapDeps([360,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,19,17,70,23,59,7,66,58,67,2,68,69,31,71,72,26,73,74,75,76,20,77,254,227,235,88,89,90,270,57,148])))}),Ype=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>uo,path:"/members",pendingComponent:qs("members"),component:Be(()=>Fe(()=>import("./members-kEy-UuPd.js"),__vite__mapDeps([361,362,15,45,72,26,165,166,19,17,18,13,14,16,85,23,24,25,27,29,363,233,46,52,55,126,47,62,63,123,51,262,287,288,289])))}),Zpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>uo,path:"/roles",pendingComponent:qs("members"),component:Be(()=>Fe(()=>import("./roles-CS8RSWSS.js"),__vite__mapDeps([364,363,19,45,51,52,13,14,15,16,17,18,127,350,64,40,36,37,38,39,41,34,42,27,43,35,44,46,47,48,49,50,53,54,55,56,213,126,214,75,59,7,76,97,98,148,58,105,28,72,26,65,57,288,289]))),validateSearch:Qr(()=>we({role:$().optional()}))}),Qpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>uo,path:"/sso",component:Be(()=>Fe(()=>import("./sso-DzouQIR7.js"),__vite__mapDeps([365,347,19,24,25,26,27,28,78,52,287,288,289])))}),Jpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>uo,path:"/profile",component:Be(()=>Fe(()=>import("./profile-DCr1-Qvc.js"),__vite__mapDeps([366,155,156,25,52,53,28,24,26,27,165,166,72,48,49,50,280,204])))}),Xpe=De({getParentRoute:()=>uo,path:"/agents",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/projects",params:{org:t.org}})}}),eme=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>uo,path:"/automations",component:Be(()=>Fe(()=>import("./automations-ByVN628t.js"),__vite__mapDeps([367,51,56,17,18,16,260,59,7,66,58,67,2,68,69,31,276,19,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,52,53,54,55,287,288,289])))}),tme=De({getParentRoute:()=>uo,path:"/skills",beforeLoad:({params:t})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),ome=De({getParentRoute:()=>uo,path:"/memory",validateSearch:Qr(()=>we({scope:ao(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),ame=uo.addChildren([Dpe,Ope,Npe,Mpe,Xpe,eme,tme,ome,Ipe,Lpe,Bpe,Fpe,jpe,zpe,Upe,qpe,$pe,Vpe,Hpe,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe]),nme=_b.addChildren([Gue,Wue,Kue]),rme=co.addChildren([$ue,Vue,Hue,nme,Yue,Zue,Que,Jue,Xue,epe,tpe,ope,ape,npe,rpe,spe,ipe,lpe,cpe,dpe,upe,ppe,mpe,hpe,kpe,Epe]),sme=en.addChildren([zue,Uue,que,rme,gpe,fpe,vpe,bpe,ype,Spe,wpe,Cpe,xpe,Tpe]),ime=Cb.addChildren([Ape,Rpe,sme]),lme=Eb.addChildren([ime,_pe,ame]),cme=YE.addChildren([Rue,lme]),dme=Va.addChildren([cme,Aue,Due,Oue,Nue,Mue,ZE.addChildren([Iue,Lue]),Bue,bue,yue,Sue,wue,xue,Tue,kue]);function ume(){const t=ye.c(16),e=qa();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=y.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=y.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=y.jsx("button",{type:"button",onClick:pme,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=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.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 pme(){return window.history.back()}const Pb=vV({routeTree:dme,defaultPendingComponent:Qd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:ume});function Pe(...t){return nF(aE(t))}function mme(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Ho({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function O0(t,e){for(const o in t)if(t[o]===e)return o}function em(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 hme={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"},gme={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"},fme={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."},vme={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."},bme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},yme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Sme={...bme,...yme},wme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},xme={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Tme={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},kme={INVALID_SESSION_TOKEN:"Invalid session token"},Eme={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"},Cme={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"},_me={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"},Pme={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Ame={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Rme={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"},Dme={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"},Ome={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",...vme,...hme,...gme,...fme,...Sme,...wme,...xme,...Tme,...kme,...Eme,...Cme,..._me,...Pme,...Ame,...Rme,...Dme},Nme={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"},cN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},dN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const r5=A.createContext({});function s5(){return A.useContext(r5)}var gx,uN;function Mme(){if(uN)return gx;uN=1;var t=function(){};return gx=t,gx}var Ime=Mme();const Lme=Gl(Ime);function Bme({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 Fme=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 Dp=null,tm=!1;const Dv=new Set,Ov=new Set,jme=typeof window<"u",_d="___grecaptcha_cfg",i5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function zme(){if(!jme)return;function t(o){if(tm)o();else{window[_d]||(window[_d]={});const a=window[_d];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(){tm=!0;for(const o of Ov)o();Ov.clear()}window[i5]=e}function Ume({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 qme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Ume({language:t,onLoadCallbackName:i5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Dp){if(Dp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Dp=i,Bme(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function $me(t){if(!window[_d])return;const e=window[_d];e.clients&&delete e.clients[t]}function Vme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Fme(e,["onLoadCallback","onLoadCallbackName"]);if(Dv.size===0&&zme(),qme(n),Dv.add(t),o&&(tm?o():Ov.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};tm?r():Ov.add(r)}}function Hme(t){var e,o,a;Dv.delete(t),Dv.size===0&&(window.grecaptcha=void 0,window[_d]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Dp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Dp=null,tm=!1)}let pN=!1;function Gme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const I=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!I)throw new Error("reCAPTCHA not found");if(!I.ready)throw new Error("reCAPTCHA ready callback not found");I.ready(()=>{T(I)})}return Vme(b,{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}),()=>{Hme(b),T(null)}},[t?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,I;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 j=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(pN||(Lme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),pN=!0),(I=B.querySelector(".grecaptcha-badge"))===null||I===void 0||I.style.setProperty("display","none")),k(j),C.current=!0,()=>{k(null),C.current=!1,$me(j),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 E=!!t?.element,P=E?x:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,E]);return y.jsx(r5.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Wme=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 Wme;function Kme(){return()=>{}}function $s(){return A.useSyncExternalStore(Kme,()=>!0,()=>!1)}function l5(){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 QE(){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 Yme({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:y.jsxs(Gme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&y.jsx("style",{children:`
168
+ `),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=u2.test(f)?f.replace(u2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var S=b(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||(C=x,C[C.length-1]||{}).filename,function:k.function||$d});var C}))})(u)}})("web:javascript",kle,_le)),this._instance=t,this.fo=(e=(o=this._instance.persistence)==null?void 0:o.get_property(o0))!==null&&e!==void 0?e:[],this.mo=hv(this.yo()),this.bo=new jle(this.mo)}onConfigChange(){this.mo=hv(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({[o0]:this.fo,[a0]:r})}}get _o(){var t,e=!!this._instance.get_property(a0),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(!Po(t)||t.trim().length===0)return void _s.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)=>Fle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(o);n.length>0&&_s.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[pv]:t,[mv]:new Date().toISOString()},a))}catch(r){_s.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 _s.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 _s.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 _s.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 _s.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void _s.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 _s.error("Failed to read buffered exception steps. Capturing exception without steps.",o),t}}So(t){this.mo.enabled&&this.bo.add({[pv]:t,[mv]:new Date().toISOString()})}wo(t){return jo(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 Po(n)&&n.length>0&&o.$exception_types.push(n),Po(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=y4[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)}}},Yce=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({[r0]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(r0)||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?Y2.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[Pf];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 Y2.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({[Pf]: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(Pf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},wb),Zce={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:b}=t;return{event:Me({},S3(t,zce),{properties:Me({},t.properties,b?{$set:Me({},(e=(o=t.properties)==null?void 0:o.$set)!==null&&e!==void 0?e:{},b)}:{},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(Z2+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(Z2+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.')}}},Qce={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 Fce.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)}}},Jce=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(E0)||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(Q2);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(FE);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 $ce(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(Q2),t([]);var o,a=this._instance.get_property(d0);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(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var S;return!((S=b.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(b){var S;return!((S=b.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[d0]: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:ux};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:ux};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:ux})):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(Tce.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!==y0.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!==y0.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()}}},wb),Xce={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),e4(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=Vce||Ev(t.hash,"__posthog")||Ev(t.hash,"state"),r=n?m2((()=>JSON.parse(atob(decodeURIComponent(n)))))||m2((()=>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(J2)||"{}")).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)&&As(e)?e(t,this.instance):X2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(Z3));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(J2,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 X2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(a)})),Xo(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)}}},ede=Me({experiments:La},wb),tde={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;_t(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||e4(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(FE);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()}}},ode={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=ko("[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(FE)}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:b,number:S}=z3[v]||ble,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||{}),C={timeUnixNano:T,observedTimeUnixNano:T,severityNumber:S,severityText:b,body:{stringValue:h.body},attributes:d2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(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:d2(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}}},ade=Me({},wb,Gce,Wce,Kce,Yce,Zce,Jce,Qce,Xce,ede,tde,ode);tr.__defaultExtensionClasses=Me({},ade);var aN,Us=(aN=Ap[dd]=new tr,(function(){function t(){t.done||(t.done=!0,x4=!1,yo(Ap,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Xo(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),aN);let Is=!1,R0=null,nN=!1;const HE="studio:lp-distinct-id",D4="mesh:lp-distinct-id",mx="/api/_reports/link-token/",nde=1440*60*1e3;function O4(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(mx)&&n.pathname!==mx&&(n.pathname=`${mx}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 hx(t){return Object.fromEntries(Object.entries(t).map(([e,o])=>[e,typeof o=="string"?O4(o):o]))}const rde=t=>t?(t.properties=hx(t.properties),t.$set&&(t.$set=hx(t.$set)),t.$set_once&&(t.$set_once=hx(t.$set_once)),t):null;function N4(){try{const t=window.localStorage.getItem(HE)??window.localStorage.getItem(D4);if(!t)return;const{id:e,ts:o}=JSON.parse(t);return typeof e!="string"||!e||typeof o!="number"?void 0:Date.now()-o<=nde?e:void 0}catch{return}}function sde(){try{window.localStorage.removeItem(HE),window.localStorage.removeItem(D4)}catch{}}function ide(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(HE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const o=e??N4();return o?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function lde(t){const e=N4();if(e&&(sde(),e!==t))try{Us.alias(e)}catch{}}function cde(t,e){if(Is||typeof window>"u")return;const o=ide();Us.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:rde,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:O4(a.name)}:{}})},person_profiles:"identified_only"}),Is=!0}function dde(t,e){Is&&(Us.identify(t,e),lde(t))}function ude(){Is&&(Us.reset(),R0=null)}function M4(t,e){Is&&Us.capture(t,e)}function jTe(){return Is}function zTe(){if(!Is||nN||typeof performance>"u")return;nN=!0;const t=performance.getEntriesByType("navigation")[0],e=o=>{const a=performance.getEntriesByName(o,"measure")[0];return a?Math.round(a.duration):void 0};M4("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:RJ(),org_cache_restored:DJ()})}function UTe(t,e){Is&&t!==R0&&(Us.group("organization",t,e),R0=t)}function I4(t,e){if(Is)try{Us.captureException(t,e)}catch{}}const pde=["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 mde(t){const e=ye.c(3),{children:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:pde}}),e[0]=a):a=e[0];let n;return e[1]!==o?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[a,y.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 L4(t){const e=ye.c(20),{orgName:o}=t,a=qa(),n=hde;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(Jj,{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=y.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=y.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=y.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=y.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=y.jsxs(mde,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=v):v=e[19],v}function hde(){window.location.href="/"}function gde(){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}=sm(e);let a;return t[1]!==o?(a=y.jsx(bn,{variant:"outline",size:"sm",asChild:!0,children:y.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 fde(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=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(i3,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=y.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=y.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??y.jsx(gde,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=y.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 rN="__studio_chunk_reload_ts";function B4(t){return t?.message===ree}function vde(t){return!!t?.message?.includes("Access denied")}function sN(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 bde 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),I4(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:B4(this.state.error)?y.jsx(L4,{}):vde(this.state.error)?y.jsx(fde,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(PE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function yde(t){const e=ye.c(3),o=qa();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(bde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}class Sde 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=sN(e);if(I4(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(rN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(rN,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&sN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(l3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),y.jsx(bn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?B4(this.state.error)?y.jsx(L4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(PE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),y.jsx(bn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function wde(t){const e=ye.c(3),o=qa();let a;return e[0]!==t||e[1]!==o?(a=y.jsx(Sde,{...t,t:o}),e[0]=t,e[1]=o,e[2]=a):a=e[2],a}const xde=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Tde(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)?lb:"div";let u;e[6]!==o||e[7]!==a||e[8]!==r?(u=Ze(xde({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=y.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 qTe(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=Ze("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)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[o&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:o}),(a||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[a,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(Xj,{size:12})]})]})]}),r&&y.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=y.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function $Te(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=Tde,e[5]!==o?(r=Ze("p-0 gap-0 overflow-hidden",o),e[5]=o,e[6]=r):r=e[6],i=d.map(kde),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=y.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function kde(t,e){return y.jsxs("div",{children:[e>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function VTe(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=Ze(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 b;e[4]!==i?(b=i?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),i())}:void 0,e[4]=i,e[5]=b):b=e[5];let S;e[6]!==o?(S=o&&y.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=y.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&&y.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=y.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 C;e[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:Ede,children:r}),e[16]=r,e[17]=C):C=e[17];let E;return e[18]!==i||e[19]!==k||e[20]!==C||e[21]!==h||e[22]!==f||e[23]!==v||e[24]!==b||e[25]!==S?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[S,k,C]}),e[18]=i,e[19]=k,e[20]=C,e[21]=h,e[22]=f,e[23]=v,e[24]=b,e[25]=S,e[26]=E):E=e[26],E}function Ede(t){return t.stopPropagation()}function HTe(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Ze("px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function GTe(t){const e=ye.c(5),{children:o,className:a}=t;let n;e[0]!==a?(n=Ze("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=y.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function Cde(t){const e=ye.c(5),{className:o,children:a}=t;let n;e[0]!==o?(n=Ze("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=y.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}const xb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:p3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:d3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:o3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:c3,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:r3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:n3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function WTe(t){const e=xb[t];return[...e.tabs.map(o=>o.to),...e.ownedRoutes??[]]}function KTe(t){return xb[t].tabs.length>0}const _de=new Set(["owner","admin"]);function F4(){const t=ye.c(11),{org:e,locator:o}=Yi();let a;t[0]!==o?(a=no.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}=Ls(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 YTe(t){const e=ye.c(8),{data:o,loading:a,error:n}=F4();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 j4(){const t=ye.c(10),{data:e,loading:o,error:a}=F4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?_de.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 Pde(){const t=ye.c(13),{org:e}=Yi(),o=Yk(),{capabilities:a,isPrivileged:n}=j4(),r=n||!!a["members:manage"];let i;t[0]!==e.id?(i=no.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}=Ls(u);let f;t[8]!==m?.sites?(f=m?.sites.map(Ade)??[],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 Ade(t){return t.slug}function ZTe(){const t=ye.c(7),e=Yk(),o=qa();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=>Bd.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:Rde,onError:n},t[4]=a,t[5]=n,t[6]=r):r=t[6],Sf(r)}function Rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function QTe(t,e){const o=ye.c(14),{org:a}=Yi(),n=Yk();let r,i,c;o[0]!==a.id||o[1]!==e||o[2]!==t?(r=[...t].sort(),c=Ls,i=no.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 Dde(){const t=ye.c(7),{capabilities:e,isPrivileged:o,loading:a,error:n}=j4(),{sites:r,isLoading:i}=Pde(),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(xb).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 Ode(t){const e=ye.c(16),{group:o}=t,a=qa();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=sm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Nde},e[1]=i):i=e[1];const c=Sk(i),d=Dde()[o],{titleKey:u}=xb[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=y.jsx(kd.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&&y.jsx(pn.Toolbar.Left.Portal,{children:y.jsx(kd.Tabs,{"data-testid":"settings-subnav","aria-label":a("settings.subnav.ariaLabel"),children:d.map(b=>{const S=b.to.replace("$org",r),T=c===S||c.startsWith(`${S}/`);return y.jsx(kd.Tab,{active:T,asChild:!0,children:y.jsx(Wl,{to:b.to,params:{org:r},onClick:()=>M4("settings_subnav_clicked",{group_key:o,tab_key:b.key}),children:a(b.labelKey)})},b.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=y.jsxs(y.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=v):v=e[15],v}function Nde(t){return t.location.pathname}function z4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(PO,{className:"h-32 w-full"}),y.jsx(PO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function Mde(t){const e=ye.c(14),{group:o,fallback:a,errorFallback:n,className:r,children:i}=t;let c;e[0]!==o?(c=y.jsx(Ode,{group:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a??y.jsx(z4,{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=y.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=y.jsx(yde,{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=y.jsx(kd,{children:y.jsx(kd.Content,{children:y.jsx(kd.Container,{children:y.jsxs(Cde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function qs(t){return function(){return y.jsx(Mde,{group:t,children:y.jsx(z4,{})})}}function Ide(t){try{localStorage.setItem(Qi.lastLocation(),JSON.stringify(t))}catch{}}function Lde(){try{const t=localStorage.getItem(Qi.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function JTe(){try{localStorage.removeItem(Qi.lastLocation())}catch{}}function Bde(t,e){const o=t&&e?_J(e,t):null;return{queryKey:no.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=eE(n);return n&&!r&&localStorage.setItem(Qi.lastOrgSlug(),t),e&&n&&PJ(e,t,n),n},initialData:o?o.data:void 0,initialDataUpdatedAt:o?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let iN;async function Fde(t){iN=t,await BB();const e=lee();if(!e)return;const o=await Zl.ensureQueryData(Bde(t,e)).catch(()=>null);o&&!eE(o)&&iN===t&&Ide({org:t})}const Ct={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:Ct.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 XTe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:jde},t[0]=e):e=t[0],Sk(e)}function jde(t){return t.matches.at(-1)?.fullPath??""}function e0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:zde},t[0]=e):e=t[0],Sk(e)}function zde(t){return t.matches.findLast(Ude)?.staticData.mainView}function Ude(t){return t.staticData.mainView}function Df(t){return`agent-view:${encodeURIComponent(t)}`}function qde(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 U4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function GE(t,e){return`app:${t}:${e}`}function $de(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 q4(t){return`deck:${encodeURIComponent(t)}`}function Vde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function $4(t){return`file:${encodeURIComponent(t)}`}function Hde(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 V4(t){return`library-file:${encodeURIComponent(t)}`}function Gde(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 H4(t){return`code:${encodeURIComponent(t)}`}function Wde(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 G4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Kde=new Set(G4),W4=new Set(["hosting","e2e","analytics","cdn"]),Yde=new Set(["board","files","connect-sources","reports"]);function t0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Zde=new Map([["preview","site-editor"],["git","site-editor"]]);function Tb(t){return Zde.get(t)??t}const WE=new Set(["instructions","connections","layout","settings"]);function Qde(t){return!!t&&WE.has(t)}const Jde=new Set(["overview","board","reports"]);function K4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const o=Tb(e.type);if(WE.has(o))return"settings";if(Kde.has(o)||Jde.has(o))return o;if(o==="ext-app"||o==="ext-apps"){if(e.id&&e.toolName)return GE(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?Df(e.id):n[0]?Df(n[0]):"settings"}const a=t?.tabs?.[0]?.id;return a?Df(a):"settings"}function o0e(t){const e=t?.defaultMainView?.type;if(!e||e==="chat")return null;const o=K4(t);return o==="overview"?null:o}function a0e(t){const e=t.routeDefaultMain||K4(t.metadata),o=t.panelTabId&&WE.has(t.panelTabId)?"settings":t.panelTabId?Tb(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 n0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function r0e(t){return t.mainOpen?t.activeTab==="automations"?!0:U4(t.activeTab)!==null:!1}const Xde=new Set([...G4.filter(t=>!W4.has(t)),...Yde,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function eue(t){return!!t&&Xde.has(t)}function tue(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?GE(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?$4(e.key):void 0;case"deck":return e.deck?q4(e.deck):void 0;case"library-file":return e.path?V4(e.path):void 0;case"code":return e.file?H4(e.file):"code";default:{const o=Tb(t);return o==="site-editor"&&e.main==="content"?"content":o}}}function s0e(t){const e=t.params??{},o=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return o.file?H4(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?GE(e.connectionId,e.toolName):void 0;case"view":return e.viewId?Df(e.viewId):void 0;case"file":return o.key?$4(o.key):void 0;case"deck":return o.path?q4(o.path):void 0;case"library-file":return o.path?V4(o.path):void 0;default:return t.mainView}}const oue={files:"library",discover:"discover"},aue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},nue={analytics:"audience",cdn:"performance"},rue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function Y4(t){const e=qde(t);if(e)return{kind:"agent-view",viewId:e.id};const o=$de(t);if(o)return{kind:"app",connectionId:o.connectionId,toolName:o.toolName};const a=U4(t);if(a)return{kind:"automations",automationId:a.id};const n=Hde(t);if(n)return{kind:"output-file",key:n.key};const r=Vde(t);if(r)return{kind:"output-deck",path:r.path};const i=Gde(t);if(i)return{kind:"library-file",path:i.path};const c=Wde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(Qde(t))return{kind:"agent-section",section:"settings"};const d=Tb(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=aue[d];if(u){const f=nue[d];return{kind:"project-destination",destination:u,...f?{monitorView:f}:{}}}const m=oue[d];if(m)return{kind:"org-destination",destination:m};const h=rue[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function ql(t){const{org:e,agentId:o}=t,a={org:e,agentId:o},n=Y4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...a,taskKey:t.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:e},search:{}}:{to:tt.reports,params:a,search:{}};case"plan":return r?{to:Ct.plan,params:{org:e},search:{}}:{to:tt.plan,params:a,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:e},search:i}:{to:tt.monitoring,params:a,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};case"library":return{to:Ct.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 i0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:Ct.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",o=t.agentId!==t.superAgentId&&Y4(e).kind==="org-destination"?"overview":e;return ql({org:t.org,agentId:t.agentId,tabId:o,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function sue(t,e,o={}){const a=r=>({...o.search?.(r)??{},...e.search}),n=o.replace??!0;switch(e.to){case Ct.tasks:t({to:Ct.tasks,params:e.params,search:a,replace:n});return;case Ct.home:t({to:Ct.home,params:e.params,search:a,replace:n});return;case Ct.reports:t({to:Ct.reports,params:e.params,search:a,replace:n});return;case Ct.discover:t({to:Ct.discover,params:e.params,search:a,replace:n});return;case Ct.plan:t({to:Ct.plan,params:e.params,search:a,replace:n});return;case Ct.monitoring:t({to:Ct.monitoring,params:e.params,search:a,replace:n});return;case Ct.library:t({to:Ct.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 l0e(t,e){sue(t,ql(e),e)}function iue(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function lue(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const cue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),Z4=new Set(["main"]),due=new Set(["virtualmcpid"]);function kb(t,e){return Object.fromEntries(Object.entries(t).filter(([o])=>!e.has(o)))}function jl(t,e){return{...kb(t,cue),...e.search}}function uue(t){return kb(t,due)}function c0e(t){if(t.search.virtualmcpid===void 0)return null;const e=kr(t.search.virtualmcpid);if(e){const o=t.routePath===Ct.tasks?"board":t.routePath===Ct.reports?"reports":null;if(t.routePath===Ct.home||o){const a=o?ql({org:t.org,agentId:e,tabId:o}):Gd(t.org,e);return{kind:"canonical",route:a,search:jl(t.search,a)}}}return t.routePath===Ct.home||t.routePath===Ct.tasks||t.routePath===Ct.reports||t.routePath===Ct.library?{kind:"same-route",search:uue(t.search)}:null}function kr(t){return t?.trim()||void 0}function Q4(t){return eue(t)||t!==void 0&&W4.has(t)}function J4(t){const e=kr(t);return e?e.startsWith("vir_")&&e.length>4||aB(e)!==null||oZ(e)!==null||aZ(e)!==null||rB(e)||sB(e):!1}function pue(t){const e=kr(t.agentIdParam),o=Q4(e);return e&&!o?e:kr(t.virtualMcpIdSearch)??kr(t.fallbackAgentId)}function d0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=D0({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||lue(t.pathname))return null;const o=t.search.virtualmcpid!==void 0&&!J4(e);if(!(Q4(e)||o))return null;const n=pue({agentIdParam:o?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=D0({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 mue(t,e,o,a){const n=kr(a);switch(t){case"board":return n?ql({org:e,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=_i(o.path);return{to:Ct.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?ql({org:e,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:e},search:{}};case"overview":return{to:Ct.home,params:{org:e},search:{}};case"discover":return{to:Ct.discover,params:{org:e},search:{}};default:return null}}function Xp(t){const e=mue(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Gd(t.org,t.agentId);const o=kr(t.agentId);return o?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:o},search:{}}:ql({org:t.org,agentId:o,tabId:t.tabId}):null}function Gd(t,e){const o=kr(e);return o?{to:tt.root,params:{org:t,agentId:o},search:{}}:{to:Ct.home,params:{org:t},search:{}}}function hue(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:{...kb(o,Z4),mainpanel:!1}};if(e==="chat"){const n=Gd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(o,n),sidepanel:!0,mainpanel:!1}}}const a=Xp({org:t.org,agentId:t.agentId,tabId:e,search:o});return a?{kind:"canonical",route:a,search:jl(o,a)}:null}function _i(t){return typeof t=="string"&&t.length>0?t:void 0}function D0(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=D0({...t,search:kb(e,Z4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return hue({org:t.org,agentId:t.agentId,main:e.main,search:e});const o=kr(t.agentId),a=t.panel;if(!a){const i=Gd(t.org,o);return{kind:"canonical",route:i,search:jl(e,i)}}const n=tue(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?ql({org:t.org,agentId:o,tabId:n}):Xp({org:t.org,agentId:o,tabId:n,search:e}):Xp({org:t.org,agentId:o,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function u0e(t){const e=t.search??{},o=kr(e.virtualmcpid),a=kr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Gd(t.org,o);else if(n!==void 0&&n!==0&&n!=="0"){const i=Xp({org:t.org,agentId:o,tabId:n,search:e}),c=!i&&n.trim().length>0&&a?Xp({org:t.org,agentId:a,tabId:n,search:e}):null;r=i??c??{to:Ct.home,params:{org:t.org},search:{}}}else r=Gd(t.org,o);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function X4(t,e){if(e.task===void 0)return null;const{task:o,...a}=e;return{taskKey:t??(o.trim()||void 0),search:a}}const gue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},e5=gue,KE={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()},fue=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Rv={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:pT().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:ao(fue).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)},vue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Jv().optional(),siteUrl:$().optional(),...e5},t5={...vue,task:$().optional(),project:$().optional(),...KE,skill:Rv.skill,brand:Rv.brand},xm=we(t5),Va=sV({component:()=>y.jsx(wde,{children:y.jsx(yk,{})})}),bue=De({getParentRoute:()=>Va,path:"/login",component:Be(()=>Fe(()=>import("./login-oQzZnf04.js"),__vite__mapDeps([0,1,2,3]))),validateSearch:Qr(()=>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()}))}),yue=De({getParentRoute:()=>Va,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-F_8HAZW5.js"),__vite__mapDeps([4,3])))}),Sue=De({getParentRoute:()=>Va,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-Do7rzjnV.js"),[])),validateSearch:Qr(()=>we({token:$().optional(),error:$().optional()}))}),wue=De({getParentRoute:()=>Va,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-BDiLMtRv.js"),[]))}),xue=De({getParentRoute:()=>Va,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-CUY5LMrV.js"),__vite__mapDeps([5,6,7])))}),Tue=De({getParentRoute:()=>Va,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-CGVwKR_T.js"),__vite__mapDeps([8,3,1,2])))}),kue=De({getParentRoute:()=>Va,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-BM4j1Kp6.js"),[]))}),Tm=De({getParentRoute:()=>Va,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-DUb1_0Na.js"),__vite__mapDeps([9,10,11])))}),Eue=De({getParentRoute:()=>Tm,path:"/",beforeLoad:()=>{throw mo({to:"/_admin/users"})}}),Cue=De({getParentRoute:()=>Tm,path:"/users",component:Be(()=>Fe(()=>import("./users-CmySmLhu.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),_ue=De({getParentRoute:()=>Tm,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-Rdz1cKF2.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),Pue=De({getParentRoute:()=>Tm,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-BwCKANv5.js"),__vite__mapDeps([32,16,23,29,21])))}),Aue=Tm.addChildren([Eue,Cue,_ue,Pue]),YE=De({getParentRoute:()=>Va,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-DLOpHw0Q.js").then(t=>t.e),__vite__mapDeps([33,34,35,11,21,36,37,38,15,39,40,41,42,27,43,44,45,46,47,48,49,50,51,18,52,53,54,55,56,57,58,59,7,60,61,62,63,64,65,66,67,2,68,69,31,70,23,71,72,26,73,74,75,76,20,77,10,78,79])))}),Rue=De({getParentRoute:()=>YE,path:"/",beforeLoad:async()=>{const t=Lde();if(t)throw mo({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Qi.lastOrgSlug());if(e)throw mo({to:"/$org",params:{org:e}});const{data:o}=await FB();if(!o)return;const a=o[0];throw mo(a?{to:"/$org",params:{org:a.slug}}:{to:"/onboarding"})}}),Due=De({getParentRoute:()=>Va,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await FB();if(t&&t.length>0)throw mo({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-Rp6hEouh.js"),__vite__mapDeps([80,10,3,81,51,23,28,34,42,53])))}),o5=Qr(()=>we({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),Oue=De({getParentRoute:()=>Va,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-lrKJ48LY.js"),__vite__mapDeps([82,83,1,2,3,81,51,84,85,23,86,59,7,87,64,40,36,37,38,15,39,41,34,42,27,43,35,44,45,46,47,48,49,50,18,52,53,54,55,56,72,26,88,89,90,91,20,92,93,94,6,95,96,97,98,99,100]))),validateSearch:o5}),Nue=De({getParentRoute:()=>Va,path:"/commerce-onboarding",validateSearch:o5,beforeLoad:({search:t})=>{throw mo({to:"/reports-onboarding",search:t})}}),Mue=De({getParentRoute:()=>Va,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-EWBezbD2.js"),__vite__mapDeps([101,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,10]))),validateSearch:Qr(()=>we({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),ZE=De({getParentRoute:()=>Va,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-CQZ_UVRr.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])))}),Iue=De({getParentRoute:()=>ZE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-CQZ_UVRr.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])),"SiteEditorPreview")}),Lue=De({getParentRoute:()=>ZE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-CQZ_UVRr.js"),__vite__mapDeps([102,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,107,108,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,114,115,116,117,84,85,118,119,120,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,16,154,155,156,157,158,159,28,29,160,161,162,163,164,165,166,167,17,168,169,170,171,172,173,174,92,175,176,177,98,178,179,180,181,182,183,184,185,186,187,188,19,189,13,14,190,191,192,193,194,195,196,197,198,91,199,200,201,202,203,204,205,206,207,96,89,97,208,209,210,211,93,94,6,212,213,214,215,216,217,218,219])),"SiteEditorContent")}),Bue=De({getParentRoute:()=>Va,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-B-KM0N71.js"),__vite__mapDeps([220,95,2,1,221])))}),Eb=De({getParentRoute:()=>YE,path:"/$org",loader:({params:t})=>Fde(t.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-wsTyUIFW.js"),__vite__mapDeps([222,114,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,108,112,115,116,117,84,85,118,119,123,124,200,105,104,206,160,25,223,224,225,19,127,226,28,227,128,29,179,228,171,169,129,229,191,190,230,231,215,106,232,126,91,233,204])))}),Cb=De({getParentRoute:()=>Eb,id:"org-shell",pendingComponent:Qd,component:Be(()=>Fe(()=>import("./thread-route-BjJwVBtH.js"),__vite__mapDeps([234,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,83,235,88,89,90,40,86,87,64,36,37,38,15,39,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,85,23,91,20,92,93,94,6,95,96,97,98,236,99])))}),Fue=we({sidepanel:rF,mainpanel:sF,main:lo([$(),Qe(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>Cb,id:"agent-shell",validateSearch:Fue,search:{middlewares:[R$(["sidepanel"])]},pendingComponent:Qd,component:Be(()=>Fe(()=>import("./route-cyGY1xFk.js"),__vite__mapDeps([237,37,36,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,109,110,61,60,57,58,59,7,67,2,68,69,31,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,108,112,197,103,104,105,106,141,124,149,140,85,142,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,179,195,196,172,132,130,136,16,129,107,113,238,239,240,191,181,180,228,171,169,177,190,118,241,242,243,244,245,131,162,120])))}),jue=xm.extend({virtualmcpid:$().optional()}),zue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:jue,component:()=>null}),Bt=Be(()=>Fe(()=>import("./index-CkLGogIO.js").then(t=>t.i),__vite__mapDeps([107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113])),"ChatLayoutPending"),Ft=Be(()=>Fe(()=>import("./index-CkLGogIO.js").then(t=>t.i),__vite__mapDeps([107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113])),"ChatLayoutError"),Uue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-jWQT8tJO.js"),__vite__mapDeps([246,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,198,140,141,85,142,143,139,103,104,105,106,91,151,199,122,123,124,125,126,24,25,127,128,168,166,200,165,201,202,149,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,247,248,230,231,115,249,158,159,157,250,118,251,224,232,252,253,245,131,162,242,243,244,254,223,119])))}),que=De({getParentRoute:()=>en,path:"/projects",validateSearch:xm,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 mo({to:"/$org/home",params:{org:t.org},search:a,hash:!0,replace:!0});const n=e.task?.trim();throw mo(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 lN;const co=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:t,params:e})=>{if(t==="preload")return{enteredProject:!1};const o=t==="enter"||e.agentId!==lN;return lN=e.agentId,{enteredProject:o}},component:yk}),$ue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-WvKNJRaS.js"),__vite__mapDeps([255,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,103,104,105,106,198,140,141,85,142,143,139,91,151,199,122,123,124,125,126,24,25,127,128,168,166,200,165,201,202,149,203,204,205,206,207,96,89,97,98,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,247,248,230,231,115,249,158,159,157,250,118,251,224,232,252,223,241])))}),Vue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...KE}),beforeLoad:({params:t,search:e})=>{const o=X4(t.taskKey,e);if(o)throw mo({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-Da5LxTaa.js"),__vite__mapDeps([256,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,257,115,116,258,167,123,259,19,91,203,260,261,117,225,230,231,215,106,253,24,25,251,224,232,262,163,176,138,139,143,103,104,105,263,140,141,85,142,164,202,264,136,265,148,90,266,214,137,144,145,146,147,149,150,151,213,238,194,199,267,205,206])))}),Hue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-ByPdonNL.js"),__vite__mapDeps([268,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,269,83,235,88,89,90,99,100,254,270])))}),_b=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:we({autosend:$().optional(),...e5}),component:Be(()=>Fe(()=>import("./agent-site-editor-DNv8LivC.js"),__vite__mapDeps([192,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,193,194,121,122,123,124,72,26,108,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,125,126,24,25,127,128,129,130,131,132,133,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,111,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,110,216,137,138,144,145,146,147,112,150,184,185,175,176,152,162,217,172,136,179,218,189,107,109,113,219])))}),Gue=De({getParentRoute:()=>_b,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-vjIMqLQd.js"),__vite__mapDeps([271,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,134,135,131,136,152,153,121,133,16,154,155,156,157,158,159,28,160,161,162,163,164,115,116,167,17,170,172,111,173,174,92,120,113,175,176,178])))}),Wue=De({getParentRoute:()=>_b,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-CsMmLm8L.js"),__vite__mapDeps([273,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,182,154,155,156,157,158,159,153,121,131,133,16,135,136,152,28,160,161,162,163,164,115,116,167,17,170,183,184,185,186,172,187,188,189,13,14])))}),Kue=De({getParentRoute:()=>_b,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:we({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-C8pZNRHE.js"),__vite__mapDeps([274,272,239,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,240,146,142,179,197,103,104,105,106,77,141,72,26,124,76,108,149,140,85,23,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,74,75,204,205,206,207,96,89,97,98,208,209,64,29,210,211,93,94,6,212,19,213,214,215,216,137,138,33,11,21,62,63,65,66,70,71,73,20,10,78,79,144,145,147,112,150,132,130,191,181,180,228,171,169,129,177,267,16])))}),Yue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const o=e.automation;if(o)throw mo({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-qrK0F_qT.js"),__vite__mapDeps([275,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,17,16,260,276,19])))}),Zue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,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-B4ZBovsD.js"),__vite__mapDeps([277,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,126,28,123,141,148,240,278,124,103,104,105,106,125,24,25,127,128,279,260,138,280,201,202,140,85,142,143,139,149,203,281,231,115,282,168,166,161,162,283,14,16,284,213,238,266,214,137,144,145,146,147,150,151,212])))}),Que=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-CXIVbo4Q.js"),__vite__mapDeps([285,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,286,287,288,289,290,103,104,105,106,29,16,291,203,292,96,89,97,98,279,227,94,6,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,151,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,139,30,177,130,294,295,147,178,196])))}),Jue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Rv),component:Be(()=>Fe(()=>import("./agent-library-BHDQegTE.js"),__vite__mapDeps([296,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,297,17,103,104,105,106,203,298,29,143,139,286,287,288,289,290,16,291,244,123,242,243,91,245,131,162,151,299,189,14,292,96,89,97,98,279,227,94,6,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,160,179,228,171,169,129,229,30,177,130,294,295,147,178,196])))}),Xue=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-C17EfgRE.js"),__vite__mapDeps([300,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,272,239,148,240,146,142,179,197,103,104,105,106,141,124,149,140,85,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,147,150,132,130,191,181,180,228,171,169,129,177,17,170])))}),epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-TATL9kUr.js"),__vite__mapDeps([301,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,272,239,148,240,146,142,179,197,103,104,105,106,141,124,149,140,85,143,139,198,91,151,199,122,123,125,126,24,25,127,128,168,166,200,165,201,202,203,204,205,206,207,96,89,97,98,208,209,29,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,147,150,132,130,191,181,180,228,171,169,129,177,121,131,133,185])))}),tpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-Dv4dOzql.js"),__vite__mapDeps([302,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,189,91,14,138,24,25,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,210,211,93,212,213,214,151,203,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ope=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-EecJC8x2.js"),__vite__mapDeps([304,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19,24,25,14,189,138,168,166,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,210,211,93,212,213,214,151,203,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ape=De({getParentRoute:()=>co,path:"/analytics",validateSearch:we({view:$().optional()}),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:e.view==="experiments"?"experiments":"audience"},replace:!0})}}),npe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-sEKNVpnd.js"),__vite__mapDeps([305,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,212,19,258,306,123,160,25,163,307,249,158,159,157,250,14,165,166,231,115,308,251,224,232,167])))}),rpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:we({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-CYKGvEGA.js"),__vite__mapDeps([309,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,193,194,103,104,105,106,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,184,185,175,176,152,162,217,172,136,179,310,189,311,154,155,156,157,158,159,312,188,183,218])))}),spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-DH2mwvW-.js"),__vite__mapDeps([313,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,193,194,103,104,105,106,121,122,123,124,125,126,24,25,127,128,129,130,131,132,133,168,166,195,196,177,98,174,153,16,197,141,149,140,85,142,143,139,198,91,151,199,200,165,201,202,203,204,205,206,207,96,89,97,208,209,29,148,210,211,93,94,6,212,19,213,214,215,216,137,138,144,145,146,147,150,184,185,175,176,152,162,217,172,136,179,160,183,311,154,155,156,157,158,159,312,188,187,218,189,303,292,279,227,280,293,240,28,228,171,169,229,290,30,294,295,178])))}),ipe=De({getParentRoute:()=>co,path:"/cdn",beforeLoad:({params:t})=>{throw mo({to:"/$org/projects/$agentId/monitoring",params:t,search:{view:"performance"},replace:!0})}}),a5=we({args:$().optional()}),lpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/apps/$connectionId/$toolName",validateSearch:a5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-D-w7piVd.js"),__vite__mapDeps([314,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,181,315,141,240,144,145,146,103,104,105,106,251,224,232,115,316,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98])))}),cpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/views/$viewId",validateSearch:a5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-Doh3INR0.js"),__vite__mapDeps([317,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,315,141,240,144,145,146,103,104,105,106,251,224,232,115,316,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98,303,292,279,16,227,29,148,280,207,208,209,124,24,25,210,211,212,19,213,214,151,203,293,126,149,142,28,123,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),dpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:we({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-iZ4NUGLw.js"),__vite__mapDeps([318,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,151,245,203,131,162,143,139,103,104,105,106,150,303,292,96,89,97,98,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,123,160,179,228,171,169,129,229,290,30,177,130,294,295,147,178,196])))}),upe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-sQICWvWi.js"),__vite__mapDeps([319,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,244,203,123,303,292,96,89,97,98,103,104,105,106,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,151,293,146,126,240,149,142,28,160,179,228,171,169,129,229,290,139,30,177,130,294,295,147,178,196])))}),ppe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:we({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-CVUtuonJ.js"),__vite__mapDeps([320,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,321,243,91,244,203,123,245,131,162,151,143,139,103,104,105,106,303,292,96,89,97,98,279,16,227,94,6,29,148,280,207,208,209,124,85,24,25,210,211,93,212,19,213,214,293,146,126,240,149,142,28,160,179,228,171,169,129,229,290,30,177,130,294,295,147,178,196])))}),mpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-DKscloVB.js"),__vite__mapDeps([322,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,86,83,87,88,89,90,85,91,92,93,94,6,95,96,97,98,236,99])))}),hpe=De({getParentRoute:()=>co,path:"/$legacyView",component:()=>null}),gpe=De({getParentRoute:()=>en,path:"/agents",validateSearch:xm,beforeLoad:({params:t,search:e})=>{const o=e.virtualmcpid?.trim();throw mo(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})}}),fpe=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:xm,beforeLoad:({params:t,location:e})=>{const o=t._splat?.split("/").find(Boolean);if(!J4(o))return;const a=iue(e.pathname);if(!a)return;const n=e.hash?`#${e.hash}`:"";throw mo({href:`${a}${e.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-CGYaMIvK.js"),__vite__mapDeps([323,241,61])))}),vpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:we({task:$().optional(),...KE}),beforeLoad:({params:t,search:e})=>{const o=X4(t.taskKey,e);if(o)throw mo({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:o.taskKey},search:o.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-Du9Lvkep.js"),__vite__mapDeps([324,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,257,115,116,258,167,123,259,19,91,203,260,261,117,225,230,231,215,106,253,24,25,251,224,232,262,163,176,138,139,143,103,104,105,263,140,141,85,142,164,202,264,136,265,148,90,266,214,137,144,145,146,147,149,150,151,213,238,194,199,267,205,206])))}),bpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-sEKNVpnd.js"),__vite__mapDeps([305,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,212,19,258,306,123,160,25,163,307,249,158,159,157,250,14,165,166,231,115,308,251,224,232,167])))}),ype=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-DBVrKrEw.js"),__vite__mapDeps([325,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,307,249,158,159,157,250,14,165,166,19,231,115,308,167,123,24,25,168,266,214,137,138,139,140,141,85,142,143,103,104,105,106,144,145,146,147,148,149,150,151,213,238])))}),Spe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:we({connect:Jv().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-BOoYfaIC.js"),__vite__mapDeps([326,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,269,83,235,88,89,90,99,100,254,270])))}),wpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:we(Rv),component:Be(()=>Fe(()=>import("./library-KpfW-byA.js"),__vite__mapDeps([327,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,108,107,109,110,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,10,78,79,112,113,286,287,288,289,290,29,16,291,203,321,243,91,244,123,245,131,162,151,143,139,297,17,298,242,299,189,14])))}),xpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-iqz5I5FG.js"),__vite__mapDeps([328,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19])))}),n5=we({view:ao(["metrics","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:fL().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()}),Tpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:n5,component:Be(()=>Fe(()=>import("./monitoring-DcVl24hV.js"),__vite__mapDeps([329,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,189,123,330,249,158,159,157,250,19,163,92,308,252,103,104,105,106,122,124,125,126,24,25,127,128,291,307,14,165,166,231,115,316,83,87,88,89,90,85,91,93,94,6,95,96,97,98,148,167,155,156,168,129,224,310,311,153,121,130,131,132,133,16,154,312,188,183,218,331,29,261,265,17,28,284,213,332])))}),kpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-iqz5I5FG.js"),__vite__mapDeps([328,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,19])))}),Epe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>co,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:n5,component:Be(()=>Fe(()=>import("./monitoring-DcVl24hV.js"),__vite__mapDeps([329,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,189,123,330,249,158,159,157,250,19,163,92,308,252,103,104,105,106,122,124,125,126,24,25,127,128,291,307,14,165,166,231,115,316,83,87,88,89,90,85,91,93,94,6,95,96,97,98,148,167,155,156,168,129,224,310,311,153,121,130,131,132,133,16,154,312,188,183,218,331,29,261,265,17,28,284,213,332])))}),Cpe=De({pendingComponent:Bt,errorComponent:Ft,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-PXb5-Euj.js"),__vite__mapDeps([333,107,108,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,148,169,171,177,98])))}),_pe=De({getParentRoute:()=>Eb,path:"/members",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/members",params:{org:t.org}})}}),Ppe=we({main:lo([$(),Qe(0)]).optional(),virtualmcpid:$().optional(),...t5,sidepanel:rF,mainpanel:sF,thread:$().optional()}),Ape=De({getParentRoute:()=>Cb,path:"/",validateSearch:Ppe,pendingComponent:Qd,component:Be(()=>Fe(()=>import("./index-DqnMzkHt.js"),__vite__mapDeps([334,241,61])))}),Rpe=De({getParentRoute:()=>Cb,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw mo({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),uo=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Eb,path:"/settings",pendingComponent:Qd,component:Be(()=>Fe(()=>import("./route-D6Y4UL2U.js"),__vite__mapDeps([335,108,107,109,110,61,60,57,58,59,7,67,2,68,69,31,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,72,26,111,33,11,21,62,63,64,65,66,70,23,71,73,74,75,76,20,77,10,78,79,112,113,336,19,123,165,166,105,104,206])))}),Dpe=De({getParentRoute:()=>uo,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-DCqW-S58.js"),__vite__mapDeps([337,289])))}),Ope=De({getParentRoute:()=>uo,path:"/connections",validateSearch:Qr(()=>we({action:ao(["create"]).optional(),tab:ao(["all","connected"]).optional()})),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"connections",...e},replace:!0})}}),Npe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>uo,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-Bou1FrgT.js"),__vite__mapDeps([338,96,89,97,98,16,211,51,52,339,59,7,240,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,18,53,54,55,56,148,24,25,26,159,340,156,63,123,72,58,108,66,67,2,68,69,31,210,293,19,146,6,94,64,112,85,23,149,341,342,249,158,157,250,308,168,166,209,145,76]))),validateSearch:Qr(()=>we({tab:$().optional()}))}),Mpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>uo,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-DJM8n-Nh.js"),__vite__mapDeps([343,16,59,7,85,23,29,339,240,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,148,96,89,97,98,24,25,26,159,340,156,63,123,72,58,108,66,67,2,68,69,31,210,145,146,176,209,293,19,6,144,64,103,60,61,57,104,105,106,77,33,11,21,62,65,70,71,73,74,75,76,20,10,78,79,161,162,189]))),validateSearch:Qr(()=>we({replayId:$().optional()}))}),Ipe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>uo,path:"/monitor",component:Be(()=>Fe(()=>import("./index-DJTz8tA2.js"),__vite__mapDeps([344,17,18,16,287,288,289,137,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,52,53,54,55,56,138,139,140,141,85,23,142,143,103,60,61,57,58,59,7,67,2,68,69,31,104,105,106,77,108,72,26,33,11,21,62,63,64,65,66,70,71,73,74,75,76,20,10,78,79,144,145,146,147,112,148,149,150,151,209,19,123,161,162,282,126,24,25,306,160,163,29,212,28,176,342,249,158,159,157,250,308,266,214,213,238,14,284,260,283,189,224,330,92,252,267,205,206]))),validateSearch:Qr(()=>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)}))}),Lpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>uo,path:"/general",component:Be(()=>Fe(()=>import("./general-CeisvnAE.js"),__vite__mapDeps([345,280,346,28,35,77,31,69,148,59,7,347,19,24,25,26,27,289])))}),Bpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>uo,path:"/connect",pendingComponent:qs("connect"),component:Be(()=>Fe(()=>import("./connect-Bv1wjltN.js"),__vite__mapDeps([348,176,19,24,25,26,27,168,166,139,36,37,38,15,39,40,41,34,42,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,248,349,189,23,340,59,7,240,126,17,64,350,213,214,75,76,97,98,148,287,288,289])))}),Fpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/ai-providers",pendingComponent:qs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-AE8XVdCE.js"),__vite__mapDeps([351,37,105,42,77,31,69,278,124,108,103,60,61,57,58,59,7,67,2,68,104,106,125,126,47,24,25,26,27,39,43,46,38,18,127,128,48,280,336,51,19,123,165,166,72,206,226,28,73,52,227,287,288,289])))}),jpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/billing",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),zpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>uo,path:"/infra-billing",pendingComponent:qs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-CkEQLhps.js"),__vite__mapDeps([352,44,19,282,126,47,27,62,63,18,123,24,25,26,14,250,158,159,331,308,287,288,289])))}),Upe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>uo,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-tbMtsvU-.js"),__vite__mapDeps([353,37,51,54,189,23,24,25,26,27,29,295,287,288,289])))}),qpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>uo,path:"/api-keys",pendingComponent:qs("connect"),component:Be(()=>Fe(()=>import("./api-keys-Cbsqw06u.js"),__vite__mapDeps([354,349,37,36,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,189,23,19,340,24,25,26,59,7,240,126,17,64,350,213,214,75,76,97,98,148,287,288,289])))}),$pe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>uo,path:"/buckets",pendingComponent:qs("storage"),component:Be(()=>Fe(()=>import("./buckets-DJa_BsNC.js"),__vite__mapDeps([355,37,51,52,19,189,23,24,25,26,27,28,29,169,287,288,289])))}),Vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>uo,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:qs("repositories"),component:Be(()=>Fe(()=>import("./repositories-DHNSFbbH.js"),__vite__mapDeps([356,357,71,39,51,72,26,23,73,74,75,76,18,41,20,77,31,69,40,126,47,54,189,19,176,91,138,24,25,27,29,52,294,295,287,288,289])))}),Hpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>uo,path:"/synced-repos",pendingComponent:qs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-n432_4GJ.js"),__vite__mapDeps([358,51,189,71,39,72,26,23,73,74,75,76,18,41,20,77,31,69,298,287,288,289])))}),Gpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>uo,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-BGXHV-F9.js"),__vite__mapDeps([359,126,47,29,43,50,51,167,62,63,18,123,282,19,27,24,25,26,28,281,346,35,77,31,69,148,59,7,20,260,259,55,56,91,72,112,203,74,75,57,58,68,287,288,289])))}),Wpe=De({getParentRoute:()=>uo,path:"/tasks",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/task-board",params:{org:t.org}})}}),Kpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>uo,path:"/projects",component:Be(()=>Fe(()=>import("./projects-DHRuNCso.js"),__vite__mapDeps([360,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,51,18,52,53,54,55,56,19,17,70,23,59,7,66,58,67,2,68,69,31,71,72,26,73,74,75,76,20,77,254,227,235,88,89,90,270,57,148])))}),Ype=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>uo,path:"/members",pendingComponent:qs("members"),component:Be(()=>Fe(()=>import("./members-DEZJ5Mkk.js"),__vite__mapDeps([361,362,15,45,72,26,165,166,19,17,18,13,14,16,85,23,24,25,27,29,363,233,46,52,55,126,47,62,63,123,51,262,287,288,289])))}),Zpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>uo,path:"/roles",pendingComponent:qs("members"),component:Be(()=>Fe(()=>import("./roles-BnyT0Tpg.js"),__vite__mapDeps([364,363,19,45,51,52,13,14,15,16,17,18,127,350,64,40,36,37,38,39,41,34,42,27,43,35,44,46,47,48,49,50,53,54,55,56,213,126,214,75,59,7,76,97,98,148,58,105,28,72,26,65,57,288,289]))),validateSearch:Qr(()=>we({role:$().optional()}))}),Qpe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>uo,path:"/sso",component:Be(()=>Fe(()=>import("./sso-gKduWE5w.js"),__vite__mapDeps([365,347,19,24,25,26,27,28,78,52,287,288,289])))}),Jpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>uo,path:"/profile",component:Be(()=>Fe(()=>import("./profile-BU9rPDry.js"),__vite__mapDeps([366,155,156,25,52,53,28,24,26,27,165,166,72,48,49,50,280,204])))}),Xpe=De({getParentRoute:()=>uo,path:"/agents",beforeLoad:({params:t})=>{throw mo({to:"/$org/settings/projects",params:{org:t.org}})}}),eme=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>uo,path:"/automations",component:Be(()=>Fe(()=>import("./automations-DTy3O45p.js"),__vite__mapDeps([367,51,56,17,18,16,260,59,7,66,58,67,2,68,69,31,276,19,36,37,38,15,39,40,41,34,42,27,43,35,44,45,46,47,48,49,50,52,53,54,55,287,288,289])))}),tme=De({getParentRoute:()=>uo,path:"/skills",beforeLoad:({params:t})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"skills"},replace:!0})}}),ome=De({getParentRoute:()=>uo,path:"/memory",validateSearch:Qr(()=>we({scope:ao(["user"]).optional()})),beforeLoad:({params:t,search:e})=>{throw mo({to:"/$org/library",params:{org:t.org},search:{section:"memory",...e},replace:!0})}}),ame=uo.addChildren([Dpe,Ope,Npe,Mpe,Xpe,eme,tme,ome,Ipe,Lpe,Bpe,Fpe,jpe,zpe,Upe,qpe,$pe,Vpe,Hpe,Gpe,Wpe,Kpe,Ype,Zpe,Qpe,Jpe]),nme=_b.addChildren([Gue,Wue,Kue]),rme=co.addChildren([$ue,Vue,Hue,nme,Yue,Zue,Que,Jue,Xue,epe,tpe,ope,ape,npe,rpe,spe,ipe,lpe,cpe,dpe,upe,ppe,mpe,hpe,kpe,Epe]),sme=en.addChildren([zue,Uue,que,rme,gpe,fpe,vpe,bpe,ype,Spe,wpe,Cpe,xpe,Tpe]),ime=Cb.addChildren([Ape,Rpe,sme]),lme=Eb.addChildren([ime,_pe,ame]),cme=YE.addChildren([Rue,lme]),dme=Va.addChildren([cme,Aue,Due,Oue,Nue,Mue,ZE.addChildren([Iue,Lue]),Bue,bue,yue,Sue,wue,xue,Tue,kue]);function ume(){const t=ye.c(16),e=qa();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=y.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=y.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=y.jsx("button",{type:"button",onClick:pme,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=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.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 pme(){return window.history.back()}const Pb=vV({routeTree:dme,defaultPendingComponent:Qd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:ume});function Pe(...t){return nF(aE(t))}function mme(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function Ho({error:t,localization:e,localizeErrors:o=!0}){var a;const n="Request failed";if(!o)return t?.message?t.message:(a=t?.error)!=null&&a.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function O0(t,e){for(const o in t)if(t[o]===e)return o}function em(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 hme={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"},gme={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"},fme={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."},vme={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."},bme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},yme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Sme={...bme,...yme},wme={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},xme={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Tme={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},kme={INVALID_SESSION_TOKEN:"Invalid session token"},Eme={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"},Cme={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"},_me={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"},Pme={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},Ame={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},Rme={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"},Dme={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"},Ome={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",...vme,...hme,...gme,...fme,...Sme,...wme,...xme,...Tme,...kme,...Eme,...Cme,..._me,...Pme,...Ame,...Rme,...Dme},Nme={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"},cN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},dN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const r5=A.createContext({});function s5(){return A.useContext(r5)}var gx,uN;function Mme(){if(uN)return gx;uN=1;var t=function(){};return gx=t,gx}var Ime=Mme();const Lme=Gl(Ime);function Bme({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 Fme=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 Dp=null,tm=!1;const Dv=new Set,Ov=new Set,jme=typeof window<"u",_d="___grecaptcha_cfg",i5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function zme(){if(!jme)return;function t(o){if(tm)o();else{window[_d]||(window[_d]={});const a=window[_d];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(){tm=!0;for(const o of Ov)o();Ov.clear()}window[i5]=e}function Ume({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 qme({language:t,render:e,scriptProps:o,useEnterprise:a,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=Ume({language:t,onLoadCallbackName:i5,render:e,useEnterprise:a,useRecaptchaNet:n});if(Dp){if(Dp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Dp=i,Bme(Object.assign(Object.assign(Object.assign({},r),o),{src:i}))}function $me(t){if(!window[_d])return;const e=window[_d];e.clients&&delete e.clients[t]}function Vme(t,e){var{onLoadCallback:o,onLoadCallbackName:a}=e,n=Fme(e,["onLoadCallback","onLoadCallbackName"]);if(Dv.size===0&&zme(),qme(n),Dv.add(t),o&&(tm?o():Ov.add(o)),a){let r=function(){if(!a)return;const i=window[a];typeof i=="function"&&i()};tm?r():Ov.add(r)}}function Hme(t){var e,o,a;Dv.delete(t),Dv.size===0&&(window.grecaptcha=void 0,window[_d]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(o=document.querySelector(`script[src="${Dp}"]`))===null||o===void 0||o.remove(),(a=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||a===void 0||a.remove(),Dp=null,tm=!1)}let pN=!1;function Gme({container:t,children:e,language:o,reCaptchaKey:a,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[S,T]=A.useState(null),[x,k]=A.useState(null),C=A.useRef(!1);A.useEffect(()=>{function R(){var O;const I=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!I)throw new Error("reCAPTCHA not found");if(!I.ready)throw new Error("reCAPTCHA ready callback not found");I.ready(()=>{T(I)})}return Vme(b,{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}),()=>{Hme(b),T(null)}},[t?.element,b,o,a,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,I;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 j=S.render(B,U);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(pN||(Lme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),pN=!0),(I=B.querySelector(".grecaptcha-badge"))===null||I===void 0||I.style.setProperty("display","none")),k(j),C.current=!0,()=>{k(null),C.current=!1,$me(j),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 E=!!t?.element,P=E?x:a,D=A.useMemo(()=>P!==null&&S?.execute?R=>{if(P===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):S.execute(P,{action:R})}:void 0,[P,S,E]);return y.jsx(r5.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:S},children:e})}var Wme=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 Wme;function Kme(){return()=>{}}function $s(){return A.useSyncExternalStore(Kme,()=>!0,()=>!1)}function l5(){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 QE(){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 Yme({children:t}){const e=$s(),{captcha:o}=A.useContext(St);return o?.provider!=="google-recaptcha-v3"?t:y.jsxs(Gme,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[e&&y.jsx("style",{children:`
169
169
  .grecaptcha-badge {
170
170
  visibility: hidden;
171
171
  border-radius: var(--radius) !important;