decocms 4.110.0 → 4.111.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 (233) hide show
  1. package/dist/client/assets/{AlertCircle-C4aWLbAs.js → AlertCircle-cjAc6Cb5.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BiIUxFdp.js → AreaChart-DjLpfGg2.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-eLaJjGMP.js → ArrowRight-BddNpUxh.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BiC818OO.js → ArrowUp-fzpyp2jZ.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-BPzZhY7K.js → ArrowUpRight-CYqXfw70.js} +1 -1
  6. package/dist/client/assets/{Check-C5bLH915.js → Check-BNyHoxQ4.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-rPmHytIJ.js → CheckCircle-CAQDk__P.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-8HbbxROz.js → ChevronDown-C6cenYlm.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-CCWZA3NI.js → ChevronRight-DL426F8m.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DPeUhd64.js → ChevronUp-OSjLr0XR.js} +1 -1
  11. package/dist/client/assets/{Copy01-pS3ndHFP.js → Copy01-DuV0IkB5.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-fvwNRBFK.js → DotsVertical-BN-gzshe.js} +1 -1
  13. package/dist/client/assets/{Eye-DD2Y7WhY.js → Eye-CIRvm41O.js} +1 -1
  14. package/dist/client/assets/{FilterLines-GTx9yqa_.js → FilterLines-ep1YVo5s.js} +1 -1
  15. package/dist/client/assets/{Globe01-C2wIfr6K.js → Globe01-BLPv9Iwy.js} +1 -1
  16. package/dist/client/assets/{Globe04-BJhG6wb-.js → Globe04-CMgnbRJY.js} +1 -1
  17. package/dist/client/assets/{HardDrive-xlgxg5pb.js → HardDrive-tsSYgv3a.js} +1 -1
  18. package/dist/client/assets/{Image01-9D6ZSrOy.js → Image01-CwJOfUxp.js} +1 -1
  19. package/dist/client/assets/{Key01-Doubd936.js → Key01-BONzddQk.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-CCSZ_-C6.js → LayoutLeft-B3ALe-ER.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-218tG64q.js → LinkExternal01-BKvFymzD.js} +1 -1
  22. package/dist/client/assets/{Monitor01-D6nTdzr_.js → Monitor01-TyBHBrLV.js} +1 -1
  23. package/dist/client/assets/{Package-CW_UEikf.js → Package-DbxCPsMI.js} +1 -1
  24. package/dist/client/assets/{Palette-B4azevkp.js → Palette-CIUQKT8Z.js} +1 -1
  25. package/dist/client/assets/{Play-DPsv6l3D.js → Play-jTaT8F1j.js} +1 -1
  26. package/dist/client/assets/{Plus-DZ7pie6E.js → Plus-B5b5sv4F.js} +1 -1
  27. package/dist/client/assets/{SearchLg-9AOZRg9o.js → SearchLg-DUjufVyO.js} +1 -1
  28. package/dist/client/assets/{SearchMd-Bygu1XW3.js → SearchMd-Brc7X7Md.js} +1 -1
  29. package/dist/client/assets/{Settings02-BbdKQE19.js → Settings02-hJHog-f1.js} +1 -1
  30. package/dist/client/assets/{Shield01-0QT-tdv0.js → Shield01-BLx3lP6l.js} +1 -1
  31. package/dist/client/assets/{Star01-avHL11Dt.js → Star01-DCRdYgHX.js} +1 -1
  32. package/dist/client/assets/{Stars01-Bfk_sLwt.js → Stars01-C_twnFnJ.js} +1 -1
  33. package/dist/client/assets/{Stars02-DEF5lSjg.js → Stars02-BLSzHrzf.js} +1 -1
  34. package/dist/client/assets/{Sun-Is_kwxeo.js → Sun-Br92Strd.js} +1 -1
  35. package/dist/client/assets/{SwitchHorizontal01-CzhPeD2_.js → SwitchHorizontal01-Bcp3g94V.js} +1 -1
  36. package/dist/client/assets/{Tool01-BhZ8wMLs.js → Tool01-CA2f0IP5.js} +1 -1
  37. package/dist/client/assets/{Tool02-DFLZZNb5.js → Tool02-CyJO9uuK.js} +1 -1
  38. package/dist/client/assets/{Trash01-Dla8QqrO.js → Trash01-tIGrAPIZ.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-DrMHPkjn.js → TrendUp01-T3K2l6wG.js} +1 -1
  40. package/dist/client/assets/{Upload01-DbrtgjU1.js → Upload01-CEfVEpY4.js} +1 -1
  41. package/dist/client/assets/{User01-TIFLPe6W.js → User01-DRSerNbO.js} +1 -1
  42. package/dist/client/assets/{Users01-D1KQ9-Xm.js → Users01-Dl6JjraK.js} +1 -1
  43. package/dist/client/assets/{Users03-B7Ho-Xlp.js → Users03-DhzOVa_f.js} +1 -1
  44. package/dist/client/assets/{X-CBDZreKA.js → X-BUgWEWEb.js} +1 -1
  45. package/dist/client/assets/{XCircle-D0rekVm3.js → XCircle-BLtFdIyU.js} +1 -1
  46. package/dist/client/assets/{XClose-DJ8ckpPy.js → XClose-Bq6W36u7.js} +1 -1
  47. package/dist/client/assets/{Zap-BphLAKWv.js → Zap-D9F4x3FG.js} +1 -1
  48. package/dist/client/assets/{ZapSquare-BHNX8HXh.js → ZapSquare-QVX7oDRb.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-c0pKClLV.js → ZoomOut-D_PRvhYr.js} +1 -1
  50. package/dist/client/assets/{access-gate-CmmiPt1S.js → access-gate-1EeBNkfs.js} +1 -1
  51. package/dist/client/assets/{add-section-modal-CGRh7Gc1.js → add-section-modal-BXypKzIT.js} +1 -1
  52. package/dist/client/assets/{agent-icon-fWrQzVMB.js → agent-icon-BchbTVym.js} +1 -1
  53. package/dist/client/assets/{agents-list-CBw7DhQD.js → agents-list-D7SeVi2Z.js} +1 -1
  54. package/dist/client/assets/{ai-providers-plym3Xnj.js → ai-providers-CV1PJ_Qj.js} +1 -1
  55. package/dist/client/assets/{alert-BwtcvqMS.js → alert-DJUpqG6p.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-Df0_M7f0.js → alert-dialog-CoqXPcPE.js} +1 -1
  57. package/dist/client/assets/{app-editor-n3NWaSsC.js → app-editor-CDjJCtV0.js} +1 -1
  58. package/dist/client/assets/{auth-Cl_IY4DF.js → auth-DAovCG2A.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-CMhRWvdJ.js → auth-catchall-CIJLNjKn.js} +1 -1
  60. package/dist/client/assets/{auth-entry-BmUJG08p.js → auth-entry-CYOArz31.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-BpFkwdsW.js → auth-split-layout-CUujCE-o.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-CgWGK8uh.js → authenticate-and-persist-oauth-axwXqpm8.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-qGA23Qqy.js → automation-list-row-BhxWSbh4.js} +1 -1
  64. package/dist/client/assets/{automation-runs-BxcpdFwW.js → automation-runs-DS1ufmQL.js} +1 -1
  65. package/dist/client/assets/{automations-D7xHBu36.js → automations-_mGzbMDf.js} +1 -1
  66. package/dist/client/assets/{autosend-CTxnSGts.js → autosend-DoML4EE0.js} +1 -1
  67. package/dist/client/assets/{avatar-BsMMgWUo.js → avatar-D7VJVUzb.js} +1 -1
  68. package/dist/client/assets/{badge-eEv50BYf.js → badge-C8EekcO8.js} +1 -1
  69. package/dist/client/assets/{block-document-DRi2dMMs.js → block-document-DmCKn9O1.js} +1 -1
  70. package/dist/client/assets/{brand-context-DgtumXpd.js → brand-context-DQGpm1NH.js} +1 -1
  71. package/dist/client/assets/{buckets-CXll4zGq.js → buckets-lrdRycSt.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-DsS2E-Fv.js → bulk-category-panel-dzBVSBoT.js} +1 -1
  73. package/dist/client/assets/{calendar-B-obMRgO.js → calendar-BG-x0mFZ.js} +1 -1
  74. package/dist/client/assets/{capability-load-error-C6RBrSDi.js → capability-load-error-CsrjnmWy.js} +1 -1
  75. package/dist/client/assets/{card-IwLADeS6.js → card-DRMhXqZ9.js} +1 -1
  76. package/dist/client/assets/{category-editor-CzeXtEsZ.js → category-editor-Cuq2vCar.js} +1 -1
  77. package/dist/client/assets/{chat-context-CZdesu61.js → chat-context-DYGRrFq0.js} +1 -1
  78. package/dist/client/assets/{checkbox-BgnGPTqE.js → checkbox-DVfcAwB_.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-DcYlqPOT.js → cli-auth-success-Ch8zkWtV.js} +1 -1
  80. package/dist/client/assets/{collection-detail-BpU07fFr.js → collection-detail-D2DuDgeo.js} +1 -1
  81. package/dist/client/assets/{collection-display-button-Bms_sHup.js → collection-display-button-MVLiFgDs.js} +1 -1
  82. package/dist/client/assets/{collection-search-DeZqPdCo.js → collection-search-CaQnjUSV.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-R-lrfvk9.js → collection-table-wrapper-DNMgtQcB.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-C4txQo3B.js → collection-tabs-BRu8qoY4.js} +1 -1
  85. package/dist/client/assets/{command-CveOyI1B.js → command-D6PjqT55.js} +1 -1
  86. package/dist/client/assets/{commerce-onboarding-B1iWCHBf.js → commerce-onboarding-VHXN5xvW.js} +1 -1
  87. package/dist/client/assets/{companions-core-B_XY1JTK.js → companions-core-twTKCZtl.js} +1 -1
  88. package/dist/client/assets/{connect-FnskaYUQ.js → connect-BlhIFrvJ.js} +1 -1
  89. package/dist/client/assets/{connect-desktop-dialog-MPI4EIoX.js → connect-desktop-dialog-DCMZd0Ph.js} +1 -1
  90. package/dist/client/assets/{connection-card-MbVPVbl8.js → connection-card-NNIzR5Wr.js} +1 -1
  91. package/dist/client/assets/{connection-detail-B_nYC26c.js → connection-detail-CoJ5YHPu.js} +1 -1
  92. package/dist/client/assets/{connection-form-helpers-AoIVfxmt.js → connection-form-helpers-DtoVuSN8.js} +1 -1
  93. package/dist/client/assets/{connections-BStqRXj9.js → connections-DDau_Efs.js} +1 -1
  94. package/dist/client/assets/{decopilot-sse-pool-BmEzroBD.js → decopilot-sse-pool-93Ff0Du-.js} +1 -1
  95. package/dist/client/assets/{dialog-akn5MaRu.js → dialog-D0YsbnmU.js} +1 -1
  96. package/dist/client/assets/{domain-settings-BQYuJoUC.js → domain-settings-Cf1iakCl.js} +1 -1
  97. package/dist/client/assets/{drawer-HKKHuWsa.js → drawer-CkIe_Per.js} +1 -1
  98. package/dist/client/assets/{dropdown-menu-DLu8rYm0.js → dropdown-menu-DYu7x-Ly.js} +1 -1
  99. package/dist/client/assets/{empty-state-CkWBwlxH.js → empty-state-BPGrp5Wn.js} +1 -1
  100. package/dist/client/assets/{extract-connection-data-EQjPGr8A.js → extract-connection-data-o-jetXIx.js} +1 -1
  101. package/dist/client/assets/{file-explorer-vGlfj66L.js → file-explorer-B5u9Owdo.js} +1 -1
  102. package/dist/client/assets/{file-type-icon-CqtE8FQt.js → file-type-icon--nlfZosI.js} +1 -1
  103. package/dist/client/assets/{files-Bzp-HJo7.js → files-BhFsr4CC.js} +1 -1
  104. package/dist/client/assets/{form-BrZgzMZF.js → form-D395lTO_.js} +1 -1
  105. package/dist/client/assets/{general-vNZSooJh.js → general-CEAxgAOj.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-DkCK7id6.js → github-repo-picker-NQG_5xKv.js} +1 -1
  107. package/dist/client/assets/{hooks-S8vlZ4Dw.js → hooks-CjFbUPlm.js} +1 -1
  108. package/dist/client/assets/{index-8JPfPgkt.js → index-B_owX5ts.js} +1 -1
  109. package/dist/client/assets/{index-B5Y3HLK3.js → index-BhAQoT_x.js} +4 -4
  110. package/dist/client/assets/{index-DvzxBwP2.js → index-CE-cjLFS.js} +1 -1
  111. package/dist/client/assets/{index-Kpo71gnb.js → index-CHTtKadF.js} +1 -1
  112. package/dist/client/assets/{index-DnyLLaV-.js → index-COmjF1Qy.js} +1 -1
  113. package/dist/client/assets/{index-DlE7uKDy.js → index-COn_Fa_l.js} +1 -1
  114. package/dist/client/assets/{index-DC8PttjD.js → index-D0CQg1Eg.js} +1 -1
  115. package/dist/client/assets/{index-izQk8sQ6.js → index-DZqUyA8a.js} +1 -1
  116. package/dist/client/assets/{index-CK7G-IhD.js → index-DaoCgGAd.js} +1 -1
  117. package/dist/client/assets/{index-D68VZ7Yi.js → index-DbXbrbEI.js} +3 -3
  118. package/dist/client/assets/{index-BFTm3kDp.js → index-DkimfYpY.js} +5 -5
  119. package/dist/client/assets/{index-DV3uYGxr.js → index-LgIYlx1I.js} +1 -1
  120. package/dist/client/assets/{index-CngUpvZv.js → index-rJcOvAqz.js} +1 -1
  121. package/dist/client/assets/{index-redirect-D1rzKgvE.js → index-redirect-BGBtFYCr.js} +1 -1
  122. package/dist/client/assets/{input-D8j4GZUF.js → input-ABpL2clR.js} +1 -1
  123. package/dist/client/assets/{integration-icon-C0m6ZbIE.js → integration-icon-Di0c-Rf2.js} +1 -1
  124. package/dist/client/assets/{invite-member-dialog-BykzqSFM.js → invite-member-dialog-m02yHuwq.js} +1 -1
  125. package/dist/client/assets/{label-e_hjKmuQ.js → label-DmfO0a6P.js} +1 -1
  126. package/dist/client/assets/{layout-BPzmXhj_.js → layout-BZ_ovybY.js} +1 -1
  127. package/dist/client/assets/{login-BUPb9Aqy.js → login-C929fldw.js} +1 -1
  128. package/dist/client/assets/{mcp-oauth-BZQdPUnw.js → mcp-oauth-Ds_NKi4X.js} +1 -1
  129. package/dist/client/assets/{members-C61nWLWJ.js → members-eXVLXZBO.js} +1 -1
  130. package/dist/client/assets/{monaco-editor-CcxIjxbY.js → monaco-editor-Calg3fsn.js} +1 -1
  131. package/dist/client/assets/{monitoring-stats-row-7xvRjEvW.js → monitoring-stats-row-D9HI3OyL.js} +1 -1
  132. package/dist/client/assets/{multi-select-DtVH_W49.js → multi-select-B7ew1f-i.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-BPX1yEnk.js → oauth-callback-DM1hf3Rc.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-DElydn7F.js → oauth-callback-ai-provider-D5HmkK_Y.js} +1 -1
  135. package/dist/client/assets/{onboarding-DASxAvUP.js → onboarding--J1xSpja.js} +1 -1
  136. package/dist/client/assets/{org-install-BaWsrsHM.js → org-install-BYsWWZdx.js} +1 -1
  137. package/dist/client/assets/{org-layout-I-AE-Gv9.js → org-layout-i_HmFw9d.js} +1 -1
  138. package/dist/client/assets/{organization-choice-bUJ5j2pO.js → organization-choice-DeCAJtGj.js} +1 -1
  139. package/dist/client/assets/{orgs-CSn-u-tx.js → orgs-BZsPV632.js} +1 -1
  140. package/dist/client/assets/{page-seo-form-Cb9vikWX.js → page-seo-form-HfNkEdCJ.js} +1 -1
  141. package/dist/client/assets/page-seo-sheet-CCzkSFle.js +1 -0
  142. package/dist/client/assets/{popover-DNcE9iPx.js → popover-WQgY2mA1.js} +1 -1
  143. package/dist/client/assets/{post-editor-D7roYCHg.js → post-editor-C28JIW5P.js} +1 -1
  144. package/dist/client/assets/{primitives-BV60_ksG.js → primitives-BPP3kN7-.js} +1 -1
  145. package/dist/client/assets/{profile-uSFlSS6u.js → profile-BGD57DXN.js} +1 -1
  146. package/dist/client/assets/project-app-view-BtexvYqs.js +1 -0
  147. package/dist/client/assets/record-editor-Qlcb_uFq.js +1 -0
  148. package/dist/client/assets/redirect-editor-Cja26Ct3.js +1 -0
  149. package/dist/client/assets/registry-CMP1xDc-.js +2 -0
  150. package/dist/client/assets/{registry-layout-BCvmbqiB.js → registry-layout-DaofR0RF.js} +1 -1
  151. package/dist/client/assets/{reports-C3U6ysZ7.js → reports-lvJHbLR6.js} +20 -20
  152. package/dist/client/assets/{require-capability-DCrUo3Yf.js → require-capability-DAfN9Ioo.js} +1 -1
  153. package/dist/client/assets/{required-auth-layout-CvPAYM4M.js → required-auth-layout-D4h6xGYw.js} +1 -1
  154. package/dist/client/assets/{reset-password-DcLOeuUy.js → reset-password-DJnS3b-u.js} +1 -1
  155. package/dist/client/assets/{roles-B3ROu0Hg.js → roles-DwN-XzRx.js} +1 -1
  156. package/dist/client/assets/{search-input-CUlusyN8.js → search-input-DjCHIY01.js} +1 -1
  157. package/dist/client/assets/{secrets-XAb4hF-c.js → secrets-DG-xpLY_.js} +1 -1
  158. package/dist/client/assets/{sections-editor-S0jppf7G.js → sections-editor-DOX1rxPC.js} +1 -1
  159. package/dist/client/assets/{select-DbAAJU09.js → select-D2NVbHP5.js} +1 -1
  160. package/dist/client/assets/{select-model-C63Qirvz.js → select-model-SMoVG6g0.js} +1 -1
  161. package/dist/client/assets/{self-tool-result-CCKAvvMo.js → self-tool-result-CYPLBbH-.js} +1 -1
  162. package/dist/client/assets/{seo-editor-BmNrENo5.js → seo-editor-BWVNgLmM.js} +1 -1
  163. package/dist/client/assets/{settings-layout-KG-3LWCC.js → settings-layout-ZcIrVRxe.js} +1 -1
  164. package/dist/client/assets/{settings-section-CnBn0X59.js → settings-section-oDuAxa6m.js} +1 -1
  165. package/dist/client/assets/{shell-controls-XXs2Z4jQ.js → shell-controls-D7YZxcq7.js} +1 -1
  166. package/dist/client/assets/{shell-layout-DPWoiFkr.js → shell-layout-DBSbYFzz.js} +1 -1
  167. package/dist/client/assets/{sidebar-D1S4iUn7.js → sidebar-ScDXY4Qc.js} +1 -1
  168. package/dist/client/assets/{skeleton-kuNQZFSz.js → skeleton-BUnIHqyx.js} +1 -1
  169. package/dist/client/assets/{sso-VK6rLmml.js → sso-CNYomtYE.js} +1 -1
  170. package/dist/client/assets/{store-Buz8wmTR.js → store-ZDzIE0aK.js} +1 -1
  171. package/dist/client/assets/store-registry-Dpds3cgF.js +2 -0
  172. package/dist/client/assets/{studio-tools-CTYZuAcE.js → studio-tools-DrTabN45.js} +1 -1
  173. package/dist/client/assets/{switch-C0tB6SoN.js → switch-DHli9Xtp.js} +1 -1
  174. package/dist/client/assets/{table-C_1XTQye.js → table-D3ohP3WN.js} +1 -1
  175. package/dist/client/assets/{tabs-C2Y-vTij.js → tabs-CuE2juqg.js} +1 -1
  176. package/dist/client/assets/{textarea-AGMT0R7c.js → textarea-Cgyln9_Y.js} +1 -1
  177. package/dist/client/assets/{toggle-group-Cl5xIdhe.js → toggle-group-B6g7pvPX.js} +1 -1
  178. package/dist/client/assets/{toolbar-B_J_6ptC.js → toolbar-BXVab8_Q.js} +1 -1
  179. package/dist/client/assets/{toolbar-icon-button-cl2JgO3n.js → toolbar-icon-button-Bl9QT4lt.js} +1 -1
  180. package/dist/client/assets/{tooltip-BHfnPjmr.js → tooltip-CGWbJmcd.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-Dw5I4xEg.js → use-ai-providers-C_uNW5IX.js} +1 -1
  182. package/dist/client/assets/{use-api-keys-B_g2XYh_.js → use-api-keys-a9N5TufW.js} +1 -1
  183. package/dist/client/assets/{use-automations-CRN2DJve.js → use-automations-lLh1mwGK.js} +1 -1
  184. package/dist/client/assets/{use-autosave-DpXkzG6N.js → use-autosave-45fwZoLW.js} +1 -1
  185. package/dist/client/assets/{use-capability-L76r7JhW.js → use-capability-C9WcJZ8Y.js} +1 -1
  186. package/dist/client/assets/{use-clock-tick-CK1NKKBE.js → use-clock-tick-Xc6Ur8Gw.js} +1 -1
  187. package/dist/client/assets/{use-connection-DxpyAZF-.js → use-connection-CHFZZO46.js} +1 -1
  188. package/dist/client/assets/{use-copy-BDvqNOZn.js → use-copy-D9DI_Wsi.js} +1 -1
  189. package/dist/client/assets/{use-create-virtual-mcp-CZjRDQlp.js → use-create-virtual-mcp-C_HShhN7.js} +1 -1
  190. package/dist/client/assets/{use-debounced-autosave-5eVi0gbc.js → use-debounced-autosave-CNVEXkS8.js} +1 -1
  191. package/dist/client/assets/{use-debounced-value-Da5bksWh.js → use-debounced-value-KsFLjA-w.js} +1 -1
  192. package/dist/client/assets/{use-deco-credits-rrfzSRCG.js → use-deco-credits-UWayu2Pm.js} +1 -1
  193. package/dist/client/assets/{use-decopilot-events-COHyntCb.js → use-decopilot-events-CgQeKDBw.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-81Wh1GEn.js → use-delete-connection-BvLZIMPU.js} +1 -1
  195. package/dist/client/assets/{use-deployment-admin-tgEs_5yk.js → use-deployment-admin-BiPJcOW8.js} +1 -1
  196. package/dist/client/assets/{use-file-configs-CudKi0q7.js → use-file-configs-BVP6-78x.js} +1 -1
  197. package/dist/client/assets/{use-infinite-scroll-El2pPBrs.js → use-infinite-scroll-BA9ZZFg3.js} +1 -1
  198. package/dist/client/assets/{use-join-requests-B33mSv0f.js → use-join-requests-CUF8oAM5.js} +1 -1
  199. package/dist/client/assets/{use-mcp-auth-status-f0C1rjA-.js → use-mcp-auth-status-P29G6sv4.js} +1 -1
  200. package/dist/client/assets/{use-mcp-client-DOb795Z2.js → use-mcp-client-DosKR35x.js} +1 -1
  201. package/dist/client/assets/{use-mcp-tools-Q3YlSRGe.js → use-mcp-tools-CvhO9xpv.js} +1 -1
  202. package/dist/client/assets/{use-members-C8nU6bE5.js → use-members-D7RKstKp.js} +1 -1
  203. package/dist/client/assets/{use-mobile-LMJRMXTs.js → use-mobile-CZ8o1PTd.js} +1 -1
  204. package/dist/client/assets/{use-navigate-to-agent-Ba0_YqYK.js → use-navigate-to-agent-CALLliwG.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-BbEIBhW6.js → use-org-auth-client-BnuLLVDi.js} +1 -1
  206. package/dist/client/assets/{use-org-sso-Cl63XSdd.js → use-org-sso-BLhpGZPl.js} +1 -1
  207. package/dist/client/assets/{use-organization-roles-BKATTXKY.js → use-organization-roles-CUBH1eQ5.js} +1 -1
  208. package/dist/client/assets/{use-organization-settings-CfhvZKgq.js → use-organization-settings-DCTDgWDO.js} +1 -1
  209. package/dist/client/assets/{use-registry-app-DWNAS7Pc.js → use-registry-app-DB5yxcMg.js} +1 -1
  210. package/dist/client/assets/{use-registry-connections-DU3RHFm0.js → use-registry-connections-BOTQaoSe.js} +1 -1
  211. package/dist/client/assets/{use-secrets-wrcibf6G.js → use-secrets-BfucpkPt.js} +1 -1
  212. package/dist/client/assets/{use-status-sounds-DDcPFa4B.js → use-status-sounds-209x6ELs.js} +1 -1
  213. package/dist/client/assets/{use-view-mode-CHQ6hzQw.js → use-view-mode-Ba27bzip.js} +1 -1
  214. package/dist/client/assets/{use-virtual-mcp-BCZG_9om.js → use-virtual-mcp-0eSbwOMf.js} +1 -1
  215. package/dist/client/assets/useInfiniteQuery-jwpNBd74.js +1 -0
  216. package/dist/client/assets/{useQueries-DHGAdztO.js → useQueries-Bkxw0wdg.js} +1 -1
  217. package/dist/client/assets/{useRouterState-DbTo6Um3.js → useRouterState-C4LwikGu.js} +1 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-BgEsG-I9.js +1 -0
  219. package/dist/client/assets/{users-hB1pAYf2.js → users-Bf2yKNFZ.js} +1 -1
  220. package/dist/client/assets/{variant-calendar-CiuW8Ugn.js → variant-calendar-BNgWGXWa.js} +1 -1
  221. package/dist/client/assets/{view-mode-toggle-DV3ypYFJ.js → view-mode-toggle-DUsR66lG.js} +1 -1
  222. package/dist/client/index.html +1 -1
  223. package/dist/server/cli.js +2 -2
  224. package/dist/server/server.js +2 -2
  225. package/package.json +1 -1
  226. package/dist/client/assets/page-seo-sheet-DMjDmOGW.js +0 -1
  227. package/dist/client/assets/project-app-view-DUg_rbZa.js +0 -1
  228. package/dist/client/assets/record-editor-BwYMpaPQ.js +0 -1
  229. package/dist/client/assets/redirect-editor-DenYgwxC.js +0 -1
  230. package/dist/client/assets/registry-V1-HJ81t.js +0 -2
  231. package/dist/client/assets/store-registry-C6J7OMm0.js +0 -2
  232. package/dist/client/assets/useInfiniteQuery-BA8zoRe9.js +0 -1
  233. package/dist/client/assets/useSuspenseInfiniteQuery-CykeuBlD.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BUPb9Aqy.js","assets/auth-entry-BmUJG08p.js","assets/input-D8j4GZUF.js","assets/retry-CErkP7V6.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BpFkwdsW.js","assets/cli-auth-success-DcYlqPOT.js","assets/reset-password-DcLOeuUy.js","assets/oauth-callback-BPX1yEnk.js","assets/mcp-oauth-BZQdPUnw.js","assets/auth-Cl_IY4DF.js","assets/layout-BPzmXhj_.js","assets/useRouterState-DbTo6Um3.js","assets/required-auth-layout-CvPAYM4M.js","assets/use-deployment-admin-tgEs_5yk.js","assets/users-hB1pAYf2.js","assets/index-Kpo71gnb.js","assets/sidebar-D1S4iUn7.js","assets/LayoutLeft-CCSZ_-C6.js","assets/use-mobile-LMJRMXTs.js","assets/X-CBDZreKA.js","assets/tooltip-BHfnPjmr.js","assets/collection-table-wrapper-R-lrfvk9.js","assets/table-C_1XTQye.js","assets/ArrowUp-BiC818OO.js","assets/empty-state-CkWBwlxH.js","assets/search-input-CUlusyN8.js","assets/SearchMd-Bygu1XW3.js","assets/avatar-BsMMgWUo.js","assets/User01-TIFLPe6W.js","assets/badge-eEv50BYf.js","assets/use-debounced-value-Da5bksWh.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/get-initials-D-f_fDFw.js","assets/orgs-CSn-u-tx.js","assets/label-e_hjKmuQ.js","assets/dialog-akn5MaRu.js","assets/select-DbAAJU09.js","assets/Check-C5bLH915.js","assets/ChevronDown-8HbbxROz.js","assets/ChevronUp-DPeUhd64.js","assets/shell-layout-DPWoiFkr.js","assets/Users03-B7Ho-Xlp.js","assets/SearchLg-9AOZRg9o.js","assets/Stars02-DEF5lSjg.js","assets/XClose-DJ8ckpPy.js","assets/CheckCircle-rPmHytIJ.js","assets/FilterLines-GTx9yqa_.js","assets/Zap-BphLAKWv.js","assets/autosend-CTxnSGts.js","assets/use-mcp-client-DOb795Z2.js","assets/hooks-S8vlZ4Dw.js","assets/decopilot-sse-pool-BmEzroBD.js","assets/tab-id-BijBBRwE.js","assets/use-organization-settings-CfhvZKgq.js","assets/studio-tools-CTYZuAcE.js","assets/use-org-sso-Cl63XSdd.js","assets/onboarding-DASxAvUP.js","assets/organization-choice-bUJ5j2pO.js","assets/switch-C0tB6SoN.js","assets/Globe04-BJhG6wb-.js","assets/Palette-B4azevkp.js","assets/Upload01-DbrtgjU1.js","assets/commerce-onboarding-B1iWCHBf.js","assets/self-tool-result-CCKAvvMo.js","assets/integration-icon-C0m6ZbIE.js","assets/Tool02-DFLZZNb5.js","assets/agent-icon-fWrQzVMB.js","assets/AlertCircle-C4aWLbAs.js","assets/Tool01-BhZ8wMLs.js","assets/Settings02-BbdKQE19.js","assets/ArrowRight-eLaJjGMP.js","assets/ArrowUpRight-BPzZhY7K.js","assets/TrendUp01-DrMHPkjn.js","assets/ZapSquare-BHNX8HXh.js","assets/ZoomOut-c0pKClLV.js","assets/ChevronRight-CCWZA3NI.js","assets/DotsVertical-fvwNRBFK.js","assets/Copy01-pS3ndHFP.js","assets/Globe01-C2wIfr6K.js","assets/Eye-DD2Y7WhY.js","assets/Star01-avHL11Dt.js","assets/SwitchHorizontal01-CzhPeD2_.js","assets/HardDrive-xlgxg5pb.js","assets/Image01-9D6ZSrOy.js","assets/Key01-Doubd936.js","assets/XCircle-D0rekVm3.js","assets/LinkExternal01-218tG64q.js","assets/Monitor01-D6nTdzr_.js","assets/Sun-Is_kwxeo.js","assets/Package-CW_UEikf.js","assets/Play-DPsv6l3D.js","assets/Plus-DZ7pie6E.js","assets/Shield01-0QT-tdv0.js","assets/Stars01-Bfk_sLwt.js","assets/Trash01-Dla8QqrO.js","assets/Users01-D1KQ9-Xm.js","assets/companions-core-B_XY1JTK.js","assets/extract-connection-data-EQjPGr8A.js","assets/github-repo-scope-DjMZbiKa.js","assets/form-BrZgzMZF.js","assets/provision-repo-scoped-github-connection-2iDn-wQ1.js","assets/useQueries-DHGAdztO.js","assets/authenticate-and-persist-oauth-CgWGK8uh.js","assets/dropdown-menu-DLu8rYm0.js","assets/reports-C3U6ysZ7.js","assets/reports-BWI6IDQq.css","assets/index-izQk8sQ6.js","assets/skeleton-kuNQZFSz.js","assets/use-virtual-mcp-BCZG_9om.js","assets/popover-DNcE9iPx.js","assets/alert-dialog-Df0_M7f0.js","assets/chat-context-CZdesu61.js","assets/use-ai-providers-Dw5I4xEg.js","assets/location-BpLtHjTZ.js","assets/use-decopilot-events-COHyntCb.js","assets/toolbar-icon-button-cl2JgO3n.js","assets/drawer-HKKHuWsa.js","assets/use-registry-app-DWNAS7Pc.js","assets/use-mcp-tools-Q3YlSRGe.js","assets/github-repo-picker-DkCK7id6.js","assets/collection-search-DeZqPdCo.js","assets/use-connection-DxpyAZF-.js","assets/use-navigate-to-agent-Ba0_YqYK.js","assets/reusable-new-chat-CouMjkYR.js","assets/use-deco-credits-rrfzSRCG.js","assets/connection-card-MbVPVbl8.js","assets/use-registry-connections-DU3RHFm0.js","assets/useInfiniteQuery-BA8zoRe9.js","assets/use-infinite-scroll-El2pPBrs.js","assets/connection-slug-eyAPH6o3.js","assets/card-IwLADeS6.js","assets/textarea-AGMT0R7c.js","assets/connection-form-helpers-AoIVfxmt.js","assets/collection-tabs-C4txQo3B.js","assets/useSuspenseInfiniteQuery-CykeuBlD.js","assets/index-8JPfPgkt.js","assets/invite-member-dialog-BykzqSFM.js","assets/use-org-auth-client-BbEIBhW6.js","assets/use-organization-roles-BKATTXKY.js","assets/use-copy-BDvqNOZn.js","assets/use-api-keys-B_g2XYh_.js","assets/connect-desktop-dialog-MPI4EIoX.js","assets/toggle-group-Cl5xIdhe.js","assets/command-CveOyI1B.js","assets/index-DC8PttjD.js","assets/shell-controls-XXs2Z4jQ.js","assets/use-clock-tick-CK1NKKBE.js","assets/toolbar-B_J_6ptC.js","assets/index-BFTm3kDp.js","assets/automation-runs-BxcpdFwW.js","assets/use-members-C8nU6bE5.js","assets/use-automations-CRN2DJve.js","assets/file-type-icon-CqtE8FQt.js","assets/monaco-editor-CcxIjxbY.js","assets/index-DV3uYGxr.js","assets/index-DlE7uKDy.js","assets/calendar-B-obMRgO.js","assets/AreaChart-BiIUxFdp.js","assets/index-D68VZ7Yi.js","assets/tabs-C2Y-vTij.js","assets/select-model-C63Qirvz.js","assets/checkbox-BgnGPTqE.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-CnBn0X59.js","assets/index-DnyLLaV-.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-DDcPFa4B.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-L76r7JhW.js","assets/pt-BR-CLy76QW2.js","assets/use-mcp-auth-status-f0C1rjA-.js","assets/use-debounced-autosave-5eVi0gbc.js","assets/use-secrets-wrcibf6G.js","assets/use-file-configs-CudKi0q7.js","assets/automation-list-row-qGA23Qqy.js","assets/index-DDGTF8rc.css","assets/index-DvzxBwP2.js","assets/settings-layout-KG-3LWCC.js","assets/use-join-requests-B33mSv0f.js","assets/index-redirect-D1rzKgvE.js","assets/capability-load-error-C6RBrSDi.js","assets/connections-BStqRXj9.js","assets/collection-display-button-Bms_sHup.js","assets/view-mode-toggle-DV3ypYFJ.js","assets/use-delete-connection-81Wh1GEn.js","assets/use-view-mode-CHQ6hzQw.js","assets/connection-detail-B_nYC26c.js","assets/index-CngUpvZv.js","assets/use-create-virtual-mcp-CZjRDQlp.js","assets/monitoring-stats-row-7xvRjEvW.js","assets/collection-detail-BpU07fFr.js","assets/alert-BwtcvqMS.js","assets/index-CK7G-IhD.js","assets/require-capability-DCrUo3Yf.js","assets/access-gate-CmmiPt1S.js","assets/multi-select-DtVH_W49.js","assets/general-vNZSooJh.js","assets/domain-settings-BQYuJoUC.js","assets/connect-FnskaYUQ.js","assets/brand-context-DgtumXpd.js","assets/ai-providers-plym3Xnj.js","assets/secrets-XAb4hF-c.js","assets/buckets-CXll4zGq.js","assets/members-C61nWLWJ.js","assets/role-color-Dn2tXDDF.js","assets/roles-B3ROu0Hg.js","assets/sso-VK6rLmml.js","assets/profile-uSFlSS6u.js","assets/store-Buz8wmTR.js","assets/registry-V1-HJ81t.js","assets/store-registry-C6J7OMm0.js","assets/agents-list-CBw7DhQD.js","assets/automations-D7xHBu36.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-C929fldw.js","assets/auth-entry-CYOArz31.js","assets/input-ABpL2clR.js","assets/retry-CErkP7V6.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-CUujCE-o.js","assets/cli-auth-success-Ch8zkWtV.js","assets/reset-password-DJnS3b-u.js","assets/oauth-callback-DM1hf3Rc.js","assets/mcp-oauth-Ds_NKi4X.js","assets/auth-DAovCG2A.js","assets/layout-BZ_ovybY.js","assets/useRouterState-C4LwikGu.js","assets/required-auth-layout-D4h6xGYw.js","assets/use-deployment-admin-BiPJcOW8.js","assets/users-Bf2yKNFZ.js","assets/index-CHTtKadF.js","assets/sidebar-ScDXY4Qc.js","assets/LayoutLeft-B3ALe-ER.js","assets/use-mobile-CZ8o1PTd.js","assets/X-BUgWEWEb.js","assets/tooltip-CGWbJmcd.js","assets/collection-table-wrapper-DNMgtQcB.js","assets/table-D3ohP3WN.js","assets/ArrowUp-fzpyp2jZ.js","assets/empty-state-BPGrp5Wn.js","assets/search-input-DjCHIY01.js","assets/SearchMd-Brc7X7Md.js","assets/avatar-D7VJVUzb.js","assets/User01-DRSerNbO.js","assets/badge-C8EekcO8.js","assets/use-debounced-value-KsFLjA-w.js","assets/admin-fetch-CCSvjTk1.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/get-initials-D-f_fDFw.js","assets/orgs-BZsPV632.js","assets/label-DmfO0a6P.js","assets/dialog-D0YsbnmU.js","assets/select-D2NVbHP5.js","assets/Check-BNyHoxQ4.js","assets/ChevronDown-C6cenYlm.js","assets/ChevronUp-OSjLr0XR.js","assets/shell-layout-DBSbYFzz.js","assets/Users03-DhzOVa_f.js","assets/SearchLg-DUjufVyO.js","assets/Stars02-BLSzHrzf.js","assets/XClose-Bq6W36u7.js","assets/CheckCircle-CAQDk__P.js","assets/FilterLines-ep1YVo5s.js","assets/Zap-D9F4x3FG.js","assets/autosend-DoML4EE0.js","assets/use-mcp-client-DosKR35x.js","assets/hooks-CjFbUPlm.js","assets/decopilot-sse-pool-93Ff0Du-.js","assets/tab-id-BijBBRwE.js","assets/use-organization-settings-DCTDgWDO.js","assets/studio-tools-DrTabN45.js","assets/use-org-sso-BLhpGZPl.js","assets/onboarding--J1xSpja.js","assets/organization-choice-DeCAJtGj.js","assets/switch-DHli9Xtp.js","assets/Globe04-CMgnbRJY.js","assets/Palette-CIUQKT8Z.js","assets/Upload01-CEfVEpY4.js","assets/commerce-onboarding-VHXN5xvW.js","assets/self-tool-result-CYPLBbH-.js","assets/integration-icon-Di0c-Rf2.js","assets/Tool02-CyJO9uuK.js","assets/agent-icon-BchbTVym.js","assets/AlertCircle-cjAc6Cb5.js","assets/Tool01-CA2f0IP5.js","assets/Settings02-hJHog-f1.js","assets/ArrowRight-BddNpUxh.js","assets/ArrowUpRight-CYqXfw70.js","assets/TrendUp01-T3K2l6wG.js","assets/ZapSquare-QVX7oDRb.js","assets/ZoomOut-D_PRvhYr.js","assets/ChevronRight-DL426F8m.js","assets/DotsVertical-BN-gzshe.js","assets/Copy01-DuV0IkB5.js","assets/Globe01-BLPv9Iwy.js","assets/Eye-CIRvm41O.js","assets/Star01-DCRdYgHX.js","assets/SwitchHorizontal01-Bcp3g94V.js","assets/HardDrive-tsSYgv3a.js","assets/Image01-CwJOfUxp.js","assets/Key01-BONzddQk.js","assets/XCircle-BLtFdIyU.js","assets/LinkExternal01-BKvFymzD.js","assets/Monitor01-TyBHBrLV.js","assets/Sun-Br92Strd.js","assets/Package-DbxCPsMI.js","assets/Play-jTaT8F1j.js","assets/Plus-B5b5sv4F.js","assets/Shield01-BLx3lP6l.js","assets/Stars01-C_twnFnJ.js","assets/Trash01-tIGrAPIZ.js","assets/Users01-Dl6JjraK.js","assets/companions-core-twTKCZtl.js","assets/extract-connection-data-o-jetXIx.js","assets/github-repo-scope-DjMZbiKa.js","assets/form-D395lTO_.js","assets/provision-repo-scoped-github-connection-2iDn-wQ1.js","assets/useQueries-Bkxw0wdg.js","assets/authenticate-and-persist-oauth-axwXqpm8.js","assets/dropdown-menu-DYu7x-Ly.js","assets/reports-lvJHbLR6.js","assets/reports-BWI6IDQq.css","assets/index-DZqUyA8a.js","assets/skeleton-BUnIHqyx.js","assets/use-virtual-mcp-0eSbwOMf.js","assets/popover-WQgY2mA1.js","assets/alert-dialog-CoqXPcPE.js","assets/chat-context-DYGRrFq0.js","assets/use-ai-providers-C_uNW5IX.js","assets/location-BpLtHjTZ.js","assets/use-decopilot-events-CgQeKDBw.js","assets/toolbar-icon-button-Bl9QT4lt.js","assets/drawer-CkIe_Per.js","assets/use-registry-app-DB5yxcMg.js","assets/use-mcp-tools-CvhO9xpv.js","assets/github-repo-picker-NQG_5xKv.js","assets/collection-search-CaQnjUSV.js","assets/use-connection-CHFZZO46.js","assets/use-navigate-to-agent-CALLliwG.js","assets/reusable-new-chat-CouMjkYR.js","assets/use-deco-credits-UWayu2Pm.js","assets/connection-card-NNIzR5Wr.js","assets/use-registry-connections-BOTQaoSe.js","assets/useInfiniteQuery-jwpNBd74.js","assets/use-infinite-scroll-BA9ZZFg3.js","assets/connection-slug-eyAPH6o3.js","assets/card-DRMhXqZ9.js","assets/textarea-Cgyln9_Y.js","assets/connection-form-helpers-DtoVuSN8.js","assets/collection-tabs-BRu8qoY4.js","assets/useSuspenseInfiniteQuery-BgEsG-I9.js","assets/index-B_owX5ts.js","assets/invite-member-dialog-m02yHuwq.js","assets/use-org-auth-client-BnuLLVDi.js","assets/use-organization-roles-CUBH1eQ5.js","assets/use-copy-D9DI_Wsi.js","assets/use-api-keys-a9N5TufW.js","assets/connect-desktop-dialog-DCMZd0Ph.js","assets/toggle-group-B6g7pvPX.js","assets/command-D6PjqT55.js","assets/index-D0CQg1Eg.js","assets/shell-controls-D7YZxcq7.js","assets/use-clock-tick-Xc6Ur8Gw.js","assets/toolbar-BXVab8_Q.js","assets/index-DkimfYpY.js","assets/automation-runs-DS1ufmQL.js","assets/use-members-D7RKstKp.js","assets/use-automations-lLh1mwGK.js","assets/file-type-icon--nlfZosI.js","assets/monaco-editor-Calg3fsn.js","assets/index-LgIYlx1I.js","assets/index-COn_Fa_l.js","assets/calendar-BG-x0mFZ.js","assets/AreaChart-DjLpfGg2.js","assets/index-DbXbrbEI.js","assets/tabs-CuE2juqg.js","assets/select-model-SMoVG6g0.js","assets/checkbox-DVfcAwB_.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-oDuAxa6m.js","assets/index-COmjF1Qy.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-209x6ELs.js","assets/deco-site-production-url-CaKZ7xBn.js","assets/use-capability-C9WcJZ8Y.js","assets/pt-BR-CLy76QW2.js","assets/use-mcp-auth-status-P29G6sv4.js","assets/use-debounced-autosave-CNVEXkS8.js","assets/use-secrets-BfucpkPt.js","assets/use-file-configs-BVP6-78x.js","assets/automation-list-row-BhxWSbh4.js","assets/index-DDGTF8rc.css","assets/index-CE-cjLFS.js","assets/settings-layout-ZcIrVRxe.js","assets/use-join-requests-CUF8oAM5.js","assets/index-redirect-BGBtFYCr.js","assets/capability-load-error-CsrjnmWy.js","assets/connections-DDau_Efs.js","assets/collection-display-button-MVLiFgDs.js","assets/view-mode-toggle-DUsR66lG.js","assets/use-delete-connection-BvLZIMPU.js","assets/use-view-mode-Ba27bzip.js","assets/connection-detail-CoJ5YHPu.js","assets/index-rJcOvAqz.js","assets/use-create-virtual-mcp-C_HShhN7.js","assets/monitoring-stats-row-D9HI3OyL.js","assets/collection-detail-D2DuDgeo.js","assets/alert-DJUpqG6p.js","assets/index-DaoCgGAd.js","assets/require-capability-DAfN9Ioo.js","assets/access-gate-1EeBNkfs.js","assets/multi-select-B7ew1f-i.js","assets/general-CEAxgAOj.js","assets/domain-settings-Cf1iakCl.js","assets/connect-BlhIFrvJ.js","assets/brand-context-DQGpm1NH.js","assets/ai-providers-CV1PJ_Qj.js","assets/secrets-DG-xpLY_.js","assets/buckets-lrdRycSt.js","assets/members-eXVLXZBO.js","assets/role-color-Dn2tXDDF.js","assets/roles-DwN-XzRx.js","assets/sso-CNYomtYE.js","assets/profile-BGD57DXN.js","assets/store-ZDzIE0aK.js","assets/registry-CMP1xDc-.js","assets/store-registry-Dpds3cgF.js","assets/agents-list-D7SeVi2Z.js","assets/automations-_mGzbMDf.js"])))=>i.map(i=>d[i]);
2
2
  function U6(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(n,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function o(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=o(r);fetch(r.href,i)}})();const $6="modulepreload",q6=function(e){return"/"+e},AR={},lt=function(t,o,n){let r=Promise.resolve();if(o&&o.length>0){let l=function(m){return Promise.all(m.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");r=l(o.map(m=>{if(m=q6(m),m in AR)return;AR[m]=!0;const h=m.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${f}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":$6,h||(g.as="script"),g.crossOrigin="",g.href=m,d&&g.setAttribute("nonce",d),document.head.appendChild(g),h)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${m}`)))})}))}function i(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return r.then(l=>{for(const c of l||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};var wde=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fy={exports:{}},ed={};var kR;function V6(){if(kR)return ed;kR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(n,r,i){var l=null;if(i!==void 0&&(l=""+i),r.key!==void 0&&(l=""+r.key),"key"in r){i={};for(var c in r)c!=="key"&&(i[c]=r[c])}else i=r;return r=i.ref,{$$typeof:e,type:n,key:l,ref:r!==void 0?r:null,props:i}}return ed.Fragment=t,ed.jsx=o,ed.jsxs=o,ed}var DR;function H6(){return DR||(DR=1,Fy.exports=V6()),Fy.exports}var R=H6(),By={exports:{}},zy={},jy={exports:{}},at={};var OR;function G6(){if(OR)return at;OR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),g=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,x={};function _(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||y}_.prototype.isReactComponent={},_.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},_.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function C(){}C.prototype=_.prototype;function P(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||y}var E=P.prototype=new C;E.constructor=P,S(E,_.prototype),E.isPureReactComponent=!0;var T=Array.isArray;function A(){}var k={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function N(M,G,V){var L=V.ref;return{$$typeof:e,type:M,key:G,ref:L!==void 0?L:null,props:V}}function q(M,G){return N(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function $(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var U=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?$(""+M.key):G.toString(36)}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(A,A):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,L,j){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var me=!1;if(M===null)me=!0;else switch(J){case"bigint":case"string":case"number":me=!0;break;case"object":switch(M.$$typeof){case e:case t:me=!0;break;case h:return me=M._init,H(me(M._payload),G,V,L,j)}}if(me)return j=j(M),me=L===""?"."+W(M,0):L,T(j)?(V="",me!=null&&(V=me.replace(U,"$&/")+"/"),H(j,G,V,"",function(Be){return Be})):j!=null&&(B(j)&&(j=q(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(U,"$&/")+"/")+me)),G.push(j)),1;me=0;var he=L===""?".":L+":";if(T(M))for(var xe=0;xe<M.length;xe++)L=M[xe],J=he+W(L,xe),me+=H(L,G,V,J,j);else if(xe=v(M),typeof xe=="function")for(M=xe.call(M),xe=0;!(L=M.next()).done;)L=L.value,J=he+W(L,xe++),me+=H(L,G,V,J,j);else if(J==="object"){if(typeof M.then=="function")return H(ae(M),G,V,L,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return me}function Z(M,G,V){if(M==null)return M;var L=[],j=0;return H(M,L,"","",function(J){return G.call(V,J,j++)}),L}function te(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var le=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:Z,forEach:function(M,G,V){Z(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return Z(M,function(){G++}),G},toArray:function(M){return Z(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return at.Activity=f,at.Children=Q,at.Component=_,at.Fragment=o,at.Profiler=r,at.PureComponent=P,at.StrictMode=n,at.Suspense=d,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,at.__COMPILER_RUNTIME={__proto__:null,c:function(M){return k.H.useMemoCache(M)}},at.cache=function(M){return function(){return M.apply(null,arguments)}},at.cacheSignal=function(){return null},at.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var L=S({},M.props),j=M.key;if(G!=null)for(J in G.key!==void 0&&(j=""+G.key),G)!O.call(G,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&G.ref===void 0||(L[J]=G[J]);var J=arguments.length-2;if(J===1)L.children=V;else if(1<J){for(var me=Array(J),he=0;he<J;he++)me[he]=arguments[he+2];L.children=me}return N(M.type,j,L)},at.createContext=function(M){return M={$$typeof:l,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:i,_context:M},M},at.createElement=function(M,G,V){var L,j={},J=null;if(G!=null)for(L in G.key!==void 0&&(J=""+G.key),G)O.call(G,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(j[L]=G[L]);var me=arguments.length-2;if(me===1)j.children=V;else if(1<me){for(var he=Array(me),xe=0;xe<me;xe++)he[xe]=arguments[xe+2];j.children=he}if(M&&M.defaultProps)for(L in me=M.defaultProps,me)j[L]===void 0&&(j[L]=me[L]);return N(M,J,j)},at.createRef=function(){return{current:null}},at.forwardRef=function(M){return{$$typeof:c,render:M}},at.isValidElement=B,at.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:te}},at.memo=function(M,G){return{$$typeof:m,type:M,compare:G===void 0?null:G}},at.startTransition=function(M){var G=k.T,V={};k.T=V;try{var L=M(),j=k.S;j!==null&&j(V,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(A,le)}catch(J){le(J)}finally{G!==null&&V.types!==null&&(G.types=V.types),k.T=G}},at.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},at.use=function(M){return k.H.use(M)},at.useActionState=function(M,G,V){return k.H.useActionState(M,G,V)},at.useCallback=function(M,G){return k.H.useCallback(M,G)},at.useContext=function(M){return k.H.useContext(M)},at.useDebugValue=function(){},at.useDeferredValue=function(M,G){return k.H.useDeferredValue(M,G)},at.useEffect=function(M,G){return k.H.useEffect(M,G)},at.useEffectEvent=function(M){return k.H.useEffectEvent(M)},at.useId=function(){return k.H.useId()},at.useImperativeHandle=function(M,G,V){return k.H.useImperativeHandle(M,G,V)},at.useInsertionEffect=function(M,G){return k.H.useInsertionEffect(M,G)},at.useLayoutEffect=function(M,G){return k.H.useLayoutEffect(M,G)},at.useMemo=function(M,G){return k.H.useMemo(M,G)},at.useOptimistic=function(M,G){return k.H.useOptimistic(M,G)},at.useReducer=function(M,G,V){return k.H.useReducer(M,G,V)},at.useRef=function(M){return k.H.useRef(M)},at.useState=function(M){return k.H.useState(M)},at.useSyncExternalStore=function(M,G,V){return k.H.useSyncExternalStore(M,G,V)},at.useTransition=function(){return k.H.useTransition()},at.version="19.2.6",at}var IR;function bs(){return IR||(IR=1,jy.exports=G6()),jy.exports}var MR;function K6(){if(MR)return zy;MR=1;var e=bs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return zy.c=function(t){return e.H.useMemoCache(t)},zy}var LR;function W6(){return LR||(LR=1,By.exports=K6()),By.exports}var ro=W6(),Uy={exports:{}},td={},$y={exports:{}},qy={};var NR;function Y6(){return NR||(NR=1,(function(e){function t(H,Z){var te=H.length;H.push(Z);e:for(;0<te;){var le=te-1>>>1,Q=H[le];if(0<r(Q,Z))H[le]=Z,H[te]=Q,te=le;else break e}}function o(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var Z=H[0],te=H.pop();if(te!==Z){H[0]=te;e:for(var le=0,Q=H.length,M=Q>>>1;le<M;){var G=2*(le+1)-1,V=H[G],L=G+1,j=H[L];if(0>r(V,te))L<Q&&0>r(j,V)?(H[le]=j,H[L]=te,le=L):(H[le]=V,H[G]=te,le=G);else if(L<Q&&0>r(j,te))H[le]=j,H[L]=te,le=L;else break e}}return Z}function r(H,Z){var te=H.sortIndex-Z.sortIndex;return te!==0?te:H.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],m=[],h=1,f=null,g=3,v=!1,y=!1,S=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var Z=o(m);Z!==null;){if(Z.callback===null)n(m);else if(Z.startTime<=H)n(m),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=o(m)}}function T(H){if(S=!1,E(H),!y)if(o(d)!==null)y=!0,A||(A=!0,$());else{var Z=o(m);Z!==null&&ae(T,Z.startTime-H)}}var A=!1,k=-1,O=5,N=-1;function q(){return x?!0:!(e.unstable_now()-N<O)}function B(){if(x=!1,A){var H=e.unstable_now();N=H;var Z=!0;try{e:{y=!1,S&&(S=!1,C(k),k=-1),v=!0;var te=g;try{t:{for(E(H),f=o(d);f!==null&&!(f.expirationTime>H&&q());){var le=f.callback;if(typeof le=="function"){f.callback=null,g=f.priorityLevel;var Q=le(f.expirationTime<=H);if(H=e.unstable_now(),typeof Q=="function"){f.callback=Q,E(H),Z=!0;break t}f===o(d)&&n(d),E(H)}else n(d);f=o(d)}if(f!==null)Z=!0;else{var M=o(m);M!==null&&ae(T,M.startTime-H),Z=!1}}break e}finally{f=null,g=te,v=!1}Z=void 0}}finally{Z?$():A=!1}}}var $;if(typeof P=="function")$=function(){P(B)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=B,$=function(){W.postMessage(null)}}else $=function(){_(B,0)};function ae(H,Z){k=_(function(){H(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(H){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var te=g;g=Z;try{return H()}finally{g=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(H,Z){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=g;g=H;try{return Z()}finally{g=te}},e.unstable_scheduleCallback=function(H,Z,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,H={id:h++,callback:Z,priorityLevel:H,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(H.sortIndex=te,t(m,H),o(d)===null&&H===o(m)&&(S?(C(k),k=-1):S=!0,ae(T,te-le))):(H.sortIndex=Q,t(d,H),y||v||(y=!0,A||(A=!0,$()))),H},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(H){var Z=g;return function(){var te=g;g=Z;try{return H.apply(this,arguments)}finally{g=te}}}})(qy)),qy}var FR;function Z6(){return FR||(FR=1,$y.exports=Y6()),$y.exports}var Vy={exports:{}},xn={};var BR;function Q6(){if(BR)return xn;BR=1;var e=bs();function t(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)m+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var n={d:{f:o,r:function(){throw Error(t(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal");function i(d,m,h){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:f==null?null:""+f,children:d,containerInfo:m,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,xn.createPortal=function(d,m){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return i(d,m,null,h)},xn.flushSync=function(d){var m=l.T,h=n.p;try{if(l.T=null,n.p=2,d)return d()}finally{l.T=m,n.p=h,n.d.f()}},xn.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,n.d.C(d,m))},xn.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},xn.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var h=m.as,f=c(h,m.crossOrigin),g=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;h==="style"?n.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:f,integrity:g,fetchPriority:v}):h==="script"&&n.d.X(d,{crossOrigin:f,integrity:g,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xn.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var h=c(m.as,m.crossOrigin);n.d.M(d,{crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&n.d.M(d)},xn.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var h=m.as,f=c(h,m.crossOrigin);n.d.L(d,h,{crossOrigin:f,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xn.preloadModule=function(d,m){if(typeof d=="string")if(m){var h=c(m.as,m.crossOrigin);n.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:h,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else n.d.m(d)},xn.requestFormReset=function(d){n.d.r(d)},xn.unstable_batchedUpdates=function(d,m){return d(m)},xn.useFormState=function(d,m,h){return l.H.useFormState(d,m,h)},xn.useFormStatus=function(){return l.H.useHostTransitionStatus()},xn.version="19.2.6",xn}var zR;function mI(){if(zR)return Vy.exports;zR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vy.exports=Q6(),Vy.exports}var jR;function J6(){if(jR)return td;jR=1;var e=Z6(),t=bs(),o=mI();function n(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function i(a){var s=a,u=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(u=s.return),a=s.return;while(a)}return s.tag===3?u:null}function l(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function c(a){if(a.tag===31){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function d(a){if(i(a)!==a)throw Error(n(188))}function m(a){var s=a.alternate;if(!s){if(s=i(a),s===null)throw Error(n(188));return s!==a?null:a}for(var u=a,p=s;;){var b=u.return;if(b===null)break;var w=b.alternate;if(w===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===w.child){for(w=b.child;w;){if(w===u)return d(b),a;if(w===p)return d(b),s;w=w.sibling}throw Error(n(188))}if(u.return!==p.return)u=b,p=w;else{for(var I=!1,z=b.child;z;){if(z===u){I=!0,u=b,p=w;break}if(z===p){I=!0,p=b,u=w;break}z=z.sibling}if(!I){for(z=w.child;z;){if(z===u){I=!0,u=w,p=b;break}if(z===p){I=!0,p=w,u=b;break}z=z.sibling}if(!I)throw Error(n(189))}}if(u.alternate!==p)throw Error(n(190))}if(u.tag!==3)throw Error(n(188));return u.stateNode.current===u?a:s}function h(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=h(a),s!==null)return s;a=a.sibling}return null}var f=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),P=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function $(a){return a===null||typeof a!="object"?null:(a=B&&a[B]||a["@@iterator"],typeof a=="function"?a:null)}var U=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===U?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case _:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList";case N:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return"Portal";case P:return a.displayName||"Context";case C:return(a._context.displayName||"Context")+".Consumer";case E:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case k:return s=a.displayName||null,s!==null?s:W(a.type)||"Memo";case O:s=a._payload,a=a._init;try{return W(a(s))}catch{}}return null}var ae=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function M(a){return{current:a}}function G(a){0>Q||(a.current=le[Q],le[Q]=null,Q--)}function V(a,s){Q++,le[Q]=a.current,a.current=s}var L=M(null),j=M(null),J=M(null),me=M(null);function he(a,s){switch(V(J,s),V(j,a),V(L,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?JP(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=JP(s),a=XP(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(L),V(L,a)}function xe(){G(L),G(j),G(J)}function Be(a){a.memoizedState!==null&&V(me,a);var s=L.current,u=XP(s,a.type);s!==u&&(V(j,a),V(L,u))}function Y(a){j.current===a&&(G(L),G(j)),me.current===a&&(G(me),Zu._currentValue=te)}var ne,ve;function ie(a){if(ne===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ne+a+ve}var we=!1;function Pe(a,s){if(!a||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(ge){var fe=ge}Reflect.construct(a,[],Ce)}else{try{Ce.call()}catch(ge){fe=ge}a.call(Ce.prototype)}}else{try{throw Error()}catch(ge){fe=ge}(Ce=a())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(ge){if(ge&&fe&&typeof ge.stack=="string")return[ge.stack,fe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=p.DetermineComponentFrameRoot(),I=w[0],z=w[1];if(I&&z){var X=I.split(`
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
52
52
  || ${O} === "boolean" || ${A} === null`).assign(N,(0,n._)`[${A}]`)}}}function g({gen:C,parentData:P,parentDataProperty:E},T){C.if((0,n._)`${P} !== undefined`,()=>C.assign((0,n._)`${P}[${E}]`,T))}function v(C,P,E,T=i.Correct){const A=T===i.Correct?n.operators.EQ:n.operators.NEQ;let k;switch(C){case"null":return(0,n._)`${P} ${A} null`;case"array":k=(0,n._)`Array.isArray(${P})`;break;case"object":k=(0,n._)`${P} && typeof ${P} == "object" && !Array.isArray(${P})`;break;case"integer":k=O((0,n._)`!(${P} % 1) && !isNaN(${P})`);break;case"number":k=O();break;default:return(0,n._)`typeof ${P} ${A} ${C}`}return T===i.Correct?k:(0,n.not)(k);function O(N=n.nil){return(0,n.and)((0,n._)`typeof ${P} == "number"`,N,E?(0,n._)`isFinite(${P})`:n.nil)}}fn.checkDataType=v;function y(C,P,E,T){if(C.length===1)return v(C[0],P,E,T);let A;const k=(0,r.toHash)(C);if(k.array&&k.object){const O=(0,n._)`typeof ${P} != "object"`;A=k.null?O:(0,n._)`!${P} || ${O}`,delete k.null,delete k.array,delete k.object}else A=n.nil;k.number&&delete k.integer;for(const O in k)A=(0,n.and)(A,v(O,P,E,T));return A}fn.checkDataTypes=y;const S={message:({schema:C})=>`must be ${C}`,params:({schema:C,schemaValue:P})=>typeof C=="string"?(0,n._)`{type: ${C}}`:(0,n._)`{type: ${P}}`};function x(C){const P=_(C);(0,o.reportError)(P,S)}fn.reportTypeError=x;function _(C){const{gen:P,data:E,schema:T}=C,A=(0,r.schemaRefOrVal)(C,T,"type");return{gen:P,keyword:"type",data:E,schema:T.type,schemaCode:A,schemaValue:A,parentSchema:T,params:{},it:C}}return fn}var od={},D1;function f9(){if(D1)return od;D1=1,Object.defineProperty(od,"__esModule",{value:!0}),od.assignDefaults=void 0;const e=vt(),t=Mt();function o(r,i){const{properties:l,items:c}=r.schema;if(i==="object"&&l)for(const d in l)n(r,d,l[d].default);else i==="array"&&Array.isArray(c)&&c.forEach((d,m)=>n(r,m,d.default))}od.assignDefaults=o;function n(r,i,l){const{gen:c,compositeRule:d,data:m,opts:h}=r;if(l===void 0)return;const f=(0,e._)`${m}${(0,e.getProperty)(i)}`;if(d){(0,t.checkStrictMode)(r,`default is ignored for: ${f}`);return}let g=(0,e._)`${f} === undefined`;h.useDefaults==="empty"&&(g=(0,e._)`${g} || ${f} === null || ${f} === ""`),c.if(g,(0,e._)`${f} = ${(0,e.stringify)(l)}`)}return od}var Qr={},Ht={},O1;function la(){if(O1)return Ht;O1=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.validateUnion=Ht.validateArray=Ht.usePattern=Ht.callValidateCode=Ht.schemaProperties=Ht.allSchemaProperties=Ht.noPropertyInData=Ht.propertyInData=Ht.isOwnProperty=Ht.hasPropFunc=Ht.reportMissingProp=Ht.checkMissingProp=Ht.checkReportMissingProp=void 0;const e=vt(),t=Mt(),o=_s(),n=Mt();function r(C,P){const{gen:E,data:T,it:A}=C;E.if(h(E,T,P,A.opts.ownProperties),()=>{C.setParams({missingProperty:(0,e._)`${P}`},!0),C.error()})}Ht.checkReportMissingProp=r;function i({gen:C,data:P,it:{opts:E}},T,A){return(0,e.or)(...T.map(k=>(0,e.and)(h(C,P,k,E.ownProperties),(0,e._)`${A} = ${k}`)))}Ht.checkMissingProp=i;function l(C,P){C.setParams({missingProperty:P},!0),C.error()}Ht.reportMissingProp=l;function c(C){return C.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ht.hasPropFunc=c;function d(C,P,E){return(0,e._)`${c(C)}.call(${P}, ${E})`}Ht.isOwnProperty=d;function m(C,P,E,T){const A=(0,e._)`${P}${(0,e.getProperty)(E)} !== undefined`;return T?(0,e._)`${A} && ${d(C,P,E)}`:A}Ht.propertyInData=m;function h(C,P,E,T){const A=(0,e._)`${P}${(0,e.getProperty)(E)} === undefined`;return T?(0,e.or)(A,(0,e.not)(d(C,P,E))):A}Ht.noPropertyInData=h;function f(C){return C?Object.keys(C).filter(P=>P!=="__proto__"):[]}Ht.allSchemaProperties=f;function g(C,P){return f(P).filter(E=>!(0,t.alwaysValidSchema)(C,P[E]))}Ht.schemaProperties=g;function v({schemaCode:C,data:P,it:{gen:E,topSchemaRef:T,schemaPath:A,errorPath:k},it:O},N,q,B){const $=B?(0,e._)`${C}, ${P}, ${T}${A}`:P,U=[[o.default.instancePath,(0,e.strConcat)(o.default.instancePath,k)],[o.default.parentData,O.parentData],[o.default.parentDataProperty,O.parentDataProperty],[o.default.rootData,o.default.rootData]];O.opts.dynamicRef&&U.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const W=(0,e._)`${$}, ${E.object(...U)}`;return q!==e.nil?(0,e._)`${N}.call(${q}, ${W})`:(0,e._)`${N}(${W})`}Ht.callValidateCode=v;const y=(0,e._)`new RegExp`;function S({gen:C,it:{opts:P}},E){const T=P.unicodeRegExp?"u":"",{regExp:A}=P.code,k=A(E,T);return C.scopeValue("pattern",{key:k.toString(),ref:k,code:(0,e._)`${A.code==="new RegExp"?y:(0,n.useFunc)(C,A)}(${E}, ${T})`})}Ht.usePattern=S;function x(C){const{gen:P,data:E,keyword:T,it:A}=C,k=P.name("valid");if(A.allErrors){const N=P.let("valid",!0);return O(()=>P.assign(N,!1)),N}return P.var(k,!0),O(()=>P.break()),k;function O(N){const q=P.const("len",(0,e._)`${E}.length`);P.forRange("i",0,q,B=>{C.subschema({keyword:T,dataProp:B,dataPropType:t.Type.Num},k),P.if((0,e.not)(k),N)})}}Ht.validateArray=x;function _(C){const{gen:P,schema:E,keyword:T,it:A}=C;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(q=>(0,t.alwaysValidSchema)(A,q))&&!A.opts.unevaluated)return;const O=P.let("valid",!1),N=P.name("_valid");P.block(()=>E.forEach((q,B)=>{const $=C.subschema({keyword:T,schemaProp:B,compositeRule:!0},N);P.assign(O,(0,e._)`${O} || ${N}`),C.mergeValidEvaluated($,N)||P.if((0,e.not)(O))})),C.result(O,()=>C.reset(),()=>C.error(!0))}return Ht.validateUnion=_,Ht}var I1;function h9(){if(I1)return Qr;I1=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.validateKeywordUsage=Qr.validSchemaType=Qr.funcKeywordCode=Qr.macroKeywordCode=void 0;const e=vt(),t=_s(),o=la(),n=Zg();function r(g,v){const{gen:y,keyword:S,schema:x,parentSchema:_,it:C}=g,P=v.macro.call(C.self,x,_,C),E=m(y,S,P);C.opts.validateSchema!==!1&&C.self.validateSchema(P,!0);const T=y.name("valid");g.subschema({schema:P,schemaPath:e.nil,errSchemaPath:`${C.errSchemaPath}/${S}`,topSchemaRef:E,compositeRule:!0},T),g.pass(T,()=>g.error(!0))}Qr.macroKeywordCode=r;function i(g,v){var y;const{gen:S,keyword:x,schema:_,parentSchema:C,$data:P,it:E}=g;d(E,v);const T=!P&&v.compile?v.compile.call(E.self,_,C,E):v.validate,A=m(S,x,T),k=S.let("valid");g.block$data(k,O),g.ok((y=v.valid)!==null&&y!==void 0?y:k);function O(){if(v.errors===!1)B(),v.modifying&&l(g),$(()=>g.error());else{const U=v.async?N():q();v.modifying&&l(g),$(()=>c(g,U))}}function N(){const U=S.let("ruleErrs",null);return S.try(()=>B((0,e._)`await `),W=>S.assign(k,!1).if((0,e._)`${W} instanceof ${E.ValidationError}`,()=>S.assign(U,(0,e._)`${W}.errors`),()=>S.throw(W))),U}function q(){const U=(0,e._)`${A}.errors`;return S.assign(U,null),B(e.nil),U}function B(U=v.async?(0,e._)`await `:e.nil){const W=E.opts.passContext?t.default.this:t.default.self,ae=!("compile"in v&&!P||v.schema===!1);S.assign(k,(0,e._)`${U}${(0,o.callValidateCode)(g,A,W,ae)}`,v.modifying)}function $(U){var W;S.if((0,e.not)((W=v.valid)!==null&&W!==void 0?W:k),U)}}Qr.funcKeywordCode=i;function l(g){const{gen:v,data:y,it:S}=g;v.if(S.parentData,()=>v.assign(y,(0,e._)`${S.parentData}[${S.parentDataProperty}]`))}function c(g,v){const{gen:y}=g;y.if((0,e._)`Array.isArray(${v})`,()=>{y.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(g)},()=>g.error())}function d({schemaEnv:g},v){if(v.async&&!g.$async)throw new Error("async keyword in sync schema")}function m(g,v,y){if(y===void 0)throw new Error(`keyword "${v}" failed to compile`);return g.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,e.stringify)(y)})}function h(g,v,y=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(g):S==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==S||y&&typeof g>"u")}Qr.validSchemaType=h;function f({schema:g,opts:v,self:y,errSchemaPath:S},x,_){if(Array.isArray(x.keyword)?!x.keyword.includes(_):x.keyword!==_)throw new Error("ajv implementation error");const C=x.dependencies;if(C?.some(P=>!Object.prototype.hasOwnProperty.call(g,P)))throw new Error(`parent schema must have dependencies of ${_}: ${C.join(",")}`);if(x.validateSchema&&!x.validateSchema(g[_])){const E=`keyword "${_}" value is invalid at path "${S}": `+y.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")y.logger.error(E);else throw new Error(E)}}return Qr.validateKeywordUsage=f,Qr}var ei={},M1;function p9(){if(M1)return ei;M1=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.extendSubschemaMode=ei.extendSubschemaData=ei.getSubschema=void 0;const e=vt(),t=Mt();function o(i,{keyword:l,schemaProp:c,schema:d,schemaPath:m,errSchemaPath:h,topSchemaRef:f}){if(l!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const g=i.schema[l];return c===void 0?{schema:g,schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${i.errSchemaPath}/${l}`}:{schema:g[c],schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(c)}`,errSchemaPath:`${i.errSchemaPath}/${l}/${(0,t.escapeFragment)(c)}`}}if(d!==void 0){if(m===void 0||h===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:m,topSchemaRef:f,errSchemaPath:h}}throw new Error('either "keyword" or "schema" must be passed')}ei.getSubschema=o;function n(i,l,{dataProp:c,dataPropType:d,data:m,dataTypes:h,propertyName:f}){if(m!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=l;if(c!==void 0){const{errorPath:y,dataPathArr:S,opts:x}=l,_=g.let("data",(0,e._)`${l.data}${(0,e.getProperty)(c)}`,!0);v(_),i.errorPath=(0,e.str)`${y}${(0,t.getErrorPath)(c,d,x.jsPropertySyntax)}`,i.parentDataProperty=(0,e._)`${c}`,i.dataPathArr=[...S,i.parentDataProperty]}if(m!==void 0){const y=m instanceof e.Name?m:g.let("data",m,!0);v(y),f!==void 0&&(i.propertyName=f)}h&&(i.dataTypes=h);function v(y){i.data=y,i.dataLevel=l.dataLevel+1,i.dataTypes=[],l.definedProperties=new Set,i.parentData=l.data,i.dataNames=[...l.dataNames,y]}}ei.extendSubschemaData=n;function r(i,{jtdDiscriminator:l,jtdMetadata:c,compositeRule:d,createErrors:m,allErrors:h}){d!==void 0&&(i.compositeRule=d),m!==void 0&&(i.createErrors=m),h!==void 0&&(i.allErrors=h),i.jtdDiscriminator=l,i.jtdMetadata=c}return ei.extendSubschemaMode=r,ei}var Mn={},Jy,L1;function f2(){return L1||(L1=1,Jy=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=o.length)return!1;for(r=n;r--!==0;)if(!e(t[r],o[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(o).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=n;r--!==0;){var l=i[r];if(!e(t[l],o[l]))return!1}return!0}return t!==t&&o!==o}),Jy}var Xy={exports:{}},N1;function g9(){if(N1)return Xy.exports;N1=1;var e=Xy.exports=function(n,r,i){typeof r=="function"&&(i=r,r={}),i=r.cb||i;var l=typeof i=="function"?i:i.pre||function(){},c=i.post||function(){};t(r,l,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(n,r,i,l,c,d,m,h,f,g){if(l&&typeof l=="object"&&!Array.isArray(l)){r(l,c,d,m,h,f,g);for(var v in l){var y=l[v];if(Array.isArray(y)){if(v in e.arrayKeywords)for(var S=0;S<y.length;S++)t(n,r,i,y[S],c+"/"+v+"/"+S,d,c,v,l,S)}else if(v in e.propsKeywords){if(y&&typeof y=="object")for(var x in y)t(n,r,i,y[x],c+"/"+v+"/"+o(x),d,c,v,l,x)}else(v in e.keywords||n.allKeys&&!(v in e.skipKeywords))&&t(n,r,i,y,c+"/"+v,d,c,v,l)}i(l,c,d,m,h,f,g)}}function o(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Xy.exports}var F1;function Qg(){if(F1)return Mn;F1=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.getSchemaRefs=Mn.resolveUrl=Mn.normalizeId=Mn._getFullPath=Mn.getFullPath=Mn.inlineRef=void 0;const e=Mt(),t=f2(),o=g9(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function r(S,x=!0){return typeof S=="boolean"?!0:x===!0?!l(S):x?c(S)<=x:!1}Mn.inlineRef=r;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(S){for(const x in S){if(i.has(x))return!0;const _=S[x];if(Array.isArray(_)&&_.some(l)||typeof _=="object"&&l(_))return!0}return!1}function c(S){let x=0;for(const _ in S){if(_==="$ref")return 1/0;if(x++,!n.has(_)&&(typeof S[_]=="object"&&(0,e.eachItem)(S[_],C=>x+=c(C)),x===1/0))return 1/0}return x}function d(S,x="",_){_!==!1&&(x=f(x));const C=S.parse(x);return m(S,C)}Mn.getFullPath=d;function m(S,x){return S.serialize(x).split("#")[0]+"#"}Mn._getFullPath=m;const h=/#\/?$/;function f(S){return S?S.replace(h,""):""}Mn.normalizeId=f;function g(S,x,_){return _=f(_),S.resolve(x,_)}Mn.resolveUrl=g;const v=/^[a-z_][-a-z0-9._]*$/i;function y(S,x){if(typeof S=="boolean")return{};const{schemaId:_,uriResolver:C}=this.opts,P=f(S[_]||x),E={"":P},T=d(C,P,!1),A={},k=new Set;return o(S,{allKeys:!0},(q,B,$,U)=>{if(U===void 0)return;const W=T+B;let ae=E[U];typeof q[_]=="string"&&(ae=H.call(this,q[_])),Z.call(this,q.$anchor),Z.call(this,q.$dynamicAnchor),E[B]=ae;function H(te){const le=this.opts.uriResolver.resolve;if(te=f(ae?le(ae,te):te),k.has(te))throw N(te);k.add(te);let Q=this.refs[te];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O(q,Q.schema,te):te!==f(W)&&(te[0]==="#"?(O(q,A[te],te),A[te]=q):this.refs[te]=W),te}function Z(te){if(typeof te=="string"){if(!v.test(te))throw new Error(`invalid anchor "${te}"`);H.call(this,`#${te}`)}}}),A;function O(q,B,$){if(B!==void 0&&!t(q,B))throw N($)}function N(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Mn.getSchemaRefs=y,Mn}var B1;function Jg(){if(B1)return Ja;B1=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.getData=Ja.KeywordCxt=Ja.validateFunctionCode=void 0;const e=m9(),t=Wp(),o=m2(),n=Wp(),r=f9(),i=h9(),l=p9(),c=vt(),d=_s(),m=Qg(),h=Mt(),f=Zg();function g(Y){if(T(Y)&&(k(Y),E(Y))){x(Y);return}v(Y,()=>(0,e.topBoolOrEmptySchema)(Y))}Ja.validateFunctionCode=g;function v({gen:Y,validateName:ne,schema:ve,schemaEnv:ie,opts:we},Pe){we.code.es5?Y.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Y.code((0,c._)`"use strict"; ${C(ve,we)}`),S(Y,we),Y.code(Pe)}):Y.func(ne,(0,c._)`${d.default.data}, ${y(we)}`,ie.$async,()=>Y.code(C(ve,we)).code(Pe))}function y(Y){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Y.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function S(Y,ne){Y.if(d.default.valCxt,()=>{Y.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Y.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Y.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Y.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Y.var(d.default.instancePath,(0,c._)`""`),Y.var(d.default.parentData,(0,c._)`undefined`),Y.var(d.default.parentDataProperty,(0,c._)`undefined`),Y.var(d.default.rootData,d.default.data),ne.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Y){const{schema:ne,opts:ve,gen:ie}=Y;v(Y,()=>{ve.$comment&&ne.$comment&&U(Y),q(Y),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),ve.unevaluated&&_(Y),O(Y),W(Y)})}function _(Y){const{gen:ne,validateName:ve}=Y;Y.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Y.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Y.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Y.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Y.evaluated}.items`,(0,c._)`undefined`))}function C(Y,ne){const ve=typeof Y=="object"&&Y[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function P(Y,ne){if(T(Y)&&(k(Y),E(Y))){A(Y,ne);return}(0,e.boolOrEmptySchema)(Y,ne)}function E({schema:Y,self:ne}){if(typeof Y=="boolean")return!Y;for(const ve in Y)if(ne.RULES.all[ve])return!0;return!1}function T(Y){return typeof Y.schema!="boolean"}function A(Y,ne){const{schema:ve,gen:ie,opts:we}=Y;we.$comment&&ve.$comment&&U(Y),B(Y),$(Y);const Pe=ie.const("_errs",d.default.errors);O(Y,Pe),ie.var(ne,(0,c._)`${Pe} === ${d.default.errors}`)}function k(Y){(0,h.checkUnknownRules)(Y),N(Y)}function O(Y,ne){if(Y.opts.jtd)return H(Y,[],!1,ne);const ve=(0,t.getSchemaTypes)(Y.schema),ie=(0,t.coerceAndCheckDataType)(Y,ve);H(Y,ve,!ie,ne)}function N(Y){const{schema:ne,errSchemaPath:ve,opts:ie,self:we}=Y;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(ne,we.RULES)&&we.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function q(Y){const{schema:ne,opts:ve}=Y;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,h.checkStrictMode)(Y,"default is ignored in the schema root")}function B(Y){const ne=Y.schema[Y.opts.schemaId];ne&&(Y.baseId=(0,m.resolveUrl)(Y.opts.uriResolver,Y.baseId,ne))}function $(Y){if(Y.schema.$async&&!Y.schemaEnv.$async)throw new Error("async schema in sync schema")}function U({gen:Y,schemaEnv:ne,schema:ve,errSchemaPath:ie,opts:we}){const Pe=ve.$comment;if(we.$comment===!0)Y.code((0,c._)`${d.default.self}.logger.log(${Pe})`);else if(typeof we.$comment=="function"){const tt=(0,c.str)`${ie}/$comment`,nt=Y.scopeValue("root",{ref:ne.root});Y.code((0,c._)`${d.default.self}.opts.$comment(${Pe}, ${tt}, ${nt}.schema)`)}}function W(Y){const{gen:ne,schemaEnv:ve,validateName:ie,ValidationError:we,opts:Pe}=Y;ve.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${we}(${d.default.vErrors})`)):(ne.assign((0,c._)`${ie}.errors`,d.default.vErrors),Pe.unevaluated&&ae(Y),ne.return((0,c._)`${d.default.errors} === 0`))}function ae({gen:Y,evaluated:ne,props:ve,items:ie}){ve instanceof c.Name&&Y.assign((0,c._)`${ne}.props`,ve),ie instanceof c.Name&&Y.assign((0,c._)`${ne}.items`,ie)}function H(Y,ne,ve,ie){const{gen:we,schema:Pe,data:tt,allErrors:nt,opts:$e,self:Qe}=Y,{RULES:Oe}=Qe;if(Pe.$ref&&($e.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(Pe,Oe))){we.block(()=>me(Y,"$ref",Oe.all.$ref.definition));return}$e.jtd||te(Y,ne),we.block(()=>{for(const Ue of Oe.rules)De(Ue);De(Oe.post)});function De(Ue){(0,o.shouldUseGroup)(Pe,Ue)&&(Ue.type?(we.if((0,n.checkDataType)(Ue.type,tt,$e.strictNumbers)),Z(Y,Ue),ne.length===1&&ne[0]===Ue.type&&ve&&(we.else(),(0,n.reportTypeError)(Y)),we.endIf()):Z(Y,Ue),nt||we.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function Z(Y,ne){const{gen:ve,schema:ie,opts:{useDefaults:we}}=Y;we&&(0,r.assignDefaults)(Y,ne.type),ve.block(()=>{for(const Pe of ne.rules)(0,o.shouldUseRule)(ie,Pe)&&me(Y,Pe.keyword,Pe.definition,ne.type)})}function te(Y,ne){Y.schemaEnv.meta||!Y.opts.strictTypes||(le(Y,ne),Y.opts.allowUnionTypes||Q(Y,ne),M(Y,Y.dataTypes))}function le(Y,ne){if(ne.length){if(!Y.dataTypes.length){Y.dataTypes=ne;return}ne.forEach(ve=>{V(Y.dataTypes,ve)||j(Y,`type "${ve}" not allowed by context "${Y.dataTypes.join(",")}"`)}),L(Y,ne)}}function Q(Y,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Y,"use allowUnionTypes to allow union type keyword")}function M(Y,ne){const ve=Y.self.RULES.all;for(const ie in ve){const we=ve[ie];if(typeof we=="object"&&(0,o.shouldUseRule)(Y.schema,we)){const{type:Pe}=we.definition;Pe.length&&!Pe.some(tt=>G(ne,tt))&&j(Y,`missing type "${Pe.join(",")}" for keyword "${ie}"`)}}}function G(Y,ne){return Y.includes(ne)||ne==="number"&&Y.includes("integer")}function V(Y,ne){return Y.includes(ne)||ne==="integer"&&Y.includes("number")}function L(Y,ne){const ve=[];for(const ie of Y.dataTypes)V(ne,ie)?ve.push(ie):ne.includes("integer")&&ie==="number"&&ve.push("integer");Y.dataTypes=ve}function j(Y,ne){const ve=Y.schemaEnv.baseId+Y.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,h.checkStrictMode)(Y,ne,Y.opts.strictTypes)}class J{constructor(ne,ve,ie){if((0,i.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,h.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",Be(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,i.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?f.reportExtraError:f.reportError)(this,this.def.error,ve)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.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:we,schemaType:Pe,def:tt}=this;ie.if((0,c.or)((0,c._)`${we} === undefined`,ve)),ne!==c.nil&&ie.assign(ne,!0),(Pe.length||tt.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:we,it:Pe}=this;return(0,c.or)(tt(),nt());function tt(){if(ie.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const $e=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,n.checkDataTypes)($e,ve,Pe.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function nt(){if(we.validateSchema){const $e=ne.scopeValue("validate$data",{ref:we.validateSchema});return(0,c._)`!${$e}(${ve})`}return c.nil}}subschema(ne,ve){const ie=(0,l.getSubschema)(this.it,ne);(0,l.extendSubschemaData)(ie,this.it,ne),(0,l.extendSubschemaMode)(ie,ne);const we={...this.it,...ie,items:void 0,props:void 0};return P(we,ve),we}mergeEvaluated(ne,ve){const{it:ie,gen:we}=this;ie.opts.unevaluated&&(ie.props!==!0&&ne.props!==void 0&&(ie.props=h.mergeEvaluated.props(we,ne.props,ie.props,ve)),ie.items!==!0&&ne.items!==void 0&&(ie.items=h.mergeEvaluated.items(we,ne.items,ie.items,ve)))}mergeValidEvaluated(ne,ve){const{it:ie,gen:we}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return we.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}Ja.KeywordCxt=J;function me(Y,ne,ve,ie){const we=new J(Y,ve,ne);"code"in ve?ve.code(we,ie):we.$data&&ve.validate?(0,i.funcKeywordCode)(we,ve):"macro"in ve?(0,i.macroKeywordCode)(we,ve):(ve.compile||ve.validate)&&(0,i.funcKeywordCode)(we,ve)}const he=/^\/(?:[^~]|~0|~1)*$/,xe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Be(Y,{dataLevel:ne,dataNames:ve,dataPathArr:ie}){let we,Pe;if(Y==="")return d.default.rootData;if(Y[0]==="/"){if(!he.test(Y))throw new Error(`Invalid JSON-pointer: ${Y}`);we=Y,Pe=d.default.rootData}else{const Qe=xe.exec(Y);if(!Qe)throw new Error(`Invalid JSON-pointer: ${Y}`);const Oe=+Qe[1];if(we=Qe[2],we==="#"){if(Oe>=ne)throw new Error($e("property/index",Oe));return ie[ne-Oe]}if(Oe>ne)throw new Error($e("data",Oe));if(Pe=ve[ne-Oe],!we)return Pe}let tt=Pe;const nt=we.split("/");for(const Qe of nt)Qe&&(Pe=(0,c._)`${Pe}${(0,c.getProperty)((0,h.unescapeJsonPointer)(Qe))}`,tt=(0,c._)`${tt} && ${Pe}`);return tt;function $e(Qe,Oe){return`Cannot access ${Qe} ${Oe} levels up, current level is ${ne}`}}return Ja.getData=Be,Ja}var sh={},z1;function iC(){if(z1)return sh;z1=1,Object.defineProperty(sh,"__esModule",{value:!0});class e extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}return sh.default=e,sh}var lh={},j1;function Xg(){if(j1)return lh;j1=1,Object.defineProperty(lh,"__esModule",{value:!0});const e=Qg();class t extends Error{constructor(n,r,i,l){super(l||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,e.resolveUrl)(n,r,i),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return lh.default=t,lh}var cr={},U1;function sC(){if(U1)return cr;U1=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.resolveSchema=cr.getCompilingSchema=cr.resolveRef=cr.compileSchema=cr.SchemaEnv=void 0;const e=vt(),t=iC(),o=_s(),n=Qg(),r=Mt(),i=Jg();class l{constructor(_){var C;this.refs={},this.dynamicAnchors={};let P;typeof _.schema=="object"&&(P=_.schema),this.schema=_.schema,this.schemaId=_.schemaId,this.root=_.root||this,this.baseId=(C=_.baseId)!==null&&C!==void 0?C:(0,n.normalizeId)(P?.[_.schemaId||"$id"]),this.schemaPath=_.schemaPath,this.localRefs=_.localRefs,this.meta=_.meta,this.$async=P?.$async,this.refs={}}}cr.SchemaEnv=l;function c(x){const _=h.call(this,x);if(_)return _;const C=(0,n.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:P,lines:E}=this.opts.code,{ownProperties:T}=this.opts,A=new e.CodeGen(this.scope,{es5:P,lines:E,ownProperties:T});let k;x.$async&&(k=A.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const O=A.scopeName("validate");x.validateName=O;const N={gen:A,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:O,ValidationError:k,schema:x.schema,schemaEnv:x,rootId:C,baseId:x.baseId||C,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(x),(0,i.validateFunctionCode)(N),A.optimize(this.opts.code.optimize);const B=A.toString();q=`${A.scopeRefs(o.default.scope)}return ${B}`,this.opts.code.process&&(q=this.opts.code.process(q,x));const U=new Function(`${o.default.self}`,`${o.default.scope}`,q)(this,this.scope.get());if(this.scope.value(O,{ref:U}),U.errors=null,U.schema=x.schema,U.schemaEnv=x,x.$async&&(U.$async=!0),this.opts.code.source===!0&&(U.source={validateName:O,validateCode:B,scopeValues:A._values}),this.opts.unevaluated){const{props:W,items:ae}=N;U.evaluated={props:W instanceof e.Name?void 0:W,items:ae instanceof e.Name?void 0:ae,dynamicProps:W instanceof e.Name,dynamicItems:ae instanceof e.Name},U.source&&(U.source.evaluated=(0,e.stringify)(U.evaluated))}return x.validate=U,x}catch(B){throw delete x.validate,delete x.validateName,q&&this.logger.error("Error compiling schema, function code:",q),B}finally{this._compilations.delete(x)}}cr.compileSchema=c;function d(x,_,C){var P;C=(0,n.resolveUrl)(this.opts.uriResolver,_,C);const E=x.refs[C];if(E)return E;let T=g.call(this,x,C);if(T===void 0){const A=(P=x.localRefs)===null||P===void 0?void 0:P[C],{schemaId:k}=this.opts;A&&(T=new l({schema:A,schemaId:k,root:x,baseId:_}))}if(T!==void 0)return x.refs[C]=m.call(this,T)}cr.resolveRef=d;function m(x){return(0,n.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function h(x){for(const _ of this._compilations)if(f(_,x))return _}cr.getCompilingSchema=h;function f(x,_){return x.schema===_.schema&&x.root===_.root&&x.baseId===_.baseId}function g(x,_){let C;for(;typeof(C=this.refs[_])=="string";)_=C;return C||this.schemas[_]||v.call(this,x,_)}function v(x,_){const C=this.opts.uriResolver.parse(_),P=(0,n._getFullPath)(this.opts.uriResolver,C);let E=(0,n.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&P===E)return S.call(this,C,x);const T=(0,n.normalizeId)(P),A=this.refs[T]||this.schemas[T];if(typeof A=="string"){const k=v.call(this,x,A);return typeof k?.schema!="object"?void 0:S.call(this,C,k)}if(typeof A?.schema=="object"){if(A.validate||c.call(this,A),T===(0,n.normalizeId)(_)){const{schema:k}=A,{schemaId:O}=this.opts,N=k[O];return N&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,N)),new l({schema:k,schemaId:O,root:x,baseId:E})}return S.call(this,C,A)}}cr.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(x,{baseId:_,schema:C,root:P}){var E;if(((E=x.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const k of x.fragment.slice(1).split("/")){if(typeof C=="boolean")return;const O=C[(0,r.unescapeFragment)(k)];if(O===void 0)return;C=O;const N=typeof C=="object"&&C[this.opts.schemaId];!y.has(k)&&N&&(_=(0,n.resolveUrl)(this.opts.uriResolver,_,N))}let T;if(typeof C!="boolean"&&C.$ref&&!(0,r.schemaHasRulesButRef)(C,this.RULES)){const k=(0,n.resolveUrl)(this.opts.uriResolver,_,C.$ref);T=v.call(this,P,k)}const{schemaId:A}=this.opts;if(T=T||new l({schema:C,schemaId:A,root:P,baseId:_}),T.schema!==T.root.schema)return T}return cr}const v9="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",b9="Meta-schema for $data reference (JSON AnySchema extension proposal)",y9="object",S9=["$data"],_9={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},w9=!1,C9={$id:v9,description:b9,type:y9,required:S9,properties:_9,additionalProperties:w9};var ch={},nd={exports:{}},e0,$1;function h2(){if($1)return e0;$1=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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(g){let v="",y=0,S=0;for(S=0;S<g.length;S++)if(y=g[S].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[S];break}for(S+=1;S<g.length;S++){if(y=g[S].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[S]}return v}const n=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function r(g){return g.length=0,!0}function i(g,v,y){if(g.length){const S=o(g);if(S!=="")v.push(S);else return y.error=!0,!1;g.length=0}return!0}function l(g){let v=0;const y={error:!1,address:"",zone:""},S=[],x=[];let _=!1,C=!1,P=i;for(let E=0;E<g.length;E++){const T=g[E];if(!(T==="["||T==="]"))if(T===":"){if(_===!0&&(C=!0),!P(x,S,y))break;if(++v>7){y.error=!0;break}E>0&&g[E-1]===":"&&(_=!0),S.push(":");continue}else if(T==="%"){if(!P(x,S,y))break;P=r}else{x.push(T);continue}}return x.length&&(P===r?y.zone=x.join(""):C?S.push(x.join("")):S.push(o(x))),y.address=S.join(""),y}function c(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const v=l(g);if(v.error)return{host:g,isIPV6:!1};{let y=v.address,S=v.address;return v.zone&&(y+="%"+v.zone,S+="%25"+v.zone),{host:y,isIPV6:!0,escapedHost:S}}}function d(g,v){let y=0;for(let S=0;S<g.length;S++)g[S]===v&&y++;return y}function m(g){let v=g;const y=[];let S=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){y.push("/");break}else{y.push(v);break}}else if(x===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){y.push("/");break}}else if(x===3&&v==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),y.length!==0&&y.pop();continue}}if((S=v.indexOf("/",1))===-1){y.push(v);break}else y.push(v.slice(0,S)),v=v.slice(S)}return y.join("")}function h(g,v){const y=v!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=y(g.scheme)),g.userinfo!==void 0&&(g.userinfo=y(g.userinfo)),g.host!==void 0&&(g.host=y(g.host)),g.path!==void 0&&(g.path=y(g.path)),g.query!==void 0&&(g.query=y(g.query)),g.fragment!==void 0&&(g.fragment=y(g.fragment)),g}function f(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let y=unescape(g.host);if(!t(y)){const S=c(y);S.isIPV6===!0?y=`[${S.escapedHost}]`:y=g.host}v.push(y)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return e0={nonSimpleDomain:n,recomposeAuthority:f,normalizeComponentEncoding:h,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:o},e0}var t0,q1;function x9(){if(q1)return t0;q1=1;const{isUUID:e}=h2(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function n(T){return o.indexOf(T)!==-1}function r(T){return T.secure===!0?!0:T.secure===!1?!1:T.scheme?T.scheme.length===3&&(T.scheme[0]==="w"||T.scheme[0]==="W")&&(T.scheme[1]==="s"||T.scheme[1]==="S")&&(T.scheme[2]==="s"||T.scheme[2]==="S"):!1}function i(T){return T.host||(T.error=T.error||"HTTP URIs must have a host."),T}function l(T){const A=String(T.scheme).toLowerCase()==="https";return(T.port===(A?443:80)||T.port==="")&&(T.port=void 0),T.path||(T.path="/"),T}function c(T){return T.secure=r(T),T.resourceName=(T.path||"/")+(T.query?"?"+T.query:""),T.path=void 0,T.query=void 0,T}function d(T){if((T.port===(r(T)?443:80)||T.port==="")&&(T.port=void 0),typeof T.secure=="boolean"&&(T.scheme=T.secure?"wss":"ws",T.secure=void 0),T.resourceName){const[A,k]=T.resourceName.split("?");T.path=A&&A!=="/"?A:void 0,T.query=k,T.resourceName=void 0}return T.fragment=void 0,T}function m(T,A){if(!T.path)return T.error="URN can not be parsed",T;const k=T.path.match(t);if(k){const O=A.scheme||T.scheme||"urn";T.nid=k[1].toLowerCase(),T.nss=k[2];const N=`${O}:${A.nid||T.nid}`,q=E(N);T.path=void 0,q&&(T=q.parse(T,A))}else T.error=T.error||"URN can not be parsed.";return T}function h(T,A){if(T.nid===void 0)throw new Error("URN without nid cannot be serialized");const k=A.scheme||T.scheme||"urn",O=T.nid.toLowerCase(),N=`${k}:${A.nid||O}`,q=E(N);q&&(T=q.serialize(T,A));const B=T,$=T.nss;return B.path=`${O||A.nid}:${$}`,A.skipEscape=!0,B}function f(T,A){const k=T;return k.uuid=k.nss,k.nss=void 0,!A.tolerant&&(!k.uuid||!e(k.uuid))&&(k.error=k.error||"UUID is not valid."),k}function g(T){const A=T;return A.nss=(T.uuid||"").toLowerCase(),A}const v={scheme:"http",domainHost:!0,parse:i,serialize:l},y={scheme:"https",domainHost:v.domainHost,parse:i,serialize:l},S={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:S.domainHost,parse:S.parse,serialize:S.serialize},P={http:v,https:y,ws:S,wss:x,urn:{scheme:"urn",parse:m,serialize:h,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(P,null);function E(T){return T&&(P[T]||P[T.toLowerCase()])||void 0}return t0={wsIsSecure:r,SCHEMES:P,isValidSchemeName:n,getSchemeHandler:E},t0}var V1;function E9(){if(V1)return nd.exports;V1=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:o,normalizeComponentEncoding:n,isIPv4:r,nonSimpleDomain:i}=h2(),{SCHEMES:l,getSchemeHandler:c}=x9();function d(x,_){return typeof x=="string"?x=g(y(x,_),_):typeof x=="object"&&(x=y(g(x,_),_)),x}function m(x,_,C){const P=C?Object.assign({scheme:"null"},C):{scheme:"null"},E=h(y(x,P),y(_,P),P,!0);return P.skipEscape=!0,g(E,P)}function h(x,_,C,P){const E={};return P||(x=y(g(x,C),C),_=y(g(_,C),C)),C=C||{},!C.tolerant&&_.scheme?(E.scheme=_.scheme,E.userinfo=_.userinfo,E.host=_.host,E.port=_.port,E.path=t(_.path||""),E.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(E.userinfo=_.userinfo,E.host=_.host,E.port=_.port,E.path=t(_.path||""),E.query=_.query):(_.path?(_.path[0]==="/"?E.path=t(_.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?E.path="/"+_.path:x.path?E.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:E.path=_.path,E.path=t(E.path)),E.query=_.query):(E.path=x.path,_.query!==void 0?E.query=_.query:E.query=x.query),E.userinfo=x.userinfo,E.host=x.host,E.port=x.port),E.scheme=x.scheme),E.fragment=_.fragment,E}function f(x,_,C){return typeof x=="string"?(x=unescape(x),x=g(n(y(x,C),!0),{...C,skipEscape:!0})):typeof x=="object"&&(x=g(n(x,!0),{...C,skipEscape:!0})),typeof _=="string"?(_=unescape(_),_=g(n(y(_,C),!0),{...C,skipEscape:!0})):typeof _=="object"&&(_=g(n(_,!0),{...C,skipEscape:!0})),x.toLowerCase()===_.toLowerCase()}function g(x,_){const C={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},P=Object.assign({},_),E=[],T=c(P.scheme||C.scheme);T&&T.serialize&&T.serialize(C,P),C.path!==void 0&&(P.skipEscape?C.path=unescape(C.path):(C.path=escape(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),P.reference!=="suffix"&&C.scheme&&E.push(C.scheme,":");const A=o(C);if(A!==void 0&&(P.reference!=="suffix"&&E.push("//"),E.push(A),C.path&&C.path[0]!=="/"&&E.push("/")),C.path!==void 0){let k=C.path;!P.absolutePath&&(!T||!T.absolutePath)&&(k=t(k)),A===void 0&&k[0]==="/"&&k[1]==="/"&&(k="/%2F"+k.slice(2)),E.push(k)}return C.query!==void 0&&E.push("?",C.query),C.fragment!==void 0&&E.push("#",C.fragment),E.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(x,_){const C=Object.assign({},_),P={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;C.reference==="suffix"&&(C.scheme?x=C.scheme+":"+x:x="//"+x);const T=x.match(v);if(T){if(P.scheme=T[1],P.userinfo=T[3],P.host=T[4],P.port=parseInt(T[5],10),P.path=T[6]||"",P.query=T[7],P.fragment=T[8],isNaN(P.port)&&(P.port=T[5]),P.host)if(r(P.host)===!1){const O=e(P.host);P.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;P.scheme===void 0&&P.userinfo===void 0&&P.host===void 0&&P.port===void 0&&P.query===void 0&&!P.path?P.reference="same-document":P.scheme===void 0?P.reference="relative":P.fragment===void 0?P.reference="absolute":P.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==P.reference&&(P.error=P.error||"URI is not a "+C.reference+" reference.");const A=c(C.scheme||P.scheme);if(!C.unicodeSupport&&(!A||!A.unicodeSupport)&&P.host&&(C.domainHost||A&&A.domainHost)&&E===!1&&i(P.host))try{P.host=URL.domainToASCII(P.host.toLowerCase())}catch(k){P.error=P.error||"Host's domain name can not be converted to ASCII: "+k}(!A||A&&!A.skipNormalize)&&(x.indexOf("%")!==-1&&(P.scheme!==void 0&&(P.scheme=unescape(P.scheme)),P.host!==void 0&&(P.host=unescape(P.host))),P.path&&(P.path=escape(unescape(P.path))),P.fragment&&(P.fragment=encodeURI(decodeURIComponent(P.fragment)))),A&&A.parse&&A.parse(P,C)}else P.error=P.error||"URI can not be parsed.";return P}const S={SCHEMES:l,normalize:d,resolve:m,resolveComponent:h,equal:f,serialize:g,parse:y};return nd.exports=S,nd.exports.default=S,nd.exports.fastUri=S,nd.exports}var H1;function T9(){if(H1)return ch;H1=1,Object.defineProperty(ch,"__esModule",{value:!0});const e=E9();return e.code='require("ajv/dist/runtime/uri").default',ch.default=e,ch}var G1;function P9(){return G1||(G1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Jg();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var o=vt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const n=iC(),r=Xg(),i=d2(),l=sC(),c=vt(),d=Qg(),m=Wp(),h=Mt(),f=C9,g=T9(),v=(Q,M)=>new RegExp(Q,M);v.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},C=200;function P(Q){var M,G,V,L,j,J,me,he,xe,Be,Y,ne,ve,ie,we,Pe,tt,nt,$e,Qe,Oe,De,Ue,K,oe;const se=Q.strict,Te=(M=Q.code)===null||M===void 0?void 0:M.optimize,Ae=Te===!0||Te===void 0?1:Te||0,ke=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Me=(L=Q.uriResolver)!==null&&L!==void 0?L:g.default;return{strictSchema:(J=(j=Q.strictSchema)!==null&&j!==void 0?j:se)!==null&&J!==void 0?J:!0,strictNumbers:(he=(me=Q.strictNumbers)!==null&&me!==void 0?me:se)!==null&&he!==void 0?he:!0,strictTypes:(Be=(xe=Q.strictTypes)!==null&&xe!==void 0?xe:se)!==null&&Be!==void 0?Be:"log",strictTuples:(ne=(Y=Q.strictTuples)!==null&&Y!==void 0?Y:se)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:se)!==null&&ie!==void 0?ie:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:ke}:{optimize:Ae,regExp:ke},loopRequired:(we=Q.loopRequired)!==null&&we!==void 0?we:C,loopEnum:(Pe=Q.loopEnum)!==null&&Pe!==void 0?Pe:C,meta:(tt=Q.meta)!==null&&tt!==void 0?tt:!0,messages:(nt=Q.messages)!==null&&nt!==void 0?nt:!0,inlineRefs:($e=Q.inlineRefs)!==null&&$e!==void 0?$e:!0,schemaId:(Qe=Q.schemaId)!==null&&Qe!==void 0?Qe:"$id",addUsedSchema:(Oe=Q.addUsedSchema)!==null&&Oe!==void 0?Oe:!0,validateSchema:(De=Q.validateSchema)!==null&&De!==void 0?De:!0,validateFormats:(Ue=Q.validateFormats)!==null&&Ue!==void 0?Ue:!0,unicodeRegExp:(K=Q.unicodeRegExp)!==null&&K!==void 0?K:!0,int32range:(oe=Q.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Me}}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,...P(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:S,es5:G,lines:V}),this.logger=$(M.logger);const L=M.validateFormats;M.validateFormats=!1,this.RULES=(0,i.getRules)(),T.call(this,x,M,"NOT SUPPORTED"),T.call(this,_,M,"DEPRECATED","warn"),this._metaOpts=q.call(this),M.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&N.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),k.call(this),M.validateFormats=L}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let L=f;V==="id"&&(L={...f},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(Be,Y){await j.call(this,Be.$schema);const ne=this._addSchema(Be,Y);return ne.validate||J.call(this,ne)}async function j(Be){Be&&!this.getSchema(Be)&&await L.call(this,{$ref:Be},!0)}async function J(Be){try{return this._compileSchemaEnv(Be)}catch(Y){if(!(Y instanceof r.default))throw Y;return me.call(this,Y),await he.call(this,Y.missingSchema),J.call(this,Be)}}function me({missingSchema:Be,missingRef:Y}){if(this.refs[Be])throw new Error(`AnySchema ${Be} is loaded but ${Y} cannot be resolved`)}async function he(Be){const Y=await xe.call(this,Be);this.refs[Be]||await j.call(this,Y.$schema),this.refs[Be]||this.addSchema(Y,Be,G)}async function xe(Be){const Y=this._loading[Be];if(Y)return Y;try{return await(this._loading[Be]=V(Be))}finally{delete this._loading[Be]}}}addSchema(M,G,V,L=this.opts.validateSchema){if(Array.isArray(M)){for(const J of M)this.addSchema(J,void 0,V,L);return this}let j;if(typeof M=="object"){const{schemaId:J}=this.opts;if(j=M[J],j!==void 0&&typeof j!="string")throw new Error(`schema ${J} must be string`)}return G=(0,d.normalizeId)(G||j),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 j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return L}getSchema(M){let G;for(;typeof(G=A.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,L=new l.SchemaEnv({schema:{},schemaId:V});if(G=l.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=A.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,h.eachItem)(V,j=>ae.call(this,j)),this;Z.call(this,G);const L={...G,type:(0,m.getJSONTypes)(G.type),schemaType:(0,m.getJSONTypes)(G.schemaType)};return(0,h.eachItem)(V,L.type.length===0?j=>ae.call(this,j,L):j=>L.type.forEach(J=>ae.call(this,j,L,J))),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(j=>j.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,j)=>L+G+j)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const L of G){const j=L.split("/").slice(1);let J=M;for(const me of j)J=J[me];for(const me in V){const he=V[me];if(typeof he!="object")continue;const{$data:xe}=he.definition,Be=J[me];xe&&Be&&(J[me]=le(Be))}}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,j=this.opts.addUsedSchema){let J;const{schemaId:me}=this.opts;if(typeof M=="object")J=M[me];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 he=this._cache.get(M);if(he!==void 0)return he;V=(0,d.normalizeId)(J||V);const xe=d.getSchemaRefs.call(this,M,V);return he=new l.SchemaEnv({schema:M,schemaId:me,meta:G,baseId:V,localRefs:xe}),this._cache.set(he.schema,he),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=he),L&&this.validateSchema(M,!0),he}_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):l.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{l.compileSchema.call(this,M)}finally{this.opts=G}}}E.ValidationError=n.default,E.MissingRefError=r.default,e.default=E;function T(Q,M,G,V="error"){for(const L in Q){const j=L;j in M&&this.logger[V](`${G}: option ${L}. ${Q[j]}`)}}function A(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function k(){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 N(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 q(){const Q={...this.opts};for(const M of y)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function $(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 U=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,M){const{RULES:G}=this;if((0,h.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!U.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 ae(Q,M,G){var V;const L=M?.post;if(G&&L)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let J=L?j.post:j.rules.find(({type:he})=>he===G);if(J||(J={type:G,rules:[]},j.rules.push(J)),j.keywords[Q]=!0,!M)return;const me={keyword:Q,definition:{...M,type:(0,m.getJSONTypes)(M.type),schemaType:(0,m.getJSONTypes)(M.schemaType)}};M.before?H.call(this,J,me,M.before):J.rules.push(me),j.all[Q]=me,(V=M.implements)===null||V===void 0||V.forEach(he=>this.addKeyword(he))}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 Z(Q){let{metaSchema:M}=Q;M!==void 0&&(Q.$data&&this.opts.$data&&(M=le(M)),Q.validateSchema=this.compile(M,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(Q){return{anyOf:[Q,te]}}})(Ky)),Ky}var uh={},dh={},mh={},K1;function R9(){if(K1)return mh;K1=1,Object.defineProperty(mh,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return mh.default=e,mh}var Vi={},W1;function A9(){if(W1)return Vi;W1=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.callRef=Vi.getValidate=void 0;const e=Xg(),t=la(),o=vt(),n=_s(),r=sC(),i=Mt(),l={keyword:"$ref",schemaType:"string",code(m){const{gen:h,schema:f,it:g}=m,{baseId:v,schemaEnv:y,validateName:S,opts:x,self:_}=g,{root:C}=y;if((f==="#"||f==="#/")&&v===C.baseId)return E();const P=r.resolveRef.call(_,C,v,f);if(P===void 0)throw new e.default(g.opts.uriResolver,v,f);if(P instanceof r.SchemaEnv)return T(P);return A(P);function E(){if(y===C)return d(m,S,y,y.$async);const k=h.scopeValue("root",{ref:C});return d(m,(0,o._)`${k}.validate`,C,C.$async)}function T(k){const O=c(m,k);d(m,O,k,k.$async)}function A(k){const O=h.scopeValue("schema",x.code.source===!0?{ref:k,code:(0,o.stringify)(k)}:{ref:k}),N=h.name("valid"),q=m.subschema({schema:k,dataTypes:[],schemaPath:o.nil,topSchemaRef:O,errSchemaPath:f},N);m.mergeEvaluated(q),m.ok(N)}}};function c(m,h){const{gen:f}=m;return h.validate?f.scopeValue("validate",{ref:h.validate}):(0,o._)`${f.scopeValue("wrapper",{ref:h})}.validate`}Vi.getValidate=c;function d(m,h,f,g){const{gen:v,it:y}=m,{allErrors:S,schemaEnv:x,opts:_}=y,C=_.passContext?n.default.this:o.nil;g?P():E();function P(){if(!x.$async)throw new Error("async schema referenced by sync schema");const k=v.let("valid");v.try(()=>{v.code((0,o._)`await ${(0,t.callValidateCode)(m,h,C)}`),A(h),S||v.assign(k,!0)},O=>{v.if((0,o._)`!(${O} instanceof ${y.ValidationError})`,()=>v.throw(O)),T(O),S||v.assign(k,!1)}),m.ok(k)}function E(){m.result((0,t.callValidateCode)(m,h,C),()=>A(h),()=>T(h))}function T(k){const O=(0,o._)`${k}.errors`;v.assign(n.default.vErrors,(0,o._)`${n.default.vErrors} === null ? ${O} : ${n.default.vErrors}.concat(${O})`),v.assign(n.default.errors,(0,o._)`${n.default.vErrors}.length`)}function A(k){var O;if(!y.opts.unevaluated)return;const N=(O=f?.validate)===null||O===void 0?void 0:O.evaluated;if(y.props!==!0)if(N&&!N.dynamicProps)N.props!==void 0&&(y.props=i.mergeEvaluated.props(v,N.props,y.props));else{const q=v.var("props",(0,o._)`${k}.evaluated.props`);y.props=i.mergeEvaluated.props(v,q,y.props,o.Name)}if(y.items!==!0)if(N&&!N.dynamicItems)N.items!==void 0&&(y.items=i.mergeEvaluated.items(v,N.items,y.items));else{const q=v.var("items",(0,o._)`${k}.evaluated.items`);y.items=i.mergeEvaluated.items(v,q,y.items,o.Name)}}}return Vi.callRef=d,Vi.default=l,Vi}var Y1;function k9(){if(Y1)return dh;Y1=1,Object.defineProperty(dh,"__esModule",{value:!0});const e=R9(),t=A9(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return dh.default=o,dh}var fh={},hh={},Z1;function D9(){if(Z1)return hh;Z1=1,Object.defineProperty(hh,"__esModule",{value:!0});const e=vt(),t=e.operators,o={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:i,schemaCode:l})=>(0,e.str)`must be ${o[i].okStr} ${l}`,params:({keyword:i,schemaCode:l})=>(0,e._)`{comparison: ${o[i].okStr}, limit: ${l}}`},r={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:n,code(i){const{keyword:l,data:c,schemaCode:d}=i;i.fail$data((0,e._)`${c} ${o[l].fail} ${d} || isNaN(${c})`)}};return hh.default=r,hh}var ph={},Q1;function O9(){if(Q1)return ph;Q1=1,Object.defineProperty(ph,"__esModule",{value:!0});const e=vt(),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:r,data:i,schemaCode:l,it:c}=n,d=c.opts.multipleOfPrecision,m=r.let("res"),h=d?(0,e._)`Math.abs(Math.round(${m}) - ${m}) > 1e-${d}`:(0,e._)`${m} !== parseInt(${m})`;n.fail$data((0,e._)`(${l} === 0 || (${m} = ${i}/${l}, ${h}))`)}};return ph.default=o,ph}var gh={},vh={},J1;function I9(){if(J1)return vh;J1=1,Object.defineProperty(vh,"__esModule",{value:!0});function e(t){const o=t.length;let n=0,r=0,i;for(;r<o;)n++,i=t.charCodeAt(r++),i>=55296&&i<=56319&&r<o&&(i=t.charCodeAt(r),(i&64512)===56320&&r++);return n}return vh.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',vh}var X1;function M9(){if(X1)return gh;X1=1,Object.defineProperty(gh,"__esModule",{value:!0});const e=vt(),t=Mt(),o=I9(),r={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:l}){const c=i==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${l} characters`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:l,data:c,schemaCode:d,it:m}=i,h=l==="maxLength"?e.operators.GT:e.operators.LT,f=m.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(i.gen,o.default)}(${c})`;i.fail$data((0,e._)`${f} ${h} ${d}`)}};return gh.default=r,gh}var bh={},eA;function L9(){if(eA)return bh;eA=1,Object.defineProperty(bh,"__esModule",{value:!0});const e=la(),t=Mt(),o=vt(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,o.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,o._)`{pattern: ${i}}`},code(i){const{gen:l,data:c,$data:d,schema:m,schemaCode:h,it:f}=i,g=f.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=f.opts.code,y=v.code==="new RegExp"?(0,o._)`new RegExp`:(0,t.useFunc)(l,v),S=l.let("valid");l.try(()=>l.assign(S,(0,o._)`${y}(${h}, ${g}).test(${c})`),()=>l.assign(S,!1)),i.fail$data((0,o._)`!${S}`)}else{const v=(0,e.usePattern)(i,m);i.fail$data((0,o._)`!${v}.test(${c})`)}}};return bh.default=r,bh}var yh={},tA;function N9(){if(tA)return yh;tA=1,Object.defineProperty(yh,"__esModule",{value:!0});const e=vt(),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:r}){const i=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${r} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:r,data:i,schemaCode:l}=n,c=r==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${i}).length ${c} ${l}`)}};return yh.default=o,yh}var Sh={},oA;function F9(){if(oA)return Sh;oA=1,Object.defineProperty(Sh,"__esModule",{value:!0});const e=la(),t=vt(),o=Mt(),r={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,t.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,t._)`{missingProperty: ${i}}`},code(i){const{gen:l,schema:c,schemaCode:d,data:m,$data:h,it:f}=i,{opts:g}=f;if(!h&&c.length===0)return;const v=c.length>=g.loopRequired;if(f.allErrors?y():S(),g.strictRequired){const C=i.parentSchema.properties,{definedProperties:P}=i.it;for(const E of c)if(C?.[E]===void 0&&!P.has(E)){const T=f.schemaEnv.baseId+f.errSchemaPath,A=`required property "${E}" is not defined at "${T}" (strictRequired)`;(0,o.checkStrictMode)(f,A,f.opts.strictRequired)}}function y(){if(v||h)i.block$data(t.nil,x);else for(const C of c)(0,e.checkReportMissingProp)(i,C)}function S(){const C=l.let("missing");if(v||h){const P=l.let("valid",!0);i.block$data(P,()=>_(C,P)),i.ok(P)}else l.if((0,e.checkMissingProp)(i,c,C)),(0,e.reportMissingProp)(i,C),l.else()}function x(){l.forOf("prop",d,C=>{i.setParams({missingProperty:C}),l.if((0,e.noPropertyInData)(l,m,C,g.ownProperties),()=>i.error())})}function _(C,P){i.setParams({missingProperty:C}),l.forOf(C,d,()=>{l.assign(P,(0,e.propertyInData)(l,m,C,g.ownProperties)),l.if((0,t.not)(P),()=>{i.error(),l.break()})},t.nil)}}};return Sh.default=r,Sh}var _h={},nA;function B9(){if(nA)return _h;nA=1,Object.defineProperty(_h,"__esModule",{value:!0});const e=vt(),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:r}){const i=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${r} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:r,data:i,schemaCode:l}=n,c=r==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${i}.length ${c} ${l}`)}};return _h.default=o,_h}var wh={},Ch={},rA;function lC(){if(rA)return Ch;rA=1,Object.defineProperty(Ch,"__esModule",{value:!0});const e=f2();return e.code='require("ajv/dist/runtime/equal").default',Ch.default=e,Ch}var aA;function z9(){if(aA)return wh;aA=1,Object.defineProperty(wh,"__esModule",{value:!0});const e=Wp(),t=vt(),o=Mt(),n=lC(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${l} are identical)`,params:({params:{i:l,j:c}})=>(0,t._)`{i: ${l}, j: ${c}}`},code(l){const{gen:c,data:d,$data:m,schema:h,parentSchema:f,schemaCode:g,it:v}=l;if(!m&&!h)return;const y=c.let("valid"),S=f.items?(0,e.getSchemaTypes)(f.items):[];l.block$data(y,x,(0,t._)`${g} === false`),l.ok(y);function x(){const E=c.let("i",(0,t._)`${d}.length`),T=c.let("j");l.setParams({i:E,j:T}),c.assign(y,!0),c.if((0,t._)`${E} > 1`,()=>(_()?C:P)(E,T))}function _(){return S.length>0&&!S.some(E=>E==="object"||E==="array")}function C(E,T){const A=c.name("item"),k=(0,e.checkDataTypes)(S,A,v.opts.strictNumbers,e.DataType.Wrong),O=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${E}--;`,()=>{c.let(A,(0,t._)`${d}[${E}]`),c.if(k,(0,t._)`continue`),S.length>1&&c.if((0,t._)`typeof ${A} == "string"`,(0,t._)`${A} += "_"`),c.if((0,t._)`typeof ${O}[${A}] == "number"`,()=>{c.assign(T,(0,t._)`${O}[${A}]`),l.error(),c.assign(y,!1).break()}).code((0,t._)`${O}[${A}] = ${E}`)})}function P(E,T){const A=(0,o.useFunc)(c,n.default),k=c.name("outer");c.label(k).for((0,t._)`;${E}--;`,()=>c.for((0,t._)`${T} = ${E}; ${T}--;`,()=>c.if((0,t._)`${A}(${d}[${E}], ${d}[${T}])`,()=>{l.error(),c.assign(y,!1).break(k)})))}}};return wh.default=i,wh}var xh={},iA;function j9(){if(iA)return xh;iA=1,Object.defineProperty(xh,"__esModule",{value:!0});const e=vt(),t=Mt(),o=lC(),r={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,e._)`{allowedValue: ${i}}`},code(i){const{gen:l,data:c,$data:d,schemaCode:m,schema:h}=i;d||h&&typeof h=="object"?i.fail$data((0,e._)`!${(0,t.useFunc)(l,o.default)}(${c}, ${m})`):i.fail((0,e._)`${h} !== ${c}`)}};return xh.default=r,xh}var Eh={},sA;function U9(){if(sA)return Eh;sA=1,Object.defineProperty(Eh,"__esModule",{value:!0});const e=vt(),t=Mt(),o=lC(),r={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,e._)`{allowedValues: ${i}}`},code(i){const{gen:l,data:c,$data:d,schema:m,schemaCode:h,it:f}=i;if(!d&&m.length===0)throw new Error("enum must have non-empty array");const g=m.length>=f.opts.loopEnum;let v;const y=()=>v??(v=(0,t.useFunc)(l,o.default));let S;if(g||d)S=l.let("valid"),i.block$data(S,x);else{if(!Array.isArray(m))throw new Error("ajv implementation error");const C=l.const("vSchema",h);S=(0,e.or)(...m.map((P,E)=>_(C,E)))}i.pass(S);function x(){l.assign(S,!1),l.forOf("v",h,C=>l.if((0,e._)`${y()}(${c}, ${C})`,()=>l.assign(S,!0).break()))}function _(C,P){const E=m[P];return typeof E=="object"&&E!==null?(0,e._)`${y()}(${c}, ${C}[${P}])`:(0,e._)`${c} === ${E}`}}};return Eh.default=r,Eh}var lA;function $9(){if(lA)return fh;lA=1,Object.defineProperty(fh,"__esModule",{value:!0});const e=D9(),t=O9(),o=M9(),n=L9(),r=N9(),i=F9(),l=B9(),c=z9(),d=j9(),m=U9(),h=[e.default,t.default,o.default,n.default,r.default,i.default,l.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,m.default];return fh.default=h,fh}var Th={},sc={},cA;function p2(){if(cA)return sc;cA=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.validateAdditionalItems=void 0;const e=vt(),t=Mt(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{parentSchema:l,it:c}=i,{items:d}=l;if(!Array.isArray(d)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}r(i,d)}};function r(i,l){const{gen:c,schema:d,data:m,keyword:h,it:f}=i;f.items=!0;const g=c.const("len",(0,e._)`${m}.length`);if(d===!1)i.setParams({len:l.length}),i.pass((0,e._)`${g} <= ${l.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(f,d)){const y=c.var("valid",(0,e._)`${g} <= ${l.length}`);c.if((0,e.not)(y),()=>v(y)),i.ok(y)}function v(y){c.forRange("i",l.length,g,S=>{i.subschema({keyword:h,dataProp:S,dataPropType:t.Type.Num},y),f.allErrors||c.if((0,e.not)(y),()=>c.break())})}}return sc.validateAdditionalItems=r,sc.default=n,sc}var Ph={},lc={},uA;function g2(){if(uA)return lc;uA=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.validateTuple=void 0;const e=vt(),t=Mt(),o=la(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:l,it:c}=i;if(Array.isArray(l))return r(i,"additionalItems",l);c.items=!0,!(0,t.alwaysValidSchema)(c,l)&&i.ok((0,o.validateArray)(i))}};function r(i,l,c=i.schema){const{gen:d,parentSchema:m,data:h,keyword:f,it:g}=i;S(m),g.opts.unevaluated&&c.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(d,c.length,g.items));const v=d.name("valid"),y=d.const("len",(0,e._)`${h}.length`);c.forEach((x,_)=>{(0,t.alwaysValidSchema)(g,x)||(d.if((0,e._)`${y} > ${_}`,()=>i.subschema({keyword:f,schemaProp:_,dataProp:_},v)),i.ok(v))});function S(x){const{opts:_,errSchemaPath:C}=g,P=c.length,E=P===x.minItems&&(P===x.maxItems||x[l]===!1);if(_.strictTuples&&!E){const T=`"${f}" is ${P}-tuple, but minItems or maxItems/${l} are not specified or different at path "${C}"`;(0,t.checkStrictMode)(g,T,_.strictTuples)}}}return lc.validateTuple=r,lc.default=n,lc}var dA;function q9(){if(dA)return Ph;dA=1,Object.defineProperty(Ph,"__esModule",{value:!0});const e=g2(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o=>(0,e.validateTuple)(o,"items")};return Ph.default=t,Ph}var Rh={},mA;function V9(){if(mA)return Rh;mA=1,Object.defineProperty(Rh,"__esModule",{value:!0});const e=vt(),t=Mt(),o=la(),n=p2(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:c,parentSchema:d,it:m}=l,{prefixItems:h}=d;m.items=!0,!(0,t.alwaysValidSchema)(m,c)&&(h?(0,n.validateAdditionalItems)(l,h):l.ok((0,o.validateArray)(l)))}};return Rh.default=i,Rh}var Ah={},fA;function H9(){if(fA)return Ah;fA=1,Object.defineProperty(Ah,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:r,max:i}})=>i===void 0?(0,e.str)`must contain at least ${r} valid item(s)`:(0,e.str)`must contain at least ${r} and no more than ${i} valid item(s)`,params:({params:{min:r,max:i}})=>i===void 0?(0,e._)`{minContains: ${r}}`:(0,e._)`{minContains: ${r}, maxContains: ${i}}`},code(r){const{gen:i,schema:l,parentSchema:c,data:d,it:m}=r;let h,f;const{minContains:g,maxContains:v}=c;m.opts.next?(h=g===void 0?1:g,f=v):h=1;const y=i.const("len",(0,e._)`${d}.length`);if(r.setParams({min:h,max:f}),f===void 0&&h===0){(0,t.checkStrictMode)(m,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&h>f){(0,t.checkStrictMode)(m,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,t.alwaysValidSchema)(m,l)){let P=(0,e._)`${y} >= ${h}`;f!==void 0&&(P=(0,e._)`${P} && ${y} <= ${f}`),r.pass(P);return}m.items=!0;const S=i.name("valid");f===void 0&&h===1?_(S,()=>i.if(S,()=>i.break())):h===0?(i.let(S,!0),f!==void 0&&i.if((0,e._)`${d}.length > 0`,x)):(i.let(S,!1),x()),r.result(S,()=>r.reset());function x(){const P=i.name("_valid"),E=i.let("count",0);_(P,()=>i.if(P,()=>C(E)))}function _(P,E){i.forRange("i",0,y,T=>{r.subschema({keyword:"contains",dataProp:T,dataPropType:t.Type.Num,compositeRule:!0},P),E()})}function C(P){i.code((0,e._)`${P}++`),f===void 0?i.if((0,e._)`${P} >= ${h}`,()=>i.assign(S,!0).break()):(i.if((0,e._)`${P} > ${f}`,()=>i.assign(S,!1).break()),h===1?i.assign(S,!0):i.if((0,e._)`${P} >= ${h}`,()=>i.assign(S,!0)))}}};return Ah.default=n,Ah}var o0={},hA;function G9(){return hA||(hA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=vt(),o=Mt(),n=la();e.error={message:({params:{property:d,depsCount:m,deps:h}})=>{const f=m===1?"property":"properties";return(0,t.str)`must have ${f} ${h} when property ${d} is present`},params:({params:{property:d,depsCount:m,deps:h,missingProperty:f}})=>(0,t._)`{property: ${d},
53
53
  missingProperty: ${f},
54
54
  depsCount: ${m},
55
- deps: ${h}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[m,h]=i(d);l(d,m),c(d,h)}};function i({schema:d}){const m={},h={};for(const f in d){if(f==="__proto__")continue;const g=Array.isArray(d[f])?m:h;g[f]=d[f]}return[m,h]}function l(d,m=d.schema){const{gen:h,data:f,it:g}=d;if(Object.keys(m).length===0)return;const v=h.let("missing");for(const y in m){const S=m[y];if(S.length===0)continue;const x=(0,n.propertyInData)(h,f,y,g.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),g.allErrors?h.if(x,()=>{for(const _ of S)(0,n.checkReportMissingProp)(d,_)}):(h.if((0,t._)`${x} && (${(0,n.checkMissingProp)(d,S,v)})`),(0,n.reportMissingProp)(d,v),h.else())}}e.validatePropertyDeps=l;function c(d,m=d.schema){const{gen:h,data:f,keyword:g,it:v}=d,y=h.name("valid");for(const S in m)(0,o.alwaysValidSchema)(v,m[S])||(h.if((0,n.propertyInData)(h,f,S,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:S},y);d.mergeValidEvaluated(x,y)},()=>h.var(y,!0)),d.ok(y))}e.validateSchemaDeps=c,e.default=r})(o0)),o0}var kh={},pA;function K9(){if(pA)return kh;pA=1,Object.defineProperty(kh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:r})=>(0,e._)`{propertyName: ${r.propertyName}}`},code(r){const{gen:i,schema:l,data:c,it:d}=r;if((0,t.alwaysValidSchema)(d,l))return;const m=i.name("valid");i.forIn("key",c,h=>{r.setParams({propertyName:h}),r.subschema({keyword:"propertyNames",data:h,dataTypes:["string"],propertyName:h,compositeRule:!0},m),i.if((0,e.not)(m),()=>{r.error(!0),d.allErrors||i.break()})}),r.ok(m)}};return kh.default=n,kh}var Dh={},gA;function v2(){if(gA)return Dh;gA=1,Object.defineProperty(Dh,"__esModule",{value:!0});const e=la(),t=vt(),o=_s(),n=Mt(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:m,data:h,errsCount:f,it:g}=l;if(!f)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=g;if(g.props=!0,y.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(g,d))return;const S=(0,e.allSchemaProperties)(m.properties),x=(0,e.allSchemaProperties)(m.patternProperties);_(),l.ok((0,t._)`${f} === ${o.default.errors}`);function _(){c.forIn("key",h,A=>{!S.length&&!x.length?E(A):c.if(C(A),()=>E(A))})}function C(A){let k;if(S.length>8){const O=(0,n.schemaRefOrVal)(g,m.properties,"properties");k=(0,e.isOwnProperty)(c,O,A)}else S.length?k=(0,t.or)(...S.map(O=>(0,t._)`${A} === ${O}`)):k=t.nil;return x.length&&(k=(0,t.or)(k,...x.map(O=>(0,t._)`${(0,e.usePattern)(l,O)}.test(${A})`))),(0,t.not)(k)}function P(A){c.code((0,t._)`delete ${h}[${A}]`)}function E(A){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){P(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,n.alwaysValidSchema)(g,d)){const k=c.name("valid");y.removeAdditional==="failing"?(T(A,k,!1),c.if((0,t.not)(k),()=>{l.reset(),P(A)})):(T(A,k),v||c.if((0,t.not)(k),()=>c.break()))}}function T(A,k,O){const N={keyword:"additionalProperties",dataProp:A,dataPropType:n.Type.Str};O===!1&&Object.assign(N,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(N,k)}}};return Dh.default=i,Dh}var Oh={},vA;function W9(){if(vA)return Oh;vA=1,Object.defineProperty(Oh,"__esModule",{value:!0});const e=Jg(),t=la(),o=Mt(),n=v2(),r={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:l,schema:c,parentSchema:d,data:m,it:h}=i;h.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(h,n.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(c);for(const x of f)h.definedProperties.add(x);h.opts.unevaluated&&f.length&&h.props!==!0&&(h.props=o.mergeEvaluated.props(l,(0,o.toHash)(f),h.props));const g=f.filter(x=>!(0,o.alwaysValidSchema)(h,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)y(x)?S(x):(l.if((0,t.propertyInData)(l,m,x,h.opts.ownProperties)),S(x),h.allErrors||l.else().var(v,!0),l.endIf()),i.it.definedProperties.add(x),i.ok(v);function y(x){return h.opts.useDefaults&&!h.compositeRule&&c[x].default!==void 0}function S(x){i.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Oh.default=r,Oh}var Ih={},bA;function Y9(){if(bA)return Ih;bA=1,Object.defineProperty(Ih,"__esModule",{value:!0});const e=la(),t=vt(),o=Mt(),n=Mt(),r={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:l,schema:c,data:d,parentSchema:m,it:h}=i,{opts:f}=h,g=(0,e.allSchemaProperties)(c),v=g.filter(E=>(0,o.alwaysValidSchema)(h,c[E]));if(g.length===0||v.length===g.length&&(!h.opts.unevaluated||h.props===!0))return;const y=f.strictSchema&&!f.allowMatchingProperties&&m.properties,S=l.name("valid");h.props!==!0&&!(h.props instanceof t.Name)&&(h.props=(0,n.evaluatedPropsToName)(l,h.props));const{props:x}=h;_();function _(){for(const E of g)y&&C(E),h.allErrors?P(E):(l.var(S,!0),P(E),l.if(S))}function C(E){for(const T in y)new RegExp(E).test(T)&&(0,o.checkStrictMode)(h,`property ${T} matches pattern ${E} (use allowMatchingProperties)`)}function P(E){l.forIn("key",d,T=>{l.if((0,t._)`${(0,e.usePattern)(i,E)}.test(${T})`,()=>{const A=v.includes(E);A||i.subschema({keyword:"patternProperties",schemaProp:E,dataProp:T,dataPropType:n.Type.Str},S),h.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${T}]`,!0):!A&&!h.allErrors&&l.if((0,t.not)(S),()=>l.break())})})}}};return Ih.default=r,Ih}var Mh={},yA;function Z9(){if(yA)return Mh;yA=1,Object.defineProperty(Mh,"__esModule",{value:!0});const e=Mt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:n,schema:r,it:i}=o;if((0,e.alwaysValidSchema)(i,r)){o.fail();return}const l=n.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),o.failResult(l,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Mh.default=t,Mh}var Lh={},SA;function Q9(){if(SA)return Lh;SA=1,Object.defineProperty(Lh,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:la().validateUnion,error:{message:"must match a schema in anyOf"}};return Lh.default=t,Lh}var Nh={},_A;function J9(){if(_A)return Nh;_A=1,Object.defineProperty(Nh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:r})=>(0,e._)`{passingSchemas: ${r.passing}}`},code(r){const{gen:i,schema:l,parentSchema:c,it:d}=r;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const m=l,h=i.let("valid",!1),f=i.let("passing",null),g=i.name("_valid");r.setParams({passing:f}),i.block(v),r.result(h,()=>r.reset(),()=>r.error(!0));function v(){m.forEach((y,S)=>{let x;(0,t.alwaysValidSchema)(d,y)?i.var(g,!0):x=r.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},g),S>0&&i.if((0,e._)`${g} && ${h}`).assign(h,!1).assign(f,(0,e._)`[${f}, ${S}]`).else(),i.if(g,()=>{i.assign(h,!0),i.assign(f,S),x&&r.mergeEvaluated(x,e.Name)})})}}};return Nh.default=n,Nh}var Fh={},wA;function X9(){if(wA)return Fh;wA=1,Object.defineProperty(Fh,"__esModule",{value:!0});const e=Mt(),t={keyword:"allOf",schemaType:"array",code(o){const{gen:n,schema:r,it:i}=o;if(!Array.isArray(r))throw new Error("ajv implementation error");const l=n.name("valid");r.forEach((c,d)=>{if((0,e.alwaysValidSchema)(i,c))return;const m=o.subschema({keyword:"allOf",schemaProp:d},l);o.ok(l),o.mergeEvaluated(m)})}};return Fh.default=t,Fh}var Bh={},CA;function eH(){if(CA)return Bh;CA=1,Object.defineProperty(Bh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:l,parentSchema:c,it:d}=i;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const m=r(d,"then"),h=r(d,"else");if(!m&&!h)return;const f=l.let("valid",!0),g=l.name("_valid");if(v(),i.reset(),m&&h){const S=l.let("ifClause");i.setParams({ifClause:S}),l.if(g,y("then",S),y("else",S))}else m?l.if(g,y("then")):l.if((0,e.not)(g),y("else"));i.pass(f,()=>i.error(!0));function v(){const S=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);i.mergeEvaluated(S)}function y(S,x){return()=>{const _=i.subschema({keyword:S},g);l.assign(f,g),i.mergeValidEvaluated(_,f),x?l.assign(x,(0,e._)`${S}`):i.setParams({ifClause:S})}}}};function r(i,l){const c=i.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(i,c)}return Bh.default=n,Bh}var zh={},xA;function tH(){if(xA)return zh;xA=1,Object.defineProperty(zh,"__esModule",{value:!0});const e=Mt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:n,it:r}){n.if===void 0&&(0,e.checkStrictMode)(r,`"${o}" without "if" is ignored`)}};return zh.default=t,zh}var EA;function oH(){if(EA)return Th;EA=1,Object.defineProperty(Th,"__esModule",{value:!0});const e=p2(),t=q9(),o=g2(),n=V9(),r=H9(),i=G9(),l=K9(),c=v2(),d=W9(),m=Y9(),h=Z9(),f=Q9(),g=J9(),v=X9(),y=eH(),S=tH();function x(_=!1){const C=[h.default,f.default,g.default,v.default,y.default,S.default,l.default,c.default,i.default,d.default,m.default];return _?C.push(t.default,n.default):C.push(e.default,o.default),C.push(r.default),C}return Th.default=x,Th}var jh={},Uh={},TA;function nH(){if(TA)return Uh;TA=1,Object.defineProperty(Uh,"__esModule",{value:!0});const e=vt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,r){const{gen:i,data:l,$data:c,schema:d,schemaCode:m,it:h}=n,{opts:f,errSchemaPath:g,schemaEnv:v,self:y}=h;if(!f.validateFormats)return;c?S():x();function S(){const _=i.scopeValue("formats",{ref:y.formats,code:f.code.formats}),C=i.const("fDef",(0,e._)`${_}[${m}]`),P=i.let("fType"),E=i.let("format");i.if((0,e._)`typeof ${C} == "object" && !(${C} instanceof RegExp)`,()=>i.assign(P,(0,e._)`${C}.type || "string"`).assign(E,(0,e._)`${C}.validate`),()=>i.assign(P,(0,e._)`"string"`).assign(E,C)),n.fail$data((0,e.or)(T(),A()));function T(){return f.strictSchema===!1?e.nil:(0,e._)`${m} && !${E}`}function A(){const k=v.$async?(0,e._)`(${C}.async ? await ${E}(${l}) : ${E}(${l}))`:(0,e._)`${E}(${l})`,O=(0,e._)`(typeof ${E} == "function" ? ${k} : ${E}.test(${l}))`;return(0,e._)`${E} && ${E} !== true && ${P} === ${r} && !${O}`}}function x(){const _=y.formats[d];if(!_){T();return}if(_===!0)return;const[C,P,E]=A(_);C===r&&n.pass(k());function T(){if(f.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(O){const N=O instanceof RegExp?(0,e.regexpCode)(O):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(d)}`:void 0,q=i.scopeValue("formats",{key:d,ref:O,code:N});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${q}.validate`]:["string",O,q]}function k(){if(typeof _=="object"&&!(_ instanceof RegExp)&&_.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${l})`}return typeof P=="function"?(0,e._)`${E}(${l})`:(0,e._)`${E}.test(${l})`}}}};return Uh.default=o,Uh}var PA;function rH(){if(PA)return jh;PA=1,Object.defineProperty(jh,"__esModule",{value:!0});const t=[nH().default];return jh.default=t,jh}var Vs={},RA;function aH(){return RA||(RA=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.contentVocabulary=Vs.metadataVocabulary=void 0,Vs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Vs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Vs}var AA;function iH(){if(AA)return uh;AA=1,Object.defineProperty(uh,"__esModule",{value:!0});const e=k9(),t=$9(),o=oH(),n=rH(),r=aH(),i=[e.default,t.default,(0,o.default)(),n.default,r.metadataVocabulary,r.contentVocabulary];return uh.default=i,uh}var $h={},rd={},kA;function sH(){if(kA)return rd;kA=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(rd.DiscrError=e={})),rd}var DA;function lH(){if(DA)return $h;DA=1,Object.defineProperty($h,"__esModule",{value:!0});const e=vt(),t=sH(),o=sC(),n=Xg(),r=Mt(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:m}})=>(0,e._)`{error: ${c}, tag: ${m}, tagValue: ${d}}`},code(c){const{gen:d,data:m,schema:h,parentSchema:f,it:g}=c,{oneOf:v}=f;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=h.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),x=d.const("tag",(0,e._)`${m}${(0,e.getProperty)(y)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>_(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:y})),c.ok(S);function _(){const E=P();d.if(!1);for(const T in E)d.elseIf((0,e._)`${x} === ${T}`),d.assign(S,C(E[T]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function C(E){const T=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:E},T);return c.mergeEvaluated(A,e.Name),T}function P(){var E;const T={},A=O(f);let k=!0;for(let B=0;B<v.length;B++){let $=v[B];if($?.$ref&&!(0,r.schemaHasRulesButRef)($,g.self.RULES)){const W=$.$ref;if($=o.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,W),$ instanceof o.SchemaEnv&&($=$.schema),$===void 0)throw new n.default(g.opts.uriResolver,g.baseId,W)}const U=(E=$?.properties)===null||E===void 0?void 0:E[y];if(typeof U!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);k=k&&(A||O($)),N(U,B)}if(!k)throw new Error(`discriminator: "${y}" must be required`);return T;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function N(B,$){if(B.const)q(B.const,$);else if(B.enum)for(const U of B.enum)q(U,$);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,$){if(typeof B!="string"||B in T)throw new Error(`discriminator: "${y}" values must be unique strings`);T[B]=$}}}};return $h.default=l,$h}const cH="http://json-schema.org/draft-07/schema#",uH="http://json-schema.org/draft-07/schema#",dH="Core schema meta-schema",mH={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:[]}},fH=["object","boolean"],hH={$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:"#"}},pH={$schema:cH,$id:uH,title:dH,definitions:mH,type:fH,properties:hH,default:!0};var OA;function gH(){return OA||(OA=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const o=P9(),n=iH(),r=lH(),i=pH,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(i,l):i;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var m=Jg();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var h=vt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var f=iC();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var g=Xg();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(ah,ah.exports)),ah.exports}var qh={exports:{}},n0={},IA;function vH(){return IA||(IA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,$){return{validate:B,compare:$}}e.fullFormats={date:t(i,l),time:t(d(!0),m),"date-time":t(g(!0),v),"iso-time":t(d(),h),"iso-date-time":t(g(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:P,int32:{type:"number",validate:A},int64:{type:"number",validate:k},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"date-time":t(/^\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":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(B){const $=n.exec(B);if(!$)return!1;const U=+$[1],W=+$[2],ae=+$[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&o(U)?29:r[W])}function l(B,$){if(B&&$)return B>$?1:B<$?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(U){const W=c.exec(U);if(!W)return!1;const ae=+W[1],H=+W[2],Z=+W[3],te=W[4],le=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!te)return!1;if(ae<=23&&H<=59&&Z<60)return!0;const G=H-M*le,V=ae-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&Z<61}}function m(B,$){if(!(B&&$))return;const U=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+$).valueOf();if(U&&W)return U-W}function h(B,$){if(!(B&&$))return;const U=c.exec(B),W=c.exec($);if(U&&W)return B=U[1]+U[2]+U[3],$=W[1]+W[2]+W[3],B>$?1:B<$?-1:0}const f=/t|\s/i;function g(B){const $=d(B);return function(W){const ae=W.split(f);return ae.length===2&&i(ae[0])&&$(ae[1])}}function v(B,$){if(!(B&&$))return;const U=new Date(B).valueOf(),W=new Date($).valueOf();if(U&&W)return U-W}function y(B,$){if(!(B&&$))return;const[U,W]=B.split(f),[ae,H]=$.split(f),Z=l(U,ae);if(Z!==void 0)return Z||m(W,H)}const S=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function _(B){return S.test(B)&&x.test(B)}const C=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function P(B){return C.lastIndex=0,C.test(B)}const E=-2147483648,T=2**31-1;function A(B){return Number.isInteger(B)&&B<=T&&B>=E}function k(B){return Number.isInteger(B)}function O(){return!0}const N=/[^\\]\\Z/;function q(B){if(N.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(n0)),n0}var r0={},MA;function bH(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=gH(),o=vt(),n=o.operators,r={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${r[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${r[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:i,code(c){const{gen:d,data:m,schemaCode:h,keyword:f,it:g}=c,{opts:v,self:y}=g;if(!v.validateFormats)return;const S=new t.KeywordCxt(g,y.RULES.all.format.definition,"format");S.$data?x():_();function x(){const P=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${P}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,C(E)))}function _(){const P=S.schema,E=y.formats[P];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${P}" does not define "compare" function`);const T=d.scopeValue("formats",{key:P,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(P)}`:void 0});c.fail$data(C(T))}function C(P){return(0,o._)`${P}.compare(${m}, ${h}) ${r[f].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(r0)),r0}var LA;function yH(){return LA||(LA=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=vH(),n=bH(),r=vt(),i=new r.Name("fullFormats"),l=new r.Name("fastFormats"),c=(m,h={keywords:!0})=>{if(Array.isArray(h))return d(m,h,o.fullFormats,i),m;const[f,g]=h.mode==="fast"?[o.fastFormats,l]:[o.fullFormats,i],v=h.formats||o.formatNames;return d(m,v,f,g),h.keywords&&(0,n.default)(m),m};c.get=(m,h="full")=>{const g=(h==="fast"?o.fastFormats:o.fullFormats)[m];if(!g)throw new Error(`Unknown format "${m}"`);return g};function d(m,h,f,g){var v,y;(v=(y=m.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,r._)`require("ajv-formats/dist/formats").${g}`);for(const S of h)m.addFormat(S,f[S])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(qh,qh.exports)),qh.exports}var SH=yH();const Yde=hl(SH);let cC;cC=globalThis.crypto;async function _H(e){return(await cC).getRandomValues(new Uint8Array(e))}async function wH(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%t.length;let n="";for(;n.length<e;){const r=await _H(e-n.length);for(const i of r)i<o&&(n+=t[i%t.length])}return n}async function CH(e){return await wH(e)}async function xH(e){const t=await(await cC).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Zde(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await CH(e),o=await xH(t);return{code_verifier:t,code_challenge:o}}const vn=Pq().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:wV.custom,message:"URL must be parseable",fatal:!0}),Tj}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Qde=bn({resource:F().url(),authorization_servers:Ee(vn).optional(),jwks_uri:F().url().optional(),scopes_supported:Ee(F()).optional(),bearer_methods_supported:Ee(F()).optional(),resource_signing_alg_values_supported:Ee(F()).optional(),resource_name:F().optional(),resource_documentation:F().optional(),resource_policy_uri:F().url().optional(),resource_tos_uri:F().url().optional(),tls_client_certificate_bound_access_tokens:It().optional(),authorization_details_types_supported:Ee(F()).optional(),dpop_signing_alg_values_supported:Ee(F()).optional(),dpop_bound_access_tokens_required:It().optional()}),EH=bn({issuer:F(),authorization_endpoint:vn,token_endpoint:vn,registration_endpoint:vn.optional(),scopes_supported:Ee(F()).optional(),response_types_supported:Ee(F()),response_modes_supported:Ee(F()).optional(),grant_types_supported:Ee(F()).optional(),token_endpoint_auth_methods_supported:Ee(F()).optional(),token_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),service_documentation:vn.optional(),revocation_endpoint:vn.optional(),revocation_endpoint_auth_methods_supported:Ee(F()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),introspection_endpoint:F().optional(),introspection_endpoint_auth_methods_supported:Ee(F()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),code_challenge_methods_supported:Ee(F()).optional(),client_id_metadata_document_supported:It().optional()}),TH=bn({issuer:F(),authorization_endpoint:vn,token_endpoint:vn,userinfo_endpoint:vn.optional(),jwks_uri:vn,registration_endpoint:vn.optional(),scopes_supported:Ee(F()).optional(),response_types_supported:Ee(F()),response_modes_supported:Ee(F()).optional(),grant_types_supported:Ee(F()).optional(),acr_values_supported:Ee(F()).optional(),subject_types_supported:Ee(F()),id_token_signing_alg_values_supported:Ee(F()),id_token_encryption_alg_values_supported:Ee(F()).optional(),id_token_encryption_enc_values_supported:Ee(F()).optional(),userinfo_signing_alg_values_supported:Ee(F()).optional(),userinfo_encryption_alg_values_supported:Ee(F()).optional(),userinfo_encryption_enc_values_supported:Ee(F()).optional(),request_object_signing_alg_values_supported:Ee(F()).optional(),request_object_encryption_alg_values_supported:Ee(F()).optional(),request_object_encryption_enc_values_supported:Ee(F()).optional(),token_endpoint_auth_methods_supported:Ee(F()).optional(),token_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),display_values_supported:Ee(F()).optional(),claim_types_supported:Ee(F()).optional(),claims_supported:Ee(F()).optional(),service_documentation:F().optional(),claims_locales_supported:Ee(F()).optional(),ui_locales_supported:Ee(F()).optional(),claims_parameter_supported:It().optional(),request_parameter_supported:It().optional(),request_uri_parameter_supported:It().optional(),require_request_uri_registration:It().optional(),op_policy_uri:vn.optional(),op_tos_uri:vn.optional(),client_id_metadata_document_supported:It().optional()}),Jde=ye({...TH.shape,...EH.pick({code_challenge_methods_supported:!0}).shape}),Xde=ye({access_token:F(),id_token:F().optional(),token_type:F(),expires_in:jM().optional(),scope:F().optional(),refresh_token:F().optional()}).strip(),eme=ye({error:F(),error_description:F().optional(),error_uri:F().optional()}),NA=vn.optional().or(Ge("").transform(()=>{})),PH=ye({redirect_uris:Ee(vn),token_endpoint_auth_method:F().optional(),grant_types:Ee(F()).optional(),response_types:Ee(F()).optional(),client_name:F().optional(),client_uri:vn.optional(),logo_uri:NA,scope:F().optional(),contacts:Ee(F()).optional(),tos_uri:NA,policy_uri:F().optional(),jwks_uri:vn.optional(),jwks:Wq().optional(),software_id:F().optional(),software_version:F().optional(),software_statement:F().optional()}).strip(),RH=ye({client_id:F(),client_secret:F().optional(),client_id_issued_at:ft().optional(),client_secret_expires_at:ft().optional()}).strip(),tme=PH.merge(RH);ye({error:F(),error_description:F().optional()}).strip();ye({token:F(),token_type_hint:F().optional()}).strip();class wn extends Error{constructor(t,o){super(t),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class WS extends wn{}WS.errorCode="invalid_request";class YS extends wn{}YS.errorCode="invalid_client";class ZS extends wn{}ZS.errorCode="invalid_grant";class QS extends wn{}QS.errorCode="unauthorized_client";class JS extends wn{}JS.errorCode="unsupported_grant_type";class XS extends wn{}XS.errorCode="invalid_scope";class e_ extends wn{}e_.errorCode="access_denied";class t_ extends wn{}t_.errorCode="server_error";class o_ extends wn{}o_.errorCode="temporarily_unavailable";class n_ extends wn{}n_.errorCode="unsupported_response_type";class r_ extends wn{}r_.errorCode="unsupported_token_type";class a_ extends wn{}a_.errorCode="invalid_token";class i_ extends wn{}i_.errorCode="method_not_allowed";class s_ extends wn{}s_.errorCode="too_many_requests";class l_ extends wn{}l_.errorCode="invalid_client_metadata";class c_ extends wn{}c_.errorCode="insufficient_scope";class u_ extends wn{}u_.errorCode="invalid_target";const ome={[WS.errorCode]:WS,[YS.errorCode]:YS,[ZS.errorCode]:ZS,[QS.errorCode]:QS,[JS.errorCode]:JS,[XS.errorCode]:XS,[e_.errorCode]:e_,[t_.errorCode]:t_,[o_.errorCode]:o_,[n_.errorCode]:n_,[r_.errorCode]:r_,[a_.errorCode]:a_,[i_.errorCode]:i_,[s_.errorCode]:s_,[l_.errorCode]:l_,[c_.errorCode]:c_,[u_.errorCode]:u_};async function b2(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(o){if(o instanceof Yg&&o.code===Qd.MethodNotFound)return{resources:[]};throw o}}async function AH(e,t){return await e.readResource({uri:t})}function nme(e){const t=ro.c(12);let o,n;t[0]!==e?({client:o,...n}=e,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]);let r;t[3]!==o?(r=au.mcpResourcesList(o),t[3]=o,t[4]=r):r=t[4];let i;t[5]!==o?(i=()=>b2(o),t[5]=o,t[6]=i):i=t[6];const l=n.staleTime??3e4;let c;return t[7]!==n||t[8]!==r||t[9]!==i||t[10]!==l?(c={...n,queryKey:r,queryFn:i,staleTime:l,retry:!1},t[7]=n,t[8]=r,t[9]=i,t[10]=l,t[11]=c):c=t[11],pl(c)}function rme(e){const t=ro.c(12);let o,n;t[0]!==e?({client:o,...n}=e,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]);let r;t[3]!==o?(r=au.mcpResourcesList(o),t[3]=o,t[4]=r):r=t[4];let i;t[5]!==o?(i=()=>b2(o),t[5]=o,t[6]=i):i=t[6];const l=n.staleTime??3e4;let c;return t[7]!==n||t[8]!==r||t[9]!==i||t[10]!==l?(c={...n,queryKey:r,queryFn:i,staleTime:l,retry:!1},t[7]=n,t[8]=r,t[9]=i,t[10]=l,t[11]=c):c=t[11],AI(c)}function ame(e){const t=ro.c(15);let o,n,r;t[0]!==e?({client:o,uri:r,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r):(o=t[1],n=t[2],r=t[3]);let i;t[4]!==o||t[5]!==r?(i=au.mcpReadResource(o,r),t[4]=o,t[5]=r,t[6]=i):i=t[6];let l;t[7]!==o||t[8]!==r?(l=()=>AH(o,r),t[7]=o,t[8]=r,t[9]=l):l=t[9];const c=n.staleTime??3e4;let d;return t[10]!==n||t[11]!==i||t[12]!==l||t[13]!==c?(d={...n,queryKey:i,queryFn:l,staleTime:c,retry:!1},t[10]=n,t[11]=i,t[12]=l,t[13]=c,t[14]=d):d=t[14],pl(d)}const y2="ui-resource-html";function ime(e){const t=ro.c(20);let o,n,r,i,l;t[0]!==e?({orgSlug:r,connectionId:o,uri:l,meshUrl:n,...i}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);let c;t[6]!==o||t[7]!==r||t[8]!==l?(c=au.mcpUiResourceHtml(r,o,l),t[6]=o,t[7]=r,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==o||t[11]!==n||t[12]!==r||t[13]!==l?(d=async()=>{const g=`${n??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(r)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=o,t[11]=n,t[12]=r,t[13]=l,t[14]=d):d=t[14];const m=i.staleTime??3e4;let h;return t[15]!==i||t[16]!==c||t[17]!==d||t[18]!==m?(h={...i,queryKey:c,queryFn:d,staleTime:m,retry:!1},t[15]=i,t[16]=c,t[17]=d,t[18]=m,t[19]=h):h=t[19],pl(h)}const kH=ye({authorizationEndpoint:F().url(),tokenEndpoint:F().url(),introspectionEndpoint:F().url().optional(),clientId:F(),clientSecret:F().optional(),scopes:Ee(F()),grantType:no(["authorization_code","client_credentials"])}),FA=ye({type:Ge("object"),properties:Dt(F(),Gt()).optional(),required:Ee(F()).optional()}).catchall(Gt()),DH=aC.extend({inputSchema:FA,outputSchema:FA.optional()}),OH=ye({headers:Dt(F(),F()).optional()}),IH=ye({command:F().describe("Command to run (e.g., 'npx', 'node')"),args:Ee(F()).optional().describe("Command arguments"),cwd:F().optional().describe("Working directory"),envVars:Dt(F(),F()).optional().describe("Environment variables (encrypted in storage)")}),S2=ye({id:F().describe("Unique identifier for the connection"),title:F().describe("Human-readable name for the connection"),created_at:F().describe("When the connection was created"),updated_at:F().describe("When the connection was last updated"),created_by:F().describe("User ID who created the connection"),updated_by:F().optional().describe("User ID who last updated the connection"),organization_id:F().describe("Organization ID this connection belongs to"),description:F().nullable().describe("Description of the connection"),icon:F().nullable().describe("Icon URL for the connection"),app_name:F().nullable().describe("Associated app name"),app_id:F().nullable().describe("Associated app ID"),slug:F().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:no(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:F().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:F().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:oo([IH,OH]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:kH.nullable().describe("OAuth configuration"),configuration_state:Dt(F(),Gt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Ee(F()).nullable().optional().describe("Configuration scopes"),metadata:Dt(F(),Gt()).nullable().describe("Additional metadata (includes repository info)"),tools:Ee(DH).nullable().describe("Discovered tools from MCP"),bindings:Ee(F()).nullable().describe("Detected bindings"),status:no(["active","inactive","error"]).describe("Current status")});S2.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:F().nullish()});S2.partial();function sme(e){return e!=null&&"command"in e}function lme(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Td=ye({connection_id:F().describe("Connection ID"),selected_tools:Ee(F()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Ee(F()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Ee(F()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),_2=Td.extend({selected_tools:Td.shape.selected_tools.optional(),selected_resources:Td.shape.selected_resources.optional(),selected_prompts:Td.shape.selected_prompts.optional()}),MH=ye({connectionId:F(),toolName:F(),label:F(),icon:F().nullable().optional()}),LH=ye({id:F().describe("Stable id; used as React key and ?tab= value"),title:F().describe("Tab label"),icon:F().optional().describe("Optional lucide icon name"),view:ye({type:Ge("ext-app"),appId:F(),args:Dt(F(),Gt()).optional()})}),NH=ye({defaultMainView:ye({type:F(),id:F().optional(),toolName:F().optional()}).nullable().optional(),chatDefaultOpen:It().nullable().optional(),tabs:Ee(LH).optional()}),BA=ye({tileId:F().optional(),connectionId:F().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:F().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:F().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Dt(F(),Gt()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:ft().int().positive().optional(),maxHeight:ft().int().positive().optional()}),uC=ye({banner:F().nullable().optional(),bannerColor:F().nullable().optional(),icon:F().nullable().optional(),themeColor:F().nullable().optional(),pinnedViews:Ee(MH).nullable().optional(),layout:NH.nullable().optional(),homeTile:BA.nullable().optional(),homeTiles:Ee(BA).nullable().optional(),homePrompts:Ee(F()).nullable().optional()});function cme(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const o=e?.homeTile;return o?[o]:[]}const FH=/^[A-Za-z_][A-Za-z0-9_]*$/,zA=F().min(1).regex(FH,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),BH=Gw("kind",[ye({key:zA,kind:Ge("literal"),value:F()}),ye({key:zA,kind:Ge("secret"),secretId:F().min(1)})]),zH=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,jH=ye({host:F().min(1).regex(zH).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:F().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),dC=ye({selected:F().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:F().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:F().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Ee(BH).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:Ee(jH).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that mesh resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),mC=ye({url:F().describe("GitHub repository URL"),owner:F().describe("Repository owner"),name:F().describe("Repository name"),installationId:ft().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:F().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),UH=no(["agent-sandbox","user-desktop"]),$H=no(["agent-sandbox","user-desktop","cluster"]);function w2(e){return e==="cluster"?"agent-sandbox":e}const C2={sandboxHandle:F().describe("Provider-specific handle"),previewUrl:F().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:F().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:UH.optional(),createdAt:ft().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:ye({packageManager:F().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:F().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:F().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x2=ye(C2),qH=ye({...C2,sandboxProviderKind:$H.optional()});function VH(e){const t=qH.parse(e);return x2.parse({...t,sandboxProviderKind:t.sandboxProviderKind?w2(t.sandboxProviderKind):void 0})}function ume(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,o={};for(const[n,r]of Object.entries(t)){if(!r||typeof r!="object"||n!=="cluster"&&n!=="agent-sandbox"&&n!=="user-desktop")continue;const i=w2(n);try{if(n==="cluster"&&o[i])continue;o[i]=VH(r)}catch{}}return o}const fC=Dt(F().describe("userId"),Dt(F().describe("branch"),Dt(F().describe("sandboxProviderKind"),x2))),HH=ye({id:F().describe("Stable identifier for this knowledge file"),name:F().describe("File name shown in the UI"),kind:no(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:F().describe("Org filesystem (Library) volume the file lives in"),path:F().describe("Path within the volume"),url:F().describe("Same-origin URL to read the file (display/download)"),contentType:F().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:ft().nullable().optional().describe("File size in bytes"),addedAt:F().describe("ISO timestamp when the file was attached")}),hC=Ee(HH).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),GH=no(["smart","code-review","open"]),pC=GH.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),dme=ye({id:F().describe("Unique identifier"),title:F().describe("Human-readable name"),description:F().nullable().describe("Description"),icon:F().nullable().describe("Icon URL"),created_at:F().describe("Creation timestamp"),updated_at:F().describe("Last update timestamp"),created_by:F().describe("User ID who created this item"),updated_by:F().optional().describe("User ID who last updated this item"),organization_id:F().describe("Organization ID this item belongs to"),status:no(["active","inactive"]).describe("Current status"),pinned:It().describe("Whether this space is pinned to the sidebar"),metadata:ye({instructions:F().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().describe("Metadata"),connections:Ee(Td).describe("Connections with their selected tools, resources, and prompts")}),E2=ye({title:F().min(1).max(120).describe("Short label shown on the chip"),description:F().max(280).optional().describe("One-line subtitle shown under the title"),text:F().min(1).describe("The message sent to the agent when the prompt is clicked")});ye({title:F().min(1).max(255).describe("Name for the virtual MCP"),description:F().nullable().optional().describe("Optional description"),icon:F().nullish().describe("Optional icon URL"),status:no(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:It().optional().default(!1).describe("Pin to sidebar"),metadata:ye({instructions:F().nullable().optional().describe("MCP server instructions"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Ee(_2).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:Ee(E2).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});ye({title:F().min(1).max(255).optional().describe("New name"),description:F().nullable().optional().describe("New description (null to clear)"),icon:F().nullish().describe("New icon URL"),status:no(["active","inactive"]).optional().describe("New status"),pinned:It().optional().describe("Pin/unpin from sidebar"),metadata:ye({instructions:F().nullable().optional().describe("MCP server instructions"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Ee(_2).optional().describe("New connections (replaces existing)"),prompts:Ee(E2).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});var jA;(function(e){e.Completable="McpCompletable"})(jA||(jA={}));const T2={publicConfig:()=>["publicConfig"],appVersionCheck:()=>["appVersionCheck"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],taskBoardItems:e=>[e,"task-board-items"],taskBoardItemPrs:(e,t)=>[e,"task-board-item-prs",t],homeGithubRecentPrs:(e,t)=>["home-github-recent-prs",e,t],homeGithubContributions:(e,t)=>["home-github-contributions",e,t],report:(e,t)=>["report",e,t??""],commerceDiscoveryConnection:(e,t)=>["commerce-discovery","connection",e,t],commerceDiscoveryDiagnostic:(e,t)=>["commerce-discovery","diagnostic",e,t],commerceDiscoveryVirtualMcp:(e,t)=>["commerce-discovery","virtual-mcp",e,t],commerceDiscoveryCompanionSchema:(e,t)=>["commerce-discovery","companion-schema",e,t],commerceDiscoveryCompanionConnections:(e,t)=>["commerce-discovery","companion-connections",e,t],commerceDiscoveryCompanionConnectionsPrefix:e=>["commerce-discovery","companion-connections",e],commerceDiscoveryCompanionRegistry:(e,t)=>["commerce-discovery","companion-registry",e,t],commerceDiscoveryCompanionOAuthStatus:(e,t)=>["commerce-discovery","companion-oauth-status",e,t],commerceDiscoveryCompanionGaProperties:(e,t)=>["commerce-discovery","companion-ga-properties",e,t],commerceDiscoveryCompanionGscSites:(e,t)=>["commerce-discovery","companion-gsc-sites",e,t],commerceDiscoveryCompanionGithubRepos:(e,t,o)=>["commerce-discovery","companion-github-repos",e,t,o],commerceDiscoveryCompanionGithubSelected:(e,t)=>["commerce-discovery","companion-github-selected",e,t],commerceDiscoveryConnectionStatus:(e,t)=>["commerce-discovery","connection-status",e,t],connectionActivity:(e,t,o)=>["monitoring","activity",e,t,o],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],apiKeysList:e=>["api-keys",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,o)=>["tool-call",e,t,o],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,o)=>[e,t,"collection",o],collectionItem:(e,t,o,n,r)=>[e,t,o,"collection",n,r],collectionList:(e,t,o,n,r)=>[e,t,o,"collection",n,"list",r],collectionListInfinite:(e,t,o,n,r)=>[e,t,o,"collection",n,"list-infinite",r],monitoringStats:()=>["monitoring","stats"],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],overviewThreads:e=>["threads","overview",e],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,o)=>["virtual-mcp",t,e??"default","tools","lookup",o],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,o)=>[...e,t,o],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,o)=>["automation-runs",e,t,...[...o??[]].sort()],automationRunStats:(e,t,o)=>["automation-run-stats",e,t,o],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,o)=>["org-fs",e,t,"list",o],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,o)=>["org-fs",e,t,"stat",o],orgFsPublicSets:e=>["org-fs-public-sets",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSearchRoot:e=>["org-fs-search",e],orgFsSearch:(e,t)=>["org-fs-search",e,t],orgFsSkills:e=>["org-fs-skills",e],slashSkills:e=>["slash-skills",e],filePickerObjects:(e,t,o,n)=>["file-picker-objects",e,t,o??"",n??!1],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],deploymentAdminMe:()=>["deployment-admin","me"],deploymentAdminUsers:e=>["deployment-admin","users",e],deploymentAdminOrgs:e=>["deployment-admin","orgs",e],deploymentAdminOrgsList:()=>["deployment-admin","orgs"],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:(...e)=>["live-meta",...e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,o)=>["sandbox-repo-dir",e,t,o],agentSandboxSession:(e,t,o)=>["agent-sandbox-session",e,t,o],agentSandboxSessionsPrefix:()=>["agent-sandbox-session"],agentSandboxSessions:(e,t)=>["agent-sandbox-session",e,t],sandboxSprite:e=>["sandbox-sprite",e],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,o,n)=>["github-org-repos",e,t,o,n],vmEnv:(e,t,o)=>["vm-env",e,t,o]};function mme(e,t){e.invalidateQueries({predicate:o=>{const n=o.queryKey;return(!t||n[1]===t)&&n[3]==="collection"&&n[4]==="VIRTUAL_MCP"}})}function fme(e,t){e.invalidateQueries({predicate:o=>{const n=o.queryKey;return(!t||n[1]===t)&&n[3]==="collection"&&n[4]==="CONNECTIONS"}})}function P2(){const e=ro.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:T2.publicConfig(),queryFn:KH,staleTime:1/0},e[0]=t):t=e[0];const{data:o}=pl(t);return o}async function KH(){return(await(await fetch("/api/config")).json()).config}const hme={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},R2=D.createContext(void 0);function WH(e){const t=ro.c(3),{children:o}=e,n=P2();let r;return t[0]!==o||t[1]!==n.auth?(r=R.jsx(R2.Provider,{value:n.auth,children:o}),t[0]=o,t[1]=n.auth,t[2]=r):r=t[2],r}function pme(){const e=D.useContext(R2);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var UA=D.use,Ac=typeof window<"u"?D.useLayoutEffect:D.useEffect;function a0(e){const t=D.useRef({value:e,prev:null}),o=t.current.value;return e!==o&&(t.current={value:e,prev:o}),t.current.prev}function YH(e,t,o={},n={}){D.useEffect(()=>{if(!e.current||n.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([i])=>{t(i)},o);return r.observe(e.current),()=>{r.disconnect()}},[t,o,n.disabled,e])}function ZH(e){const t=D.useRef(null);return D.useImperativeHandle(e,()=>t.current,[]),t}const A2=!1;function Jd(e){return e[e.length-1]}function QH(e){return typeof e=="function"}function rs(e,t){return QH(e)?e(t):e}const k2=Object.prototype.hasOwnProperty,$A=Object.prototype.propertyIsEnumerable;function D2(e){for(const t in e)if(k2.call(e,t))return!0;return!1}const JH=()=>Object.create(null),Hs=(e,t)=>nl(e,t,JH);function nl(e,t,o=()=>({}),n=0){if(e===t)return e;if(n>500)return t;const r=t,i=HA(e)&&HA(r);if(!i&&!(Wc(e)&&Wc(r)))return r;const l=i?e:qA(e);if(!l)return r;const c=i?r:qA(r);if(!c)return r;const d=l.length,m=c.length,h=i?new Array(m):o();let f=0;for(let g=0;g<m;g++){const v=i?g:c[g],y=e[v],S=r[v];if(y===S){h[v]=y,(i?g<d:k2.call(e,v))&&f++;continue}if(y===null||S===null||typeof y!="object"||typeof S!="object"){h[v]=S;continue}const x=nl(y,S,o,n+1);h[v]=x,x===y&&f++}return d===m&&f===d?e:h}function qA(e){const t=Object.getOwnPropertyNames(e);for(const r of t)if(!$A.call(e,r))return!1;const o=Object.getOwnPropertySymbols(e);if(o.length===0)return t;const n=t;for(const r of o){if(!$A.call(e,r))return!1;n.push(r)}return n}function Wc(e){if(!VA(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const o=t.prototype;return!(!VA(o)||!o.hasOwnProperty("isPrototypeOf"))}function VA(e){return Object.prototype.toString.call(e)==="[object Object]"}function HA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function il(e,t,o){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!il(e[n],t[n],o))return!1;return!0}if(Wc(e)&&Wc(t)){const n=o?.ignoreUndefined??!0;if(o?.partial){for(const l in t)if((!n||t[l]!==void 0)&&!il(e[l],t[l],o))return!1;return!0}let r=0;if(!n)r=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&r++;let i=0;for(const l in t)if((!n||t[l]!==void 0)&&(i++,i>r||!il(e[l],t[l],o)))return!1;return r===i}return!1}function Yc(e){let t,o;const n=new Promise((r,i)=>{t=r,o=i});return n.status="pending",n.resolve=r=>{n.status="resolved",n.value=r,t(r),e?.(r)},n.reject=r=>{n.status="rejected",o(r)},n}function XH(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Xd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function eG(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function GA(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return eG(t)}const tG=["http:","https:","mailto:","tel:"];function Yp(e,t){if(!e)return!1;try{const o=new URL(e);return!t.has(o.protocol)}catch{return!1}}function ad(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let o=0,n="",r;for(;(r=t.exec(e))!==null;)n+=GA(e.slice(o,r.index))+r[0],o=t.lastIndex;n=n+GA(o?e.slice(o):e);let i=!1;return n.startsWith("//")&&(i=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:i}}function oG(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function nG(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function di(){throw new Error("Invariant failed")}function em(e){const t=new Map;let o,n;const r=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,n&&(n.next=i,i.prev=n)):(i.next.prev=void 0,o=i.next,i.next=void 0,n&&(i.prev=n,n.next=i)),n=i)};return{get(i){const l=t.get(i);if(l)return r(l),l.value},set(i,l){if(t.size>=e&&o){const d=o;t.delete(d.key),d.next&&(o=d.next,d.next.prev=void 0),d===n&&(n=void 0)}const c=t.get(i);if(c)c.value=l,r(c);else{const d={key:i,value:l,prev:n};n&&(n.next=d),n=d,o||(o=d),t.set(i,d)}},clear(){t.clear(),o=void 0,n=void 0}}}const as=4,O2=5;function rG(e){const t=e.indexOf("{");if(t===-1)return null;const o=e.indexOf("}",t);return o===-1||t+1>=e.length?null:[t,o]}function I2(e,t,o=new Uint16Array(6)){const n=e.indexOf("/",t),r=n===-1?e.length:n,i=e.substring(t,r);if(!i||!i.includes("$"))return o[0]=0,o[1]=t,o[2]=t,o[3]=r,o[4]=r,o[5]=r,o;if(i==="$"){const c=e.length;return o[0]=2,o[1]=t,o[2]=t,o[3]=c,o[4]=c,o[5]=c,o}if(i.charCodeAt(0)===36)return o[0]=1,o[1]=t,o[2]=t+1,o[3]=r,o[4]=r,o[5]=r,o;const l=rG(i);if(l){const[c,d]=l,m=i.charCodeAt(c+1);if(m===45){if(c+2<i.length&&i.charCodeAt(c+2)===36){const h=c+3,f=d;if(h<f)return o[0]=3,o[1]=t+c,o[2]=t+h,o[3]=t+f,o[4]=t+d+1,o[5]=r,o}}else if(m===36){const h=c+1,f=c+2;return f===d?(o[0]=2,o[1]=t+c,o[2]=t+h,o[3]=t+f,o[4]=t+d+1,o[5]=e.length,o):(o[0]=1,o[1]=t+c,o[2]=t+f,o[3]=t+d,o[4]=t+d+1,o[5]=r,o)}}return o[0]=0,o[1]=t,o[2]=t,o[3]=r,o[4]=r,o[5]=r,o}function ev(e,t,o,n,r,i,l){l?.(o);let c=n;{const d=o.fullPath??o.from,m=d.length,h=o.options?.caseSensitive??e,f=o.options?.params?.parse??o.options?.parseParams;for(;c<m;){const v=I2(d,c,t);let y;const S=c,x=v[5];switch(c=x+1,i++,v[0]){case 0:{const _=d.substring(v[2],v[3]);if(h){const C=r.static?.get(_);if(C)y=C;else{r.static??=new Map;const P=rl(o.fullPath??o.from);P.parent=r,P.depth=i,y=P,r.static.set(_,P)}}else{const C=_.toLowerCase(),P=r.staticInsensitive?.get(C);if(P)y=P;else{r.staticInsensitive??=new Map;const E=rl(o.fullPath??o.from);E.parent=r,E.depth=i,y=E,r.staticInsensitive.set(C,E)}}break}case 1:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=!f&&r.dynamic?.find(k=>!k.parse&&k.caseSensitive===P&&k.prefix===E&&k.suffix===T);if(A)y=A;else{const k=s0(1,o.fullPath??o.from,P,E,T);y=k,k.depth=i,k.parent=r,r.dynamic??=[],r.dynamic.push(k)}break}case 3:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=!f&&r.optional?.find(k=>!k.parse&&k.caseSensitive===P&&k.prefix===E&&k.suffix===T);if(A)y=A;else{const k=s0(3,o.fullPath??o.from,P,E,T);y=k,k.parent=r,k.depth=i,r.optional??=[],r.optional.push(k)}break}case 2:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=s0(2,o.fullPath??o.from,P,E,T);y=A,A.parent=r,A.depth=i,r.wildcard??=[],r.wildcard.push(A)}}r=y}if(f&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const v=rl(o.fullPath??o.from);v.kind=O2,v.parent=r,i++,v.depth=i,r.pathless??=[],r.pathless.push(v),r=v}const g=(o.path||!o.children)&&!o.isRoot;if(g&&d.endsWith("/")){const v=rl(o.fullPath??o.from);v.kind=as,v.parent=r,i++,v.depth=i,r.index=v,r=v}r.parse=f??null,g&&!r.route&&(r.route=o,r.fullPath=o.fullPath??o.from)}if(o.children)for(const d of o.children)ev(e,t,d,c,r,i,l)}function i0(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function es(e){if(e.pathless)for(const t of e.pathless)es(t);if(e.static)for(const t of e.static.values())es(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())es(t);if(e.dynamic?.length){e.dynamic.sort(i0);for(const t of e.dynamic)es(t)}if(e.optional?.length){e.optional.sort(i0);for(const t of e.optional)es(t)}if(e.wildcard?.length){e.wildcard.sort(i0);for(const t of e.wildcard)es(t)}}function rl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function s0(e,t,o,n,r){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:o,prefix:n,suffix:r}}function aG(e,t){const o=rl("/"),n=new Uint16Array(6);for(const r of e)ev(!1,n,r,1,o,0);es(o),t.masksTree=o,t.flatCache=em(1e3)}function iG(e,t){e||="/";const o=t.flatCache.get(e);if(o)return o;const n=gC(e,t.masksTree);return t.flatCache.set(e,n),n}function sG(e,t,o,n,r){e||="/",n||="/";const i=t?`case\0${e}`:e;let l=r.singleCache.get(i);return l||(l=rl("/"),ev(t,new Uint16Array(6),{from:e},1,l,0),r.singleCache.set(i,l)),gC(n,l,o)}function lG(e,t,o=!1){const n=o?e:`nofuzz\0${e}`,r=t.matchCache.get(n);if(r!==void 0)return r;e||="/";let i;try{i=gC(e,t.segmentTree,o)}catch(l){if(l instanceof URIError)i=null;else throw l}return i&&(i.branch=L2(i.route)),t.matchCache.set(n,i),i}function cG(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function uG(e,t=!1,o){const n=rl(e.fullPath),r=new Uint16Array(6),i={},l={};let c=0;return ev(t,r,e,1,n,0,d=>{if(o?.(d,c),d.id in i&&di(),i[d.id]=d,c!==0&&d.path){const m=cG(d.fullPath);(!l[m]||d.fullPath.endsWith("/"))&&(l[m]=d)}c++}),es(n),{processedTree:{segmentTree:n,singleCache:em(1e3),matchCache:em(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:l}}function gC(e,t,o=!1){const n=e.split("/"),r=mG(e,n,t,o);if(!r)return null;const[i]=M2(e,n,r);return{route:r.node.route,rawParams:i}}function M2(e,t,o){const n=dG(o.node);let r=null;const i=Object.create(null);let l=o.extract?.part??0,c=o.extract?.node??0,d=o.extract?.path??0,m=o.extract?.segment??0;for(;c<n.length;l++,c++,d++,m++){const h=n[c];if(h.kind===as)break;if(h.kind===O2){m--,l--,d--;continue}const f=t[l],g=d;if(f&&(d+=f.length),h.kind===1){r??=o.node.fullPath.split("/");const v=r[m],y=h.prefix?.length??0;if(v.charCodeAt(y)===123){const S=h.suffix?.length??0,x=v.substring(y+2,v.length-S-1),_=f.substring(y,f.length-S);i[x]=decodeURIComponent(_)}else{const S=v.substring(1);i[S]=decodeURIComponent(f)}}else if(h.kind===3){if(o.skipped&1<<c){l--,d=g-1;continue}r??=o.node.fullPath.split("/");const v=r[m],y=h.prefix?.length??0,S=h.suffix?.length??0,x=v.substring(y+3,v.length-S-1),_=h.suffix||h.prefix?f.substring(y,f.length-S):f;_&&(i[x]=decodeURIComponent(_))}else if(h.kind===2){const v=h,y=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),S=decodeURIComponent(y);i["*"]=S,i._splat=S;break}}return o.rawParams&&Object.assign(i,o.rawParams),[i,{part:l,node:c,path:d,segment:m}]}function L2(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function dG(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function mG(e,t,o,n){if(e==="/"&&o.index)return{node:o.index,skipped:0};const r=!Jd(t),i=r&&e!=="/",l=t.length-(r?1:0),c=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,m=null;for(;c.length;){const h=c.pop(),{node:f,index:g,skipped:v,depth:y,statics:S,dynamics:x,optionals:_}=h;let{extract:C,rawParams:P}=h;if(f.kind===2&&f.route&&!Hh(m,h))continue;if(f.parse){if(!KA(e,t,h))continue;P=h.rawParams,C=h.extract}n&&f.route&&f.kind!==as&&Hh(d,h)&&(d=h);const E=g===l;if(E&&(f.route&&(!i||f.kind===as||f.kind===2)&&Hh(m,h)&&(m=h),!f.optional&&!f.wildcard&&!f.index&&!f.pathless))continue;const T=E?void 0:t[g];let A;if(E&&f.index){const k={node:f.index,index:g,skipped:v,depth:y+1,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P};let O=!0;if(f.index.parse&&(KA(e,t,k)||(O=!1)),O){if(!x&&!_&&!v&&fG(S,l))return k;Hh(m,k)&&(m=k)}}if(f.wildcard)for(let k=f.wildcard.length-1;k>=0;k--){const O=f.wildcard[k],{prefix:N,suffix:q}=O;if(!(N&&(E||!(O.caseSensitive?T:A??=T.toLowerCase()).startsWith(N)))){if(q){if(E)continue;const B=t.slice(g).join("/").slice(-q.length);if((O.caseSensitive?B:B.toLowerCase())!==q)continue}c.push({node:O,index:l,skipped:v,depth:y+1,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}}if(f.optional){const k=v|1<<y,O=y+1;for(let N=f.optional.length-1;N>=0;N--){const q=f.optional[N];c.push({node:q,index:g,skipped:k,depth:O,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}if(!E)for(let N=f.optional.length-1;N>=0;N--){const q=f.optional[N],{prefix:B,suffix:$}=q;if(B||$){const U=q.caseSensitive?T:A??=T.toLowerCase();if(B&&!U.startsWith(B)||$&&!U.endsWith($))continue}c.push({node:q,index:g+1,skipped:v,depth:O,statics:S,dynamics:x,optionals:_+Vh(l,g),extract:C,rawParams:P})}}if(!E&&f.dynamic&&T)for(let k=f.dynamic.length-1;k>=0;k--){const O=f.dynamic[k],{prefix:N,suffix:q}=O;if(N||q){const B=O.caseSensitive?T:A??=T.toLowerCase();if(N&&!B.startsWith(N)||q&&!B.endsWith(q))continue}c.push({node:O,index:g+1,skipped:v,depth:y+1,statics:S,dynamics:x+Vh(l,g),optionals:_,extract:C,rawParams:P})}if(!E&&f.staticInsensitive){const k=f.staticInsensitive.get(A??=T.toLowerCase());k&&c.push({node:k,index:g+1,skipped:v,depth:y+1,statics:S+Vh(l,g),dynamics:x,optionals:_,extract:C,rawParams:P})}if(!E&&f.static){const k=f.static.get(T);k&&c.push({node:k,index:g+1,skipped:v,depth:y+1,statics:S+Vh(l,g),dynamics:x,optionals:_,extract:C,rawParams:P})}if(f.pathless){const k=y+1;for(let O=f.pathless.length-1;O>=0;O--){const N=f.pathless[O];c.push({node:N,index:g,skipped:v,depth:k,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}}}if(m)return m;if(n&&d){let h=d.index;for(let g=0;g<d.index;g++)h+=t[g].length;const f=h===e.length?"/":e.slice(h);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(f),d}return null}function Vh(e,t){return 2**(e-t-1)}function fG(e,t){return e===2**(t-1)-1}function KA(e,t,o){let n,r;try{[n,r]=M2(e,t,o)}catch{return null}if(o.rawParams=n,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(n)===!1)return null}catch{}return!0}function Hh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===as)>(e.node.kind===as)||t.node.kind===as==(e.node.kind===as)&&t.depth>e.depth))):!0}function wp(e){return vC(e.filter(t=>t!==void 0).join("/"))}function vC(e){return e.replace(/\/{2,}/g,"/")}function N2(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function li(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function F2(e){return li(N2(e))}function Zp(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function hG(e,t,o){return Zp(e,o)===Zp(t,o)}function pG({base:e,to:t,trailingSlash:o="never",cache:n}){const r=t.startsWith("/"),i=!r&&t===".";let l;if(n){l=r?t:i?e:e+"\0"+t;const m=n.get(l);if(m)return m}let c;if(i)c=e.split("/");else if(r)c=t.split("/");else{for(c=e.split("/");c.length>1&&Jd(c)==="";)c.pop();const m=t.split("/");for(let h=0,f=m.length;h<f;h++){const g=m[h];g===""?h?h===f-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(Jd(c)===""?o==="never"&&c.pop():o==="always"&&c.push(""));const d=vC(c.join("/"))||"/";return l&&n&&n.set(l,d),d}function gG(e){const t=new Map(e.map(r=>[encodeURIComponent(r),r])),o=Array.from(t.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(o,"g");return r=>r.replace(n,i=>t.get(i)??i)}function l0(e,t,o){const n=t[e];return typeof n!="string"?n:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(r=>YA(r,o)).join("/"):YA(n,o)}function WA({path:e,params:t,decoder:o,...n}){let r=!1;const i=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:i,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:i,isMissingParams:r};const l=e.length;let c=0,d,m="";for(;c<l;){const h=c;d=I2(e,h,d);const f=d[5];if(c=f+1,h===f)continue;const g=d[0];if(g===0){m+="/"+e.substring(h,f);continue}if(g===2){const v=t._splat;i._splat=v,i["*"]=v;const y=e.substring(h,d[1]),S=e.substring(d[4],f);if(!v){r=!0,(y||S)&&(m+="/"+y+S);continue}const x=l0("_splat",t,o);m+="/"+y+x+S;continue}if(g===1){const v=e.substring(d[2],d[3]);!r&&!(v in t)&&(r=!0),i[v]=t[v];const y=e.substring(h,d[1]),S=e.substring(d[4],f),x=l0(v,t,o)??"undefined";m+="/"+y+x+S;continue}if(g===3){const v=e.substring(d[2],d[3]),y=t[v];if(y==null)continue;i[v]=y;const S=e.substring(h,d[1]),x=e.substring(d[4],f),_=l0(v,t,o)??"";m+="/"+S+_+x;continue}}return e.endsWith("/")&&(m+="/"),{usedParams:i,interpolatedPath:m||"/",isMissingParams:r}}function YA(e,t){const o=encodeURIComponent(e);return t?.(o)??o}function B2(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function An(e){return e?.isNotFound===!0}function vG(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const bG="tsr-scroll-restoration-v1_3";function yG(){const e=vG();if(!e)return null;let t={};try{const n=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");Wc(n)&&(t=n)}catch{}return{get state(){return t},set:n=>{t=rs(n,t)||t},persist:()=>{try{e.setItem(bG,JSON.stringify(t))}catch{}}}}const ZA=yG(),SG=e=>e.state.__TSR_key||e.href;function _G(e){const t=[];let o;for(;o=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(o.children,e)+1})`),e=o;return`${t.reverse().join(" > ")}`.toLowerCase()}let Gh=!1;const id="window",QA="data-scroll-restoration-id";function wG(e,t){if(!ZA)return;const o=ZA;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!o)return;e.isScrollRestorationSetup=!0,Gh=!1;const n=e.options.getScrollRestorationKey||SG,r=new Map;window.history.scrollRestoration="manual";const i=c=>{if(!(Gh||!e.isScrollRestoring))if(c.target===document||c.target===window)r.set(id,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;r.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||r.size===0||!o)return;const d=o.state[c]||={};for(const[m,h]of r){let f;if(m===id)f=id;else if(m.isConnected){const g=m.getAttribute(QA);f=g?`[${QA}="${g}"]`:_G(m)}f&&(d[f]=h)}};document.addEventListener("scroll",i,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?n(c.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{l(n(e.stores.resolvedLocation.get()??e.stores.location.get())),o.persist()}),e.subscribe("onRendered",c=>{const d=n(c.toLocation),m=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors;if(r.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Gh=!0;try{const f=e.isScrollRestoring?o.state[d]:void 0;let g=!1;if(f)for(const v in f){const y=f[v];if(!Wc(y))continue;const{scrollX:S,scrollY:x}=y;if(!(!Number.isFinite(S)||!Number.isFinite(x))){if(v===id)window.scrollTo({top:x,left:S,behavior:m}),g=!0;else if(v){let _;try{_=document.querySelector(v)}catch{continue}_&&(_.scrollLeft=S,_.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const S=document.getElementById(v);S&&S.scrollIntoView(y)}}else{const y={top:0,left:0,behavior:m};if(window.scrollTo(y),h)for(const S of h){if(S===id)continue;const x=typeof S=="function"?S():document.querySelector(S);x&&x.scrollTo(y)}}}}finally{Gh=!1}e.isScrollRestoring&&o.set(f=>(f[d]||={},f))}})}function CG(e,t=String){const o=new URLSearchParams;for(const n in e){const r=e[n];r!==void 0&&o.set(n,t(r))}return o.toString()}function c0(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function xG(e){const t=new URLSearchParams(e),o=Object.create(null);for(const[n,r]of t.entries()){const i=o[n];i==null?o[n]=c0(r):Array.isArray(i)?i.push(c0(r)):o[n]=[i,c0(r)]}return o}const EG=PG(JSON.parse),TG=RG(JSON.stringify,JSON.parse);function PG(e){return t=>{t[0]==="?"&&(t=t.substring(1));const o=xG(t);for(const n in o){const r=o[n];if(typeof r=="string")try{o[n]=e(r)}catch{}}return o}}function RG(e,t){const o=typeof t=="function";function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(o&&typeof r=="string")try{return t(r),e(r)}catch{}return r}return r=>{const i=CG(r,n);return i?`?${i}`:""}}const sl="__root__";function is(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const o=new Response(null,{status:e.statusCode,headers:t});if(o.options=e,e.throw)throw o;return o}function Xn(e){return e instanceof Response&&!!e.options}function AG(e){return{input:({url:t})=>{for(const o of e)t=d_(o,t);return t},output:({url:t})=>{for(let o=e.length-1;o>=0;o--)t=z2(e[o],t);return t}}}function kG(e){const t=F2(e.basepath),o=`/${t}`,n=`${o}/`,r=e.caseSensitive?o:o.toLowerCase(),i=e.caseSensitive?n:n.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===r?l.pathname="/":c.startsWith(i)&&(l.pathname=l.pathname.slice(o.length)),l},output:({url:l})=>(l.pathname=wp(["/",t,l.pathname]),l)}}function d_(e,t){const o=e?.input?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function z2(e,t){const o=e?.output?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function DG(e,t){const{createMutableStore:o,createReadonlyStore:n,batch:r,init:i}=t,l=new Map,c=new Map,d=new Map,m=o(e.status),h=o(e.loadedAt),f=o(e.isLoading),g=o(e.isTransitioning),v=o(e.location),y=o(e.resolvedLocation),S=o(e.statusCode),x=o(e.redirect),_=o([]),C=o([]),P=o([]),E=n(()=>u0(l,_.get())),T=n(()=>u0(c,C.get())),A=n(()=>u0(d,P.get())),k=n(()=>_.get()[0]),O=n(()=>_.get().some(Z=>l.get(Z)?.get().status==="pending")),N=n(()=>({locationHref:v.get().href,resolvedLocationHref:y.get()?.href,status:m.get()})),q=n(()=>({status:m.get(),loadedAt:h.get(),isLoading:f.get(),isTransitioning:g.get(),matches:E.get(),location:v.get(),resolvedLocation:y.get(),statusCode:S.get(),redirect:x.get()})),B=em(64);function $(Z){let te=B.get(Z);return te||(te=n(()=>{const le=_.get();for(const Q of le){const M=l.get(Q);if(M&&M.routeId===Z)return M.get()}}),B.set(Z,te)),te}const U={status:m,loadedAt:h,isLoading:f,isTransitioning:g,location:v,resolvedLocation:y,statusCode:S,redirect:x,matchesId:_,pendingIds:C,cachedIds:P,matches:E,pendingMatches:T,cachedMatches:A,firstId:k,hasPending:O,matchRouteDeps:N,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:q,getRouteMatchStore:$,setMatches:W,setPending:ae,setCached:H};W(e.matches),i?.(U);function W(Z){d0(Z,l,_,o,r)}function ae(Z){d0(Z,c,C,o,r)}function H(Z){d0(Z,d,P,o,r)}return U}function u0(e,t){const o=[];for(const n of t){const r=e.get(n);r&&o.push(r.get())}return o}function d0(e,t,o,n,r){const i=e.map(c=>c.id),l=new Set(i);r(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const m=n(c);m.routeId=c.routeId,t.set(c.id,m);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}nG(o.get(),i)||o.set(i)})}const m_=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},OG=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),tv=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ll=(e,t,o=!0)=>{const n={...e.router.options.context??{}},r=o?t:t-1;for(let i=0;i<=r;i++){const l=e.matches[i];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(n,c.__routeContext,c.__beforeLoadContext)}return n},JA=(e,t)=>{if(!e.matches.length)return;const o=t.routeId,n=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),r=n>=0?n:0;let i=o?e.matches.findIndex(l=>l.routeId===o):e.firstBadMatchIndex??e.matches.length-1;i<0&&(i=r);for(let l=i;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return o?i:r},ss=(e,t,o)=>{if(!(!Xn(o)&&!An(o)))throw Xn(o)&&o.redirectHandled&&!o.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=o,e.updateMatch(t.id,n=>({...n,status:Xn(o)?"redirected":An(o)?"notFound":n.status==="pending"?"success":n.status,context:ll(e,t.index),isFetching:!1,error:o})),An(o)&&!o.routeId&&(o.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Xn(o)&&(e.rendered=!0,o.options._fromLocation=e.location,o.redirectHandled=!0,o=e.router.resolveRedirect(o))),o},j2=(e,t)=>{const o=e.router.getMatch(t);return!!(!o||o._nonReactive.dehydrated)},XA=(e,t,o)=>{const n=ll(e,o);e.updateMatch(t,r=>({...r,context:n}))},sd=(e,t,o,n)=>{const{id:r,routeId:i}=e.matches[t],l=e.router.looseRoutesById[i];if(o instanceof Promise)throw o;o.routerCode=n,e.firstBadMatchIndex??=t,ss(e,e.router.getMatch(r),o);try{l.options.onError?.(o)}catch(c){o=c,ss(e,e.router.getMatch(r),o)}e.updateMatch(r,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Xn(o)&&!An(o)&&(e.serialError??=o)},U2=(e,t,o,n)=>{if(n._nonReactive.pendingTimeout!==void 0)return;const r=o.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!tv(e,t)&&(o.options.loader||o.options.beforeLoad||q2(o))&&typeof r=="number"&&r!==1/0&&(o.options.pendingComponent??e.router.options?.defaultPendingComponent)){const i=setTimeout(()=>{m_(e)},r);n._nonReactive.pendingTimeout=i}},IG=(e,t,o)=>{const n=e.router.getMatch(t);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;U2(e,t,o,n);const r=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&ss(e,i,i.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(r):r()},MG=(e,t,o,n)=>{const r=e.router.getMatch(t);let i=r._nonReactive.loadPromise;r._nonReactive.loadPromise=Yc(()=>{i?.resolve(),i=void 0});const{paramsError:l,searchError:c}=r;l&&sd(e,o,l,"PARSE_PARAMS"),c&&sd(e,o,c,"VALIDATE_SEARCH"),U2(e,t,n,r);const d=new AbortController;let m=!1;const h=()=>{m||(m=!0,e.updateMatch(t,E=>({...E,isFetching:"beforeLoad",fetchCount:E.fetchCount+1,abortController:d})))},f=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,E=>({...E,isFetching:!1}))};if(!n.options.beforeLoad){e.router.batch(()=>{h(),f()});return}r._nonReactive.beforeLoadPromise=Yc();const g={...ll(e,o,!1),...r.__routeContext},{search:v,params:y,cause:S}=r,x=tv(e,t),_={search:v,abortController:d,params:y,preload:x,context:g,location:e.location,navigate:E=>e.router.navigate({...E,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":S,matches:e.matches,routeId:n.id,...e.router.options.additionalContext},C=E=>{if(E===void 0){e.router.batch(()=>{h(),f()});return}(Xn(E)||An(E))&&(h(),sd(e,o,E,"BEFORE_LOAD")),e.router.batch(()=>{h(),e.updateMatch(t,T=>({...T,__beforeLoadContext:E})),f()})};let P;try{if(P=n.options.beforeLoad(_),Xd(P))return h(),P.catch(E=>{sd(e,o,E,"BEFORE_LOAD")}).then(C)}catch(E){h(),sd(e,o,E,"BEFORE_LOAD")}C(P)},LG=(e,t)=>{const{id:o,routeId:n}=e.matches[t],r=e.router.looseRoutesById[n],i=()=>c(),l=()=>MG(e,o,t,r),c=()=>{if(j2(e,o))return;const d=IG(e,o,r);return Xd(d)?d.then(l):l()};return i()},NG=(e,t,o)=>{const n=e.router.getMatch(t);if(!n||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const r={ssr:e.router.options.ssr,matches:e.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([o.options.head?.(r),o.options.scripts?.(r),o.options.headers?.(r)]).then(([i,l,c])=>({meta:i?.meta,links:i?.links,headScripts:i?.scripts,headers:c,scripts:l,styles:i?.styles}))},$2=(e,t,o,n,r)=>{const i=t[n-1],{params:l,loaderDeps:c,abortController:d,cause:m}=e.router.getMatch(o),h=ll(e,n),f=tv(e,o);return{params:l,deps:c,preload:!!f,parentMatchPromise:i,abortController:d,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:f?"preload":m,route:r,...e.router.options.additionalContext}},ek=async(e,t,o,n,r)=>{try{const i=e.router.getMatch(o);try{(!(A2??e.router.isServer)||i.ssr===!0)&&tm(r);const l=r.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.($2(e,t,o,n,r)),m=!!c&&Xd(d);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(o,f=>({...f,isFetching:"loader"})),c){const f=m?await d:d;ss(e,e.router.getMatch(o),f),f!==void 0&&e.updateMatch(o,g=>({...g,loaderData:f}))}r._lazyPromise&&await r._lazyPromise;const h=i._nonReactive.minPendingPromise;h&&await h,r._componentsPromise&&await r._componentsPromise,e.updateMatch(o,f=>({...f,error:void 0,context:ll(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(o,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:ll(e,n)}));return}const d=i._nonReactive.minPendingPromise;d&&await d,An(l)&&await r.options.notFoundComponent?.preload?.(),ss(e,e.router.getMatch(o),l);try{r.options.onError?.(l)}catch(m){c=m,ss(e,e.router.getMatch(o),m)}!Xn(c)&&!An(c)&&await tm(r,["errorComponent"]),e.updateMatch(o,m=>({...m,error:c,context:ll(e,n),status:"error",isFetching:!1}))}}catch(i){const l=e.router.getMatch(o);l&&(l._nonReactive.loaderPromise=void 0),ss(e,l,i)}},FG=async(e,t,o)=>{async function n(v,y,S,x,_){const C=Date.now()-y.updatedAt,P=v?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,E=_.options.shouldReload,T=typeof E=="function"?E($2(e,t,r,o,_)):E,{status:A,invalid:k}=x,O=C>=P&&(!!e.forceStaleReload||x.cause==="enter"||S!==void 0&&S!==x.id);l=A==="success"&&(k||(T??O)),v&&_.options.preload===!1||(l&&!e.sync&&h?(c=!0,(async()=>{try{await ek(e,t,r,o,_);const N=e.router.getMatch(r);N._nonReactive.loaderPromise?.resolve(),N._nonReactive.loadPromise?.resolve(),N._nonReactive.loaderPromise=void 0,N._nonReactive.loadPromise=void 0}catch(N){Xn(N)&&await e.router.navigate(N.options)}})()):A!=="success"||l?await ek(e,t,r,o,_):XA(e,r,o))}const{id:r,routeId:i}=e.matches[o];let l=!1,c=!1;const d=e.router.looseRoutesById[i],m=d.options.loader,h=((typeof m=="function"?void 0:m?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(j2(e,r)){if(!e.router.getMatch(r))return e.matches[o];XA(e,r,o)}else{const v=e.router.getMatch(r),y=e.router.stores.matchesId.get()[o],S=(y&&e.router.stores.matchStores.get(y)||null)?.routeId===i?y:e.router.stores.matches.get().find(_=>_.routeId===i)?.id,x=tv(e,r);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&h)return v;await v._nonReactive.loaderPromise;const _=e.router.getMatch(r),C=_._nonReactive.error||_.error;C&&ss(e,_,C),_.status==="pending"&&await n(x,v,S,_,d)}else{const _=x&&!e.router.stores.matchStores.has(r),C=e.router.getMatch(r);C._nonReactive.loaderPromise=Yc(),_!==C.preload&&e.updateMatch(r,P=>({...P,preload:_})),await n(x,v,S,C,d)}}const f=e.router.getMatch(r);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const g=c?f.isFetching:!1;return g!==f.isFetching||f.invalid!==!1?(e.updateMatch(r,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(r)):f};async function tk(e){const t=e,o=[];OG(t.router)&&m_(t);let n;for(let g=0;g<t.matches.length;g++){try{const v=LG(t,g);Xd(v)&&await v}catch(v){if(Xn(v))throw v;if(An(v))n=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const r=t.firstBadMatchIndex??t.matches.length,i=n&&!t.preload?JA(t,n):void 0,l=n&&t.preload?0:i!==void 0?Math.min(i+1,r):r;let c,d;for(let g=0;g<l;g++)o.push(FG(t,o,g));try{await Promise.all(o)}catch{const g=await Promise.allSettled(o);for(const v of g){if(v.status!=="rejected")continue;const y=v.reason;if(Xn(y))throw y;An(y)?c??=y:d??=y}if(d!==void 0)throw d}const m=c??(n&&!t.preload?n:void 0);let h=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!m&&n&&t.preload)return t.matches;if(m){const g=JA(t,m);g===void 0&&di();const v=t.matches[g],y=t.router.looseRoutesById[v.routeId],S=t.router.options?.defaultNotFoundComponent;!y.options.notFoundComponent&&S&&(y.options.notFoundComponent=S),m.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,_=>({..._,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),h=g,await tm(y,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await tm(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:v,routeId:y}=t.matches[g],S=t.router.looseRoutesById[y];try{const x=NG(t,v,S);if(x){const _=await x;t.updateMatch(v,C=>({...C,..._}))}}catch(x){console.error(`Error executing head for route ${y}:`,x)}}const f=m_(t);if(Xd(f)&&await f,m)throw m;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ok(e,t){const o=t.map(n=>e.options[n]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function tm(e,t=Cp){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(n=>{const{id:r,...i}=n.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const o=()=>e._componentsLoaded?void 0:t===Cp?(()=>{if(e._componentsPromise===void 0){const n=ok(e,Cp);n?e._componentsPromise=n.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ok(e,t);return e._lazyPromise?e._lazyPromise.then(o):o()}function q2(e){for(const t of Cp)if(e.options[t]?.preload)return!0;return!1}const Cp=["component","errorComponent","pendingComponent","notFoundComponent"];var us="__TSR_index",nk="popstate",rk="beforeunload";function BG(e){let t=e.getLocation();const o=new Set,n=l=>{t=e.getLocation(),o.forEach(c=>c({location:t,action:l}))},r=l=>{e.notifyOnIndexChange??!0?n(l):t=e.getLocation()},i=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const m=e.getBlockers?.()??[],h=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&m.length&&h)for(const f of m){const g=Qp(d.path,d.state);if(await f.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:o,subscribe:l=>(o.add(l),()=>{o.delete(l)}),push:(l,c,d)=>{const m=t.state[us];c=ak(m+1,c),i({task:()=>{e.pushState(l,c),n({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const m=t.state[us];c=ak(m,c),i({task:()=>{e.replaceState(l,c),n({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{i({task:()=>{e.go(l),r({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{i({task:()=>{e.back(l?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{i({task:()=>{e.forward(l?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[us]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(m=>m!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:n}}function ak(e,t){t||(t={});const o=bC();return{...t,key:o,__TSR_key:o,[us]:e}}function zG(e){const t=typeof document<"u"?window:void 0,o=t.history.pushState,n=t.history.replaceState;let r=[];const i=()=>r,l=O=>r=O,c=(O=>O),d=(()=>Qp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const O=bC();t.history.replaceState({[us]:0,key:O,__TSR_key:O},"")}let m=d(),h,f=!1,g=!1,v=!1,y=!1;const S=()=>m;let x,_;const C=()=>{x&&(k._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),k._ignoreSubscribers=!1,x=void 0,_=void 0,h=void 0)},P=(O,N,q)=>{const B=c(N);_||(h=m),m=Qp(N,q),x={href:B,state:q,isPush:x?.isPush||O==="push"},_||(_=Promise.resolve().then(()=>C()))},E=O=>{m=d(),k.notify({type:O})},T=async()=>{if(g){g=!1;return}const O=d(),N=O.state[us]-m.state[us],q=N===1,B=N===-1,$=!q&&!B||f;f=!1;const U=$?"GO":B?"BACK":"FORWARD",W=$?{type:"GO",index:N}:{type:B?"BACK":"FORWARD"};if(v)v=!1;else{const ae=i();if(typeof document<"u"&&ae.length){for(const H of ae)if(await H.blockerFn({currentLocation:m,nextLocation:O,action:U})){g=!0,t.history.go(1),k.notify(W);return}}}m=d(),k.notify(W)},A=O=>{if(y){y=!1;return}let N=!1;const q=i();if(typeof document<"u"&&q.length)for(const B of q){const $=B.enableBeforeUnload??!0;if($===!0){N=!0;break}if(typeof $=="function"&&$()===!0){N=!0;break}}if(N)return O.preventDefault(),O.returnValue=""},k=BG({getLocation:S,getLength:()=>t.history.length,pushState:(O,N)=>P("push",O,N),replaceState:(O,N)=>P("replace",O,N),back:O=>(O&&(v=!0),y=!0,t.history.back()),forward:O=>{O&&(v=!0),y=!0,t.history.forward()},go:O=>{f=!0,t.history.go(O)},createHref:O=>c(O),flush:C,destroy:()=>{t.history.pushState=o,t.history.replaceState=n,t.removeEventListener(rk,A,{capture:!0}),t.removeEventListener(nk,T)},onBlocked:()=>{h&&m!==h&&(m=h)},getBlockers:i,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(rk,A,{capture:!0}),t.addEventListener(nk,T),t.history.pushState=function(...O){const N=o.apply(t.history,O);return k._ignoreSubscribers||E("PUSH"),N},t.history.replaceState=function(...O){const N=n.apply(t.history,O);return k._ignoreSubscribers||E("REPLACE"),N},k}function jG(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Qp(e,t){const o=jG(e),n=o.indexOf("#"),r=o.indexOf("?"),i=bC();return{href:o,pathname:o.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:o.length),hash:n>-1?o.substring(n):"",search:r>-1?o.slice(r,n===-1?void 0:n):"",state:t||{[us]:0,key:i,__TSR_key:i}}}function bC(){return(Math.random()+1).toString(36).substring(7)}function Fc(e,t){const o=t,n=e;return{fromLocation:o,toLocation:n,pathChanged:o?.pathname!==n.pathname,hrefChanged:o?.href!==n.href,hashChanged:o?.hash!==n.hash}}var UG=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const n=this.options,r=this.basepath??n?.basepath??"/",i=this.basepath===void 0,l=n?.rewrite;if(this.options={...n,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=gG(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=zG()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=em(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=DG(qG(this.latestLocation),h),wG(this)}let c=!1;const d=this.options.basepath??"/",m=this.options.rewrite;if(i||r!==d||l!==m){this.basepath=d;const h=[],f=F2(d);f&&f!=="/"&&h.push(kG({basepath:d})),m&&h.push(m),this.rewrite=h.length===0?void 0:h.length===1?h[0]:AG(h),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=uG(this.routeTree,this.options.caseSensitive,(n,r)=>{n.init({originalIndex:r})});return this.options.routeMasks&&aG(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,n)=>{const r={eventType:o,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{this.subscribers.forEach(n=>{n.eventType===o.type&&n.fn(o)})},this.parseLocation=(o,n)=>{const r=({pathname:d,search:m,hash:h,href:f,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const _=this.options.parseSearch(m),C=this.options.stringifySearch(_);return{href:d+C+h,publicHref:d+C+h,pathname:ad(d).path,external:!1,searchStr:C,search:Hs(n?.search,_),hash:ad(h.slice(1)).path,state:nl(n?.state,g)}}const v=new URL(f,this.origin),y=d_(this.rewrite,v),S=this.options.parseSearch(y.search),x=this.options.stringifySearch(S);return y.search=x,{href:y.href.replace(y.origin,""),publicHref:f,pathname:ad(y.pathname).path,external:!!this.rewrite&&y.origin!==this.origin,searchStr:x,search:Hs(n?.search,S),hash:ad(y.hash.slice(1)).path,state:nl(n?.state,g)}},i=r(o),{__tempLocation:l,__tempKey:c}=i.state;if(l&&(!c||c===this.tempLocationKey)){const d=r(l);return d.state.key=i.state.key,d.state.__TSR_key=i.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:i}}return i},this.resolvePathWithBase=(o,n)=>pG({base:o,to:n.includes("//")?vC(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,n,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:n},r):this.matchRoutesInternal(o,n),this.getMatchedRoutes=o=>VG({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const n=this.getMatch(o);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const n=this.stores.matchStores.get(o)?.get();n&&(n.status==="pending"||n.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const n=(i={})=>{const l=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);i.from;const d=i.unsafeRelative==="path"?l.pathname:i.from??c.fullPath,m=i.to?`${i.to}`:void 0,h=c.search,f=Object.assign(Object.create(null),c.params),g=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=m?this.resolvePathWithBase(g,m):g,y=i.params===!1||i.params===null?Object.create(null):(i.params??!0)===!0?f:Object.assign(f,rs(i.params,f)),S=this.routesByPath[li(v)];let x;if(S)x=this.getRouteBranch(S);else if(v.includes("$"))x=[];else{const B=this.getMatchedRoutes(v);x=B.matchedRoutes,this.options.notFoundRoute&&(!B.foundRoute||B.foundRoute.path!=="/"&&B.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&D2(y))for(const B of x){const $=B.options.params?.stringify??B.options.stringifyParams;if($)try{Object.assign(y,$(y))}catch{}}const _=o.leaveParams?v:ad(WA({path:v,params:y,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=h;if(o._includeValidateSearch&&this.options.search?.strict){const B={};x.forEach($=>{if($.options.validateSearch)try{Object.assign(B,xp($.options.validateSearch,{...B,...C}))}catch{}}),C=B}C=HG({search:C,dest:i,destRoutes:x,_includeValidateSearch:o._includeValidateSearch}),C=Hs(h,C);const P=this.options.stringifySearch(C),E=i.hash===!0?l.hash:i.hash?rs(i.hash,l.hash):void 0,T=E?`#${E}`:"";let A=i.state===!0?l.state:i.state?rs(i.state,l.state):{};A=nl(l.state,A);const k=`${_}${P}${T}`;let O,N,q=!1;if(this.rewrite){const B=new URL(k,this.origin),$=z2(this.rewrite,B);O=B.href.replace(B.origin,""),$.origin!==this.origin?(N=$.href,q=!0):N=$.pathname+$.search+$.hash}else O=oG(k),N=O;return{publicHref:N,href:O,pathname:_,search:C,searchStr:P,state:A,hash:E??"",external:q,unmaskOnReload:i.unmaskOnReload}},r=(i={},l)=>{const c=n(i);let d=l?n(l):void 0;if(!d){const m=Object.create(null);if(this.options.routeMasks){const h=iG(c.pathname,this.processedTree);if(h){Object.assign(m,h.rawParams);const{from:f,params:g,...v}=h.route,y=g===!1||g===null?Object.create(null):(g??!0)===!0?m:Object.assign(m,rs(g,m));l={from:o.from,...v,params:y},d=n(l)}}}return d&&(c.maskedLocation=d),c};return o.mask?r(o,{from:o.from,...o.mask}):r(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:n,...r})=>{const i=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(h=>{r.state[h]=this.latestLocation.state[h]});const m=il(r.state,this.latestLocation.state);return d.forEach(h=>{delete r.state[h]}),m},l=li(this.latestLocation.href)===li(r.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Yc(()=>{c?.resolve(),c=void 0}),l&&i())this.load();else{let{maskedLocation:d,hashScrollIntoView:m,...h}=r;d&&(h={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,this.history[r.replace?"replace":"push"](h.publicHref,h.state,{ignoreBlocker:n})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:n,hashScrollIntoView:r,viewTransition:i,ignoreBlocker:l,href:c,...d}={})=>{if(c){const f=this.history.location.state.__TSR_index,g=Qp(c,{__TSR_index:o?f:f+1}),v=new URL(g.pathname,this.origin);d.to=d_(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const m=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const h=this.commitLocation({...m,viewTransition:i,replace:o,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:o,reloadDocument:n,href:r,publicHref:i,...l})=>{let c=!1;if(r)try{new URL(`${r}`),c=!0}catch{}if(c&&!n&&(n=!0),n){if(o!==void 0||!r){const m=this.buildLocation({to:o,...l});r=r??m.publicHref,i=i??m.publicHref}const d=!c&&i?i:r;if(Yp(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const h of m)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:r,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),n=this.stores.cachedMatches.get().filter(r=>!o.some(i=>i.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(n)})},this.load=async o=>{let n,r,i;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,h=Fc(m,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...h}),this.emit({type:"onBeforeLoad",...h}),await tk({router:this,sync:o?.sync,forceStaleReload:l.href===m.href,matches:this.stores.pendingMatches.get(),location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let f=null,g=null,v=null,y=null;this.batch(()=>{const S=this.stores.pendingMatches.get(),x=S.length,_=this.stores.matches.get();f=x?_.filter(E=>!this.stores.pendingMatchStores.has(E.id)):null;const C=new Set;for(const E of this.stores.pendingMatchStores.values())E.routeId&&C.add(E.routeId);const P=new Set;for(const E of this.stores.matchStores.values())E.routeId&&P.add(E.routeId);g=x?_.filter(E=>!C.has(E.routeId)):null,v=x?S.filter(E=>!P.has(E.routeId)):null,y=x?S.filter(E=>P.has(E.routeId)):_,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(S),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...f.filter(E=>E.status!=="error"&&E.status!=="notFound"&&E.status!=="redirected")]),this.clearExpiredCache())});for(const[S,x]of[[g,"onLeave"],[v,"onEnter"],[y,"onStay"]])if(S)for(const _ of S)this.looseRoutesById[_.routeId].options[x]?.(_)})})}})}catch(m){Xn(m)?(n=m,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):An(m)&&(r=m);const h=n?n.status:r?404:this.stores.matches.get().some(f=>f.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(h),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=o=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof n.types=="function"?n.types(Fc(i,l)):n.types;if(c===!1){o();return}r={update:o,types:c}}else r=o;document.startViewTransition(r)}else o()},this.updateMatch=(o,n)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(o);if(r){r.set(n);return}const i=this.stores.matchStores.get(o);if(i){i.set(n);return}const l=this.stores.cachedMatchStores.get(o);if(l){const c=n(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(d=>d.filter(m=>m!==o)):l.set(c)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const n=r=>o?.filter?.(r)??!0?{...r,invalid:!0,...o?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(n)),this.stores.setCached(this.stores.cachedMatches.get().map(n)),this.stores.setPending(this.stores.pendingMatches.get().map(n))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const n=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const r=o.options._builtLocation??this.buildLocation(o.options),i=this.getParsedLocationHref(r);o.options.href=i,o.headers.set("Location",i)}else if(n)try{const r=new URL(n);if(this.origin&&r.origin===this.origin){const i=r.pathname+r.search+r.hash;o.options.href=i,o.headers.set("Location",i)}}catch{}if(o.options.href&&!o.options._builtLocation&&Yp(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const n=o?.filter;n!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!n(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const l=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:o-r.updatedAt>=l};this.clearCache({filter:n})},this.loadRouteChunk=tm,this.preloadRoute=async o=>{const n=o._builtLocation??this.buildLocation(o);let r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:o});const i=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...i,...this.stores.cachedIds.get()]),c=r.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return r=await tk({router:this,matches:r,location:n,preload:!0,updateMatch:(d,m)=>{i.has(d)?r=r.map(h=>h.id===d?m(h):h):this.updateMatch(d,m)}}),r}catch(d){if(Xn(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:n});An(d)||console.error(d);return}},this.matchRoute=(o,n)=>{const r={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},i=this.buildLocation(r);if(n?.pending&&this.stores.status.get()!=="pending")return!1;const l=(n?.pending===void 0?!this.stores.isLoading.get():n.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=sG(i.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,l.pathname,this.processedTree);return!c||o.params&&!il(c.rawParams,o.params,{partial:!0})?!1:n?.includeSearch??!0?il(l.search,i.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??TG,parseSearch:e.parseSearch??EG,protocolAllowlist:e.protocolAllowlist??tG}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:o}){this.routesById=e,this.routesByPath=t,this.processedTree=o;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=L2(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const o=this.getMatchedRoutes(e.pathname),{foundRoute:n,routeParams:r}=o;let{matchedRoutes:i}=o,l=!1;(n?n.path!=="/"&&r["**"]:li(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:l=!0);const c=l?KG(this.options.notFoundMode,i):void 0,d=new Array(i.length),m=new Map;for(const h of this.stores.matchStores.values())h.routeId&&m.set(h.routeId,h.get());for(let h=0;h<i.length;h++){const f=i[h],g=d[h-1];let v,y,S;{const $=g?.search??e.search,U=g?._strictSearch??void 0;try{const W=xp(f.options.validateSearch,{...$})??void 0;v={...$,...W},y={...U,...W},S=void 0}catch(W){let ae=W;if(W instanceof Jp||(ae=new Jp(W.message,{cause:W})),t?.throwOnError)throw ae;v=$,y={},S=ae}}const x=f.options.loaderDeps?.({search:v})??"",_=x?JSON.stringify(x):"",{interpolatedPath:C,usedParams:P}=WA({path:f.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),E=f.id+C+_,T=this.getMatch(E),A=m.get(f.id),k=T?._strictParams??P;let O;if(!T)try{ik(f,k)}catch($){if(An($)||Xn($)?O=$:O=new $G($.message,{cause:$}),t?.throwOnError)throw O}Object.assign(r,k);const N=A?"stay":"enter";let q;if(T)q={...T,cause:N,params:A?.params??r,_strictParams:k,search:Hs(A?A.search:T.search,v),_strictSearch:y};else{const $=f.options.loader||f.options.beforeLoad||f.lazyFn||q2(f)?"pending":"success";q={id:E,ssr:f.options.ssr,index:h,routeId:f.id,params:A?.params??r,_strictParams:k,pathname:C,updatedAt:Date.now(),search:A?Hs(A.search,v):v,_strictSearch:y,searchError:void 0,status:$,isFetching:!1,error:void 0,paramsError:O,__routeContext:void 0,_nonReactive:{loadPromise:Yc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:A?nl(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:f.options.staticData||{},fullPath:f.fullPath}}t?.preload||(q.globalNotFound=c===f.id),q.searchError=S;const B=this.getParentContext(g);q.context={...B,...q.__routeContext,...q.__beforeLoadContext},d[h]=q}for(let h=0;h<d.length;h++){const f=d[h],g=this.looseRoutesById[f.routeId],v=this.getMatch(f.id),y=m.get(f.routeId);if(f.params=y?Hs(y.params,r):r,!v){const S=d[h-1],x=this.getParentContext(S);if(g.options.context){const _={deps:f.loaderDeps,params:f.params,context:x??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:f.cause,abortController:f.abortController,preload:!!f.preload,matches:d,routeId:g.id};f.__routeContext=g.options.context(_)??void 0}f.context={...x,...f.__routeContext,...f.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:o}=this.getMatchedRoutes(e.pathname),n=Jd(t),r={...e.search};for(const m of t)try{Object.assign(r,xp(m.options.validateSearch,r))}catch{}const i=Jd(this.stores.matchesId.get()),l=i&&this.stores.matchStores.get(i)?.get(),c=l&&l.routeId===n.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const m=Object.assign(Object.create(null),o);for(const h of t)try{ik(h,m)}catch{}d=m}return{matchedRoutes:t,fullPath:n.fullPath,search:r,params:d}}},Jp=class extends Error{},$G=class extends Error{};function qG(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function xp(e,t){if(e==null)return{};if("~standard"in e){const o=e["~standard"].validate(t);if(o instanceof Promise)throw new Jp("Async validation not supported");if(o.issues)throw new Jp(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function VG({pathname:e,routesById:t,processedTree:o}){const n=Object.create(null),r=li(e);let i;const l=lG(r,o,!0);return l&&(i=l.route,Object.assign(n,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:n,foundRoute:i}}function HG({search:e,dest:t,destRoutes:o,_includeValidateSearch:n}){return GG(o)(e,t,n??!1)}function GG(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of e){if("search"in r.options)r.options.search?.middlewares&&t.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const i=({search:l,next:c})=>{let d=l;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(d=r.options.preSearchFilters.reduce((h,f)=>f(h),l));const m=c(d);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((h,f)=>f(h),m):m};t.middlewares.push(i)}if(r.options.validateSearch){const i=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...xp(r.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(i)}}const o=({search:r})=>{const i=t.dest;return i.search?i.search===!0?r:rs(i.search,r):{}};t.middlewares.push(o);const n=(r,i,l)=>{if(r>=l.length)return i;const c=l[r];return c({search:i,next:m=>n(r+1,m,l)})};return function(i,l,c){return t.dest=l,t._includeValidateSearch=c,n(0,i,t.middlewares)}}function KG(e,t){if(e!=="root")for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.children)return n.id}return sl}function ik(e,t){const o=e.options.params?.parse??e.options.parseParams;if(o){const n=o(t);if(n===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,n)}}const WG="Error preloading route! ☝️";var V2=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const o=this.options,n=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=sl:this.parentRoute||di();let r=n?sl:o?.path;r&&r!=="/"&&(r=N2(r));const i=o?.id||r;let l=n?sl:wp([this.parentRoute.id==="__root__"?"":this.parentRoute.id,i]);r==="__root__"&&(r="/"),l!=="__root__"&&(l=wp(["/",l]));const c=l==="__root__"?"/":wp([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=c,this._to=li(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>is({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},YG=class{constructor({id:e}){this.notFound=t=>B2({routeId:this.id,...t}),this.redirect=t=>is({from:this.id,...t}),this.id=e}},ZG=class extends V2{constructor(e){super(e)}};function QG(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),o=t.state.__hashScrollIntoViewOptions??!0;if(o&&t.hash!==""){const n=document.getElementById(t.hash);n&&n.scrollIntoView(o)}}}function yC(e){const t=e.errorComponent??SC;return R.jsx(JG,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:o,reset:n})=>o?D.createElement(t,{error:o,reset:n}):e.children})}var JG=class extends D.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const o=e.getResetKey();return t.error&&t.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function SC({error:e}){const[t,o]=D.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(n=>!n),children:t?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),t?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?R.jsx("code",{children:e.message}):null})}):null]})}function XG({children:e,fallback:t=null}){return H2()?R.jsx(ee.Fragment,{children:e}):R.jsx(ee.Fragment,{children:t})}function H2(){return ee.useSyncExternalStore(eK,()=>!0,()=>!1)}function eK(){return()=>{}}var G2=D.createContext(null);function jn(e){return D.useContext(G2)}var ov=D.createContext(void 0),tK=D.createContext(void 0),po=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(po||{});function oK({update:e,notify:t,unwatched:o}){return{link:n,unlink:r,propagate:i,checkDirty:l,shallowPropagate:c};function n(m,h,f){const g=h.depsTail;if(g!==void 0&&g.dep===m)return;const v=g!==void 0?g.nextDep:h.deps;if(v!==void 0&&v.dep===m){v.version=f,h.depsTail=v;return}const y=m.subsTail;if(y!==void 0&&y.version===f&&y.sub===h)return;const S=h.depsTail=m.subsTail={version:f,dep:m,sub:h,prevDep:g,nextDep:v,prevSub:y,nextSub:void 0};v!==void 0&&(v.prevDep=S),g!==void 0?g.nextDep=S:h.deps=S,y!==void 0?y.nextSub=S:m.subs=S}function r(m,h=m.sub){const f=m.dep,g=m.prevDep,v=m.nextDep,y=m.nextSub,S=m.prevSub;return v!==void 0?v.prevDep=g:h.depsTail=g,g!==void 0?g.nextDep=v:h.deps=v,y!==void 0?y.prevSub=S:f.subsTail=S,S!==void 0?S.nextSub=y:(f.subs=y)===void 0&&o(f),v}function i(m){let h=m.nextSub,f;e:do{const g=m.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(m,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const y=g.subs;if(y!==void 0){const S=(m=y).nextSub;S!==void 0&&(f={value:h,prev:f},h=S);continue}}if((m=h)!==void 0){h=m.nextSub;continue}for(;f!==void 0;)if(m=f.value,f=f.prev,m!==void 0){h=m.nextSub;continue e}break}while(!0)}function l(m,h){let f,g=0,v=!1;e:do{const y=m.dep,S=y.flags;if(h.flags&16)v=!0;else if((S&17)===17){if(e(y)){const x=y.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((S&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(f={value:m,prev:f}),m=y.deps,h=y,++g;continue}if(!v){const x=m.nextDep;if(x!==void 0){m=x;continue}}for(;g--;){const x=h.subs,_=x.nextSub!==void 0;if(_?(m=f.value,f=f.prev):m=x,v){if(e(h)){_&&c(x),h=m.sub;continue}v=!1}else h.flags&=-33;h=m.sub;const C=m.nextDep;if(C!==void 0){m=C;continue e}}return v}while(!0)}function c(m){do{const h=m.sub,f=h.flags;(f&48)===32&&(h.flags=f|16,(f&6)===2&&t(h))}while((m=m.nextSub)!==void 0)}function d(m,h){let f=h.depsTail;for(;f!==void 0;){if(f===m)return!0;f=f.prevDep}return!1}}function nK(e,t,o){const n=typeof e=="object",r=n?e:void 0;return{next:(n?e.next:e)?.bind(r),error:(n?e.error:t)?.bind(r),complete:(n?e.complete:o)?.bind(r)}}const f_=[];let Ep=0;const{link:sk,unlink:rK,propagate:aK,checkDirty:K2,shallowPropagate:lk}=oK({update(e){return e._update()},notify(e){f_[h_++]=e,e.flags&=~po.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=po.Mutable|po.Dirty,Xp(e))}});let Kh=0,h_=0,va,p_=0;function W2(e){try{++p_,e()}finally{--p_||Y2()}}function Xp(e){const t=e.depsTail;let o=t!==void 0?t.nextDep:e.deps;for(;o!==void 0;)o=rK(o,e)}function Y2(){if(!(p_>0)){for(;Kh<h_;){const e=f_[Kh];f_[Kh++]=void 0,e.notify()}Kh=0,h_=0}}function ck(e,t){const o=typeof e=="function",n=e,r={_snapshot:o?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?po.None:po.Mutable,get(){return va!==void 0&&sk(r,va,Ep),r._snapshot},subscribe(i){const l=nK(i),c={current:!1},d=iK(()=>{r.get(),c.current?l.next?.(r._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(i){const l=va,c=t?.compare??Object.is;if(o)va=r,++Ep,r.depsTail=void 0;else if(i===void 0)return!1;o&&(r.flags=po.Mutable|po.RecursedCheck);try{const d=r._snapshot,m=typeof i=="function"?i(d):i===void 0&&o?n(d):i;return d===void 0||!c(d,m)?(r._snapshot=m,!0):!1}finally{va=l,o&&(r.flags&=~po.RecursedCheck),Xp(r)}}};return o?(r.flags=po.Mutable|po.Dirty,r.get=function(){const i=r.flags;if(i&po.Dirty||i&po.Pending&&K2(r.deps,r)){if(r._update()){const l=r.subs;l!==void 0&&lk(l)}}else i&po.Pending&&(r.flags=i&~po.Pending);return va!==void 0&&sk(r,va,Ep),r._snapshot}):r.set=function(i){if(r._update(i)){const l=r.subs;l!==void 0&&(aK(l),lk(l),Y2())}},r}function iK(e){const t=()=>{const n=va;va=o,++Ep,o.depsTail=void 0,o.flags=po.Watching|po.RecursedCheck;try{return e()}finally{va=n,o.flags&=~po.RecursedCheck,Xp(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:po.Watching|po.RecursedCheck,notify(){const n=this.flags;n&po.Dirty||n&po.Pending&&K2(this.deps,this)?t():this.flags=po.Watching},stop(){this.flags=po.None,this.depsTail=void 0,Xp(this)}};return t(),o}var m0={exports:{}},f0={},h0={exports:{}},p0={};var uk;function sK(){if(uk)return p0;uk=1;var e=bs();function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var o=typeof Object.is=="function"?Object.is:t,n=e.useState,r=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function c(f,g){var v=g(),y=n({inst:{value:v,getSnapshot:g}}),S=y[0].inst,x=y[1];return i(function(){S.value=v,S.getSnapshot=g,d(S)&&x({inst:S})},[f,v,g]),r(function(){return d(S)&&x({inst:S}),f(function(){d(S)&&x({inst:S})})},[f]),l(v),v}function d(f){var g=f.getSnapshot;f=f.value;try{var v=g();return!o(f,v)}catch{return!0}}function m(f,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:c;return p0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,p0}var dk;function Z2(){return dk||(dk=1,h0.exports=sK()),h0.exports}var mk;function lK(){if(mk)return f0;mk=1;var e=bs(),t=Z2();function o(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:o,r=t.useSyncExternalStore,i=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return f0.useSyncExternalStoreWithSelector=function(m,h,f,g,v){var y=i(null);if(y.current===null){var S={hasValue:!1,value:null};y.current=S}else S=y.current;y=c(function(){function _(A){if(!C){if(C=!0,P=A,A=g(A),v!==void 0&&S.hasValue){var k=S.value;if(v(k,A))return E=k}return E=A}if(k=E,n(P,A))return k;var O=g(A);return v!==void 0&&v(k,O)?(P=A,k):(P=A,E=O)}var C=!1,P,E,T=f===void 0?null:f;return[function(){return _(h())},T===null?void 0:function(){return _(T())}]},[h,f,g,v]);var x=r(m,y[0],y[1]);return l(function(){S.hasValue=!0,S.value=x},[x]),d(x),x},f0}var fk;function cK(){return fk||(fk=1,m0.exports=lK()),m0.exports}var uK=cK();function dK(e,t){return e===t}function Sr(e,t,o=dK){const n=D.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),r=D.useCallback(()=>e?.get(),[e]);return uK.useSyncExternalStoreWithSelector(n,r,r,t,o)}var mK={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ws(e){const t=jn(),o=D.useContext(e.from?tK:ov),n=e.from??o,r=n?e.from?t.stores.getRouteMatchStore(n):t.stores.matchStores.get(n):void 0,i=D.useRef(void 0);return Sr(r??mK,l=>{if((e.shouldThrow??!0)&&!l&&di(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=nl(i.current,c);return i.current=d,d}return c})}function _C(e){return ws({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function wC(e){const{select:t,...o}=e;return ws({...o,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function nv(e){return ws({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const o=e.strict===!1?t.params:t._strictParams;return e.select?e.select(o):o}})}function CC(e){return ws({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Cm(e){const t=jn();return D.useCallback(o=>t.navigate({...o,from:o.from??e?.from}),[e?.from,t])}function gme(e){const t=jn(),o=Cm(),n=D.useRef(null);return Ac(()=>{n.current!==e&&(o(e),n.current=e)},[t,e,o]),null}function xC(e){return ws({...e,select:t=>e.select?e.select(t.context):t.context})}function fK(e,t){const o=jn(),n=ZH(t),{activeProps:r,inactiveProps:i,activeOptions:l,to:c,preload:d,preloadDelay:m,preloadIntentProximity:h,hashScrollIntoView:f,replace:g,startTransition:v,resetScroll:y,viewTransition:S,children:x,target:_,disabled:C,style:P,className:E,onClick:T,onBlur:A,onFocus:k,onMouseEnter:O,onMouseLeave:N,onTouchStart:q,ignoreBlocker:B,params:$,search:U,hash:W,state:ae,mask:H,reloadDocument:Z,unsafeRelative:te,from:le,_fromLocation:Q,...M}=e,G=H2(),V=D.useMemo(()=>e,[o,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),L=Sr(o.stores.location,oe=>oe,(oe,se)=>oe.href===se.href),j=D.useMemo(()=>{const oe={_fromLocation:L,...V};return o.buildLocation(oe)},[o,L,V]),J=j.maskedLocation?j.maskedLocation.publicHref:j.publicHref,me=j.maskedLocation?j.maskedLocation.external:j.external,he=D.useMemo(()=>yK(J,me,o.history,C),[C,me,J,o.history]),xe=D.useMemo(()=>{if(he?.external)return Yp(he.href,o.protocolAllowlist)?void 0:he.href;if(!SK(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Yp(c,o.protocolAllowlist)?void 0:c}catch{}},[c,he,o.protocolAllowlist]),Be=D.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!hG(L.pathname,j.pathname,o.basepath))return!1}else{const oe=Zp(L.pathname,o.basepath),se=Zp(j.pathname,o.basepath);if(!(oe.startsWith(se)&&(oe.length===se.length||oe[se.length]==="/")))return!1}return(l?.includeSearch??!0)&&!il(L.search,j.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&L.hash===j.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,L,xe,G,j.hash,j.pathname,j.search,o.basepath]),Y=Be?rs(r,{})??hK:g0,ne=Be?g0:rs(i,{})??g0,ve=[E,Y.className,ne.className].filter(Boolean).join(" "),ie=(P||Y.style||ne.style)&&{...P,...Y.style,...ne.style},[we,Pe]=D.useState(!1),tt=D.useRef(!1),nt=e.reloadDocument||xe?!1:d??o.options.defaultPreload,$e=m??o.options.defaultPreloadDelay??0,Qe=D.useCallback(()=>{o.preloadRoute({...V,_builtLocation:j}).catch(oe=>{console.warn(oe),console.warn(WG)})},[o,V,j]);YH(n,D.useCallback(oe=>{oe?.isIntersecting&&Qe()},[Qe]),bK,{disabled:!!C||nt!=="viewport"}),D.useEffect(()=>{tt.current||!C&&nt==="render"&&(Qe(),tt.current=!0)},[C,Qe,nt]);const Oe=oe=>{const se=oe.currentTarget.getAttribute("target"),Te=_!==void 0?_:se;if(!C&&!_K(oe)&&!oe.defaultPrevented&&(!Te||Te==="_self")&&oe.button===0){oe.preventDefault(),zg.flushSync(()=>{Pe(!0)});const Ae=o.subscribe("onResolved",()=>{Ae(),Pe(!1)});o.navigate({...V,replace:g,resetScroll:y,hashScrollIntoView:f,startTransition:v,viewTransition:S,ignoreBlocker:B})}};if(xe)return{...M,ref:n,href:xe,...x&&{children:x},..._&&{target:_},...C&&{disabled:C},...P&&{style:P},...E&&{className:E},...T&&{onClick:T},...A&&{onBlur:A},...k&&{onFocus:k},...O&&{onMouseEnter:O},...N&&{onMouseLeave:N},...q&&{onTouchStart:q}};const De=oe=>{if(C||nt!=="intent")return;if(!$e){Qe();return}const se=oe.currentTarget;if(ld.has(se))return;const Te=setTimeout(()=>{ld.delete(se),Qe()},$e);ld.set(se,Te)},Ue=oe=>{C||nt!=="intent"||Qe()},K=oe=>{if(C||!nt||!$e)return;const se=oe.currentTarget,Te=ld.get(se);Te&&(clearTimeout(Te),ld.delete(se))};return{...M,...Y,...ne,href:he?.href,ref:n,onClick:cc([T,Oe]),onBlur:cc([A,K]),onFocus:cc([k,De]),onMouseEnter:cc([O,De]),onMouseLeave:cc([N,K]),onTouchStart:cc([q,Ue]),disabled:!!C,target:_,...ie&&{style:ie},...ve&&{className:ve},...C&&pK,...Be&&gK,...G&&we&&vK}}var g0={},hK={className:"active"},pK={role:"link","aria-disabled":!0},gK={"data-status":"active","aria-current":"page"},vK={"data-transitioning":"transitioning"},ld=new WeakMap,bK={rootMargin:"100px"},cc=e=>t=>{for(const o of e)if(o){if(t.defaultPrevented)return;o(t)}};function yK(e,t,o,n){if(!n)return t?{href:e,external:!0}:{href:o.createHref(e)||"/",external:!1}}function SK(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var xm=D.forwardRef((e,t)=>{const{_asChild:o,...n}=e,{type:r,...i}=fK(n,t),l=typeof n.children=="function"?n.children({isActive:i["data-status"]==="active"}):n.children;if(!o){const{disabled:c,...d}=i;return D.createElement("a",d,l)}return D.createElement(o,i,l)});function _K(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vme(e){return new wK({id:e})}var wK=class extends YG{constructor({id:e}){super({id:e}),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id,strict:!1}),this.useLoaderData=t=>_C({...t,from:this.id,strict:!1}),this.useNavigate=()=>Cm({from:jn().routesById[this.id].fullPath}),this.notFound=t=>B2({routeId:this.id,...t}),this.Link=ee.forwardRef((t,o)=>{const n=jn().routesById[this.id].fullPath;return R.jsx(xm,{ref:o,from:n,...t})})}},CK=class extends V2{constructor(e){super(e),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id}),this.useLoaderData=t=>_C({...t,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=ee.forwardRef((t,o)=>R.jsx(xm,{ref:o,from:this.fullPath,...t}))}};function rt(e){return new CK(e)}var xK=class extends ZG{constructor(e){super(e),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id}),this.useLoaderData=t=>_C({...t,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=ee.forwardRef((t,o)=>R.jsx(xm,{ref:o,from:this.fullPath,...t}))}};function EK(e){return new xK(e)}function ct(e,t){let o,n,r,i;const l=()=>(o||(o=e().then(d=>{o=void 0,n=d.default}).catch(d=>{if(r=d,XH(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),i=!0)}})),o),c=function(m){if(i)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!n)if(UA)UA(l());else throw l();return D.createElement(n,m)};return c.preload=l,c}function TK(e){const t=jn(),o=`not-found-${Sr(t.stores.location,n=>n.pathname)}-${Sr(t.stores.status,n=>n)}`;return R.jsx(yC,{getResetKey:()=>o,onCatch:(n,r)=>{if(An(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(An(n))return e.fallback?.(n);throw n},children:e.children})}function PK(){return R.jsx("p",{children:"Not Found"})}function Cc(e){return R.jsx(R.Fragment,{children:e.children})}function Q2(e,t,o){return t.options.notFoundComponent?R.jsx(t.options.notFoundComponent,{...o}):e.options.defaultNotFoundComponent?R.jsx(e.options.defaultNotFoundComponent,{...o}):R.jsx(PK,{})}function RK(e){return null}function AK(){return RK(jn()),null}var J2=D.memo(function({matchId:t}){const o=jn(),n=o.stores.matchStores.get(t);n||di();const r=Sr(o.stores.loadedAt,l=>l),i=Sr(n,l=>l);return R.jsx(kK,{router:o,matchId:t,resetKey:r,matchState:D.useMemo(()=>{const l=i.routeId,c=o.routesById[l].parentRoute?.id;return{routeId:l,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:c}},[i._displayPending,i.routeId,i.ssr,o.routesById])})});function kK({router:e,matchId:t,resetKey:o,matchState:n}){const r=e.routesById[n.routeId],i=r.options.pendingComponent??e.options.defaultPendingComponent,l=i?R.jsx(i,{}):null,c=r.options.errorComponent??e.options.defaultErrorComponent,d=r.options.onCatch??e.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??e.options.notFoundRoute?.options.component:r.options.notFoundComponent,h=n.ssr===!1||n.ssr==="data-only",f=(!r.isRoot||r.options.wrapInSuspense||h)&&(r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||h))?D.Suspense:Cc,g=c?yC:Cc,v=m?TK:Cc;return R.jsxs(r.isRoot?r.options.shellComponent??Cc:Cc,{children:[R.jsx(ov.Provider,{value:t,children:R.jsx(f,{fallback:l,children:R.jsx(g,{getResetKey:()=>o,errorComponent:c||SC,onCatch:(y,S)=>{if(An(y))throw y.routeId??=n.routeId,y;d?.(y,S)},children:R.jsx(v,{fallback:y=>{if(y.routeId??=n.routeId,!m||y.routeId&&y.routeId!==n.routeId||!y.routeId&&!r.isRoot)throw y;return D.createElement(m,y)},children:h||n._displayPending?R.jsx(XG,{fallback:l,children:R.jsx(hk,{matchId:t})}):R.jsx(hk,{matchId:t})})})})}),n.parentRouteId===sl?R.jsxs(R.Fragment,{children:[R.jsx(DK,{resetKey:o}),e.options.scrollRestoration&&A2?R.jsx(AK,{}):null]}):null]})}function DK({resetKey:e}){const t=jn(),o=D.useRef(void 0);return Ac(()=>{const n=t.latestLocation.href;(o.current===void 0||o.current!==n)&&(t.emit({type:"onRendered",...Fc(t.stores.location.get(),t.stores.resolvedLocation.get())}),o.current=n)},[t.latestLocation.state.__TSR_key,e,t]),null}var hk=D.memo(function({matchId:t}){const o=jn(),n=(h,f)=>o.getMatch(h.id)?._nonReactive[f]??h._nonReactive[f],r=o.stores.matchStores.get(t);r||di();const i=Sr(r,h=>h),l=i.routeId,c=o.routesById[l],d=D.useMemo(()=>{const h=(o.routesById[l].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:l,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return h?JSON.stringify(h):void 0},[l,i.loaderDeps,i._strictParams,i._strictSearch,o.options.defaultRemountDeps,o.routesById]),m=D.useMemo(()=>{const h=c.options.component??o.options.defaultComponent;return h?R.jsx(h,{},d):R.jsx(X2,{})},[d,c.options.component,o.options.defaultComponent]);if(i._displayPending)throw n(i,"displayPendingPromise");if(i._forcePending)throw n(i,"minPendingPromise");if(i.status==="pending"){const h=c.options.pendingMinMs??o.options.defaultPendingMinMs;if(h){const f=o.getMatch(i.id);if(f&&!f._nonReactive.minPendingPromise){const g=Yc();f._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),f._nonReactive.minPendingPromise=void 0},h)}}throw n(i,"loadPromise")}if(i.status==="notFound")return An(i.error)||di(),Q2(o,c,i.error);if(i.status==="redirected")throw Xn(i.error)||di(),n(i,"loadPromise");if(i.status==="error")throw i.error;return m}),X2=D.memo(function(){const t=jn(),o=D.useContext(ov);let n,r=!1,i;{const m=o?t.stores.matchStores.get(o):void 0;[n,r]=Sr(m,h=>[h?.routeId,h?.globalNotFound??!1]),i=Sr(t.stores.matchesId,h=>h[h.findIndex(f=>f===o)+1])}const l=n?t.routesById[n]:void 0,c=t.options.defaultPendingComponent?R.jsx(t.options.defaultPendingComponent,{}):null;if(r)return l||di(),Q2(t,l,void 0);if(!i)return null;const d=R.jsx(J2,{matchId:i});return n===sl?R.jsx(D.Suspense,{fallback:c,children:d}):d});function OK(){const e=jn(),t=D.useRef({router:e,mounted:!1}),[o,n]=D.useState(!1),r=Sr(e.stores.isLoading,f=>f),i=Sr(e.stores.hasPending,f=>f),l=a0(r),c=r||o||i,d=a0(c),m=r||i,h=a0(m);return e.startTransition=f=>{n(!0),D.startTransition(()=>{f(),n(!1)})},D.useEffect(()=>{const f=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return li(e.latestLocation.publicHref)!==li(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{f()}},[e,e.history]),Ac(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Ac(()=>{l&&!r&&e.emit({type:"onLoad",...Fc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,r]),Ac(()=>{h&&!m&&e.emit({type:"onBeforeRouteMount",...Fc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[m,h,e]),Ac(()=>{if(d&&!c){const f=Fc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...f}),W2(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),f.hrefChanged&&QG(e)}},[c,d,e]),null}function IK(){const e=jn(),t=e.routesById[sl].options.pendingComponent??e.options.defaultPendingComponent,o=t?R.jsx(t,{}):null,n=R.jsxs(typeof document<"u"&&e.ssr?Cc:D.Suspense,{fallback:o,children:[R.jsx(OK,{}),R.jsx(MK,{})]});return e.options.InnerWrap?R.jsx(e.options.InnerWrap,{children:n}):n}function MK(){const e=jn(),t=Sr(e.stores.firstId,r=>r),o=Sr(e.stores.loadedAt,r=>r),n=t?R.jsx(J2,{matchId:t}):null;return R.jsx(ov.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?n:R.jsx(yC,{getResetKey:()=>o,errorComponent:SC,onCatch:void 0,children:n})})}var LK=e=>({createMutableStore:ck,createReadonlyStore:ck,batch:W2}),NK=e=>new FK(e),FK=class extends UG{constructor(e){super(e,LK)}};function BK({router:e,children:t,...o}){D2(o)&&e.update({...e.options,...o,context:{...e.options.context,...o.context}});const n=R.jsx(G2.Provider,{value:e,children:t});return e.options.Wrap?R.jsx(e.options.Wrap,{children:n}):n}function zK({router:e,...t}){return R.jsx(BK,{router:e,...t,children:R.jsx(IK,{})})}var jK={},pk={};const Tp=Object.create(null),cd=e=>jK||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Tp:globalThis),Lr=new Proxy(Tp,{get(e,t){return cd()[t]??Tp[t]},has(e,t){return t in cd()||t in Tp},set(e,t,o){const n=cd(!0);return n[t]=o,!0},deleteProperty(e,t){if(!t)return!1;const o=cd(!0);return delete o[t],!0},ownKeys(){const e=cd(!0);return Object.keys(e)}});function $o(e,t){return typeof process<"u"&&pk?pk[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ud=1,rn=4,Sa=8,pr=24,gk={eterm:rn,cons25:rn,console:rn,cygwin:rn,dtterm:rn,gnome:rn,hurd:rn,jfbterm:rn,konsole:rn,kterm:rn,mlterm:rn,mosh:pr,putty:rn,st:rn,"rxvt-unicode-24bit":pr,terminator:pr,"xterm-kitty":pr},UK=new Map(Object.entries({APPVEYOR:Sa,BUILDKITE:Sa,CIRCLECI:pr,DRONE:Sa,GITEA_ACTIONS:pr,GITHUB_ACTIONS:pr,GITLAB_CI:Sa,TRAVIS:Sa})),$K=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function qK(){if($o("FORCE_COLOR")!==void 0)switch($o("FORCE_COLOR")){case"":case"1":case"true":return rn;case"2":return Sa;case"3":return pr;default:return ud}if($o("NODE_DISABLE_COLORS")!==void 0&&$o("NODE_DISABLE_COLORS")!==""||$o("NO_COLOR")!==void 0&&$o("NO_COLOR")!==""||$o("TERM")==="dumb")return ud;if($o("TMUX"))return pr;if("TF_BUILD"in Lr&&"AGENT_NAME"in Lr)return rn;if("CI"in Lr){for(const{0:e,1:t}of UK)if(e in Lr)return t;return $o("CI_NAME")==="codeship"?Sa:ud}if("TEAMCITY_VERSION"in Lr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec($o("TEAMCITY_VERSION"))!==null?rn:ud;switch($o("TERM_PROGRAM")){case"iTerm.app":return!$o("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec($o("TERM_PROGRAM_VERSION"))!==null?Sa:pr;case"HyperTerm":case"MacTerm":return pr;case"Apple_Terminal":return Sa}if($o("COLORTERM")==="truecolor"||$o("COLORTERM")==="24bit")return pr;if($o("TERM")){if(/truecolor/.exec($o("TERM"))!==null)return pr;if(/^xterm-256/.exec($o("TERM"))!==null)return Sa;const e=$o("TERM").toLowerCase();if(gk[e])return gk[e];if($K.some(t=>t.exec(e)!==null))return rn}return $o("COLORTERM")?rn:ud}const _a={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"}},g_=["debug","info","success","warn","error"];function VK(e,t){return g_.indexOf(t)>=g_.indexOf(e)}const HK={info:_a.fg.blue,success:_a.fg.green,warn:_a.fg.yellow,error:_a.fg.red,debug:_a.fg.magenta},GK=(e,t,o)=>{const n=new Date().toISOString();return o?`${_a.dim}${n}${_a.reset} ${HK[e]}${e.toUpperCase()}${_a.reset} ${_a.bright}[Better Auth]:${_a.reset} ${t}`:`${n} ${e.toUpperCase()} [Better Auth]: ${t}`},KK=e=>{const t="warn",o=qK()!==1,n=(r,i,l=[])=>{if(!VK(t,r))return;const c=GK(r,i,o);{r==="error"?console.error(c,...l):r==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(g_.map(r=>[r,(...[i,...l])=>n(r,i,l)])),get level(){return t}}};KK();function WK(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zd=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function YK(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new zd(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function ZK(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new zd(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof zd?t:new zd(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function v0(e,t="/api/auth"){if(ZK(e),YK(e))return e;const o=e.replace(/\/+$/,"");return!t||t==="/"?o:(t=t.startsWith("/")?t:`/${t}`,`${o}${t}`)}function QK(e,t,o,n,r){if(e)return v0(e,t);{const i=Lr.BETTER_AUTH_URL||Lr.NEXT_PUBLIC_BETTER_AUTH_URL||Lr.PUBLIC_BETTER_AUTH_URL||Lr.NUXT_PUBLIC_BETTER_AUTH_URL||Lr.NUXT_PUBLIC_AUTH_URL||(Lr.BASE_URL!=="/"?Lr.BASE_URL:void 0);if(i)return v0(i,t)}if(typeof window<"u"&&window.location)return v0(window.location.origin,t)}const JK={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},XK={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*:/},eW=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,vk={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tW=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function oW(e){return e instanceof Date&&!isNaN(e.getTime())}function nW(e){const t=tW.exec(e);if(!t)return null;const[,o,n,r,i,l,c,d,m,h,f]=t,g=new Date(Date.UTC(parseInt(o,10),parseInt(n,10)-1,parseInt(r,10),parseInt(i,10),parseInt(l,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(m){const v=(parseInt(h,10)*60+parseInt(f,10))*(m==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+v)}return oW(g)?g:null}function rW(e,t={}){const{strict:o=!1,warnings:n=!1,reviver:r,parseDates:i=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l.length>0&&l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const c=l.toLowerCase();if(c.length<=9&&c in vk)return vk[c];if(!eW.test(l)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(XK).some(([d,m])=>{const h=m.test(l);return h&&n&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),h})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(m,h)=>{if(m==="__proto__"||m==="constructor"&&h&&typeof h=="object"&&"prototype"in h){n&&console.warn(`[better-json] Dropping "${m}" key to prevent prototype pollution`);return}if(i&&typeof h=="string"){const f=nW(h);if(f)return f}return r?r(m,h):h})}catch(d){if(o)throw d;return e}}function aW(e,t={strict:!0}){return rW(e,t)}let Jr=[],Hi=0;const Wh=4,iW=globalThis.nanostoresGlobal||={epoch:0},kc=e=>{let t=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:e,lc:0,listen(n){return o.lc=t.push(n),()=>{for(let i=Hi+Wh;i<Jr.length;)Jr[i]===n?Jr.splice(i,Wh):i+=Wh;let r=t.indexOf(n);~r&&(t.splice(r,1),--o.lc||o.off())}},notify(n,r){iW.epoch++;let i=!Jr.length;for(let l of t)Jr.push(l,o.value,n,r);if(i){for(Hi=0;Hi<Jr.length;Hi+=Wh)Jr[Hi](Jr[Hi+1],Jr[Hi+2],Jr[Hi+3]);Jr.length=0}},off(){},set(n){let r=o.value;r!==n&&(o.value=n,o.notify(r))},subscribe(n){let r=o.listen(n);return n(o.value),r},value:e};return o},sW=5,Yh=6,Zh=10;let lW=(e,t,o,n)=>(e.events=e.events||{},e.events[o+Zh]||(e.events[o+Zh]=n(r=>{e.events[o].reduceRight((i,l)=>(l(i),i),{shared:{},...r})})),e.events[o]=e.events[o]||[],e.events[o].push(t),()=>{let r=e.events[o],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[o],e.events[o+Zh](),delete e.events[o+Zh])});const cW=1e3;let eL=(e,t)=>lW(e,n=>{let r=t(n);r&&e.events[Yh].push(r)},sW,n=>{let r=e.listen;e.listen=(...l)=>(!e.lc&&!e.active&&(e.active=!0,n()),r(...l));let i=e.off;return e.events[Yh]=[],e.off=()=>{i(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let l of e.events[Yh])l();e.events[Yh]=[]}},cW)},()=>{e.listen=r,e.off=i}});function uW(e,t,o){let n=new Set(t).add(void 0);return e.listen((r,i,l)=>{n.has(l)&&o(r,i,l)})}const dW=()=>typeof window>"u",Pd=(e,t,o,n)=>{const r=kc({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>i(c)}),i=async c=>new Promise(d=>{const m=typeof n=="function"?n({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):n;o(t,{...m,query:{...m?.query,...c?.query},async onSuccess(h){r.set({data:h.data,error:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await m?.onSuccess?.(h)},async onError(h){const{request:f}=h,g=typeof f.retry=="number"?f.retry:f.retry?.attempts,v=f.retryAttempt||0;g&&v<g||(r.set({error:h.error,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await m?.onError?.(h))},async onRequest(h){const f=r.get();r.set({isPending:f.data===null,data:f.data,error:null,isRefetching:!0,refetch:r.value.refetch}),await m?.onRequest?.(h)}}).catch(h=>{r.set({error:h,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let l=!1;for(const c of e)c.subscribe(async()=>{dW()||(l?await i():eL(r,()=>{const d=setTimeout(async()=>{l||(await i(),l=!0)},0);return()=>{r.off(),c.off(),clearTimeout(d)}}))});return r},b0=Symbol.for("better-auth:broadcast-channel"),mW=()=>Math.floor(Date.now()/1e3);var fW=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:mW()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const o=JSON.parse(t.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(n=>n(o))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function y0(e="better-auth.message"){return globalThis[b0]||(globalThis[b0]=new fW(e)),globalThis[b0]}const S0=Symbol.for("better-auth:focus-manager");var hW=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function bk(){return globalThis[S0]||(globalThis[S0]=new hW),globalThis[S0]}const _0=Symbol.for("better-auth:online-manager");var pW=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function w0(){return globalThis[_0]||(globalThis[_0]=new pW),globalThis[_0]}const uc=()=>Math.floor(Date.now()/1e3),gW=5;function vW(e){const{sessionAtom:t,sessionSignal:o,$fetch:n,options:r={}}=e,i=r.sessionOptions?.refetchInterval??0,l=r.sessionOptions?.refetchOnWindowFocus??!0,c=r.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},m=()=>c||w0().isOnline,h=C=>{if(!m())return;if(C?.event==="storage"){d.lastSync=uc(),o.set(!o.get());return}const P=t.get();if(C?.event==="poll"){d.lastSessionRequest=uc(),n("/get-session").then(E=>{E.error?t.set({...P,data:null,error:E.error}):t.set({...P,data:E.data,error:null}),d.lastSync=uc(),o.set(!o.get())}).catch(()=>{});return}if(C?.event==="visibilitychange"){if(uc()-d.lastSessionRequest<gW)return;d.lastSessionRequest=uc()}(P?.data===null||P?.data===void 0||C?.event==="visibilitychange")&&(d.lastSync=uc(),o.set(!o.get()))},f=C=>{y0().post({event:"session",data:{trigger:C},clientId:Math.random().toString(36).substring(7)})},g=()=>{i&&i>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&h({event:"poll"})},i*1e3))},v=()=>{d.unsubscribeBroadcast=y0().subscribe(()=>{h({event:"storage"})})},y=()=>{l&&(d.unsubscribeFocus=bk().subscribe(()=>{h({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=w0().subscribe(C=>{C&&h({event:"visibilitychange"})})};return{init:()=>{g(),v(),y(),S(),y0().setup(),bk().setup(),w0().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:h,broadcastSessionUpdate:f}}function bW(e,t){const o=kc(!1),n=Pd(o,"/get-session",e,{method:"GET"});return eL(n,()=>{const r=vW({sessionAtom:n,sessionSignal:o,$fetch:e,options:t});return r.init(),()=>{r.cleanup()}}),{session:n,$sessionSignal:o}}function C0(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function v_(e,t,o=".",n){if(!C0(t))return v_(e,{},o,n);const r={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(n&&n(r,i,l,o)||(Array.isArray(l)&&Array.isArray(r[i])?r[i]=[...l,...r[i]]:C0(l)&&C0(r[i])?r[i]=v_(l,r[i],(o?`${o}.`:"")+i.toString(),n):r[i]=l))}return r}function yW(e){return(...t)=>t.reduce((o,n)=>v_(o,n,"",e),{})}const SW=yW();var _W=Object.defineProperty,wW=Object.defineProperties,CW=Object.getOwnPropertyDescriptors,yk=Object.getOwnPropertySymbols,xW=Object.prototype.hasOwnProperty,EW=Object.prototype.propertyIsEnumerable,Sk=(e,t,o)=>t in e?_W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oa=(e,t)=>{for(var o in t||(t={}))xW.call(t,o)&&Sk(e,o,t[o]);if(yk)for(var o of yk(t))EW.call(t,o)&&Sk(e,o,t[o]);return e},ba=(e,t)=>wW(e,CW(t)),TW=class extends Error{constructor(e,t,o){super(t||e.toString(),{cause:o}),this.status=e,this.statusText=t,this.error=o,Error.captureStackTrace(this,this.constructor)}},PW=async(e,t)=>{var o,n,r,i,l,c;let d=t||{};const m={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:m};for(const h of t?.plugins||[]){if(h.init){const f=await((o=h.init)==null?void 0:o.call(h,e.toString(),t));d=f.options||d,e=f.url}m.onRequest.push((n=h.hooks)==null?void 0:n.onRequest),m.onResponse.push((r=h.hooks)==null?void 0:r.onResponse),m.onSuccess.push((i=h.hooks)==null?void 0:i.onSuccess),m.onError.push((l=h.hooks)==null?void 0:l.onError),m.onRetry.push((c=h.hooks)==null?void 0:c.onRetry)}return{url:e,options:d,hooks:m}},_k=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},RW=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function AW(e){if(typeof e=="number")return new _k({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new _k(e);case"exponential":return new RW(e);default:throw new Error("Invalid retry strategy")}}var kW=async e=>{const t={},o=async n=>typeof n=="function"?await n():n;if(e?.auth){if(e.auth.type==="Bearer"){const n=await o(e.auth.token);if(!n)return t;t.authorization=`Bearer ${n}`}else if(e.auth.type==="Basic"){const[n,r]=await Promise.all([o(e.auth.username),o(e.auth.password)]);if(!n||!r)return t;t.authorization=`Basic ${btoa(`${n}:${r}`)}`}else if(e.auth.type==="Custom"){const[n,r]=await Promise.all([o(e.auth.prefix),o(e.auth.value)]);if(!r)return t;t.authorization=`${n??""} ${r}`}}return t},DW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function OW(e){const t=e.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const n=t.split(";").shift()||"";return DW.test(n)?"json":o.has(n)||n.startsWith("text/")?"text":"blob"}function IW(e){try{return JSON.parse(e),!0}catch{return!1}}function b_(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function wk(e){try{return JSON.parse(e)}catch{return e}}function Ck(e){return typeof e=="function"}function MW(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Ck(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Ck(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function LW(e){const t=new Headers(e?.headers),o=await kW(e);for(const[n,r]of Object.entries(o||{}))t.set(n,r);if(!t.has("content-type")){const n=NW(e?.body);n&&t.set("content-type",n)}return t}function NW(e){return b_(e)?"application/json":null}function FW(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(b_(e.body)&&!t.has("content-type")){for(const[o,n]of Object.entries(e?.body))n instanceof Date&&(e.body[o]=n.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&b_(e.body)?new URLSearchParams(e.body).toString():e.body}function BW(e,t){var o;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const n=(o=e.split("@")[1])==null?void 0:o.split("/")[0];return oL.includes(n)?n.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function zW(e,t){let o;return!e?.signal&&e?.timeout&&(o=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var jW=class tL extends Error{constructor(t,o){super(o||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,tL.prototype)}};async function Pp(e,t){const o=await e["~standard"].validate(t);if(o.issues)throw new jW(o.issues);return o.value}var oL=["get","post","put","patch","delete"],UW=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,o){var n,r,i,l;const c=((r=(n=e.plugins)==null?void 0:n.find(d=>{var m;return(m=d.schema)!=null&&m.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:r.schema)||e.schema;if(c){let d=t;(i=c.config)!=null&&i.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.replace(c.config.prefix,c.config.baseURL))),(l=c.config)!=null&&l.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const m=c.schema[d];if(m){let h=ba(oa({},o),{method:m.method,output:m.output});return o?.disableValidation||(h=ba(oa({},h),{body:m.input?await Pp(m.input,o?.body):o?.body,params:m.params?await Pp(m.params,o?.params):o?.params,query:m.query?await Pp(m.query,o?.query):o?.query})),{url:t,options:h}}}return{url:t,options:o}}}),$W=e=>{async function t(o,n){const r=ba(oa(oa({},e),n),{plugins:[...e?.plugins||[],UW(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await y_(o,r)}catch(i){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:i}}}return await y_(o,r)}return t};function qW(e,t){const{baseURL:o,params:n,query:r}=t||{query:{},params:{},baseURL:""};let i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):o||"";if(e.startsWith("@")){const f=e.toString().split("@")[1].split("/")[0];oL.includes(f)&&(e=e.replace(`@${f}/`,"/"))}i.endsWith("/")||(i+="/");let[l,c]=e.replace(i,"").split("?");const d=new URLSearchParams(c);for(const[f,g]of Object.entries(r||{})){if(g==null)continue;let v;if(typeof g=="string")v=g;else if(Array.isArray(g)){for(const y of g)d.append(f,y);continue}else v=JSON.stringify(g);d.set(f,v)}if(n)if(Array.isArray(n)){const f=l.split("/").filter(g=>g.startsWith(":"));for(const[g,v]of f.entries()){const y=n[g];l=l.replace(v,y)}}else for(const[f,g]of Object.entries(n))l=l.replace(`:${f}`,String(g));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let m=d.toString();return m=m.length>0?`?${m}`.replace(/\+/g,"%20"):"",i.startsWith("http")?new URL(`${l}${m}`,i):`${i}${l}${m}`}var y_=async(e,t)=>{var o,n,r,i,l,c,d,m;const{hooks:h,url:f,options:g}=await PW(e,t),v=MW(g),y=new AbortController,S=(o=g.signal)!=null?o:y.signal,x=qW(f,g),_=FW(g),C=await LW(g),P=BW(f,g);let E=ba(oa({},g),{url:x,headers:C,body:_,method:P,signal:S});for(const U of h.onRequest)if(U){const W=await U(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((n=t?.body)==null?void 0:n.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:T}=zW(g,y);let A=await v(E.url,E);T();const k={response:A,request:E};for(const U of h.onResponse)if(U){const W=await U(ba(oa({},k),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?A.clone():A}));W instanceof Response?A=W:typeof W=="object"&&W!==null&&(A=W.response)}if(A.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=OW(A),ae={data:null,response:A,request:E};if(W==="json"||W==="text"){const H=await A.text(),Z=(i=E.jsonParser)!=null?i:wk;ae.data=await Z(H)}else ae.data=await A[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await Pp(E.output,ae.data));for(const H of h.onSuccess)H&&await H(ba(oa({},ae),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?A.clone():A}));return t?.throw?ae.data:{data:ae.data,error:null}}const O=(c=t?.jsonParser)!=null?c:wk,N=await A.text(),q=IW(N),B=q?await O(N):null,$={response:A,responseText:N,request:E,error:ba(oa({},B),{status:A.status,statusText:A.statusText})};for(const U of h.onError)U&&await U(ba(oa({},$),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?A.clone():A}));if(t?.retry){const U=AW(t.retry),W=(m=t.retryAttempt)!=null?m:0;if(await U.shouldAttemptRetry(W,A)){for(const H of h.onRetry)H&&await H(k);const ae=U.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await y_(e,ba(oa({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new TW(A.status,A.statusText,q?B:N);return{data:null,error:ba(oa({},B),{status:A.status,statusText:A.statusText})}};const VW=(e,t)=>{const o="credentials"in Request.prototype,n=QK(e?.baseURL,e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],i={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:l,onError:c,onRequest:d,onResponse:m,...h}=e?.fetchOptions||{},f=$W({baseURL:n,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?aW(E,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[i,...h.plugins||[],...e?.disableDefaultFetchPlugins?[]:[JK],...r]}),{$sessionSignal:g,session:v}=bW(f,e),y=e?.plugins||[];let S={};const x={$sessionSignal:g,session:v},_={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},C=[{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 y)E.getAtoms&&Object.assign(x,E.getAtoms?.(f)),E.pathMethods&&Object.assign(_,E.pathMethods),E.atomListeners&&C.push(...E.atomListeners);const P={notify:E=>{x[E].set(!x[E].get())},listen:(E,T)=>{x[E].subscribe(T)},atoms:x};for(const E of y)E.getActions&&(S=SW(E.getActions?.(f,P,e)??{},S));return{get baseURL(){return n},pluginsActions:S,pluginsAtoms:x,pluginPathMethods:_,atomListeners:C,$fetch:f,$store:P}};function HW(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function GW(e,t,o){const n=t[e],{fetchOptions:r,query:i,...l}=o||{};return n||(r?.method?r.method:l&&Object.keys(l).length>0?"POST":"GET")}function KW(e,t,o,n,r){function i(l=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const m=[...l,d];let h=e;for(const f of m)if(h&&typeof h=="object"&&f in h)h=h[f];else{h=void 0;break}return typeof h=="function"||HW(h)?h:i(m)},apply:async(c,d,m)=>{const h="/"+l.map(C=>C.replace(/[A-Z]/g,P=>`-${P.toLowerCase()}`)).join("/"),f=m[0]||{},g=m[1]||{},{query:v,fetchOptions:y,...S}=f,x={...g,...y},_=GW(h,o,f);return await t(h,{...x,body:_==="GET"?void 0:{...S,...x?.body||{}},query:v||x?.query,method:_,async onSuccess(C){if(await x?.onSuccess?.(C),!r||x.disableSignal)return;const P=r.filter(T=>T.matcher(h));if(!P.length)return;const E=new Set;for(const T of P){const A=n[T.signal];if(!A)return;if(E.has(T.signal))continue;E.add(T.signal);const k=A.get();setTimeout(()=>{A.set(!k)},10)}}})}})}return i()}function WW(e,t={}){const o=D.useRef(e.get()),{keys:n,deps:r=[e,n]}=t,i=D.useCallback(c=>{const d=m=>{o.current!==m&&(o.current=m,c())};return d(e.value),n?.length?uW(e,n,d):e.listen(d)},r),l=()=>o.current;return D.useSyncExternalStore(i,l,l)}function YW(e){return`use${WK(e)}`}function ZW(e){const{pluginPathMethods:t,pluginsActions:o,pluginsAtoms:n,$fetch:r,$store:i,atomListeners:l}=VW(e),c={};for(const[d,m]of Object.entries(n))c[YW(d)]=()=>WW(m);return KW({...o,...c,$fetch:r,$store:i},r,t,n,l)}function QW(e){return{authorize(t,o="AND"){let n=!1;for(const[r,i]of Object.entries(t)){const l=e[r];if(!l)return{success:!1,error:`You are not allowed to access resource: ${r}`};if(Array.isArray(i))n=i.every(c=>l.includes(c));else if(typeof i=="object"){const c=i;c.connector==="OR"?n=c.actions.some(d=>l.includes(d)):n=c.actions.every(d=>l.includes(d))}else throw new zd("Invalid access control request");if(n&&o==="OR")return{success:n};if(!n&&o==="AND")return{success:!1,error:`unauthorized to access resource "${r}"`}}return n?{success:n}:{success:!1,error:"Not authorized"}},statements:e}}function nL(e){return{newRole(t){return QW(t)},statements:e}}const JW={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},rL=nL(JW),aL=rL.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),iL=rL.newRole({user:[],session:[]}),XW={admin:aL,user:iL},eY=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),o=e.options?.roles||XW;for(const n of t)if(o[n]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},tY=e=>{const t={admin:aL,user:iL,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>eY({role:o.role,options:{ac:e?.ac,roles:t},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},oY=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),nY=()=>({id:"magic-link",$InferServerPlugin:{}}),rY={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},EC=nL(rY),sL=EC.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),lL=EC.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),cL=EC.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),aY={admin:sL,owner:lL,member:cL},iY=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const o=e.role.split(","),n=e.options.creatorRole||"owner",r=o.includes(n),i=e.allowCreatorAllPermissions||!1;if(r&&i)return!0;for(const l of o)if(t[l]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},sY=e=>iY(e,e.options.roles||aY),lY=e=>{const t=kc(!1),o=kc(!1),n=kc(!1),r=kc(!1),i={admin:sL,member:cL,owner:lL,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(l,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:m=>sY({role:m.role,options:{ac:e?.ac,roles:i},permissions:m.permissions??m.permission})}}),getAtoms:l=>{const c=Pd(t,"/organization/list",l,{method:"GET"});return{$listOrg:t,$activeOrgSignal:o,$activeMemberSignal:n,$activeMemberRoleSignal:r,activeOrganization:Pd([o],"/organization/get-full-organization",l,()=>({method:"GET"})),listOrganizations:c,activeMember:Pd([n],"/organization/get-active-member",l,{method:"GET"}),activeMemberRole:Pd([r],"/organization/get-active-member-role",l,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(l){return l==="/organization/create"||l==="/organization/delete"||l==="/organization/update"},signal:"$listOrg"},{matcher(l){return l.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(l){return l.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(l){return l.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(l){return l.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},cY=e=>({id:"sso-client",$InferServerPlugin:{}});function uL(e){const t=e?.metadata;if(!t)return!1;try{return(typeof t=="string"?JSON.parse(t):t).archived===!0}catch{return!1}}const rv=ZW({plugins:[lY({}),tY(),cY(),nY(),oY()]}),uY=3e4;let Rd=null,Qh=null;function dL(){if(Rd&&Rd.expiresAt>Date.now())return Promise.resolve(Rd.result);if(Qh)return Qh;const e=rv.organization.list().then(t=>{const o=t.data?{...t,data:t.data.filter(n=>!uL(n))}:t;return o.data&&(Rd={result:o,expiresAt:Date.now()+uY}),o}).finally(()=>{Qh=null});return Qh=e,e}function bme(){const e=rv.useListOrganizations(),t=e.data?.filter(o=>!uL(o));return{...e,data:t}}function yme(){Rd=null}function mL(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=mL(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function TC(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=mL(e))&&(n&&(n+=" "),n+=t);return n}const dY=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},mY=(e,t)=>({classGroupId:e,validator:t}),fL=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),eg="-",xk=[],fY="arbitrary..",hY=e=>{const t=gY(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return pY(l);const c=l.split(eg),d=c[0]===""&&c.length>1?1:0;return hL(c,d,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const d=n[l],m=o[l];return d?m?dY(m,d):d:m||xk}return o[l]||xk}}},hL=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const m=hL(e,t+1,i);if(m)return m}const l=o.validators;if(l===null)return;const c=t===0?e.join(eg):e.slice(t).join(eg),d=l.length;for(let m=0;m<d;m++){const h=l[m];if(h.validator(c))return h.classGroupId}},pY=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?fY+n:void 0})(),gY=e=>{const{theme:t,classGroups:o}=e;return vY(o,t)},vY=(e,t)=>{const o=fL();for(const n in e){const r=e[n];PC(r,o,n,t)}return o},PC=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const l=e[i];bY(l,t,o,n)}},bY=(e,t,o,n)=>{if(typeof e=="string"){yY(e,t,o);return}if(typeof e=="function"){SY(e,t,o,n);return}_Y(e,t,o,n)},yY=(e,t,o)=>{const n=e===""?t:pL(t,e);n.classGroupId=o},SY=(e,t,o,n)=>{if(wY(e)){PC(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(mY(o,e))},_Y=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let l=0;l<i;l++){const[c,d]=r[l];PC(d,pL(t,c),o,n)}},pL=(e,t)=>{let o=e;const n=t.split(eg),r=n.length;for(let i=0;i<r;i++){const l=n[i];let c=o.nextPart.get(l);c||(c=fL(),o.nextPart.set(l,c)),o=c}return o},wY=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CY=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,l)=>{o[i]=l,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=n[i])!==void 0)return r(i,l),l},set(i,l){i in o?o[i]=l:r(i,l)}}},S_="!",Ek=":",xY=[],Tk=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),EY=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let l=0,c=0,d=0,m;const h=r.length;for(let S=0;S<h;S++){const x=r[S];if(l===0&&c===0){if(x===Ek){i.push(r.slice(d,S)),d=S+1;continue}if(x==="/"){m=S;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const f=i.length===0?r:r.slice(d);let g=f,v=!1;f.endsWith(S_)?(g=f.slice(0,-1),v=!0):f.startsWith(S_)&&(g=f.slice(1),v=!0);const y=m&&m>d?m-d:void 0;return Tk(i,v,g,y)};if(t){const r=t+Ek,i=n;n=l=>l.startsWith(r)?i(l.slice(r.length)):Tk(xY,!1,l,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},TY=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let i=0;i<o.length;i++){const l=o[i],c=l[0]==="[",d=t.has(l);c||d?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(l)):r.push(l)}return r.length>0&&(r.sort(),n.push(...r)),n}},PY=e=>({cache:CY(e.cacheSize),parseClassName:EY(e),sortModifiers:TY(e),postfixLookupClassGroupIds:RY(e),...hY(e)}),RY=e=>{const t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let n=0;n<o.length;n++)t[o[n]]=!0;return t},AY=/\s+/,kY=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i,postfixLookupClassGroupIds:l}=t,c=[],d=e.trim().split(AY);let m="";for(let h=d.length-1;h>=0;h-=1){const f=d[h],{isExternal:g,modifiers:v,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:x}=o(f);if(g){m=f+(m.length>0?" "+m:m);continue}let _=!!x,C;if(_){const k=S.substring(0,x);C=n(k);const O=C&&l[C]?n(S):void 0;O&&O!==C&&(C=O,_=!1)}else C=n(S);if(!C){if(!_){m=f+(m.length>0?" "+m:m);continue}if(C=n(S),!C){m=f+(m.length>0?" "+m:m);continue}_=!1}const P=v.length===0?"":v.length===1?v[0]:i(v).join(":"),E=y?P+S_:P,T=E+C;if(c.indexOf(T)>-1)continue;c.push(T);const A=r(C,_);for(let k=0;k<A.length;++k){const O=A[k];c.push(E+O)}m=f+(m.length>0?" "+m:m)}return m},DY=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=gL(o))&&(r&&(r+=" "),r+=n);return r},gL=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=gL(e[n]))&&(o&&(o+=" "),o+=t);return o},OY=(e,...t)=>{let o,n,r,i;const l=d=>{const m=t.reduce((h,f)=>f(h),e());return o=PY(m),n=o.cache.get,r=o.cache.set,i=c,c(d)},c=d=>{const m=n(d);if(m)return m;const h=kY(d,o);return r(d,h),h};return i=l,(...d)=>i(DY(...d))},IY=[],Ko=e=>{const t=o=>o[e]||IY;return t.isThemeGetter=!0,t},vL=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bL=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MY=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LY=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NY=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,FY=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BY=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gi=e=>MY.test(e),gt=e=>!!e&&!Number.isNaN(Number(e)),pa=e=>!!e&&Number.isInteger(Number(e)),x0=e=>e.endsWith("%")&&gt(e.slice(0,-1)),ti=e=>LY.test(e),yL=()=>!0,jY=e=>NY.test(e)&&!FY.test(e),RC=()=>!1,UY=e=>BY.test(e),$Y=e=>zY.test(e),qY=e=>!qe(e)&&!Ve(e),VY=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),HY=e=>Cs(e,wL,RC),qe=e=>vL.test(e),Gs=e=>Cs(e,CL,jY),Pk=e=>Cs(e,XY,gt),GY=e=>Cs(e,EL,yL),KY=e=>Cs(e,xL,RC),Rk=e=>Cs(e,SL,RC),WY=e=>Cs(e,_L,$Y),Jh=e=>Cs(e,TL,UY),Ve=e=>bL.test(e),dd=e=>vl(e,CL),YY=e=>vl(e,xL),Ak=e=>vl(e,SL),ZY=e=>vl(e,wL),QY=e=>vl(e,_L),Xh=e=>vl(e,TL,!0),JY=e=>vl(e,EL,!0),Cs=(e,t,o)=>{const n=vL.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},vl=(e,t,o=!1)=>{const n=bL.exec(e);return n?n[1]?t(n[1]):o:!1},SL=e=>e==="position"||e==="percentage",_L=e=>e==="image"||e==="url",wL=e=>e==="length"||e==="size"||e==="bg-size",CL=e=>e==="length",XY=e=>e==="number",xL=e=>e==="family-name",EL=e=>e==="number"||e==="weight",TL=e=>e==="shadow",eZ=()=>{const e=Ko("color"),t=Ko("font"),o=Ko("text"),n=Ko("font-weight"),r=Ko("tracking"),i=Ko("leading"),l=Ko("breakpoint"),c=Ko("container"),d=Ko("spacing"),m=Ko("radius"),h=Ko("shadow"),f=Ko("inset-shadow"),g=Ko("text-shadow"),v=Ko("drop-shadow"),y=Ko("blur"),S=Ko("perspective"),x=Ko("aspect"),_=Ko("ease"),C=Ko("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),Ve,qe],A=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],O=()=>[Ve,qe,d],N=()=>[Gi,"full","auto",...O()],q=()=>[pa,"none","subgrid",Ve,qe],B=()=>["auto",{span:["full",pa,Ve,qe]},pa,Ve,qe],$=()=>[pa,"auto",Ve,qe],U=()=>["auto","min","max","fr",Ve,qe],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...O()],Z=()=>[Gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],te=()=>[Gi,"screen","full","dvw","lvw","svw","min","max","fit",...O()],le=()=>[Gi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],Q=()=>[e,Ve,qe],M=()=>[...E(),Ak,Rk,{position:[Ve,qe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",ZY,HY,{size:[Ve,qe]}],L=()=>[x0,dd,Gs],j=()=>["","none","full",m,Ve,qe],J=()=>["",gt,dd,Gs],me=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[gt,x0,Ak,Rk],Be=()=>["","none",y,Ve,qe],Y=()=>["none",gt,Ve,qe],ne=()=>["none",gt,Ve,qe],ve=()=>[gt,Ve,qe],ie=()=>[Gi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ti],breakpoint:[ti],color:[yL],container:[ti],"drop-shadow":[ti],ease:["in","out","in-out"],font:[qY],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ti],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ti],shadow:[ti],spacing:["px",gt],text:[ti],"text-shadow":[ti],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gi,qe,Ve,x]}],container:["container"],"container-type":[{"@container":["","normal","size",Ve,qe]}],"container-named":[VY],columns:[{columns:[gt,qe,Ve,c]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[pa,"auto",Ve,qe]}],basis:[{basis:[Gi,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gt,Gi,"auto","initial","none",qe]}],grow:[{grow:["",gt,Ve,qe]}],shrink:[{shrink:["",gt,Ve,qe]}],order:[{order:[pa,"first","last","none",Ve,qe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[c,"screen",...Z()]}],"min-w":[{"min-w":[c,"screen","none",...Z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",o,dd,Gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,JY,GY]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",x0,qe]}],"font-family":[{font:[YY,KY,t]}],"font-features":[{"font-features":[qe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Ve,qe]}],"line-clamp":[{"line-clamp":[gt,"none",Ve,Pk]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",Ve,qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[gt,"from-font","auto",Ve,Gs]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[gt,"auto",Ve,qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[pa,Ve,qe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pa,Ve,qe],radial:["",Ve,qe],conic:[pa,Ve,qe]},QY,WY]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gt,Ve,qe]}],"outline-w":[{outline:["",gt,dd,Gs]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",h,Xh,Jh]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",f,Xh,Jh]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[gt,Gs]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",g,Xh,Jh]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[gt,Ve,qe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[gt]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ve,qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[gt]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,qe]}],filter:[{filter:["","none",Ve,qe]}],blur:[{blur:Be()}],brightness:[{brightness:[gt,Ve,qe]}],contrast:[{contrast:[gt,Ve,qe]}],"drop-shadow":[{"drop-shadow":["","none",v,Xh,Jh]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",gt,Ve,qe]}],"hue-rotate":[{"hue-rotate":[gt,Ve,qe]}],invert:[{invert:["",gt,Ve,qe]}],saturate:[{saturate:[gt,Ve,qe]}],sepia:[{sepia:["",gt,Ve,qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,qe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[gt,Ve,qe]}],"backdrop-contrast":[{"backdrop-contrast":[gt,Ve,qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gt,Ve,qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gt,Ve,qe]}],"backdrop-invert":[{"backdrop-invert":["",gt,Ve,qe]}],"backdrop-opacity":[{"backdrop-opacity":[gt,Ve,qe]}],"backdrop-saturate":[{"backdrop-saturate":[gt,Ve,qe]}],"backdrop-sepia":[{"backdrop-sepia":["",gt,Ve,qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gt,"initial",Ve,qe]}],ease:[{ease:["linear","initial",_,Ve,qe]}],delay:[{delay:[gt,Ve,qe]}],animate:[{animate:["none",C,Ve,qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ve,qe]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Ve,qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],zoom:[{zoom:[pa,Ve,qe]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,qe]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[gt,dd,Gs,Pk]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},PL=OY(eZ);function Re(...e){return PL(TC(e))}function tZ(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function No({error:e,localization:t,localizeErrors:o=!0}){var n;const r="Request failed";if(!o)return e?.message?e.message:(n=e?.error)!=null&&n.message?e.error.message:r;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||r}function bl(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function __(e,t){for(const o in e)if(e[o]===t)return o}function om(e,t){let o=F().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var oZ={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"},nZ={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"},rZ={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."},aZ={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."},iZ={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},sZ={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},lZ={...iZ,...sZ},cZ={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},uZ={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},dZ={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},mZ={INVALID_SESSION_TOKEN:"Invalid session token"},fZ={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"},hZ={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"},pZ={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"},gZ={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"},vZ={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"},bZ={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"},yZ={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"},SZ={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",...aZ,...oZ,...nZ,...rZ,...lZ,...cZ,...uZ,...dZ,...mZ,...fZ,...hZ,...pZ,...gZ,...vZ,...bZ,...yZ},_Z={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"},kk={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Dk={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const RL=D.createContext({});function AL(){return D.useContext(RL)}var E0,Ok;function wZ(){if(Ok)return E0;Ok=1;var e=function(){};return E0=e,E0}var CZ=wZ();const xZ=hl(CZ);function EZ({async:e,appendTo:t,defer:o,id:n,nonce:r,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),n&&(l.id=n),r&&l.setAttribute("nonce",r),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var TZ=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let jd=null,nm=!1;const tg=new Set,og=new Set,PZ=typeof window<"u",Bc="___grecaptcha_cfg",kL=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function RZ(){if(!PZ)return;function e(o){if(nm)o();else{window[Bc]||(window[Bc]={});const n=window[Bc];n.fns||(n.fns=[]),n.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){nm=!0;for(const o of og)o();og.clear()}window[kL]=t}function AZ({language:e,onLoadCallbackName:t,render:o,useEnterprise:n=!1,useRecaptchaNet:r=!1}){const i=r?"recaptcha.net":"google.com",l=n?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function kZ({language:e,render:t,scriptProps:o,useEnterprise:n,useRecaptchaNet:r}){const i={id:"google-recaptcha-v3"},l=AZ({language:e,onLoadCallbackName:kL,render:t,useEnterprise:n,useRecaptchaNet:r});if(jd){if(jd!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}jd=l,EZ(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function DZ(e){if(!window[Bc])return;const t=window[Bc];t.clients&&delete t.clients[e]}function OZ(e,t){var{onLoadCallback:o,onLoadCallbackName:n}=t,r=TZ(t,["onLoadCallback","onLoadCallbackName"]);if(tg.size===0&&RZ(),kZ(r),tg.add(e),o&&(nm?o():og.add(o)),n){let i=function(){if(!n)return;const l=window[n];typeof l=="function"&&l()};nm?i():og.add(i)}}function IZ(e){var t,o,n;tg.delete(e),tg.size===0&&(window.grecaptcha=void 0,window[Bc]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${jd}"]`))===null||o===void 0||o.remove(),(n=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||n===void 0||n.remove(),jd=null,nm=!1)}let Ik=!1;function MZ({container:e,children:t,language:o,reCaptchaKey:n,scriptProps:r,useEnterprise:i,useRecaptchaNet:l}){var c,d,m,h,f,g,v;const y=D.useId(),[S,x]=D.useState(null),[_,C]=D.useState(null),P=D.useRef(!1);D.useEffect(()=>{function k(){var O;const N=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!N)throw new Error("reCAPTCHA not found");if(!N.ready)throw new Error("reCAPTCHA ready callback not found");N.ready(()=>{x(N)})}return OZ(y,{language:o,onLoadCallback:k,onLoadCallbackName:r?.onLoadCallbackName,render:e?.element?"explicit":n,scriptProps:{appendTo:r?.appendTo,async:r?.async,defer:r?.defer,id:r?.id,nonce:r?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{IZ(y),x(null)}},[e?.element,y,o,n,r?.appendTo,r?.async,r?.defer,r?.id,r?.nonce,r?.onLoadCallbackName,i,l]),D.useEffect(()=>{var k,O,N;if(!e?.element||!S?.render)return;const q={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((k=e.parameters)===null||k===void 0?void 0:k.badge)||"inline",callback:e.parameters.callback,sitekey:n,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const $=S.render(B,q);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(Ik||(xZ(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),Ik=!0),(N=B.querySelector(".grecaptcha-badge"))===null||N===void 0||N.style.setProperty("display","none")),C($),P.current=!0,()=>{C(null),P.current=!1,DZ($),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(m=e?.parameters)===null||m===void 0?void 0:m.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(f=e?.parameters)===null||f===void 0?void 0:f.expiredCallback,(g=e?.parameters)===null||g===void 0?void 0:g.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,n]);const E=!!e?.element,T=E?_:n,A=D.useMemo(()=>T!==null&&S?.execute?k=>{if(T===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!P.current?(console.warn("Client ID not mounted"),null):S.execute(T,{action:k})}:void 0,[T,S,E]);return R.jsx(RL.Provider,{value:{container:e?.element,executeRecaptcha:A,reCaptchaInstance:S},children:t})}var LZ=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const n of o)n()}}},Ir=new LZ;function NZ(){return()=>{}}function gi(){return D.useSyncExternalStore(NZ,()=>!0,()=>!1)}function DL(){const[e,t]=D.useState();return D.useEffect(()=>{const o=()=>{const r=document.documentElement.getAttribute("lang");t(r??void 0)};o();const n=new MutationObserver(r=>{for(const i of r)i.attributeName==="lang"&&o()});return n.observe(document.documentElement,{attributes:!0}),()=>{n.disconnect()}},[]),{lang:e}}function AC(){const[e,t]=D.useState("light");return D.useEffect(()=>{const o=()=>{var r;const i=document.documentElement.classList.contains("dark")||((r=document.documentElement.getAttribute("style"))==null?void 0:r.includes("color-scheme: dark"));t(i?"dark":"light")};o();const n=new MutationObserver(r=>{for(const i of r)(i.attributeName==="style"||i.attributeName==="class")&&o()});return n.observe(document.documentElement,{attributes:!0}),()=>{n.disconnect()}},[]),{theme:e}}function FZ({children:e}){const t=gi(),{captcha:o}=D.useContext(bt);return o?.provider!=="google-recaptcha-v3"?e:R.jsxs(MZ,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&R.jsx("style",{children:`
55
+ deps: ${h}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[m,h]=i(d);l(d,m),c(d,h)}};function i({schema:d}){const m={},h={};for(const f in d){if(f==="__proto__")continue;const g=Array.isArray(d[f])?m:h;g[f]=d[f]}return[m,h]}function l(d,m=d.schema){const{gen:h,data:f,it:g}=d;if(Object.keys(m).length===0)return;const v=h.let("missing");for(const y in m){const S=m[y];if(S.length===0)continue;const x=(0,n.propertyInData)(h,f,y,g.opts.ownProperties);d.setParams({property:y,depsCount:S.length,deps:S.join(", ")}),g.allErrors?h.if(x,()=>{for(const _ of S)(0,n.checkReportMissingProp)(d,_)}):(h.if((0,t._)`${x} && (${(0,n.checkMissingProp)(d,S,v)})`),(0,n.reportMissingProp)(d,v),h.else())}}e.validatePropertyDeps=l;function c(d,m=d.schema){const{gen:h,data:f,keyword:g,it:v}=d,y=h.name("valid");for(const S in m)(0,o.alwaysValidSchema)(v,m[S])||(h.if((0,n.propertyInData)(h,f,S,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:S},y);d.mergeValidEvaluated(x,y)},()=>h.var(y,!0)),d.ok(y))}e.validateSchemaDeps=c,e.default=r})(o0)),o0}var kh={},pA;function K9(){if(pA)return kh;pA=1,Object.defineProperty(kh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:r})=>(0,e._)`{propertyName: ${r.propertyName}}`},code(r){const{gen:i,schema:l,data:c,it:d}=r;if((0,t.alwaysValidSchema)(d,l))return;const m=i.name("valid");i.forIn("key",c,h=>{r.setParams({propertyName:h}),r.subschema({keyword:"propertyNames",data:h,dataTypes:["string"],propertyName:h,compositeRule:!0},m),i.if((0,e.not)(m),()=>{r.error(!0),d.allErrors||i.break()})}),r.ok(m)}};return kh.default=n,kh}var Dh={},gA;function v2(){if(gA)return Dh;gA=1,Object.defineProperty(Dh,"__esModule",{value:!0});const e=la(),t=vt(),o=_s(),n=Mt(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:m,data:h,errsCount:f,it:g}=l;if(!f)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=g;if(g.props=!0,y.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(g,d))return;const S=(0,e.allSchemaProperties)(m.properties),x=(0,e.allSchemaProperties)(m.patternProperties);_(),l.ok((0,t._)`${f} === ${o.default.errors}`);function _(){c.forIn("key",h,A=>{!S.length&&!x.length?E(A):c.if(C(A),()=>E(A))})}function C(A){let k;if(S.length>8){const O=(0,n.schemaRefOrVal)(g,m.properties,"properties");k=(0,e.isOwnProperty)(c,O,A)}else S.length?k=(0,t.or)(...S.map(O=>(0,t._)`${A} === ${O}`)):k=t.nil;return x.length&&(k=(0,t.or)(k,...x.map(O=>(0,t._)`${(0,e.usePattern)(l,O)}.test(${A})`))),(0,t.not)(k)}function P(A){c.code((0,t._)`delete ${h}[${A}]`)}function E(A){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){P(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,n.alwaysValidSchema)(g,d)){const k=c.name("valid");y.removeAdditional==="failing"?(T(A,k,!1),c.if((0,t.not)(k),()=>{l.reset(),P(A)})):(T(A,k),v||c.if((0,t.not)(k),()=>c.break()))}}function T(A,k,O){const N={keyword:"additionalProperties",dataProp:A,dataPropType:n.Type.Str};O===!1&&Object.assign(N,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(N,k)}}};return Dh.default=i,Dh}var Oh={},vA;function W9(){if(vA)return Oh;vA=1,Object.defineProperty(Oh,"__esModule",{value:!0});const e=Jg(),t=la(),o=Mt(),n=v2(),r={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:l,schema:c,parentSchema:d,data:m,it:h}=i;h.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&n.default.code(new e.KeywordCxt(h,n.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(c);for(const x of f)h.definedProperties.add(x);h.opts.unevaluated&&f.length&&h.props!==!0&&(h.props=o.mergeEvaluated.props(l,(0,o.toHash)(f),h.props));const g=f.filter(x=>!(0,o.alwaysValidSchema)(h,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)y(x)?S(x):(l.if((0,t.propertyInData)(l,m,x,h.opts.ownProperties)),S(x),h.allErrors||l.else().var(v,!0),l.endIf()),i.it.definedProperties.add(x),i.ok(v);function y(x){return h.opts.useDefaults&&!h.compositeRule&&c[x].default!==void 0}function S(x){i.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Oh.default=r,Oh}var Ih={},bA;function Y9(){if(bA)return Ih;bA=1,Object.defineProperty(Ih,"__esModule",{value:!0});const e=la(),t=vt(),o=Mt(),n=Mt(),r={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:l,schema:c,data:d,parentSchema:m,it:h}=i,{opts:f}=h,g=(0,e.allSchemaProperties)(c),v=g.filter(E=>(0,o.alwaysValidSchema)(h,c[E]));if(g.length===0||v.length===g.length&&(!h.opts.unevaluated||h.props===!0))return;const y=f.strictSchema&&!f.allowMatchingProperties&&m.properties,S=l.name("valid");h.props!==!0&&!(h.props instanceof t.Name)&&(h.props=(0,n.evaluatedPropsToName)(l,h.props));const{props:x}=h;_();function _(){for(const E of g)y&&C(E),h.allErrors?P(E):(l.var(S,!0),P(E),l.if(S))}function C(E){for(const T in y)new RegExp(E).test(T)&&(0,o.checkStrictMode)(h,`property ${T} matches pattern ${E} (use allowMatchingProperties)`)}function P(E){l.forIn("key",d,T=>{l.if((0,t._)`${(0,e.usePattern)(i,E)}.test(${T})`,()=>{const A=v.includes(E);A||i.subschema({keyword:"patternProperties",schemaProp:E,dataProp:T,dataPropType:n.Type.Str},S),h.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${T}]`,!0):!A&&!h.allErrors&&l.if((0,t.not)(S),()=>l.break())})})}}};return Ih.default=r,Ih}var Mh={},yA;function Z9(){if(yA)return Mh;yA=1,Object.defineProperty(Mh,"__esModule",{value:!0});const e=Mt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(o){const{gen:n,schema:r,it:i}=o;if((0,e.alwaysValidSchema)(i,r)){o.fail();return}const l=n.name("valid");o.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),o.failResult(l,()=>o.reset(),()=>o.error())},error:{message:"must NOT be valid"}};return Mh.default=t,Mh}var Lh={},SA;function Q9(){if(SA)return Lh;SA=1,Object.defineProperty(Lh,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:la().validateUnion,error:{message:"must match a schema in anyOf"}};return Lh.default=t,Lh}var Nh={},_A;function J9(){if(_A)return Nh;_A=1,Object.defineProperty(Nh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:r})=>(0,e._)`{passingSchemas: ${r.passing}}`},code(r){const{gen:i,schema:l,parentSchema:c,it:d}=r;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const m=l,h=i.let("valid",!1),f=i.let("passing",null),g=i.name("_valid");r.setParams({passing:f}),i.block(v),r.result(h,()=>r.reset(),()=>r.error(!0));function v(){m.forEach((y,S)=>{let x;(0,t.alwaysValidSchema)(d,y)?i.var(g,!0):x=r.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},g),S>0&&i.if((0,e._)`${g} && ${h}`).assign(h,!1).assign(f,(0,e._)`[${f}, ${S}]`).else(),i.if(g,()=>{i.assign(h,!0),i.assign(f,S),x&&r.mergeEvaluated(x,e.Name)})})}}};return Nh.default=n,Nh}var Fh={},wA;function X9(){if(wA)return Fh;wA=1,Object.defineProperty(Fh,"__esModule",{value:!0});const e=Mt(),t={keyword:"allOf",schemaType:"array",code(o){const{gen:n,schema:r,it:i}=o;if(!Array.isArray(r))throw new Error("ajv implementation error");const l=n.name("valid");r.forEach((c,d)=>{if((0,e.alwaysValidSchema)(i,c))return;const m=o.subschema({keyword:"allOf",schemaProp:d},l);o.ok(l),o.mergeEvaluated(m)})}};return Fh.default=t,Fh}var Bh={},CA;function eH(){if(CA)return Bh;CA=1,Object.defineProperty(Bh,"__esModule",{value:!0});const e=vt(),t=Mt(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:l,parentSchema:c,it:d}=i;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const m=r(d,"then"),h=r(d,"else");if(!m&&!h)return;const f=l.let("valid",!0),g=l.name("_valid");if(v(),i.reset(),m&&h){const S=l.let("ifClause");i.setParams({ifClause:S}),l.if(g,y("then",S),y("else",S))}else m?l.if(g,y("then")):l.if((0,e.not)(g),y("else"));i.pass(f,()=>i.error(!0));function v(){const S=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);i.mergeEvaluated(S)}function y(S,x){return()=>{const _=i.subschema({keyword:S},g);l.assign(f,g),i.mergeValidEvaluated(_,f),x?l.assign(x,(0,e._)`${S}`):i.setParams({ifClause:S})}}}};function r(i,l){const c=i.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(i,c)}return Bh.default=n,Bh}var zh={},xA;function tH(){if(xA)return zh;xA=1,Object.defineProperty(zh,"__esModule",{value:!0});const e=Mt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:o,parentSchema:n,it:r}){n.if===void 0&&(0,e.checkStrictMode)(r,`"${o}" without "if" is ignored`)}};return zh.default=t,zh}var EA;function oH(){if(EA)return Th;EA=1,Object.defineProperty(Th,"__esModule",{value:!0});const e=p2(),t=q9(),o=g2(),n=V9(),r=H9(),i=G9(),l=K9(),c=v2(),d=W9(),m=Y9(),h=Z9(),f=Q9(),g=J9(),v=X9(),y=eH(),S=tH();function x(_=!1){const C=[h.default,f.default,g.default,v.default,y.default,S.default,l.default,c.default,i.default,d.default,m.default];return _?C.push(t.default,n.default):C.push(e.default,o.default),C.push(r.default),C}return Th.default=x,Th}var jh={},Uh={},TA;function nH(){if(TA)return Uh;TA=1,Object.defineProperty(Uh,"__esModule",{value:!0});const e=vt(),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,r){const{gen:i,data:l,$data:c,schema:d,schemaCode:m,it:h}=n,{opts:f,errSchemaPath:g,schemaEnv:v,self:y}=h;if(!f.validateFormats)return;c?S():x();function S(){const _=i.scopeValue("formats",{ref:y.formats,code:f.code.formats}),C=i.const("fDef",(0,e._)`${_}[${m}]`),P=i.let("fType"),E=i.let("format");i.if((0,e._)`typeof ${C} == "object" && !(${C} instanceof RegExp)`,()=>i.assign(P,(0,e._)`${C}.type || "string"`).assign(E,(0,e._)`${C}.validate`),()=>i.assign(P,(0,e._)`"string"`).assign(E,C)),n.fail$data((0,e.or)(T(),A()));function T(){return f.strictSchema===!1?e.nil:(0,e._)`${m} && !${E}`}function A(){const k=v.$async?(0,e._)`(${C}.async ? await ${E}(${l}) : ${E}(${l}))`:(0,e._)`${E}(${l})`,O=(0,e._)`(typeof ${E} == "function" ? ${k} : ${E}.test(${l}))`;return(0,e._)`${E} && ${E} !== true && ${P} === ${r} && !${O}`}}function x(){const _=y.formats[d];if(!_){T();return}if(_===!0)return;const[C,P,E]=A(_);C===r&&n.pass(k());function T(){if(f.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(O){const N=O instanceof RegExp?(0,e.regexpCode)(O):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(d)}`:void 0,q=i.scopeValue("formats",{key:d,ref:O,code:N});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${q}.validate`]:["string",O,q]}function k(){if(typeof _=="object"&&!(_ instanceof RegExp)&&_.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${l})`}return typeof P=="function"?(0,e._)`${E}(${l})`:(0,e._)`${E}.test(${l})`}}}};return Uh.default=o,Uh}var PA;function rH(){if(PA)return jh;PA=1,Object.defineProperty(jh,"__esModule",{value:!0});const t=[nH().default];return jh.default=t,jh}var Vs={},RA;function aH(){return RA||(RA=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.contentVocabulary=Vs.metadataVocabulary=void 0,Vs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Vs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Vs}var AA;function iH(){if(AA)return uh;AA=1,Object.defineProperty(uh,"__esModule",{value:!0});const e=k9(),t=$9(),o=oH(),n=rH(),r=aH(),i=[e.default,t.default,(0,o.default)(),n.default,r.metadataVocabulary,r.contentVocabulary];return uh.default=i,uh}var $h={},rd={},kA;function sH(){if(kA)return rd;kA=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(rd.DiscrError=e={})),rd}var DA;function lH(){if(DA)return $h;DA=1,Object.defineProperty($h,"__esModule",{value:!0});const e=vt(),t=sH(),o=sC(),n=Xg(),r=Mt(),l={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:m}})=>(0,e._)`{error: ${c}, tag: ${m}, tagValue: ${d}}`},code(c){const{gen:d,data:m,schema:h,parentSchema:f,it:g}=c,{oneOf:v}=f;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=h.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),x=d.const("tag",(0,e._)`${m}${(0,e.getProperty)(y)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>_(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:y})),c.ok(S);function _(){const E=P();d.if(!1);for(const T in E)d.elseIf((0,e._)`${x} === ${T}`),d.assign(S,C(E[T]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function C(E){const T=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:E},T);return c.mergeEvaluated(A,e.Name),T}function P(){var E;const T={},A=O(f);let k=!0;for(let B=0;B<v.length;B++){let $=v[B];if($?.$ref&&!(0,r.schemaHasRulesButRef)($,g.self.RULES)){const W=$.$ref;if($=o.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,W),$ instanceof o.SchemaEnv&&($=$.schema),$===void 0)throw new n.default(g.opts.uriResolver,g.baseId,W)}const U=(E=$?.properties)===null||E===void 0?void 0:E[y];if(typeof U!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);k=k&&(A||O($)),N(U,B)}if(!k)throw new Error(`discriminator: "${y}" must be required`);return T;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function N(B,$){if(B.const)q(B.const,$);else if(B.enum)for(const U of B.enum)q(U,$);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,$){if(typeof B!="string"||B in T)throw new Error(`discriminator: "${y}" values must be unique strings`);T[B]=$}}}};return $h.default=l,$h}const cH="http://json-schema.org/draft-07/schema#",uH="http://json-schema.org/draft-07/schema#",dH="Core schema meta-schema",mH={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:[]}},fH=["object","boolean"],hH={$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:"#"}},pH={$schema:cH,$id:uH,title:dH,definitions:mH,type:fH,properties:hH,default:!0};var OA;function gH(){return OA||(OA=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const o=P9(),n=iH(),r=lH(),i=pH,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends o.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(i,l):i;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var m=Jg();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var h=vt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var f=iC();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var g=Xg();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(ah,ah.exports)),ah.exports}var qh={exports:{}},n0={},IA;function vH(){return IA||(IA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,$){return{validate:B,compare:$}}e.fullFormats={date:t(i,l),time:t(d(!0),m),"date-time":t(g(!0),v),"iso-time":t(d(),h),"iso-date-time":t(g(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:P,int32:{type:"number",validate:A},int64:{type:"number",validate:k},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),"date-time":t(/^\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":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,h),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function o(B){return B%4===0&&(B%100!==0||B%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(B){const $=n.exec(B);if(!$)return!1;const U=+$[1],W=+$[2],ae=+$[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&o(U)?29:r[W])}function l(B,$){if(B&&$)return B>$?1:B<$?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(U){const W=c.exec(U);if(!W)return!1;const ae=+W[1],H=+W[2],Z=+W[3],te=W[4],le=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!te)return!1;if(ae<=23&&H<=59&&Z<60)return!0;const G=H-M*le,V=ae-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&Z<61}}function m(B,$){if(!(B&&$))return;const U=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+$).valueOf();if(U&&W)return U-W}function h(B,$){if(!(B&&$))return;const U=c.exec(B),W=c.exec($);if(U&&W)return B=U[1]+U[2]+U[3],$=W[1]+W[2]+W[3],B>$?1:B<$?-1:0}const f=/t|\s/i;function g(B){const $=d(B);return function(W){const ae=W.split(f);return ae.length===2&&i(ae[0])&&$(ae[1])}}function v(B,$){if(!(B&&$))return;const U=new Date(B).valueOf(),W=new Date($).valueOf();if(U&&W)return U-W}function y(B,$){if(!(B&&$))return;const[U,W]=B.split(f),[ae,H]=$.split(f),Z=l(U,ae);if(Z!==void 0)return Z||m(W,H)}const S=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function _(B){return S.test(B)&&x.test(B)}const C=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function P(B){return C.lastIndex=0,C.test(B)}const E=-2147483648,T=2**31-1;function A(B){return Number.isInteger(B)&&B<=T&&B>=E}function k(B){return Number.isInteger(B)}function O(){return!0}const N=/[^\\]\\Z/;function q(B){if(N.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(n0)),n0}var r0={},MA;function bH(){return MA||(MA=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=gH(),o=vt(),n=o.operators,r={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},i={message:({keyword:c,schemaCode:d})=>(0,o.str)`should be ${r[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,o._)`{comparison: ${r[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:i,code(c){const{gen:d,data:m,schemaCode:h,keyword:f,it:g}=c,{opts:v,self:y}=g;if(!v.validateFormats)return;const S=new t.KeywordCxt(g,y.RULES.all.format.definition,"format");S.$data?x():_();function x(){const P=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),E=d.const("fmt",(0,o._)`${P}[${S.schemaCode}]`);c.fail$data((0,o.or)((0,o._)`typeof ${E} != "object"`,(0,o._)`${E} instanceof RegExp`,(0,o._)`typeof ${E}.compare != "function"`,C(E)))}function _(){const P=S.schema,E=y.formats[P];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${P}" does not define "compare" function`);const T=d.scopeValue("formats",{key:P,ref:E,code:v.code.formats?(0,o._)`${v.code.formats}${(0,o.getProperty)(P)}`:void 0});c.fail$data(C(T))}function C(P){return(0,o._)`${P}.compare(${m}, ${h}) ${r[f].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(r0)),r0}var LA;function yH(){return LA||(LA=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const o=vH(),n=bH(),r=vt(),i=new r.Name("fullFormats"),l=new r.Name("fastFormats"),c=(m,h={keywords:!0})=>{if(Array.isArray(h))return d(m,h,o.fullFormats,i),m;const[f,g]=h.mode==="fast"?[o.fastFormats,l]:[o.fullFormats,i],v=h.formats||o.formatNames;return d(m,v,f,g),h.keywords&&(0,n.default)(m),m};c.get=(m,h="full")=>{const g=(h==="fast"?o.fastFormats:o.fullFormats)[m];if(!g)throw new Error(`Unknown format "${m}"`);return g};function d(m,h,f,g){var v,y;(v=(y=m.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,r._)`require("ajv-formats/dist/formats").${g}`);for(const S of h)m.addFormat(S,f[S])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(qh,qh.exports)),qh.exports}var SH=yH();const Yde=hl(SH);let cC;cC=globalThis.crypto;async function _H(e){return(await cC).getRandomValues(new Uint8Array(e))}async function wH(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",o=Math.pow(2,8)-Math.pow(2,8)%t.length;let n="";for(;n.length<e;){const r=await _H(e-n.length);for(const i of r)i<o&&(n+=t[i%t.length])}return n}async function CH(e){return await wH(e)}async function xH(e){const t=await(await cC).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Zde(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await CH(e),o=await xH(t);return{code_verifier:t,code_challenge:o}}const vn=Pq().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:wV.custom,message:"URL must be parseable",fatal:!0}),Tj}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Qde=bn({resource:F().url(),authorization_servers:Ee(vn).optional(),jwks_uri:F().url().optional(),scopes_supported:Ee(F()).optional(),bearer_methods_supported:Ee(F()).optional(),resource_signing_alg_values_supported:Ee(F()).optional(),resource_name:F().optional(),resource_documentation:F().optional(),resource_policy_uri:F().url().optional(),resource_tos_uri:F().url().optional(),tls_client_certificate_bound_access_tokens:It().optional(),authorization_details_types_supported:Ee(F()).optional(),dpop_signing_alg_values_supported:Ee(F()).optional(),dpop_bound_access_tokens_required:It().optional()}),EH=bn({issuer:F(),authorization_endpoint:vn,token_endpoint:vn,registration_endpoint:vn.optional(),scopes_supported:Ee(F()).optional(),response_types_supported:Ee(F()),response_modes_supported:Ee(F()).optional(),grant_types_supported:Ee(F()).optional(),token_endpoint_auth_methods_supported:Ee(F()).optional(),token_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),service_documentation:vn.optional(),revocation_endpoint:vn.optional(),revocation_endpoint_auth_methods_supported:Ee(F()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),introspection_endpoint:F().optional(),introspection_endpoint_auth_methods_supported:Ee(F()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),code_challenge_methods_supported:Ee(F()).optional(),client_id_metadata_document_supported:It().optional()}),TH=bn({issuer:F(),authorization_endpoint:vn,token_endpoint:vn,userinfo_endpoint:vn.optional(),jwks_uri:vn,registration_endpoint:vn.optional(),scopes_supported:Ee(F()).optional(),response_types_supported:Ee(F()),response_modes_supported:Ee(F()).optional(),grant_types_supported:Ee(F()).optional(),acr_values_supported:Ee(F()).optional(),subject_types_supported:Ee(F()),id_token_signing_alg_values_supported:Ee(F()),id_token_encryption_alg_values_supported:Ee(F()).optional(),id_token_encryption_enc_values_supported:Ee(F()).optional(),userinfo_signing_alg_values_supported:Ee(F()).optional(),userinfo_encryption_alg_values_supported:Ee(F()).optional(),userinfo_encryption_enc_values_supported:Ee(F()).optional(),request_object_signing_alg_values_supported:Ee(F()).optional(),request_object_encryption_alg_values_supported:Ee(F()).optional(),request_object_encryption_enc_values_supported:Ee(F()).optional(),token_endpoint_auth_methods_supported:Ee(F()).optional(),token_endpoint_auth_signing_alg_values_supported:Ee(F()).optional(),display_values_supported:Ee(F()).optional(),claim_types_supported:Ee(F()).optional(),claims_supported:Ee(F()).optional(),service_documentation:F().optional(),claims_locales_supported:Ee(F()).optional(),ui_locales_supported:Ee(F()).optional(),claims_parameter_supported:It().optional(),request_parameter_supported:It().optional(),request_uri_parameter_supported:It().optional(),require_request_uri_registration:It().optional(),op_policy_uri:vn.optional(),op_tos_uri:vn.optional(),client_id_metadata_document_supported:It().optional()}),Jde=ye({...TH.shape,...EH.pick({code_challenge_methods_supported:!0}).shape}),Xde=ye({access_token:F(),id_token:F().optional(),token_type:F(),expires_in:jM().optional(),scope:F().optional(),refresh_token:F().optional()}).strip(),eme=ye({error:F(),error_description:F().optional(),error_uri:F().optional()}),NA=vn.optional().or(Ge("").transform(()=>{})),PH=ye({redirect_uris:Ee(vn),token_endpoint_auth_method:F().optional(),grant_types:Ee(F()).optional(),response_types:Ee(F()).optional(),client_name:F().optional(),client_uri:vn.optional(),logo_uri:NA,scope:F().optional(),contacts:Ee(F()).optional(),tos_uri:NA,policy_uri:F().optional(),jwks_uri:vn.optional(),jwks:Wq().optional(),software_id:F().optional(),software_version:F().optional(),software_statement:F().optional()}).strip(),RH=ye({client_id:F(),client_secret:F().optional(),client_id_issued_at:ft().optional(),client_secret_expires_at:ft().optional()}).strip(),tme=PH.merge(RH);ye({error:F(),error_description:F().optional()}).strip();ye({token:F(),token_type_hint:F().optional()}).strip();class wn extends Error{constructor(t,o){super(t),this.errorUri=o,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class WS extends wn{}WS.errorCode="invalid_request";class YS extends wn{}YS.errorCode="invalid_client";class ZS extends wn{}ZS.errorCode="invalid_grant";class QS extends wn{}QS.errorCode="unauthorized_client";class JS extends wn{}JS.errorCode="unsupported_grant_type";class XS extends wn{}XS.errorCode="invalid_scope";class e_ extends wn{}e_.errorCode="access_denied";class t_ extends wn{}t_.errorCode="server_error";class o_ extends wn{}o_.errorCode="temporarily_unavailable";class n_ extends wn{}n_.errorCode="unsupported_response_type";class r_ extends wn{}r_.errorCode="unsupported_token_type";class a_ extends wn{}a_.errorCode="invalid_token";class i_ extends wn{}i_.errorCode="method_not_allowed";class s_ extends wn{}s_.errorCode="too_many_requests";class l_ extends wn{}l_.errorCode="invalid_client_metadata";class c_ extends wn{}c_.errorCode="insufficient_scope";class u_ extends wn{}u_.errorCode="invalid_target";const ome={[WS.errorCode]:WS,[YS.errorCode]:YS,[ZS.errorCode]:ZS,[QS.errorCode]:QS,[JS.errorCode]:JS,[XS.errorCode]:XS,[e_.errorCode]:e_,[t_.errorCode]:t_,[o_.errorCode]:o_,[n_.errorCode]:n_,[r_.errorCode]:r_,[a_.errorCode]:a_,[i_.errorCode]:i_,[s_.errorCode]:s_,[l_.errorCode]:l_,[c_.errorCode]:c_,[u_.errorCode]:u_};async function b2(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(o){if(o instanceof Yg&&o.code===Qd.MethodNotFound)return{resources:[]};throw o}}async function AH(e,t){return await e.readResource({uri:t})}function nme(e){const t=ro.c(12);let o,n;t[0]!==e?({client:o,...n}=e,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]);let r;t[3]!==o?(r=au.mcpResourcesList(o),t[3]=o,t[4]=r):r=t[4];let i;t[5]!==o?(i=()=>b2(o),t[5]=o,t[6]=i):i=t[6];const l=n.staleTime??3e4;let c;return t[7]!==n||t[8]!==r||t[9]!==i||t[10]!==l?(c={...n,queryKey:r,queryFn:i,staleTime:l,retry:!1},t[7]=n,t[8]=r,t[9]=i,t[10]=l,t[11]=c):c=t[11],pl(c)}function rme(e){const t=ro.c(12);let o,n;t[0]!==e?({client:o,...n}=e,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]);let r;t[3]!==o?(r=au.mcpResourcesList(o),t[3]=o,t[4]=r):r=t[4];let i;t[5]!==o?(i=()=>b2(o),t[5]=o,t[6]=i):i=t[6];const l=n.staleTime??3e4;let c;return t[7]!==n||t[8]!==r||t[9]!==i||t[10]!==l?(c={...n,queryKey:r,queryFn:i,staleTime:l,retry:!1},t[7]=n,t[8]=r,t[9]=i,t[10]=l,t[11]=c):c=t[11],AI(c)}function ame(e){const t=ro.c(15);let o,n,r;t[0]!==e?({client:o,uri:r,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r):(o=t[1],n=t[2],r=t[3]);let i;t[4]!==o||t[5]!==r?(i=au.mcpReadResource(o,r),t[4]=o,t[5]=r,t[6]=i):i=t[6];let l;t[7]!==o||t[8]!==r?(l=()=>AH(o,r),t[7]=o,t[8]=r,t[9]=l):l=t[9];const c=n.staleTime??3e4;let d;return t[10]!==n||t[11]!==i||t[12]!==l||t[13]!==c?(d={...n,queryKey:i,queryFn:l,staleTime:c,retry:!1},t[10]=n,t[11]=i,t[12]=l,t[13]=c,t[14]=d):d=t[14],pl(d)}const y2="ui-resource-html";function ime(e){const t=ro.c(20);let o,n,r,i,l;t[0]!==e?({orgSlug:r,connectionId:o,uri:l,meshUrl:n,...i}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);let c;t[6]!==o||t[7]!==r||t[8]!==l?(c=au.mcpUiResourceHtml(r,o,l),t[6]=o,t[7]=r,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==o||t[11]!==n||t[12]!==r||t[13]!==l?(d=async()=>{const g=`${n??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(r)}/mcp/${encodeURIComponent(o)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=o,t[11]=n,t[12]=r,t[13]=l,t[14]=d):d=t[14];const m=i.staleTime??3e4;let h;return t[15]!==i||t[16]!==c||t[17]!==d||t[18]!==m?(h={...i,queryKey:c,queryFn:d,staleTime:m,retry:!1},t[15]=i,t[16]=c,t[17]=d,t[18]=m,t[19]=h):h=t[19],pl(h)}const kH=ye({authorizationEndpoint:F().url(),tokenEndpoint:F().url(),introspectionEndpoint:F().url().optional(),clientId:F(),clientSecret:F().optional(),scopes:Ee(F()),grantType:no(["authorization_code","client_credentials"])}),FA=ye({type:Ge("object"),properties:Dt(F(),Gt()).optional(),required:Ee(F()).optional()}).catchall(Gt()),DH=aC.extend({inputSchema:FA,outputSchema:FA.optional()}),OH=ye({headers:Dt(F(),F()).optional()}),IH=ye({command:F().describe("Command to run (e.g., 'npx', 'node')"),args:Ee(F()).optional().describe("Command arguments"),cwd:F().optional().describe("Working directory"),envVars:Dt(F(),F()).optional().describe("Environment variables (encrypted in storage)")}),S2=ye({id:F().describe("Unique identifier for the connection"),title:F().describe("Human-readable name for the connection"),created_at:F().describe("When the connection was created"),updated_at:F().describe("When the connection was last updated"),created_by:F().describe("User ID who created the connection"),updated_by:F().optional().describe("User ID who last updated the connection"),organization_id:F().describe("Organization ID this connection belongs to"),description:F().nullable().describe("Description of the connection"),icon:F().nullable().describe("Icon URL for the connection"),app_name:F().nullable().describe("Associated app name"),app_id:F().nullable().describe("Associated app ID"),slug:F().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:no(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:F().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:F().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:oo([IH,OH]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:kH.nullable().describe("OAuth configuration"),configuration_state:Dt(F(),Gt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Ee(F()).nullable().optional().describe("Configuration scopes"),metadata:Dt(F(),Gt()).nullable().describe("Additional metadata (includes repository info)"),tools:Ee(DH).nullable().describe("Discovered tools from MCP"),bindings:Ee(F()).nullable().describe("Detected bindings"),status:no(["active","inactive","error"]).describe("Current status")});S2.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:F().nullish()});S2.partial();function sme(e){return e!=null&&"command"in e}function lme(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Td=ye({connection_id:F().describe("Connection ID"),selected_tools:Ee(F()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Ee(F()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Ee(F()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),_2=Td.extend({selected_tools:Td.shape.selected_tools.optional(),selected_resources:Td.shape.selected_resources.optional(),selected_prompts:Td.shape.selected_prompts.optional()}),MH=ye({connectionId:F(),toolName:F(),label:F(),icon:F().nullable().optional()}),LH=ye({id:F().describe("Stable id; used as React key and ?tab= value"),title:F().describe("Tab label"),icon:F().optional().describe("Optional lucide icon name"),view:ye({type:Ge("ext-app"),appId:F(),args:Dt(F(),Gt()).optional()})}),NH=ye({defaultMainView:ye({type:F(),id:F().optional(),toolName:F().optional()}).nullable().optional(),chatDefaultOpen:It().nullable().optional(),tabs:Ee(LH).optional()}),BA=ye({tileId:F().optional(),connectionId:F().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:F().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:F().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:Dt(F(),Gt()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:ft().int().positive().optional(),maxHeight:ft().int().positive().optional()}),uC=ye({banner:F().nullable().optional(),bannerColor:F().nullable().optional(),icon:F().nullable().optional(),themeColor:F().nullable().optional(),pinnedViews:Ee(MH).nullable().optional(),layout:NH.nullable().optional(),homeTile:BA.nullable().optional(),homeTiles:Ee(BA).nullable().optional(),homePrompts:Ee(F()).nullable().optional()});function cme(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const o=e?.homeTile;return o?[o]:[]}const FH=/^[A-Za-z_][A-Za-z0-9_]*$/,zA=F().min(1).regex(FH,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),BH=Gw("kind",[ye({key:zA,kind:Ge("literal"),value:F()}),ye({key:zA,kind:Ge("secret"),secretId:F().min(1)})]),zH=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/,jH=ye({host:F().min(1).regex(zH).describe("Submodule host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:F().min(1).describe("Vault secret id holding the PAT used to fetch this host.")}),dC=ye({selected:F().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:F().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:F().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Ee(BH).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config."),submoduleCredentials:Ee(jH).nullable().optional().describe("Git submodule credentials injected on every SANDBOX_START. Each entry maps a host to a vault secret (PAT) that mesh resolves before posting /_sandbox/config; the daemon uses it to authenticate `git submodule update` for submodules on that host.")}),mC=ye({url:F().describe("GitHub repository URL"),owner:F().describe("Repository owner"),name:F().describe("Repository name"),installationId:ft().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:F().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),UH=no(["agent-sandbox","user-desktop"]),$H=no(["agent-sandbox","user-desktop","cluster"]);function w2(e){return e==="cluster"?"agent-sandbox":e}const C2={sandboxHandle:F().describe("Provider-specific handle"),previewUrl:F().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:F().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:UH.optional(),createdAt:ft().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:ye({packageManager:F().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:F().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:F().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x2=ye(C2),qH=ye({...C2,sandboxProviderKind:$H.optional()});function VH(e){const t=qH.parse(e);return x2.parse({...t,sandboxProviderKind:t.sandboxProviderKind?w2(t.sandboxProviderKind):void 0})}function ume(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,o={};for(const[n,r]of Object.entries(t)){if(!r||typeof r!="object"||n!=="cluster"&&n!=="agent-sandbox"&&n!=="user-desktop")continue;const i=w2(n);try{if(n==="cluster"&&o[i])continue;o[i]=VH(r)}catch{}}return o}const fC=Dt(F().describe("userId"),Dt(F().describe("branch"),Dt(F().describe("sandboxProviderKind"),x2))),HH=ye({id:F().describe("Stable identifier for this knowledge file"),name:F().describe("File name shown in the UI"),kind:no(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:F().describe("Org filesystem (Library) volume the file lives in"),path:F().describe("Path within the volume"),url:F().describe("Same-origin URL to read the file (display/download)"),contentType:F().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:ft().nullable().optional().describe("File size in bytes"),addedAt:F().describe("ISO timestamp when the file was attached")}),hC=Ee(HH).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),GH=no(["smart","code-review","open"]),pC=GH.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),dme=ye({id:F().describe("Unique identifier"),title:F().describe("Human-readable name"),description:F().nullable().describe("Description"),icon:F().nullable().describe("Icon URL"),created_at:F().describe("Creation timestamp"),updated_at:F().describe("Last update timestamp"),created_by:F().describe("User ID who created this item"),updated_by:F().optional().describe("User ID who last updated this item"),organization_id:F().describe("Organization ID this item belongs to"),status:no(["active","inactive"]).describe("Current status"),pinned:It().describe("Whether this space is pinned to the sidebar"),metadata:ye({instructions:F().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().describe("Metadata"),connections:Ee(Td).describe("Connections with their selected tools, resources, and prompts")}),E2=ye({title:F().min(1).max(120).describe("Short label shown on the chip"),description:F().max(280).optional().describe("One-line subtitle shown under the title"),text:F().min(1).describe("The message sent to the agent when the prompt is clicked")});ye({title:F().min(1).max(255).describe("Name for the virtual MCP"),description:F().nullable().optional().describe("Optional description"),icon:F().nullish().describe("Optional icon URL"),status:no(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:It().optional().default(!1).describe("Pin to sidebar"),metadata:ye({instructions:F().nullable().optional().describe("MCP server instructions"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Ee(_2).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:Ee(E2).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});ye({title:F().min(1).max(255).optional().describe("New name"),description:F().nullable().optional().describe("New description (null to clear)"),icon:F().nullish().describe("New icon URL"),status:no(["active","inactive"]).optional().describe("New status"),pinned:It().optional().describe("Pin/unpin from sidebar"),metadata:ye({instructions:F().nullable().optional().describe("MCP server instructions"),enabled_plugins:Ee(F()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Ee(F()).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:F().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:uC.nullable().optional().describe("UI customization settings"),githubRepo:mC.nullable().optional().describe("Linked GitHub repository"),runtime:dC.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:fC.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }"),knowledge:hC,siteSlug:F().nullable().optional().describe("Linked asset site slug (managed storage tenancy)"),publishPolicy:pC,productionUrl:F().nullable().optional().describe("Live production URL of the linked site (e.g. https://acme.com). Painted in the preview iframe while the sandbox dev server is waking.")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Ee(_2).optional().describe("New connections (replaces existing)"),prompts:Ee(E2).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});var jA;(function(e){e.Completable="McpCompletable"})(jA||(jA={}));const T2={publicConfig:()=>["publicConfig"],appVersionCheck:()=>["appVersionCheck"],session:()=>["session"],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],myCapabilities:e=>[e,"my-capabilities"],taskBoardItems:e=>[e,"task-board-items"],taskBoardItemPrs:(e,t)=>[e,"task-board-item-prs",t],homeGithubRecentPrs:(e,t)=>["home-github-recent-prs",e,t],homeGithubContributions:(e,t)=>["home-github-contributions",e,t],report:(e,t,o)=>["report",e,t??"",o??""],commerceDiscoveryConnection:(e,t)=>["commerce-discovery","connection",e,t],commerceDiscoveryDiagnostic:(e,t)=>["commerce-discovery","diagnostic",e,t],commerceDiscoveryVirtualMcp:(e,t)=>["commerce-discovery","virtual-mcp",e,t],commerceDiscoveryCompanionSchema:(e,t)=>["commerce-discovery","companion-schema",e,t],commerceDiscoveryCompanionConnections:(e,t)=>["commerce-discovery","companion-connections",e,t],commerceDiscoveryCompanionConnectionsPrefix:e=>["commerce-discovery","companion-connections",e],commerceDiscoveryCompanionRegistry:(e,t)=>["commerce-discovery","companion-registry",e,t],commerceDiscoveryCompanionOAuthStatus:(e,t)=>["commerce-discovery","companion-oauth-status",e,t],commerceDiscoveryCompanionGaProperties:(e,t)=>["commerce-discovery","companion-ga-properties",e,t],commerceDiscoveryCompanionGscSites:(e,t)=>["commerce-discovery","companion-gsc-sites",e,t],commerceDiscoveryCompanionGithubRepos:(e,t,o)=>["commerce-discovery","companion-github-repos",e,t,o],commerceDiscoveryCompanionGithubSelected:(e,t)=>["commerce-discovery","companion-github-selected",e,t],commerceDiscoveryConnectionStatus:(e,t)=>["commerce-discovery","connection-status",e,t],connectionActivity:(e,t,o)=>["monitoring","activity",e,t,o],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],mcpClientPrefix:()=>["mcp","client"],organizationSettings:e=>["organization-settings",e],apiKeysList:e=>["api-keys",e],activeOrganization:e=>["activeOrganization",e],orgAccessStatus:e=>["org-access-status",e],modelsList:e=>["models-list",e],homeNextActions:e=>["home-next-actions",e],boardLayout:e=>["board-layout",e],agentPrompts:(e,t)=>["agent-prompts",e,t],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,o)=>["tool-call",e,t,o],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,o)=>[e,t,"collection",o],collectionItem:(e,t,o,n,r)=>[e,t,o,"collection",n,r],collectionList:(e,t,o,n,r)=>[e,t,o,"collection",n,"list",r],collectionListInfinite:(e,t,o,n,r)=>[e,t,o,"collection",n,"list-infinite",r],monitoringStats:()=>["monitoring","stats"],monitoringStatsToolCalls:(e,t)=>["MONITORING_STATS",e,"tool-calls",t],monitoringStatsLlm:(e,t)=>["MONITORING_STATS",e,"llm",t],monitoringThreadUsage:(e,t)=>["MONITORING_THREAD_USAGE",e,t],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringLogDetail:e=>["monitoring","log-detail",e],ensureTask:(e,t)=>["ensure-task",e,t],globalSearch:(e,t)=>["global-search",e,t],threadsInfinite:(e,t)=>["threads","list-infinite",e,t],overviewThreads:e=>["threads","overview",e],threadMessages:(e,t)=>["threads","messages",e,t],threadModelLogs:(e,t)=>["threads","model-logs",e,t],threadSandbox:(e,t)=>["thread-sandbox","v2",e,t],threadOutputs:e=>["thread-outputs",e],fileText:e=>["file-text",e],csvThumb:e=>["csv-thumb",e],virtualMcpTools:(e,t)=>["virtual-mcp",t,e??"default","tools"],toolDefinitionLookup:(e,t,o)=>["virtual-mcp",t,e??"default","tools","lookup",o],virtualMcpAgents:e=>["virtual-mcp",e,"agents"],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,o)=>[...e,t,o],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],automationsAll:e=>["automations",e],automations:(e,t)=>["automations",e,t??null],automation:(e,t)=>["automation",e,t],automationRuns:(e,t,o)=>["automation-runs",e,t,...[...o??[]].sort()],automationRunStats:(e,t,o)=>["automation-run-stats",e,t,o],projects:e=>["projects",e],project:(e,t)=>["project",e,t],virtualMcp:(e,t)=>["virtual-mcp",e,t],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t],aiProviders:e=>["ai-providers",e],aiProviderModels:(e,t)=>["ai-provider-models",e,t],aiProviderKeys:e=>["ai-provider-keys",e],aiProviderKeyPreview:e=>["ai-provider-key-preview",e],secrets:e=>["secrets",e],fileConfigs:e=>["file-configs",e],orgFsVolume:(e,t)=>["org-fs",e,t],orgFsList:(e,t,o)=>["org-fs",e,t,"list",o],orgFsUsage:(e,t)=>["org-fs",e,t,"usage"],orgFsStat:(e,t,o)=>["org-fs",e,t,"stat",o],orgFsPublicSets:e=>["org-fs-public-sets",e],orgFsRecent:e=>["org-fs-recent",e],orgFsSearchRoot:e=>["org-fs-search",e],orgFsSearch:(e,t)=>["org-fs-search",e,t],orgFsSkills:e=>["org-fs-skills",e],slashSkills:e=>["slash-skills",e],filePickerObjects:(e,t,o,n)=>["file-picker-objects",e,t,o??"",n??!1],aiProviderCredits:(e,t)=>["ai-provider-credits",e,t],orgSsoConfig:e=>["org-sso-config",e],orgSsoStatus:e=>["org-sso-status",e],storeDiscovery:(e,t)=>["store-discovery",e,t],organizationDomains:e=>["organization-domains",e],organizationJoinRequests:e=>["organization-join-requests",e],domainLookup:e=>["domain-lookup",e],deploymentAdminMe:()=>["deployment-admin","me"],deploymentAdminUsers:e=>["deployment-admin","users",e],deploymentAdminOrgs:e=>["deployment-admin","orgs",e],deploymentAdminOrgsList:()=>["deployment-admin","orgs"],brandContext:e=>["brand-context",e],defaultBrand:e=>["brand-context",e,"default"],decoProfile:e=>["deco-profile",e],decoSites:e=>["deco-sites",e],decoApps:()=>["deco-apps"],webSearchBlob:e=>["web-search-blob",e],decofile:e=>["decofile",e],liveMeta:(...e)=>["live-meta",...e],sandboxInvoke:(e,t)=>["sandbox-invoke",e,t],sandboxRepoDir:(e,t,o)=>["sandbox-repo-dir",e,t,o],agentSandboxSession:(e,t,o)=>["agent-sandbox-session",e,t,o],agentSandboxSessionsPrefix:()=>["agent-sandbox-session"],agentSandboxSessions:(e,t)=>["agent-sandbox-session",e,t],sandboxSprite:e=>["sandbox-sprite",e],linkStatus:()=>["link-status"],currentLink:e=>["current-link",e],githubUserOrgs:(e,t)=>["github-user-orgs",e,t],githubOrgRepos:(e,t,o,n)=>["github-org-repos",e,t,o,n],vmEnv:(e,t,o)=>["vm-env",e,t,o]};function mme(e,t){e.invalidateQueries({predicate:o=>{const n=o.queryKey;return(!t||n[1]===t)&&n[3]==="collection"&&n[4]==="VIRTUAL_MCP"}})}function fme(e,t){e.invalidateQueries({predicate:o=>{const n=o.queryKey;return(!t||n[1]===t)&&n[3]==="collection"&&n[4]==="CONNECTIONS"}})}function P2(){const e=ro.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:T2.publicConfig(),queryFn:KH,staleTime:1/0},e[0]=t):t=e[0];const{data:o}=pl(t);return o}async function KH(){return(await(await fetch("/api/config")).json()).config}const hme={light:"/logos/deco logo.svg",dark:"/logos/deco logo negative.svg"},R2=D.createContext(void 0);function WH(e){const t=ro.c(3),{children:o}=e,n=P2();let r;return t[0]!==o||t[1]!==n.auth?(r=R.jsx(R2.Provider,{value:n.auth,children:o}),t[0]=o,t[1]=n.auth,t[2]=r):r=t[2],r}function pme(){const e=D.useContext(R2);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var UA=D.use,Ac=typeof window<"u"?D.useLayoutEffect:D.useEffect;function a0(e){const t=D.useRef({value:e,prev:null}),o=t.current.value;return e!==o&&(t.current={value:e,prev:o}),t.current.prev}function YH(e,t,o={},n={}){D.useEffect(()=>{if(!e.current||n.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([i])=>{t(i)},o);return r.observe(e.current),()=>{r.disconnect()}},[t,o,n.disabled,e])}function ZH(e){const t=D.useRef(null);return D.useImperativeHandle(e,()=>t.current,[]),t}const A2=!1;function Jd(e){return e[e.length-1]}function QH(e){return typeof e=="function"}function rs(e,t){return QH(e)?e(t):e}const k2=Object.prototype.hasOwnProperty,$A=Object.prototype.propertyIsEnumerable;function D2(e){for(const t in e)if(k2.call(e,t))return!0;return!1}const JH=()=>Object.create(null),Hs=(e,t)=>nl(e,t,JH);function nl(e,t,o=()=>({}),n=0){if(e===t)return e;if(n>500)return t;const r=t,i=HA(e)&&HA(r);if(!i&&!(Wc(e)&&Wc(r)))return r;const l=i?e:qA(e);if(!l)return r;const c=i?r:qA(r);if(!c)return r;const d=l.length,m=c.length,h=i?new Array(m):o();let f=0;for(let g=0;g<m;g++){const v=i?g:c[g],y=e[v],S=r[v];if(y===S){h[v]=y,(i?g<d:k2.call(e,v))&&f++;continue}if(y===null||S===null||typeof y!="object"||typeof S!="object"){h[v]=S;continue}const x=nl(y,S,o,n+1);h[v]=x,x===y&&f++}return d===m&&f===d?e:h}function qA(e){const t=Object.getOwnPropertyNames(e);for(const r of t)if(!$A.call(e,r))return!1;const o=Object.getOwnPropertySymbols(e);if(o.length===0)return t;const n=t;for(const r of o){if(!$A.call(e,r))return!1;n.push(r)}return n}function Wc(e){if(!VA(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const o=t.prototype;return!(!VA(o)||!o.hasOwnProperty("isPrototypeOf"))}function VA(e){return Object.prototype.toString.call(e)==="[object Object]"}function HA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function il(e,t,o){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!il(e[n],t[n],o))return!1;return!0}if(Wc(e)&&Wc(t)){const n=o?.ignoreUndefined??!0;if(o?.partial){for(const l in t)if((!n||t[l]!==void 0)&&!il(e[l],t[l],o))return!1;return!0}let r=0;if(!n)r=Object.keys(e).length;else for(const l in e)e[l]!==void 0&&r++;let i=0;for(const l in t)if((!n||t[l]!==void 0)&&(i++,i>r||!il(e[l],t[l],o)))return!1;return r===i}return!1}function Yc(e){let t,o;const n=new Promise((r,i)=>{t=r,o=i});return n.status="pending",n.resolve=r=>{n.status="resolved",n.value=r,t(r),e?.(r)},n.reject=r=>{n.status="rejected",o(r)},n}function XH(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Xd(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function eG(e){return e.replace(/[\x00-\x1f\x7f]/g,"")}function GA(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return eG(t)}const tG=["http:","https:","mailto:","tel:"];function Yp(e,t){if(!e)return!1;try{const o=new URL(e);return!t.has(o.protocol)}catch{return!1}}function ad(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let o=0,n="",r;for(;(r=t.exec(e))!==null;)n+=GA(e.slice(o,r.index))+r[0],o=t.lastIndex;n=n+GA(o?e.slice(o):e);let i=!1;return n.startsWith("//")&&(i=!0,n="/"+n.replace(/^\/+/,"")),{path:n,handledProtocolRelativeURL:i}}function oG(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function nG(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function di(){throw new Error("Invariant failed")}function em(e){const t=new Map;let o,n;const r=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,n&&(n.next=i,i.prev=n)):(i.next.prev=void 0,o=i.next,i.next=void 0,n&&(i.prev=n,n.next=i)),n=i)};return{get(i){const l=t.get(i);if(l)return r(l),l.value},set(i,l){if(t.size>=e&&o){const d=o;t.delete(d.key),d.next&&(o=d.next,d.next.prev=void 0),d===n&&(n=void 0)}const c=t.get(i);if(c)c.value=l,r(c);else{const d={key:i,value:l,prev:n};n&&(n.next=d),n=d,o||(o=d),t.set(i,d)}},clear(){t.clear(),o=void 0,n=void 0}}}const as=4,O2=5;function rG(e){const t=e.indexOf("{");if(t===-1)return null;const o=e.indexOf("}",t);return o===-1||t+1>=e.length?null:[t,o]}function I2(e,t,o=new Uint16Array(6)){const n=e.indexOf("/",t),r=n===-1?e.length:n,i=e.substring(t,r);if(!i||!i.includes("$"))return o[0]=0,o[1]=t,o[2]=t,o[3]=r,o[4]=r,o[5]=r,o;if(i==="$"){const c=e.length;return o[0]=2,o[1]=t,o[2]=t,o[3]=c,o[4]=c,o[5]=c,o}if(i.charCodeAt(0)===36)return o[0]=1,o[1]=t,o[2]=t+1,o[3]=r,o[4]=r,o[5]=r,o;const l=rG(i);if(l){const[c,d]=l,m=i.charCodeAt(c+1);if(m===45){if(c+2<i.length&&i.charCodeAt(c+2)===36){const h=c+3,f=d;if(h<f)return o[0]=3,o[1]=t+c,o[2]=t+h,o[3]=t+f,o[4]=t+d+1,o[5]=r,o}}else if(m===36){const h=c+1,f=c+2;return f===d?(o[0]=2,o[1]=t+c,o[2]=t+h,o[3]=t+f,o[4]=t+d+1,o[5]=e.length,o):(o[0]=1,o[1]=t+c,o[2]=t+f,o[3]=t+d,o[4]=t+d+1,o[5]=r,o)}}return o[0]=0,o[1]=t,o[2]=t,o[3]=r,o[4]=r,o[5]=r,o}function ev(e,t,o,n,r,i,l){l?.(o);let c=n;{const d=o.fullPath??o.from,m=d.length,h=o.options?.caseSensitive??e,f=o.options?.params?.parse??o.options?.parseParams;for(;c<m;){const v=I2(d,c,t);let y;const S=c,x=v[5];switch(c=x+1,i++,v[0]){case 0:{const _=d.substring(v[2],v[3]);if(h){const C=r.static?.get(_);if(C)y=C;else{r.static??=new Map;const P=rl(o.fullPath??o.from);P.parent=r,P.depth=i,y=P,r.static.set(_,P)}}else{const C=_.toLowerCase(),P=r.staticInsensitive?.get(C);if(P)y=P;else{r.staticInsensitive??=new Map;const E=rl(o.fullPath??o.from);E.parent=r,E.depth=i,y=E,r.staticInsensitive.set(C,E)}}break}case 1:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=!f&&r.dynamic?.find(k=>!k.parse&&k.caseSensitive===P&&k.prefix===E&&k.suffix===T);if(A)y=A;else{const k=s0(1,o.fullPath??o.from,P,E,T);y=k,k.depth=i,k.parent=r,r.dynamic??=[],r.dynamic.push(k)}break}case 3:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=!f&&r.optional?.find(k=>!k.parse&&k.caseSensitive===P&&k.prefix===E&&k.suffix===T);if(A)y=A;else{const k=s0(3,o.fullPath??o.from,P,E,T);y=k,k.parent=r,k.depth=i,r.optional??=[],r.optional.push(k)}break}case 2:{const _=d.substring(S,v[1]),C=d.substring(v[4],x),P=h&&!!(_||C),E=_?P?_:_.toLowerCase():void 0,T=C?P?C:C.toLowerCase():void 0,A=s0(2,o.fullPath??o.from,P,E,T);y=A,A.parent=r,A.depth=i,r.wildcard??=[],r.wildcard.push(A)}}r=y}if(f&&o.children&&!o.isRoot&&o.id&&o.id.charCodeAt(o.id.lastIndexOf("/")+1)===95){const v=rl(o.fullPath??o.from);v.kind=O2,v.parent=r,i++,v.depth=i,r.pathless??=[],r.pathless.push(v),r=v}const g=(o.path||!o.children)&&!o.isRoot;if(g&&d.endsWith("/")){const v=rl(o.fullPath??o.from);v.kind=as,v.parent=r,i++,v.depth=i,r.index=v,r=v}r.parse=f??null,g&&!r.route&&(r.route=o,r.fullPath=o.fullPath??o.from)}if(o.children)for(const d of o.children)ev(e,t,d,c,r,i,l)}function i0(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function es(e){if(e.pathless)for(const t of e.pathless)es(t);if(e.static)for(const t of e.static.values())es(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())es(t);if(e.dynamic?.length){e.dynamic.sort(i0);for(const t of e.dynamic)es(t)}if(e.optional?.length){e.optional.sort(i0);for(const t of e.optional)es(t)}if(e.wildcard?.length){e.wildcard.sort(i0);for(const t of e.wildcard)es(t)}}function rl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null}}function s0(e,t,o,n,r){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,caseSensitive:o,prefix:n,suffix:r}}function aG(e,t){const o=rl("/"),n=new Uint16Array(6);for(const r of e)ev(!1,n,r,1,o,0);es(o),t.masksTree=o,t.flatCache=em(1e3)}function iG(e,t){e||="/";const o=t.flatCache.get(e);if(o)return o;const n=gC(e,t.masksTree);return t.flatCache.set(e,n),n}function sG(e,t,o,n,r){e||="/",n||="/";const i=t?`case\0${e}`:e;let l=r.singleCache.get(i);return l||(l=rl("/"),ev(t,new Uint16Array(6),{from:e},1,l,0),r.singleCache.set(i,l)),gC(n,l,o)}function lG(e,t,o=!1){const n=o?e:`nofuzz\0${e}`,r=t.matchCache.get(n);if(r!==void 0)return r;e||="/";let i;try{i=gC(e,t.segmentTree,o)}catch(l){if(l instanceof URIError)i=null;else throw l}return i&&(i.branch=L2(i.route)),t.matchCache.set(n,i),i}function cG(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function uG(e,t=!1,o){const n=rl(e.fullPath),r=new Uint16Array(6),i={},l={};let c=0;return ev(t,r,e,1,n,0,d=>{if(o?.(d,c),d.id in i&&di(),i[d.id]=d,c!==0&&d.path){const m=cG(d.fullPath);(!l[m]||d.fullPath.endsWith("/"))&&(l[m]=d)}c++}),es(n),{processedTree:{segmentTree:n,singleCache:em(1e3),matchCache:em(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:l}}function gC(e,t,o=!1){const n=e.split("/"),r=mG(e,n,t,o);if(!r)return null;const[i]=M2(e,n,r);return{route:r.node.route,rawParams:i}}function M2(e,t,o){const n=dG(o.node);let r=null;const i=Object.create(null);let l=o.extract?.part??0,c=o.extract?.node??0,d=o.extract?.path??0,m=o.extract?.segment??0;for(;c<n.length;l++,c++,d++,m++){const h=n[c];if(h.kind===as)break;if(h.kind===O2){m--,l--,d--;continue}const f=t[l],g=d;if(f&&(d+=f.length),h.kind===1){r??=o.node.fullPath.split("/");const v=r[m],y=h.prefix?.length??0;if(v.charCodeAt(y)===123){const S=h.suffix?.length??0,x=v.substring(y+2,v.length-S-1),_=f.substring(y,f.length-S);i[x]=decodeURIComponent(_)}else{const S=v.substring(1);i[S]=decodeURIComponent(f)}}else if(h.kind===3){if(o.skipped&1<<c){l--,d=g-1;continue}r??=o.node.fullPath.split("/");const v=r[m],y=h.prefix?.length??0,S=h.suffix?.length??0,x=v.substring(y+3,v.length-S-1),_=h.suffix||h.prefix?f.substring(y,f.length-S):f;_&&(i[x]=decodeURIComponent(_))}else if(h.kind===2){const v=h,y=e.substring(g+(v.prefix?.length??0),e.length-(v.suffix?.length??0)),S=decodeURIComponent(y);i["*"]=S,i._splat=S;break}}return o.rawParams&&Object.assign(i,o.rawParams),[i,{part:l,node:c,path:d,segment:m}]}function L2(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function dG(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function mG(e,t,o,n){if(e==="/"&&o.index)return{node:o.index,skipped:0};const r=!Jd(t),i=r&&e!=="/",l=t.length-(r?1:0),c=[{node:o,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let d=null,m=null;for(;c.length;){const h=c.pop(),{node:f,index:g,skipped:v,depth:y,statics:S,dynamics:x,optionals:_}=h;let{extract:C,rawParams:P}=h;if(f.kind===2&&f.route&&!Hh(m,h))continue;if(f.parse){if(!KA(e,t,h))continue;P=h.rawParams,C=h.extract}n&&f.route&&f.kind!==as&&Hh(d,h)&&(d=h);const E=g===l;if(E&&(f.route&&(!i||f.kind===as||f.kind===2)&&Hh(m,h)&&(m=h),!f.optional&&!f.wildcard&&!f.index&&!f.pathless))continue;const T=E?void 0:t[g];let A;if(E&&f.index){const k={node:f.index,index:g,skipped:v,depth:y+1,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P};let O=!0;if(f.index.parse&&(KA(e,t,k)||(O=!1)),O){if(!x&&!_&&!v&&fG(S,l))return k;Hh(m,k)&&(m=k)}}if(f.wildcard)for(let k=f.wildcard.length-1;k>=0;k--){const O=f.wildcard[k],{prefix:N,suffix:q}=O;if(!(N&&(E||!(O.caseSensitive?T:A??=T.toLowerCase()).startsWith(N)))){if(q){if(E)continue;const B=t.slice(g).join("/").slice(-q.length);if((O.caseSensitive?B:B.toLowerCase())!==q)continue}c.push({node:O,index:l,skipped:v,depth:y+1,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}}if(f.optional){const k=v|1<<y,O=y+1;for(let N=f.optional.length-1;N>=0;N--){const q=f.optional[N];c.push({node:q,index:g,skipped:k,depth:O,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}if(!E)for(let N=f.optional.length-1;N>=0;N--){const q=f.optional[N],{prefix:B,suffix:$}=q;if(B||$){const U=q.caseSensitive?T:A??=T.toLowerCase();if(B&&!U.startsWith(B)||$&&!U.endsWith($))continue}c.push({node:q,index:g+1,skipped:v,depth:O,statics:S,dynamics:x,optionals:_+Vh(l,g),extract:C,rawParams:P})}}if(!E&&f.dynamic&&T)for(let k=f.dynamic.length-1;k>=0;k--){const O=f.dynamic[k],{prefix:N,suffix:q}=O;if(N||q){const B=O.caseSensitive?T:A??=T.toLowerCase();if(N&&!B.startsWith(N)||q&&!B.endsWith(q))continue}c.push({node:O,index:g+1,skipped:v,depth:y+1,statics:S,dynamics:x+Vh(l,g),optionals:_,extract:C,rawParams:P})}if(!E&&f.staticInsensitive){const k=f.staticInsensitive.get(A??=T.toLowerCase());k&&c.push({node:k,index:g+1,skipped:v,depth:y+1,statics:S+Vh(l,g),dynamics:x,optionals:_,extract:C,rawParams:P})}if(!E&&f.static){const k=f.static.get(T);k&&c.push({node:k,index:g+1,skipped:v,depth:y+1,statics:S+Vh(l,g),dynamics:x,optionals:_,extract:C,rawParams:P})}if(f.pathless){const k=y+1;for(let O=f.pathless.length-1;O>=0;O--){const N=f.pathless[O];c.push({node:N,index:g,skipped:v,depth:k,statics:S,dynamics:x,optionals:_,extract:C,rawParams:P})}}}if(m)return m;if(n&&d){let h=d.index;for(let g=0;g<d.index;g++)h+=t[g].length;const f=h===e.length?"/":e.slice(h);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(f),d}return null}function Vh(e,t){return 2**(e-t-1)}function fG(e,t){return e===2**(t-1)-1}function KA(e,t,o){let n,r;try{[n,r]=M2(e,t,o)}catch{return null}if(o.rawParams=n,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(n)===!1)return null}catch{}return!0}function Hh(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===as)>(e.node.kind===as)||t.node.kind===as==(e.node.kind===as)&&t.depth>e.depth))):!0}function wp(e){return vC(e.filter(t=>t!==void 0).join("/"))}function vC(e){return e.replace(/\/{2,}/g,"/")}function N2(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function li(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function F2(e){return li(N2(e))}function Zp(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function hG(e,t,o){return Zp(e,o)===Zp(t,o)}function pG({base:e,to:t,trailingSlash:o="never",cache:n}){const r=t.startsWith("/"),i=!r&&t===".";let l;if(n){l=r?t:i?e:e+"\0"+t;const m=n.get(l);if(m)return m}let c;if(i)c=e.split("/");else if(r)c=t.split("/");else{for(c=e.split("/");c.length>1&&Jd(c)==="";)c.pop();const m=t.split("/");for(let h=0,f=m.length;h<f;h++){const g=m[h];g===""?h?h===f-1&&c.push(g):c=[g]:g===".."?c.pop():g==="."||c.push(g)}}c.length>1&&(Jd(c)===""?o==="never"&&c.pop():o==="always"&&c.push(""));const d=vC(c.join("/"))||"/";return l&&n&&n.set(l,d),d}function gG(e){const t=new Map(e.map(r=>[encodeURIComponent(r),r])),o=Array.from(t.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),n=new RegExp(o,"g");return r=>r.replace(n,i=>t.get(i)??i)}function l0(e,t,o){const n=t[e];return typeof n!="string"?n:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(n)?n:n.split("/").map(r=>YA(r,o)).join("/"):YA(n,o)}function WA({path:e,params:t,decoder:o,...n}){let r=!1;const i=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:i,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:i,isMissingParams:r};const l=e.length;let c=0,d,m="";for(;c<l;){const h=c;d=I2(e,h,d);const f=d[5];if(c=f+1,h===f)continue;const g=d[0];if(g===0){m+="/"+e.substring(h,f);continue}if(g===2){const v=t._splat;i._splat=v,i["*"]=v;const y=e.substring(h,d[1]),S=e.substring(d[4],f);if(!v){r=!0,(y||S)&&(m+="/"+y+S);continue}const x=l0("_splat",t,o);m+="/"+y+x+S;continue}if(g===1){const v=e.substring(d[2],d[3]);!r&&!(v in t)&&(r=!0),i[v]=t[v];const y=e.substring(h,d[1]),S=e.substring(d[4],f),x=l0(v,t,o)??"undefined";m+="/"+y+x+S;continue}if(g===3){const v=e.substring(d[2],d[3]),y=t[v];if(y==null)continue;i[v]=y;const S=e.substring(h,d[1]),x=e.substring(d[4],f),_=l0(v,t,o)??"";m+="/"+S+_+x;continue}}return e.endsWith("/")&&(m+="/"),{usedParams:i,interpolatedPath:m||"/",isMissingParams:r}}function YA(e,t){const o=encodeURIComponent(e);return t?.(o)??o}function B2(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function An(e){return e?.isNotFound===!0}function vG(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const bG="tsr-scroll-restoration-v1_3";function yG(){const e=vG();if(!e)return null;let t={};try{const n=JSON.parse(e.getItem("tsr-scroll-restoration-v1_3")||"{}");Wc(n)&&(t=n)}catch{}return{get state(){return t},set:n=>{t=rs(n,t)||t},persist:()=>{try{e.setItem(bG,JSON.stringify(t))}catch{}}}}const ZA=yG(),SG=e=>e.state.__TSR_key||e.href;function _G(e){const t=[];let o;for(;o=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(o.children,e)+1})`),e=o;return`${t.reverse().join(" > ")}`.toLowerCase()}let Gh=!1;const id="window",QA="data-scroll-restoration-id";function wG(e,t){if(!ZA)return;const o=ZA;if((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!o)return;e.isScrollRestorationSetup=!0,Gh=!1;const n=e.options.getScrollRestorationKey||SG,r=new Map;window.history.scrollRestoration="manual";const i=c=>{if(!(Gh||!e.isScrollRestoring))if(c.target===document||c.target===window)r.set(id,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const d=c.target;r.set(d,{scrollX:d.scrollLeft||0,scrollY:d.scrollTop||0})}},l=c=>{if(!e.isScrollRestoring||!c||r.size===0||!o)return;const d=o.state[c]||={};for(const[m,h]of r){let f;if(m===id)f=id;else if(m.isConnected){const g=m.getAttribute(QA);f=g?`[${QA}="${g}"]`:_G(m)}f&&(d[f]=h)}};document.addEventListener("scroll",i,!0),e.subscribe("onBeforeLoad",c=>{l(c.fromLocation?n(c.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{l(n(e.stores.resolvedLocation.get()??e.stores.location.get())),o.persist()}),e.subscribe("onRendered",c=>{const d=n(c.toLocation),m=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors;if(r.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))){Gh=!0;try{const f=e.isScrollRestoring?o.state[d]:void 0;let g=!1;if(f)for(const v in f){const y=f[v];if(!Wc(y))continue;const{scrollX:S,scrollY:x}=y;if(!(!Number.isFinite(S)||!Number.isFinite(x))){if(v===id)window.scrollTo({top:x,left:S,behavior:m}),g=!0;else if(v){let _;try{_=document.querySelector(v)}catch{continue}_&&(_.scrollLeft=S,_.scrollTop=x,g=!0)}}}if(!g){const v=e.history.location.hash.slice(1);if(v){const y=window.history.state?.__hashScrollIntoViewOptions??!0;if(y){const S=document.getElementById(v);S&&S.scrollIntoView(y)}}else{const y={top:0,left:0,behavior:m};if(window.scrollTo(y),h)for(const S of h){if(S===id)continue;const x=typeof S=="function"?S():document.querySelector(S);x&&x.scrollTo(y)}}}}finally{Gh=!1}e.isScrollRestoring&&o.set(f=>(f[d]||={},f))}})}function CG(e,t=String){const o=new URLSearchParams;for(const n in e){const r=e[n];r!==void 0&&o.set(n,t(r))}return o.toString()}function c0(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function xG(e){const t=new URLSearchParams(e),o=Object.create(null);for(const[n,r]of t.entries()){const i=o[n];i==null?o[n]=c0(r):Array.isArray(i)?i.push(c0(r)):o[n]=[i,c0(r)]}return o}const EG=PG(JSON.parse),TG=RG(JSON.stringify,JSON.parse);function PG(e){return t=>{t[0]==="?"&&(t=t.substring(1));const o=xG(t);for(const n in o){const r=o[n];if(typeof r=="string")try{o[n]=e(r)}catch{}}return o}}function RG(e,t){const o=typeof t=="function";function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(o&&typeof r=="string")try{return t(r),e(r)}catch{}return r}return r=>{const i=CG(r,n);return i?`?${i}`:""}}const sl="__root__";function is(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const o=new Response(null,{status:e.statusCode,headers:t});if(o.options=e,e.throw)throw o;return o}function Xn(e){return e instanceof Response&&!!e.options}function AG(e){return{input:({url:t})=>{for(const o of e)t=d_(o,t);return t},output:({url:t})=>{for(let o=e.length-1;o>=0;o--)t=z2(e[o],t);return t}}}function kG(e){const t=F2(e.basepath),o=`/${t}`,n=`${o}/`,r=e.caseSensitive?o:o.toLowerCase(),i=e.caseSensitive?n:n.toLowerCase();return{input:({url:l})=>{const c=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return c===r?l.pathname="/":c.startsWith(i)&&(l.pathname=l.pathname.slice(o.length)),l},output:({url:l})=>(l.pathname=wp(["/",t,l.pathname]),l)}}function d_(e,t){const o=e?.input?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function z2(e,t){const o=e?.output?.({url:t});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return t}function DG(e,t){const{createMutableStore:o,createReadonlyStore:n,batch:r,init:i}=t,l=new Map,c=new Map,d=new Map,m=o(e.status),h=o(e.loadedAt),f=o(e.isLoading),g=o(e.isTransitioning),v=o(e.location),y=o(e.resolvedLocation),S=o(e.statusCode),x=o(e.redirect),_=o([]),C=o([]),P=o([]),E=n(()=>u0(l,_.get())),T=n(()=>u0(c,C.get())),A=n(()=>u0(d,P.get())),k=n(()=>_.get()[0]),O=n(()=>_.get().some(Z=>l.get(Z)?.get().status==="pending")),N=n(()=>({locationHref:v.get().href,resolvedLocationHref:y.get()?.href,status:m.get()})),q=n(()=>({status:m.get(),loadedAt:h.get(),isLoading:f.get(),isTransitioning:g.get(),matches:E.get(),location:v.get(),resolvedLocation:y.get(),statusCode:S.get(),redirect:x.get()})),B=em(64);function $(Z){let te=B.get(Z);return te||(te=n(()=>{const le=_.get();for(const Q of le){const M=l.get(Q);if(M&&M.routeId===Z)return M.get()}}),B.set(Z,te)),te}const U={status:m,loadedAt:h,isLoading:f,isTransitioning:g,location:v,resolvedLocation:y,statusCode:S,redirect:x,matchesId:_,pendingIds:C,cachedIds:P,matches:E,pendingMatches:T,cachedMatches:A,firstId:k,hasPending:O,matchRouteDeps:N,matchStores:l,pendingMatchStores:c,cachedMatchStores:d,__store:q,getRouteMatchStore:$,setMatches:W,setPending:ae,setCached:H};W(e.matches),i?.(U);function W(Z){d0(Z,l,_,o,r)}function ae(Z){d0(Z,c,C,o,r)}function H(Z){d0(Z,d,P,o,r)}return U}function u0(e,t){const o=[];for(const n of t){const r=e.get(n);r&&o.push(r.get())}return o}function d0(e,t,o,n,r){const i=e.map(c=>c.id),l=new Set(i);r(()=>{for(const c of t.keys())l.has(c)||t.delete(c);for(const c of e){const d=t.get(c.id);if(!d){const m=n(c);m.routeId=c.routeId,t.set(c.id,m);continue}d.routeId=c.routeId,d.get()!==c&&d.set(c)}nG(o.get(),i)||o.set(i)})}const m_=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},OG=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),tv=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),ll=(e,t,o=!0)=>{const n={...e.router.options.context??{}},r=o?t:t-1;for(let i=0;i<=r;i++){const l=e.matches[i];if(!l)continue;const c=e.router.getMatch(l.id);c&&Object.assign(n,c.__routeContext,c.__beforeLoadContext)}return n},JA=(e,t)=>{if(!e.matches.length)return;const o=t.routeId,n=e.matches.findIndex(l=>l.routeId===e.router.routeTree.id),r=n>=0?n:0;let i=o?e.matches.findIndex(l=>l.routeId===o):e.firstBadMatchIndex??e.matches.length-1;i<0&&(i=r);for(let l=i;l>=0;l--){const c=e.matches[l];if(e.router.looseRoutesById[c.routeId].options.notFoundComponent)return l}return o?i:r},ss=(e,t,o)=>{if(!(!Xn(o)&&!An(o)))throw Xn(o)&&o.redirectHandled&&!o.options.reloadDocument||(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=o,e.updateMatch(t.id,n=>({...n,status:Xn(o)?"redirected":An(o)?"notFound":n.status==="pending"?"success":n.status,context:ll(e,t.index),isFetching:!1,error:o})),An(o)&&!o.routeId&&(o.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Xn(o)&&(e.rendered=!0,o.options._fromLocation=e.location,o.redirectHandled=!0,o=e.router.resolveRedirect(o))),o},j2=(e,t)=>{const o=e.router.getMatch(t);return!!(!o||o._nonReactive.dehydrated)},XA=(e,t,o)=>{const n=ll(e,o);e.updateMatch(t,r=>({...r,context:n}))},sd=(e,t,o,n)=>{const{id:r,routeId:i}=e.matches[t],l=e.router.looseRoutesById[i];if(o instanceof Promise)throw o;o.routerCode=n,e.firstBadMatchIndex??=t,ss(e,e.router.getMatch(r),o);try{l.options.onError?.(o)}catch(c){o=c,ss(e,e.router.getMatch(r),o)}e.updateMatch(r,c=>(c._nonReactive.beforeLoadPromise?.resolve(),c._nonReactive.beforeLoadPromise=void 0,c._nonReactive.loadPromise?.resolve(),{...c,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Xn(o)&&!An(o)&&(e.serialError??=o)},U2=(e,t,o,n)=>{if(n._nonReactive.pendingTimeout!==void 0)return;const r=o.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!tv(e,t)&&(o.options.loader||o.options.beforeLoad||q2(o))&&typeof r=="number"&&r!==1/0&&(o.options.pendingComponent??e.router.options?.defaultPendingComponent)){const i=setTimeout(()=>{m_(e)},r);n._nonReactive.pendingTimeout=i}},IG=(e,t,o)=>{const n=e.router.getMatch(t);if(!n._nonReactive.beforeLoadPromise&&!n._nonReactive.loaderPromise)return;U2(e,t,o,n);const r=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&ss(e,i,i.error)};return n._nonReactive.beforeLoadPromise?n._nonReactive.beforeLoadPromise.then(r):r()},MG=(e,t,o,n)=>{const r=e.router.getMatch(t);let i=r._nonReactive.loadPromise;r._nonReactive.loadPromise=Yc(()=>{i?.resolve(),i=void 0});const{paramsError:l,searchError:c}=r;l&&sd(e,o,l,"PARSE_PARAMS"),c&&sd(e,o,c,"VALIDATE_SEARCH"),U2(e,t,n,r);const d=new AbortController;let m=!1;const h=()=>{m||(m=!0,e.updateMatch(t,E=>({...E,isFetching:"beforeLoad",fetchCount:E.fetchCount+1,abortController:d})))},f=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,E=>({...E,isFetching:!1}))};if(!n.options.beforeLoad){e.router.batch(()=>{h(),f()});return}r._nonReactive.beforeLoadPromise=Yc();const g={...ll(e,o,!1),...r.__routeContext},{search:v,params:y,cause:S}=r,x=tv(e,t),_={search:v,abortController:d,params:y,preload:x,context:g,location:e.location,navigate:E=>e.router.navigate({...E,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:x?"preload":S,matches:e.matches,routeId:n.id,...e.router.options.additionalContext},C=E=>{if(E===void 0){e.router.batch(()=>{h(),f()});return}(Xn(E)||An(E))&&(h(),sd(e,o,E,"BEFORE_LOAD")),e.router.batch(()=>{h(),e.updateMatch(t,T=>({...T,__beforeLoadContext:E})),f()})};let P;try{if(P=n.options.beforeLoad(_),Xd(P))return h(),P.catch(E=>{sd(e,o,E,"BEFORE_LOAD")}).then(C)}catch(E){h(),sd(e,o,E,"BEFORE_LOAD")}C(P)},LG=(e,t)=>{const{id:o,routeId:n}=e.matches[t],r=e.router.looseRoutesById[n],i=()=>c(),l=()=>MG(e,o,t,r),c=()=>{if(j2(e,o))return;const d=IG(e,o,r);return Xd(d)?d.then(l):l()};return i()},NG=(e,t,o)=>{const n=e.router.getMatch(t);if(!n||!o.options.head&&!o.options.scripts&&!o.options.headers)return;const r={ssr:e.router.options.ssr,matches:e.matches,match:n,params:n.params,loaderData:n.loaderData};return Promise.all([o.options.head?.(r),o.options.scripts?.(r),o.options.headers?.(r)]).then(([i,l,c])=>({meta:i?.meta,links:i?.links,headScripts:i?.scripts,headers:c,scripts:l,styles:i?.styles}))},$2=(e,t,o,n,r)=>{const i=t[n-1],{params:l,loaderDeps:c,abortController:d,cause:m}=e.router.getMatch(o),h=ll(e,n),f=tv(e,o);return{params:l,deps:c,preload:!!f,parentMatchPromise:i,abortController:d,context:h,location:e.location,navigate:g=>e.router.navigate({...g,_fromLocation:e.location}),cause:f?"preload":m,route:r,...e.router.options.additionalContext}},ek=async(e,t,o,n,r)=>{try{const i=e.router.getMatch(o);try{(!(A2??e.router.isServer)||i.ssr===!0)&&tm(r);const l=r.options.loader,c=typeof l=="function"?l:l?.handler,d=c?.($2(e,t,o,n,r)),m=!!c&&Xd(d);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||i._nonReactive.minPendingPromise)&&e.updateMatch(o,f=>({...f,isFetching:"loader"})),c){const f=m?await d:d;ss(e,e.router.getMatch(o),f),f!==void 0&&e.updateMatch(o,g=>({...g,loaderData:f}))}r._lazyPromise&&await r._lazyPromise;const h=i._nonReactive.minPendingPromise;h&&await h,r._componentsPromise&&await r._componentsPromise,e.updateMatch(o,f=>({...f,error:void 0,context:ll(e,n),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let c=l;if(c?.name==="AbortError"){if(i.abortController.signal.aborted){i._nonReactive.loaderPromise?.resolve(),i._nonReactive.loaderPromise=void 0;return}e.updateMatch(o,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:ll(e,n)}));return}const d=i._nonReactive.minPendingPromise;d&&await d,An(l)&&await r.options.notFoundComponent?.preload?.(),ss(e,e.router.getMatch(o),l);try{r.options.onError?.(l)}catch(m){c=m,ss(e,e.router.getMatch(o),m)}!Xn(c)&&!An(c)&&await tm(r,["errorComponent"]),e.updateMatch(o,m=>({...m,error:c,context:ll(e,n),status:"error",isFetching:!1}))}}catch(i){const l=e.router.getMatch(o);l&&(l._nonReactive.loaderPromise=void 0),ss(e,l,i)}},FG=async(e,t,o)=>{async function n(v,y,S,x,_){const C=Date.now()-y.updatedAt,P=v?_.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??e.router.options.defaultStaleTime??0,E=_.options.shouldReload,T=typeof E=="function"?E($2(e,t,r,o,_)):E,{status:A,invalid:k}=x,O=C>=P&&(!!e.forceStaleReload||x.cause==="enter"||S!==void 0&&S!==x.id);l=A==="success"&&(k||(T??O)),v&&_.options.preload===!1||(l&&!e.sync&&h?(c=!0,(async()=>{try{await ek(e,t,r,o,_);const N=e.router.getMatch(r);N._nonReactive.loaderPromise?.resolve(),N._nonReactive.loadPromise?.resolve(),N._nonReactive.loaderPromise=void 0,N._nonReactive.loadPromise=void 0}catch(N){Xn(N)&&await e.router.navigate(N.options)}})()):A!=="success"||l?await ek(e,t,r,o,_):XA(e,r,o))}const{id:r,routeId:i}=e.matches[o];let l=!1,c=!1;const d=e.router.looseRoutesById[i],m=d.options.loader,h=((typeof m=="function"?void 0:m?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!=="blocking";if(j2(e,r)){if(!e.router.getMatch(r))return e.matches[o];XA(e,r,o)}else{const v=e.router.getMatch(r),y=e.router.stores.matchesId.get()[o],S=(y&&e.router.stores.matchStores.get(y)||null)?.routeId===i?y:e.router.stores.matches.get().find(_=>_.routeId===i)?.id,x=tv(e,r);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!e.sync&&!v.preload&&h)return v;await v._nonReactive.loaderPromise;const _=e.router.getMatch(r),C=_._nonReactive.error||_.error;C&&ss(e,_,C),_.status==="pending"&&await n(x,v,S,_,d)}else{const _=x&&!e.router.stores.matchStores.has(r),C=e.router.getMatch(r);C._nonReactive.loaderPromise=Yc(),_!==C.preload&&e.updateMatch(r,P=>({...P,preload:_})),await n(x,v,S,C,d)}}const f=e.router.getMatch(r);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const g=c?f.isFetching:!1;return g!==f.isFetching||f.invalid!==!1?(e.updateMatch(r,v=>({...v,isFetching:g,invalid:!1})),e.router.getMatch(r)):f};async function tk(e){const t=e,o=[];OG(t.router)&&m_(t);let n;for(let g=0;g<t.matches.length;g++){try{const v=LG(t,g);Xd(v)&&await v}catch(v){if(Xn(v))throw v;if(An(v))n=v;else if(!t.preload)throw v;break}if(t.serialError||t.firstBadMatchIndex!=null)break}const r=t.firstBadMatchIndex??t.matches.length,i=n&&!t.preload?JA(t,n):void 0,l=n&&t.preload?0:i!==void 0?Math.min(i+1,r):r;let c,d;for(let g=0;g<l;g++)o.push(FG(t,o,g));try{await Promise.all(o)}catch{const g=await Promise.allSettled(o);for(const v of g){if(v.status!=="rejected")continue;const y=v.reason;if(Xn(y))throw y;An(y)?c??=y:d??=y}if(d!==void 0)throw d}const m=c??(n&&!t.preload?n:void 0);let h=t.firstBadMatchIndex!==void 0?t.firstBadMatchIndex:t.matches.length-1;if(!m&&n&&t.preload)return t.matches;if(m){const g=JA(t,m);g===void 0&&di();const v=t.matches[g],y=t.router.looseRoutesById[v.routeId],S=t.router.options?.defaultNotFoundComponent;!y.options.notFoundComponent&&S&&(y.options.notFoundComponent=S),m.routeId=v.routeId;const x=v.routeId===t.router.routeTree.id;t.updateMatch(v.id,_=>({..._,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),h=g,await tm(y,["notFoundComponent"])}else if(!t.preload){const g=t.matches[0];g.globalNotFound||t.router.getMatch(g.id)?.globalNotFound&&t.updateMatch(g.id,v=>({...v,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){const g=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await tm(g,["errorComponent"])}for(let g=0;g<=h;g++){const{id:v,routeId:y}=t.matches[g],S=t.router.looseRoutesById[y];try{const x=NG(t,v,S);if(x){const _=await x;t.updateMatch(v,C=>({...C,..._}))}}catch(x){console.error(`Error executing head for route ${y}:`,x)}}const f=m_(t);if(Xd(f)&&await f,m)throw m;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ok(e,t){const o=t.map(n=>e.options[n]?.preload?.()).filter(Boolean);if(o.length!==0)return Promise.all(o)}function tm(e,t=Cp){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(n=>{const{id:r,...i}=n.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);const o=()=>e._componentsLoaded?void 0:t===Cp?(()=>{if(e._componentsPromise===void 0){const n=ok(e,Cp);n?e._componentsPromise=n.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ok(e,t);return e._lazyPromise?e._lazyPromise.then(o):o()}function q2(e){for(const t of Cp)if(e.options[t]?.preload)return!0;return!1}const Cp=["component","errorComponent","pendingComponent","notFoundComponent"];var us="__TSR_index",nk="popstate",rk="beforeunload";function BG(e){let t=e.getLocation();const o=new Set,n=l=>{t=e.getLocation(),o.forEach(c=>c({location:t,action:l}))},r=l=>{e.notifyOnIndexChange??!0?n(l):t=e.getLocation()},i=async({task:l,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){l();return}const m=e.getBlockers?.()??[],h=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&m.length&&h)for(const f of m){const g=Qp(d.path,d.state);if(await f.blockerFn({currentLocation:t,nextLocation:g,action:d.type})){e.onBlocked?.();return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:o,subscribe:l=>(o.add(l),()=>{o.delete(l)}),push:(l,c,d)=>{const m=t.state[us];c=ak(m+1,c),i({task:()=>{e.pushState(l,c),n({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:c})},replace:(l,c,d)=>{const m=t.state[us];c=ak(m,c),i({task:()=>{e.replaceState(l,c),n({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:c})},go:(l,c)=>{i({task:()=>{e.go(l),r({type:"GO",index:l})},navigateOpts:c,type:"GO"})},back:l=>{i({task:()=>{e.back(l?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{i({task:()=>{e.forward(l?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[us]!==0,createHref:l=>e.createHref(l),block:l=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,l]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(m=>m!==l))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:n}}function ak(e,t){t||(t={});const o=bC();return{...t,key:o,__TSR_key:o,[us]:e}}function zG(e){const t=typeof document<"u"?window:void 0,o=t.history.pushState,n=t.history.replaceState;let r=[];const i=()=>r,l=O=>r=O,c=(O=>O),d=(()=>Qp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const O=bC();t.history.replaceState({[us]:0,key:O,__TSR_key:O},"")}let m=d(),h,f=!1,g=!1,v=!1,y=!1;const S=()=>m;let x,_;const C=()=>{x&&(k._ignoreSubscribers=!0,(x.isPush?t.history.pushState:t.history.replaceState)(x.state,"",x.href),k._ignoreSubscribers=!1,x=void 0,_=void 0,h=void 0)},P=(O,N,q)=>{const B=c(N);_||(h=m),m=Qp(N,q),x={href:B,state:q,isPush:x?.isPush||O==="push"},_||(_=Promise.resolve().then(()=>C()))},E=O=>{m=d(),k.notify({type:O})},T=async()=>{if(g){g=!1;return}const O=d(),N=O.state[us]-m.state[us],q=N===1,B=N===-1,$=!q&&!B||f;f=!1;const U=$?"GO":B?"BACK":"FORWARD",W=$?{type:"GO",index:N}:{type:B?"BACK":"FORWARD"};if(v)v=!1;else{const ae=i();if(typeof document<"u"&&ae.length){for(const H of ae)if(await H.blockerFn({currentLocation:m,nextLocation:O,action:U})){g=!0,t.history.go(1),k.notify(W);return}}}m=d(),k.notify(W)},A=O=>{if(y){y=!1;return}let N=!1;const q=i();if(typeof document<"u"&&q.length)for(const B of q){const $=B.enableBeforeUnload??!0;if($===!0){N=!0;break}if(typeof $=="function"&&$()===!0){N=!0;break}}if(N)return O.preventDefault(),O.returnValue=""},k=BG({getLocation:S,getLength:()=>t.history.length,pushState:(O,N)=>P("push",O,N),replaceState:(O,N)=>P("replace",O,N),back:O=>(O&&(v=!0),y=!0,t.history.back()),forward:O=>{O&&(v=!0),y=!0,t.history.forward()},go:O=>{f=!0,t.history.go(O)},createHref:O=>c(O),flush:C,destroy:()=>{t.history.pushState=o,t.history.replaceState=n,t.removeEventListener(rk,A,{capture:!0}),t.removeEventListener(nk,T)},onBlocked:()=>{h&&m!==h&&(m=h)},getBlockers:i,setBlockers:l,notifyOnIndexChange:!1});return t.addEventListener(rk,A,{capture:!0}),t.addEventListener(nk,T),t.history.pushState=function(...O){const N=o.apply(t.history,O);return k._ignoreSubscribers||E("PUSH"),N},t.history.replaceState=function(...O){const N=n.apply(t.history,O);return k._ignoreSubscribers||E("REPLACE"),N},k}function jG(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Qp(e,t){const o=jG(e),n=o.indexOf("#"),r=o.indexOf("?"),i=bC();return{href:o,pathname:o.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:o.length),hash:n>-1?o.substring(n):"",search:r>-1?o.slice(r,n===-1?void 0:n):"",state:t||{[us]:0,key:i,__TSR_key:i}}}function bC(){return(Math.random()+1).toString(36).substring(7)}function Fc(e,t){const o=t,n=e;return{fromLocation:o,toLocation:n,pathChanged:o?.pathname!==n.pathname,hrefChanged:o?.href!==n.href,hashChanged:o?.hash!==n.hash}}var UG=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=o=>o(),this.update=o=>{const n=this.options,r=this.basepath??n?.basepath??"/",i=this.basepath===void 0,l=n?.rewrite;if(this.options={...n,...o},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=gG(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=zG()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=em(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=DG(qG(this.latestLocation),h),wG(this)}let c=!1;const d=this.options.basepath??"/",m=this.options.rewrite;if(i||r!==d||l!==m){this.basepath=d;const h=[],f=F2(d);f&&f!=="/"&&h.push(kG({basepath:d})),m&&h.push(m),this.rewrite=h.length===0?void 0:h.length===1?h[0]:AG(h),this.history&&this.updateLatestLocation(),c=!0}c&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const o=uG(this.routeTree,this.options.caseSensitive,(n,r)=>{n.init({originalIndex:r})});return this.options.routeMasks&&aG(this.options.routeMasks,o.processedTree),o},this.subscribe=(o,n)=>{const r={eventType:o,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{this.subscribers.forEach(n=>{n.eventType===o.type&&n.fn(o)})},this.parseLocation=(o,n)=>{const r=({pathname:d,search:m,hash:h,href:f,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const _=this.options.parseSearch(m),C=this.options.stringifySearch(_);return{href:d+C+h,publicHref:d+C+h,pathname:ad(d).path,external:!1,searchStr:C,search:Hs(n?.search,_),hash:ad(h.slice(1)).path,state:nl(n?.state,g)}}const v=new URL(f,this.origin),y=d_(this.rewrite,v),S=this.options.parseSearch(y.search),x=this.options.stringifySearch(S);return y.search=x,{href:y.href.replace(y.origin,""),publicHref:f,pathname:ad(y.pathname).path,external:!!this.rewrite&&y.origin!==this.origin,searchStr:x,search:Hs(n?.search,S),hash:ad(y.hash.slice(1)).path,state:nl(n?.state,g)}},i=r(o),{__tempLocation:l,__tempKey:c}=i.state;if(l&&(!c||c===this.tempLocationKey)){const d=r(l);return d.state.key=i.state.key,d.state.__TSR_key=i.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:i}}return i},this.resolvePathWithBase=(o,n)=>pG({base:o,to:n.includes("//")?vC(n):n,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(o,n,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:n},r):this.matchRoutesInternal(o,n),this.getMatchedRoutes=o=>VG({pathname:o,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=o=>{const n=this.getMatch(o);n&&(n.abortController.abort(),clearTimeout(n._nonReactive.pendingTimeout),n._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(o=>{this.cancelMatch(o)}),this.stores.matchesId.get().forEach(o=>{if(this.stores.pendingMatchStores.has(o))return;const n=this.stores.matchStores.get(o)?.get();n&&(n.status==="pending"||n.isFetching==="loader")&&this.cancelMatch(o)})},this.buildLocation=o=>{const n=(i={})=>{const l=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutesLightweight(l);i.from;const d=i.unsafeRelative==="path"?l.pathname:i.from??c.fullPath,m=i.to?`${i.to}`:void 0,h=c.search,f=Object.assign(Object.create(null),c.params),g=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(d,"."),v=m?this.resolvePathWithBase(g,m):g,y=i.params===!1||i.params===null?Object.create(null):(i.params??!0)===!0?f:Object.assign(f,rs(i.params,f)),S=this.routesByPath[li(v)];let x;if(S)x=this.getRouteBranch(S);else if(v.includes("$"))x=[];else{const B=this.getMatchedRoutes(v);x=B.matchedRoutes,this.options.notFoundRoute&&(!B.foundRoute||B.foundRoute.path!=="/"&&B.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&D2(y))for(const B of x){const $=B.options.params?.stringify??B.options.stringifyParams;if($)try{Object.assign(y,$(y))}catch{}}const _=o.leaveParams?v:ad(WA({path:v,params:y,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=h;if(o._includeValidateSearch&&this.options.search?.strict){const B={};x.forEach($=>{if($.options.validateSearch)try{Object.assign(B,xp($.options.validateSearch,{...B,...C}))}catch{}}),C=B}C=HG({search:C,dest:i,destRoutes:x,_includeValidateSearch:o._includeValidateSearch}),C=Hs(h,C);const P=this.options.stringifySearch(C),E=i.hash===!0?l.hash:i.hash?rs(i.hash,l.hash):void 0,T=E?`#${E}`:"";let A=i.state===!0?l.state:i.state?rs(i.state,l.state):{};A=nl(l.state,A);const k=`${_}${P}${T}`;let O,N,q=!1;if(this.rewrite){const B=new URL(k,this.origin),$=z2(this.rewrite,B);O=B.href.replace(B.origin,""),$.origin!==this.origin?(N=$.href,q=!0):N=$.pathname+$.search+$.hash}else O=oG(k),N=O;return{publicHref:N,href:O,pathname:_,search:C,searchStr:P,state:A,hash:E??"",external:q,unmaskOnReload:i.unmaskOnReload}},r=(i={},l)=>{const c=n(i);let d=l?n(l):void 0;if(!d){const m=Object.create(null);if(this.options.routeMasks){const h=iG(c.pathname,this.processedTree);if(h){Object.assign(m,h.rawParams);const{from:f,params:g,...v}=h.route,y=g===!1||g===null?Object.create(null):(g??!0)===!0?m:Object.assign(m,rs(g,m));l={from:o.from,...v,params:y},d=n(l)}}}return d&&(c.maskedLocation=d),c};return o.mask?r(o,{from:o.from,...o.mask}):r(o)},this.commitLocation=async({viewTransition:o,ignoreBlocker:n,...r})=>{const i=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(h=>{r.state[h]=this.latestLocation.state[h]});const m=il(r.state,this.latestLocation.state);return d.forEach(h=>{delete r.state[h]}),m},l=li(this.latestLocation.href)===li(r.href);let c=this.commitLocationPromise;if(this.commitLocationPromise=Yc(()=>{c?.resolve(),c=void 0}),l&&i())this.load();else{let{maskedLocation:d,hashScrollIntoView:m,...h}=r;d&&(h={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...h,search:h.searchStr,state:{...h.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(h.unmaskOnReload??this.options.unmaskOnReload??!1)&&(h.state.__tempKey=this.tempLocationKey)),h.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=o,this.history[r.replace?"replace":"push"](h.publicHref,h.state,{ignoreBlocker:n})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:o,resetScroll:n,hashScrollIntoView:r,viewTransition:i,ignoreBlocker:l,href:c,...d}={})=>{if(c){const f=this.history.location.state.__TSR_index,g=Qp(c,{__TSR_index:o?f:f+1}),v=new URL(g.pathname,this.origin);d.to=d_(this.rewrite,v).pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const m=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const h=this.commitLocation({...m,viewTransition:i,replace:o,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:l});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),h},this.navigate=async({to:o,reloadDocument:n,href:r,publicHref:i,...l})=>{let c=!1;if(r)try{new URL(`${r}`),c=!0}catch{}if(c&&!n&&(n=!0),n){if(o!==void 0||!r){const m=this.buildLocation({to:o,...l});r=r??m.publicHref,i=i??m.publicHref}const d=!c&&i?i:r;if(Yp(d,this.protocolAllowlist))return Promise.resolve();if(!l.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const h of m)if(h?.blockerFn&&await h.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return l.replace?window.location.replace(d):window.location.href=d,Promise.resolve()}return this.buildAndCommitLocation({...l,href:r,to:o,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const o=this.matchRoutes(this.latestLocation),n=this.stores.cachedMatches.get().filter(r=>!o.some(i=>i.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(o),this.stores.setCached(n)})},this.load=async o=>{let n,r,i;const l=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,h=Fc(m,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...h}),this.emit({type:"onBeforeLoad",...h}),await tk({router:this,sync:o?.sync,forceStaleReload:l.href===m.href,matches:this.stores.pendingMatches.get(),location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let f=null,g=null,v=null,y=null;this.batch(()=>{const S=this.stores.pendingMatches.get(),x=S.length,_=this.stores.matches.get();f=x?_.filter(E=>!this.stores.pendingMatchStores.has(E.id)):null;const C=new Set;for(const E of this.stores.pendingMatchStores.values())E.routeId&&C.add(E.routeId);const P=new Set;for(const E of this.stores.matchStores.values())E.routeId&&P.add(E.routeId);g=x?_.filter(E=>!C.has(E.routeId)):null,v=x?S.filter(E=>!P.has(E.routeId)):null,y=x?S.filter(E=>P.has(E.routeId)):_,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),x&&(this.stores.setMatches(S),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...f.filter(E=>E.status!=="error"&&E.status!=="notFound"&&E.status!=="redirected")]),this.clearExpiredCache())});for(const[S,x]of[[g,"onLeave"],[v,"onEnter"],[y,"onStay"]])if(S)for(const _ of S)this.looseRoutesById[_.routeId].options[x]?.(_)})})}})}catch(m){Xn(m)?(n=m,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):An(m)&&(r=m);const h=n?n.status:r?404:this.stores.matches.get().some(f=>f.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(h),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(d=>d.status==="error")&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=o=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,l=this.stores.resolvedLocation.get(),c=typeof n.types=="function"?n.types(Fc(i,l)):n.types;if(c===!1){o();return}r={update:o,types:c}}else r=o;document.startViewTransition(r)}else o()},this.updateMatch=(o,n)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(o);if(r){r.set(n);return}const i=this.stores.matchStores.get(o);if(i){i.set(n);return}const l=this.stores.cachedMatchStores.get(o);if(l){const c=n(l.get());c.status==="redirected"?this.stores.cachedMatchStores.delete(o)&&this.stores.cachedIds.set(d=>d.filter(m=>m!==o)):l.set(c)}})},this.getMatch=o=>this.stores.cachedMatchStores.get(o)?.get()??this.stores.pendingMatchStores.get(o)?.get()??this.stores.matchStores.get(o)?.get(),this.invalidate=o=>{const n=r=>o?.filter?.(r)??!0?{...r,invalid:!0,...o?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(n)),this.stores.setCached(this.stores.cachedMatches.get().map(n)),this.stores.setPending(this.stores.pendingMatches.get().map(n))}),this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.getParsedLocationHref=o=>o.publicHref||"/",this.resolveRedirect=o=>{const n=o.headers.get("Location");if(!o.options.href||o.options._builtLocation){const r=o.options._builtLocation??this.buildLocation(o.options),i=this.getParsedLocationHref(r);o.options.href=i,o.headers.set("Location",i)}else if(n)try{const r=new URL(n);if(this.origin&&r.origin===this.origin){const i=r.pathname+r.search+r.hash;o.options.href=i,o.headers.set("Location",i)}}catch{}if(o.options.href&&!o.options._builtLocation&&Yp(o.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return o.headers.get("Location")||o.headers.set("Location",o.options.href),o},this.clearCache=o=>{const n=o?.filter;n!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!n(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const o=Date.now(),n=r=>{const i=this.looseRoutesById[r.routeId];if(!i.options.loader)return!0;const l=(r.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:o-r.updatedAt>=l};this.clearCache({filter:n})},this.loadRouteChunk=tm,this.preloadRoute=async o=>{const n=o._builtLocation??this.buildLocation(o);let r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:o});const i=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),l=new Set([...i,...this.stores.cachedIds.get()]),c=r.filter(d=>!l.has(d.id));if(c.length){const d=this.stores.cachedMatches.get();this.stores.setCached([...d,...c])}try{return r=await tk({router:this,matches:r,location:n,preload:!0,updateMatch:(d,m)=>{i.has(d)?r=r.map(h=>h.id===d?m(h):h):this.updateMatch(d,m)}}),r}catch(d){if(Xn(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:n});An(d)||console.error(d);return}},this.matchRoute=(o,n)=>{const r={...o,to:o.to?this.resolvePathWithBase(o.from||"",o.to):void 0,params:o.params||{},leaveParams:!0},i=this.buildLocation(r);if(n?.pending&&this.stores.status.get()!=="pending")return!1;const l=(n?.pending===void 0?!this.stores.isLoading.get():n.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),c=sG(i.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,l.pathname,this.processedTree);return!c||o.params&&!il(c.rawParams,o.params,{partial:!0})?!1:n?.includeSearch??!0?il(l.search,i.search,{partial:!0})?c.rawParams:!1:c.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(o=>o.status==="notFound"||o.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??TG,parseSearch:e.parseSearch??EG,protocolAllowlist:e.protocolAllowlist??tG}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:o}){this.routesById=e,this.routesByPath=t,this.processedTree=o;const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=L2(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){const o=this.getMatchedRoutes(e.pathname),{foundRoute:n,routeParams:r}=o;let{matchedRoutes:i}=o,l=!1;(n?n.path!=="/"&&r["**"]:li(e.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:l=!0);const c=l?KG(this.options.notFoundMode,i):void 0,d=new Array(i.length),m=new Map;for(const h of this.stores.matchStores.values())h.routeId&&m.set(h.routeId,h.get());for(let h=0;h<i.length;h++){const f=i[h],g=d[h-1];let v,y,S;{const $=g?.search??e.search,U=g?._strictSearch??void 0;try{const W=xp(f.options.validateSearch,{...$})??void 0;v={...$,...W},y={...U,...W},S=void 0}catch(W){let ae=W;if(W instanceof Jp||(ae=new Jp(W.message,{cause:W})),t?.throwOnError)throw ae;v=$,y={},S=ae}}const x=f.options.loaderDeps?.({search:v})??"",_=x?JSON.stringify(x):"",{interpolatedPath:C,usedParams:P}=WA({path:f.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),E=f.id+C+_,T=this.getMatch(E),A=m.get(f.id),k=T?._strictParams??P;let O;if(!T)try{ik(f,k)}catch($){if(An($)||Xn($)?O=$:O=new $G($.message,{cause:$}),t?.throwOnError)throw O}Object.assign(r,k);const N=A?"stay":"enter";let q;if(T)q={...T,cause:N,params:A?.params??r,_strictParams:k,search:Hs(A?A.search:T.search,v),_strictSearch:y};else{const $=f.options.loader||f.options.beforeLoad||f.lazyFn||q2(f)?"pending":"success";q={id:E,ssr:f.options.ssr,index:h,routeId:f.id,params:A?.params??r,_strictParams:k,pathname:C,updatedAt:Date.now(),search:A?Hs(A.search,v):v,_strictSearch:y,searchError:void 0,status:$,isFetching:!1,error:void 0,paramsError:O,__routeContext:void 0,_nonReactive:{loadPromise:Yc()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:A?nl(A.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:f.options.staticData||{},fullPath:f.fullPath}}t?.preload||(q.globalNotFound=c===f.id),q.searchError=S;const B=this.getParentContext(g);q.context={...B,...q.__routeContext,...q.__beforeLoadContext},d[h]=q}for(let h=0;h<d.length;h++){const f=d[h],g=this.looseRoutesById[f.routeId],v=this.getMatch(f.id),y=m.get(f.routeId);if(f.params=y?Hs(y.params,r):r,!v){const S=d[h-1],x=this.getParentContext(S);if(g.options.context){const _={deps:f.loaderDeps,params:f.params,context:x??{},location:e,navigate:C=>this.navigate({...C,_fromLocation:e}),buildLocation:this.buildLocation,cause:f.cause,abortController:f.abortController,preload:!!f.preload,matches:d,routeId:g.id};f.__routeContext=g.options.context(_)??void 0}f.context={...x,...f.__routeContext,...f.__beforeLoadContext}}}return d}matchRoutesLightweight(e){const{matchedRoutes:t,routeParams:o}=this.getMatchedRoutes(e.pathname),n=Jd(t),r={...e.search};for(const m of t)try{Object.assign(r,xp(m.options.validateSearch,r))}catch{}const i=Jd(this.stores.matchesId.get()),l=i&&this.stores.matchStores.get(i)?.get(),c=l&&l.routeId===n.id&&l.pathname===e.pathname;let d;if(c)d=l.params;else{const m=Object.assign(Object.create(null),o);for(const h of t)try{ik(h,m)}catch{}d=m}return{matchedRoutes:t,fullPath:n.fullPath,search:r,params:d}}},Jp=class extends Error{},$G=class extends Error{};function qG(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function xp(e,t){if(e==null)return{};if("~standard"in e){const o=e["~standard"].validate(t);if(o instanceof Promise)throw new Jp("Async validation not supported");if(o.issues)throw new Jp(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function VG({pathname:e,routesById:t,processedTree:o}){const n=Object.create(null),r=li(e);let i;const l=lG(r,o,!0);return l&&(i=l.route,Object.assign(n,l.rawParams)),{matchedRoutes:l?.branch||[t.__root__],routeParams:n,foundRoute:i}}function HG({search:e,dest:t,destRoutes:o,_includeValidateSearch:n}){return GG(o)(e,t,n??!1)}function GG(e){const t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of e){if("search"in r.options)r.options.search?.middlewares&&t.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const i=({search:l,next:c})=>{let d=l;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(d=r.options.preSearchFilters.reduce((h,f)=>f(h),l));const m=c(d);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((h,f)=>f(h),m):m};t.middlewares.push(i)}if(r.options.validateSearch){const i=({search:l,next:c})=>{const d=c(l);if(!t._includeValidateSearch)return d;try{return{...d,...xp(r.options.validateSearch,d)??void 0}}catch{return d}};t.middlewares.push(i)}}const o=({search:r})=>{const i=t.dest;return i.search?i.search===!0?r:rs(i.search,r):{}};t.middlewares.push(o);const n=(r,i,l)=>{if(r>=l.length)return i;const c=l[r];return c({search:i,next:m=>n(r+1,m,l)})};return function(i,l,c){return t.dest=l,t._includeValidateSearch=c,n(0,i,t.middlewares)}}function KG(e,t){if(e!=="root")for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.children)return n.id}return sl}function ik(e,t){const o=e.options.params?.parse??e.options.parseParams;if(o){const n=o(t);if(n===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(t,n)}}const WG="Error preloading route! ☝️";var V2=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const o=this.options,n=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=sl:this.parentRoute||di();let r=n?sl:o?.path;r&&r!=="/"&&(r=N2(r));const i=o?.id||r;let l=n?sl:wp([this.parentRoute.id==="__root__"?"":this.parentRoute.id,i]);r==="__root__"&&(r="/"),l!=="__root__"&&(l=wp(["/",l]));const c=l==="__root__"?"/":wp([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=c,this._to=li(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>is({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},YG=class{constructor({id:e}){this.notFound=t=>B2({routeId:this.id,...t}),this.redirect=t=>is({from:this.id,...t}),this.id=e}},ZG=class extends V2{constructor(e){super(e)}};function QG(e){if(typeof document<"u"&&document.querySelector){const t=e.stores.location.get(),o=t.state.__hashScrollIntoViewOptions??!0;if(o&&t.hash!==""){const n=document.getElementById(t.hash);n&&n.scrollIntoView(o)}}}function yC(e){const t=e.errorComponent??SC;return R.jsx(JG,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:o,reset:n})=>o?D.createElement(t,{error:o,reset:n}):e.children})}var JG=class extends D.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){const o=e.getResetKey();return t.error&&t.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function SC({error:e}){const[t,o]=D.useState(!1);return R.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[R.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[R.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),R.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(n=>!n),children:t?"Hide Error":"Show Error"})]}),R.jsx("div",{style:{height:".25rem"}}),t?R.jsx("div",{children:R.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?R.jsx("code",{children:e.message}):null})}):null]})}function XG({children:e,fallback:t=null}){return H2()?R.jsx(ee.Fragment,{children:e}):R.jsx(ee.Fragment,{children:t})}function H2(){return ee.useSyncExternalStore(eK,()=>!0,()=>!1)}function eK(){return()=>{}}var G2=D.createContext(null);function jn(e){return D.useContext(G2)}var ov=D.createContext(void 0),tK=D.createContext(void 0),po=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(po||{});function oK({update:e,notify:t,unwatched:o}){return{link:n,unlink:r,propagate:i,checkDirty:l,shallowPropagate:c};function n(m,h,f){const g=h.depsTail;if(g!==void 0&&g.dep===m)return;const v=g!==void 0?g.nextDep:h.deps;if(v!==void 0&&v.dep===m){v.version=f,h.depsTail=v;return}const y=m.subsTail;if(y!==void 0&&y.version===f&&y.sub===h)return;const S=h.depsTail=m.subsTail={version:f,dep:m,sub:h,prevDep:g,nextDep:v,prevSub:y,nextSub:void 0};v!==void 0&&(v.prevDep=S),g!==void 0?g.nextDep=S:h.deps=S,y!==void 0?y.nextSub=S:m.subs=S}function r(m,h=m.sub){const f=m.dep,g=m.prevDep,v=m.nextDep,y=m.nextSub,S=m.prevSub;return v!==void 0?v.prevDep=g:h.depsTail=g,g!==void 0?g.nextDep=v:h.deps=v,y!==void 0?y.prevSub=S:f.subsTail=S,S!==void 0?S.nextSub=y:(f.subs=y)===void 0&&o(f),v}function i(m){let h=m.nextSub,f;e:do{const g=m.sub;let v=g.flags;if(v&60?v&12?v&4?!(v&48)&&d(m,g)?(g.flags=v|40,v&=1):v=0:g.flags=v&-9|32:v=0:g.flags=v|32,v&2&&t(g),v&1){const y=g.subs;if(y!==void 0){const S=(m=y).nextSub;S!==void 0&&(f={value:h,prev:f},h=S);continue}}if((m=h)!==void 0){h=m.nextSub;continue}for(;f!==void 0;)if(m=f.value,f=f.prev,m!==void 0){h=m.nextSub;continue e}break}while(!0)}function l(m,h){let f,g=0,v=!1;e:do{const y=m.dep,S=y.flags;if(h.flags&16)v=!0;else if((S&17)===17){if(e(y)){const x=y.subs;x.nextSub!==void 0&&c(x),v=!0}}else if((S&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(f={value:m,prev:f}),m=y.deps,h=y,++g;continue}if(!v){const x=m.nextDep;if(x!==void 0){m=x;continue}}for(;g--;){const x=h.subs,_=x.nextSub!==void 0;if(_?(m=f.value,f=f.prev):m=x,v){if(e(h)){_&&c(x),h=m.sub;continue}v=!1}else h.flags&=-33;h=m.sub;const C=m.nextDep;if(C!==void 0){m=C;continue e}}return v}while(!0)}function c(m){do{const h=m.sub,f=h.flags;(f&48)===32&&(h.flags=f|16,(f&6)===2&&t(h))}while((m=m.nextSub)!==void 0)}function d(m,h){let f=h.depsTail;for(;f!==void 0;){if(f===m)return!0;f=f.prevDep}return!1}}function nK(e,t,o){const n=typeof e=="object",r=n?e:void 0;return{next:(n?e.next:e)?.bind(r),error:(n?e.error:t)?.bind(r),complete:(n?e.complete:o)?.bind(r)}}const f_=[];let Ep=0;const{link:sk,unlink:rK,propagate:aK,checkDirty:K2,shallowPropagate:lk}=oK({update(e){return e._update()},notify(e){f_[h_++]=e,e.flags&=~po.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=po.Mutable|po.Dirty,Xp(e))}});let Kh=0,h_=0,va,p_=0;function W2(e){try{++p_,e()}finally{--p_||Y2()}}function Xp(e){const t=e.depsTail;let o=t!==void 0?t.nextDep:e.deps;for(;o!==void 0;)o=rK(o,e)}function Y2(){if(!(p_>0)){for(;Kh<h_;){const e=f_[Kh];f_[Kh++]=void 0,e.notify()}Kh=0,h_=0}}function ck(e,t){const o=typeof e=="function",n=e,r={_snapshot:o?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?po.None:po.Mutable,get(){return va!==void 0&&sk(r,va,Ep),r._snapshot},subscribe(i){const l=nK(i),c={current:!1},d=iK(()=>{r.get(),c.current?l.next?.(r._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(i){const l=va,c=t?.compare??Object.is;if(o)va=r,++Ep,r.depsTail=void 0;else if(i===void 0)return!1;o&&(r.flags=po.Mutable|po.RecursedCheck);try{const d=r._snapshot,m=typeof i=="function"?i(d):i===void 0&&o?n(d):i;return d===void 0||!c(d,m)?(r._snapshot=m,!0):!1}finally{va=l,o&&(r.flags&=~po.RecursedCheck),Xp(r)}}};return o?(r.flags=po.Mutable|po.Dirty,r.get=function(){const i=r.flags;if(i&po.Dirty||i&po.Pending&&K2(r.deps,r)){if(r._update()){const l=r.subs;l!==void 0&&lk(l)}}else i&po.Pending&&(r.flags=i&~po.Pending);return va!==void 0&&sk(r,va,Ep),r._snapshot}):r.set=function(i){if(r._update(i)){const l=r.subs;l!==void 0&&(aK(l),lk(l),Y2())}},r}function iK(e){const t=()=>{const n=va;va=o,++Ep,o.depsTail=void 0,o.flags=po.Watching|po.RecursedCheck;try{return e()}finally{va=n,o.flags&=~po.RecursedCheck,Xp(o)}},o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:po.Watching|po.RecursedCheck,notify(){const n=this.flags;n&po.Dirty||n&po.Pending&&K2(this.deps,this)?t():this.flags=po.Watching},stop(){this.flags=po.None,this.depsTail=void 0,Xp(this)}};return t(),o}var m0={exports:{}},f0={},h0={exports:{}},p0={};var uk;function sK(){if(uk)return p0;uk=1;var e=bs();function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var o=typeof Object.is=="function"?Object.is:t,n=e.useState,r=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function c(f,g){var v=g(),y=n({inst:{value:v,getSnapshot:g}}),S=y[0].inst,x=y[1];return i(function(){S.value=v,S.getSnapshot=g,d(S)&&x({inst:S})},[f,v,g]),r(function(){return d(S)&&x({inst:S}),f(function(){d(S)&&x({inst:S})})},[f]),l(v),v}function d(f){var g=f.getSnapshot;f=f.value;try{var v=g();return!o(f,v)}catch{return!0}}function m(f,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:c;return p0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,p0}var dk;function Z2(){return dk||(dk=1,h0.exports=sK()),h0.exports}var mk;function lK(){if(mk)return f0;mk=1;var e=bs(),t=Z2();function o(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:o,r=t.useSyncExternalStore,i=e.useRef,l=e.useEffect,c=e.useMemo,d=e.useDebugValue;return f0.useSyncExternalStoreWithSelector=function(m,h,f,g,v){var y=i(null);if(y.current===null){var S={hasValue:!1,value:null};y.current=S}else S=y.current;y=c(function(){function _(A){if(!C){if(C=!0,P=A,A=g(A),v!==void 0&&S.hasValue){var k=S.value;if(v(k,A))return E=k}return E=A}if(k=E,n(P,A))return k;var O=g(A);return v!==void 0&&v(k,O)?(P=A,k):(P=A,E=O)}var C=!1,P,E,T=f===void 0?null:f;return[function(){return _(h())},T===null?void 0:function(){return _(T())}]},[h,f,g,v]);var x=r(m,y[0],y[1]);return l(function(){S.hasValue=!0,S.value=x},[x]),d(x),x},f0}var fk;function cK(){return fk||(fk=1,m0.exports=lK()),m0.exports}var uK=cK();function dK(e,t){return e===t}function Sr(e,t,o=dK){const n=D.useCallback(l=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(l);return c},[e]),r=D.useCallback(()=>e?.get(),[e]);return uK.useSyncExternalStoreWithSelector(n,r,r,t,o)}var mK={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function ws(e){const t=jn(),o=D.useContext(e.from?tK:ov),n=e.from??o,r=n?e.from?t.stores.getRouteMatchStore(n):t.stores.matchStores.get(n):void 0,i=D.useRef(void 0);return Sr(r??mK,l=>{if((e.shouldThrow??!0)&&!l&&di(),l===void 0)return;const c=e.select?e.select(l):l;if(e.structuralSharing??t.options.defaultStructuralSharing){const d=nl(i.current,c);return i.current=d,d}return c})}function _C(e){return ws({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function wC(e){const{select:t,...o}=e;return ws({...o,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function nv(e){return ws({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const o=e.strict===!1?t.params:t._strictParams;return e.select?e.select(o):o}})}function CC(e){return ws({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Cm(e){const t=jn();return D.useCallback(o=>t.navigate({...o,from:o.from??e?.from}),[e?.from,t])}function gme(e){const t=jn(),o=Cm(),n=D.useRef(null);return Ac(()=>{n.current!==e&&(o(e),n.current=e)},[t,e,o]),null}function xC(e){return ws({...e,select:t=>e.select?e.select(t.context):t.context})}function fK(e,t){const o=jn(),n=ZH(t),{activeProps:r,inactiveProps:i,activeOptions:l,to:c,preload:d,preloadDelay:m,preloadIntentProximity:h,hashScrollIntoView:f,replace:g,startTransition:v,resetScroll:y,viewTransition:S,children:x,target:_,disabled:C,style:P,className:E,onClick:T,onBlur:A,onFocus:k,onMouseEnter:O,onMouseLeave:N,onTouchStart:q,ignoreBlocker:B,params:$,search:U,hash:W,state:ae,mask:H,reloadDocument:Z,unsafeRelative:te,from:le,_fromLocation:Q,...M}=e,G=H2(),V=D.useMemo(()=>e,[o,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),L=Sr(o.stores.location,oe=>oe,(oe,se)=>oe.href===se.href),j=D.useMemo(()=>{const oe={_fromLocation:L,...V};return o.buildLocation(oe)},[o,L,V]),J=j.maskedLocation?j.maskedLocation.publicHref:j.publicHref,me=j.maskedLocation?j.maskedLocation.external:j.external,he=D.useMemo(()=>yK(J,me,o.history,C),[C,me,J,o.history]),xe=D.useMemo(()=>{if(he?.external)return Yp(he.href,o.protocolAllowlist)?void 0:he.href;if(!SK(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),Yp(c,o.protocolAllowlist)?void 0:c}catch{}},[c,he,o.protocolAllowlist]),Be=D.useMemo(()=>{if(xe)return!1;if(l?.exact){if(!hG(L.pathname,j.pathname,o.basepath))return!1}else{const oe=Zp(L.pathname,o.basepath),se=Zp(j.pathname,o.basepath);if(!(oe.startsWith(se)&&(oe.length===se.length||oe[se.length]==="/")))return!1}return(l?.includeSearch??!0)&&!il(L.search,j.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?G&&L.hash===j.hash:!0},[l?.exact,l?.explicitUndefined,l?.includeHash,l?.includeSearch,L,xe,G,j.hash,j.pathname,j.search,o.basepath]),Y=Be?rs(r,{})??hK:g0,ne=Be?g0:rs(i,{})??g0,ve=[E,Y.className,ne.className].filter(Boolean).join(" "),ie=(P||Y.style||ne.style)&&{...P,...Y.style,...ne.style},[we,Pe]=D.useState(!1),tt=D.useRef(!1),nt=e.reloadDocument||xe?!1:d??o.options.defaultPreload,$e=m??o.options.defaultPreloadDelay??0,Qe=D.useCallback(()=>{o.preloadRoute({...V,_builtLocation:j}).catch(oe=>{console.warn(oe),console.warn(WG)})},[o,V,j]);YH(n,D.useCallback(oe=>{oe?.isIntersecting&&Qe()},[Qe]),bK,{disabled:!!C||nt!=="viewport"}),D.useEffect(()=>{tt.current||!C&&nt==="render"&&(Qe(),tt.current=!0)},[C,Qe,nt]);const Oe=oe=>{const se=oe.currentTarget.getAttribute("target"),Te=_!==void 0?_:se;if(!C&&!_K(oe)&&!oe.defaultPrevented&&(!Te||Te==="_self")&&oe.button===0){oe.preventDefault(),zg.flushSync(()=>{Pe(!0)});const Ae=o.subscribe("onResolved",()=>{Ae(),Pe(!1)});o.navigate({...V,replace:g,resetScroll:y,hashScrollIntoView:f,startTransition:v,viewTransition:S,ignoreBlocker:B})}};if(xe)return{...M,ref:n,href:xe,...x&&{children:x},..._&&{target:_},...C&&{disabled:C},...P&&{style:P},...E&&{className:E},...T&&{onClick:T},...A&&{onBlur:A},...k&&{onFocus:k},...O&&{onMouseEnter:O},...N&&{onMouseLeave:N},...q&&{onTouchStart:q}};const De=oe=>{if(C||nt!=="intent")return;if(!$e){Qe();return}const se=oe.currentTarget;if(ld.has(se))return;const Te=setTimeout(()=>{ld.delete(se),Qe()},$e);ld.set(se,Te)},Ue=oe=>{C||nt!=="intent"||Qe()},K=oe=>{if(C||!nt||!$e)return;const se=oe.currentTarget,Te=ld.get(se);Te&&(clearTimeout(Te),ld.delete(se))};return{...M,...Y,...ne,href:he?.href,ref:n,onClick:cc([T,Oe]),onBlur:cc([A,K]),onFocus:cc([k,De]),onMouseEnter:cc([O,De]),onMouseLeave:cc([N,K]),onTouchStart:cc([q,Ue]),disabled:!!C,target:_,...ie&&{style:ie},...ve&&{className:ve},...C&&pK,...Be&&gK,...G&&we&&vK}}var g0={},hK={className:"active"},pK={role:"link","aria-disabled":!0},gK={"data-status":"active","aria-current":"page"},vK={"data-transitioning":"transitioning"},ld=new WeakMap,bK={rootMargin:"100px"},cc=e=>t=>{for(const o of e)if(o){if(t.defaultPrevented)return;o(t)}};function yK(e,t,o,n){if(!n)return t?{href:e,external:!0}:{href:o.createHref(e)||"/",external:!1}}function SK(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var xm=D.forwardRef((e,t)=>{const{_asChild:o,...n}=e,{type:r,...i}=fK(n,t),l=typeof n.children=="function"?n.children({isActive:i["data-status"]==="active"}):n.children;if(!o){const{disabled:c,...d}=i;return D.createElement("a",d,l)}return D.createElement(o,i,l)});function _K(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vme(e){return new wK({id:e})}var wK=class extends YG{constructor({id:e}){super({id:e}),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id,strict:!1}),this.useLoaderData=t=>_C({...t,from:this.id,strict:!1}),this.useNavigate=()=>Cm({from:jn().routesById[this.id].fullPath}),this.notFound=t=>B2({routeId:this.id,...t}),this.Link=ee.forwardRef((t,o)=>{const n=jn().routesById[this.id].fullPath;return R.jsx(xm,{ref:o,from:n,...t})})}},CK=class extends V2{constructor(e){super(e),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id}),this.useLoaderData=t=>_C({...t,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=ee.forwardRef((t,o)=>R.jsx(xm,{ref:o,from:this.fullPath,...t}))}};function rt(e){return new CK(e)}var xK=class extends ZG{constructor(e){super(e),this.useMatch=t=>ws({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>xC({...t,from:this.id}),this.useSearch=t=>CC({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>nv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>wC({...t,from:this.id}),this.useLoaderData=t=>_C({...t,from:this.id}),this.useNavigate=()=>Cm({from:this.fullPath}),this.Link=ee.forwardRef((t,o)=>R.jsx(xm,{ref:o,from:this.fullPath,...t}))}};function EK(e){return new xK(e)}function ct(e,t){let o,n,r,i;const l=()=>(o||(o=e().then(d=>{o=void 0,n=d.default}).catch(d=>{if(r=d,XH(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const m=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(m)||(sessionStorage.setItem(m,"1"),i=!0)}})),o),c=function(m){if(i)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!n)if(UA)UA(l());else throw l();return D.createElement(n,m)};return c.preload=l,c}function TK(e){const t=jn(),o=`not-found-${Sr(t.stores.location,n=>n.pathname)}-${Sr(t.stores.status,n=>n)}`;return R.jsx(yC,{getResetKey:()=>o,onCatch:(n,r)=>{if(An(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(An(n))return e.fallback?.(n);throw n},children:e.children})}function PK(){return R.jsx("p",{children:"Not Found"})}function Cc(e){return R.jsx(R.Fragment,{children:e.children})}function Q2(e,t,o){return t.options.notFoundComponent?R.jsx(t.options.notFoundComponent,{...o}):e.options.defaultNotFoundComponent?R.jsx(e.options.defaultNotFoundComponent,{...o}):R.jsx(PK,{})}function RK(e){return null}function AK(){return RK(jn()),null}var J2=D.memo(function({matchId:t}){const o=jn(),n=o.stores.matchStores.get(t);n||di();const r=Sr(o.stores.loadedAt,l=>l),i=Sr(n,l=>l);return R.jsx(kK,{router:o,matchId:t,resetKey:r,matchState:D.useMemo(()=>{const l=i.routeId,c=o.routesById[l].parentRoute?.id;return{routeId:l,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:c}},[i._displayPending,i.routeId,i.ssr,o.routesById])})});function kK({router:e,matchId:t,resetKey:o,matchState:n}){const r=e.routesById[n.routeId],i=r.options.pendingComponent??e.options.defaultPendingComponent,l=i?R.jsx(i,{}):null,c=r.options.errorComponent??e.options.defaultErrorComponent,d=r.options.onCatch??e.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??e.options.notFoundRoute?.options.component:r.options.notFoundComponent,h=n.ssr===!1||n.ssr==="data-only",f=(!r.isRoot||r.options.wrapInSuspense||h)&&(r.options.wrapInSuspense??i??(r.options.errorComponent?.preload||h))?D.Suspense:Cc,g=c?yC:Cc,v=m?TK:Cc;return R.jsxs(r.isRoot?r.options.shellComponent??Cc:Cc,{children:[R.jsx(ov.Provider,{value:t,children:R.jsx(f,{fallback:l,children:R.jsx(g,{getResetKey:()=>o,errorComponent:c||SC,onCatch:(y,S)=>{if(An(y))throw y.routeId??=n.routeId,y;d?.(y,S)},children:R.jsx(v,{fallback:y=>{if(y.routeId??=n.routeId,!m||y.routeId&&y.routeId!==n.routeId||!y.routeId&&!r.isRoot)throw y;return D.createElement(m,y)},children:h||n._displayPending?R.jsx(XG,{fallback:l,children:R.jsx(hk,{matchId:t})}):R.jsx(hk,{matchId:t})})})})}),n.parentRouteId===sl?R.jsxs(R.Fragment,{children:[R.jsx(DK,{resetKey:o}),e.options.scrollRestoration&&A2?R.jsx(AK,{}):null]}):null]})}function DK({resetKey:e}){const t=jn(),o=D.useRef(void 0);return Ac(()=>{const n=t.latestLocation.href;(o.current===void 0||o.current!==n)&&(t.emit({type:"onRendered",...Fc(t.stores.location.get(),t.stores.resolvedLocation.get())}),o.current=n)},[t.latestLocation.state.__TSR_key,e,t]),null}var hk=D.memo(function({matchId:t}){const o=jn(),n=(h,f)=>o.getMatch(h.id)?._nonReactive[f]??h._nonReactive[f],r=o.stores.matchStores.get(t);r||di();const i=Sr(r,h=>h),l=i.routeId,c=o.routesById[l],d=D.useMemo(()=>{const h=(o.routesById[l].options.remountDeps??o.options.defaultRemountDeps)?.({routeId:l,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return h?JSON.stringify(h):void 0},[l,i.loaderDeps,i._strictParams,i._strictSearch,o.options.defaultRemountDeps,o.routesById]),m=D.useMemo(()=>{const h=c.options.component??o.options.defaultComponent;return h?R.jsx(h,{},d):R.jsx(X2,{})},[d,c.options.component,o.options.defaultComponent]);if(i._displayPending)throw n(i,"displayPendingPromise");if(i._forcePending)throw n(i,"minPendingPromise");if(i.status==="pending"){const h=c.options.pendingMinMs??o.options.defaultPendingMinMs;if(h){const f=o.getMatch(i.id);if(f&&!f._nonReactive.minPendingPromise){const g=Yc();f._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),f._nonReactive.minPendingPromise=void 0},h)}}throw n(i,"loadPromise")}if(i.status==="notFound")return An(i.error)||di(),Q2(o,c,i.error);if(i.status==="redirected")throw Xn(i.error)||di(),n(i,"loadPromise");if(i.status==="error")throw i.error;return m}),X2=D.memo(function(){const t=jn(),o=D.useContext(ov);let n,r=!1,i;{const m=o?t.stores.matchStores.get(o):void 0;[n,r]=Sr(m,h=>[h?.routeId,h?.globalNotFound??!1]),i=Sr(t.stores.matchesId,h=>h[h.findIndex(f=>f===o)+1])}const l=n?t.routesById[n]:void 0,c=t.options.defaultPendingComponent?R.jsx(t.options.defaultPendingComponent,{}):null;if(r)return l||di(),Q2(t,l,void 0);if(!i)return null;const d=R.jsx(J2,{matchId:i});return n===sl?R.jsx(D.Suspense,{fallback:c,children:d}):d});function OK(){const e=jn(),t=D.useRef({router:e,mounted:!1}),[o,n]=D.useState(!1),r=Sr(e.stores.isLoading,f=>f),i=Sr(e.stores.hasPending,f=>f),l=a0(r),c=r||o||i,d=a0(c),m=r||i,h=a0(m);return e.startTransition=f=>{n(!0),D.startTransition(()=>{f(),n(!1)})},D.useEffect(()=>{const f=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return li(e.latestLocation.publicHref)!==li(g.publicHref)&&e.commitLocation({...g,replace:!0}),()=>{f()}},[e,e.history]),Ac(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),Ac(()=>{l&&!r&&e.emit({type:"onLoad",...Fc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,e,r]),Ac(()=>{h&&!m&&e.emit({type:"onBeforeRouteMount",...Fc(e.stores.location.get(),e.stores.resolvedLocation.get())})},[m,h,e]),Ac(()=>{if(d&&!c){const f=Fc(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:"onResolved",...f}),W2(()=>{e.stores.status.set("idle"),e.stores.resolvedLocation.set(e.stores.location.get())}),f.hrefChanged&&QG(e)}},[c,d,e]),null}function IK(){const e=jn(),t=e.routesById[sl].options.pendingComponent??e.options.defaultPendingComponent,o=t?R.jsx(t,{}):null,n=R.jsxs(typeof document<"u"&&e.ssr?Cc:D.Suspense,{fallback:o,children:[R.jsx(OK,{}),R.jsx(MK,{})]});return e.options.InnerWrap?R.jsx(e.options.InnerWrap,{children:n}):n}function MK(){const e=jn(),t=Sr(e.stores.firstId,r=>r),o=Sr(e.stores.loadedAt,r=>r),n=t?R.jsx(J2,{matchId:t}):null;return R.jsx(ov.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?n:R.jsx(yC,{getResetKey:()=>o,errorComponent:SC,onCatch:void 0,children:n})})}var LK=e=>({createMutableStore:ck,createReadonlyStore:ck,batch:W2}),NK=e=>new FK(e),FK=class extends UG{constructor(e){super(e,LK)}};function BK({router:e,children:t,...o}){D2(o)&&e.update({...e.options,...o,context:{...e.options.context,...o.context}});const n=R.jsx(G2.Provider,{value:e,children:t});return e.options.Wrap?R.jsx(e.options.Wrap,{children:n}):n}function zK({router:e,...t}){return R.jsx(BK,{router:e,...t,children:R.jsx(IK,{})})}var jK={},pk={};const Tp=Object.create(null),cd=e=>jK||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Tp:globalThis),Lr=new Proxy(Tp,{get(e,t){return cd()[t]??Tp[t]},has(e,t){return t in cd()||t in Tp},set(e,t,o){const n=cd(!0);return n[t]=o,!0},deleteProperty(e,t){if(!t)return!1;const o=cd(!0);return delete o[t],!0},ownKeys(){const e=cd(!0);return Object.keys(e)}});function $o(e,t){return typeof process<"u"&&pk?pk[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ud=1,rn=4,Sa=8,pr=24,gk={eterm:rn,cons25:rn,console:rn,cygwin:rn,dtterm:rn,gnome:rn,hurd:rn,jfbterm:rn,konsole:rn,kterm:rn,mlterm:rn,mosh:pr,putty:rn,st:rn,"rxvt-unicode-24bit":pr,terminator:pr,"xterm-kitty":pr},UK=new Map(Object.entries({APPVEYOR:Sa,BUILDKITE:Sa,CIRCLECI:pr,DRONE:Sa,GITEA_ACTIONS:pr,GITHUB_ACTIONS:pr,GITLAB_CI:Sa,TRAVIS:Sa})),$K=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function qK(){if($o("FORCE_COLOR")!==void 0)switch($o("FORCE_COLOR")){case"":case"1":case"true":return rn;case"2":return Sa;case"3":return pr;default:return ud}if($o("NODE_DISABLE_COLORS")!==void 0&&$o("NODE_DISABLE_COLORS")!==""||$o("NO_COLOR")!==void 0&&$o("NO_COLOR")!==""||$o("TERM")==="dumb")return ud;if($o("TMUX"))return pr;if("TF_BUILD"in Lr&&"AGENT_NAME"in Lr)return rn;if("CI"in Lr){for(const{0:e,1:t}of UK)if(e in Lr)return t;return $o("CI_NAME")==="codeship"?Sa:ud}if("TEAMCITY_VERSION"in Lr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec($o("TEAMCITY_VERSION"))!==null?rn:ud;switch($o("TERM_PROGRAM")){case"iTerm.app":return!$o("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec($o("TERM_PROGRAM_VERSION"))!==null?Sa:pr;case"HyperTerm":case"MacTerm":return pr;case"Apple_Terminal":return Sa}if($o("COLORTERM")==="truecolor"||$o("COLORTERM")==="24bit")return pr;if($o("TERM")){if(/truecolor/.exec($o("TERM"))!==null)return pr;if(/^xterm-256/.exec($o("TERM"))!==null)return Sa;const e=$o("TERM").toLowerCase();if(gk[e])return gk[e];if($K.some(t=>t.exec(e)!==null))return rn}return $o("COLORTERM")?rn:ud}const _a={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"}},g_=["debug","info","success","warn","error"];function VK(e,t){return g_.indexOf(t)>=g_.indexOf(e)}const HK={info:_a.fg.blue,success:_a.fg.green,warn:_a.fg.yellow,error:_a.fg.red,debug:_a.fg.magenta},GK=(e,t,o)=>{const n=new Date().toISOString();return o?`${_a.dim}${n}${_a.reset} ${HK[e]}${e.toUpperCase()}${_a.reset} ${_a.bright}[Better Auth]:${_a.reset} ${t}`:`${n} ${e.toUpperCase()} [Better Auth]: ${t}`},KK=e=>{const t="warn",o=qK()!==1,n=(r,i,l=[])=>{if(!VK(t,r))return;const c=GK(r,i,o);{r==="error"?console.error(c,...l):r==="warn"?console.warn(c,...l):console.log(c,...l);return}};return{...Object.fromEntries(g_.map(r=>[r,(...[i,...l])=>n(r,i,l)])),get level(){return t}}};KK();function WK(e){return e.charAt(0).toUpperCase()+e.slice(1)}var zd=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function YK(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new zd(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function ZK(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new zd(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof zd?t:new zd(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function v0(e,t="/api/auth"){if(ZK(e),YK(e))return e;const o=e.replace(/\/+$/,"");return!t||t==="/"?o:(t=t.startsWith("/")?t:`/${t}`,`${o}${t}`)}function QK(e,t,o,n,r){if(e)return v0(e,t);{const i=Lr.BETTER_AUTH_URL||Lr.NEXT_PUBLIC_BETTER_AUTH_URL||Lr.PUBLIC_BETTER_AUTH_URL||Lr.NUXT_PUBLIC_BETTER_AUTH_URL||Lr.NUXT_PUBLIC_AUTH_URL||(Lr.BASE_URL!=="/"?Lr.BASE_URL:void 0);if(i)return v0(i,t)}if(typeof window<"u"&&window.location)return v0(window.location.origin,t)}const JK={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},XK={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*:/},eW=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,vk={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tW=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function oW(e){return e instanceof Date&&!isNaN(e.getTime())}function nW(e){const t=tW.exec(e);if(!t)return null;const[,o,n,r,i,l,c,d,m,h,f]=t,g=new Date(Date.UTC(parseInt(o,10),parseInt(n,10)-1,parseInt(r,10),parseInt(i,10),parseInt(l,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(m){const v=(parseInt(h,10)*60+parseInt(f,10))*(m==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+v)}return oW(g)?g:null}function rW(e,t={}){const{strict:o=!1,warnings:n=!1,reviver:r,parseDates:i=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l.length>0&&l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const c=l.toLowerCase();if(c.length<=9&&c in vk)return vk[c];if(!eW.test(l)){if(o)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(XK).some(([d,m])=>{const h=m.test(l);return h&&n&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),h})&&o)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(m,h)=>{if(m==="__proto__"||m==="constructor"&&h&&typeof h=="object"&&"prototype"in h){n&&console.warn(`[better-json] Dropping "${m}" key to prevent prototype pollution`);return}if(i&&typeof h=="string"){const f=nW(h);if(f)return f}return r?r(m,h):h})}catch(d){if(o)throw d;return e}}function aW(e,t={strict:!0}){return rW(e,t)}let Jr=[],Hi=0;const Wh=4,iW=globalThis.nanostoresGlobal||={epoch:0},kc=e=>{let t=[],o={get(){return o.lc||o.listen(()=>{})(),o.value},init:e,lc:0,listen(n){return o.lc=t.push(n),()=>{for(let i=Hi+Wh;i<Jr.length;)Jr[i]===n?Jr.splice(i,Wh):i+=Wh;let r=t.indexOf(n);~r&&(t.splice(r,1),--o.lc||o.off())}},notify(n,r){iW.epoch++;let i=!Jr.length;for(let l of t)Jr.push(l,o.value,n,r);if(i){for(Hi=0;Hi<Jr.length;Hi+=Wh)Jr[Hi](Jr[Hi+1],Jr[Hi+2],Jr[Hi+3]);Jr.length=0}},off(){},set(n){let r=o.value;r!==n&&(o.value=n,o.notify(r))},subscribe(n){let r=o.listen(n);return n(o.value),r},value:e};return o},sW=5,Yh=6,Zh=10;let lW=(e,t,o,n)=>(e.events=e.events||{},e.events[o+Zh]||(e.events[o+Zh]=n(r=>{e.events[o].reduceRight((i,l)=>(l(i),i),{shared:{},...r})})),e.events[o]=e.events[o]||[],e.events[o].push(t),()=>{let r=e.events[o],i=r.indexOf(t);r.splice(i,1),r.length||(delete e.events[o],e.events[o+Zh](),delete e.events[o+Zh])});const cW=1e3;let eL=(e,t)=>lW(e,n=>{let r=t(n);r&&e.events[Yh].push(r)},sW,n=>{let r=e.listen;e.listen=(...l)=>(!e.lc&&!e.active&&(e.active=!0,n()),r(...l));let i=e.off;return e.events[Yh]=[],e.off=()=>{i(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let l of e.events[Yh])l();e.events[Yh]=[]}},cW)},()=>{e.listen=r,e.off=i}});function uW(e,t,o){let n=new Set(t).add(void 0);return e.listen((r,i,l)=>{n.has(l)&&o(r,i,l)})}const dW=()=>typeof window>"u",Pd=(e,t,o,n)=>{const r=kc({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>i(c)}),i=async c=>new Promise(d=>{const m=typeof n=="function"?n({data:r.get().data,error:r.get().error,isPending:r.get().isPending}):n;o(t,{...m,query:{...m?.query,...c?.query},async onSuccess(h){r.set({data:h.data,error:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await m?.onSuccess?.(h)},async onError(h){const{request:f}=h,g=typeof f.retry=="number"?f.retry:f.retry?.attempts,v=f.retryAttempt||0;g&&v<g||(r.set({error:h.error,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch}),await m?.onError?.(h))},async onRequest(h){const f=r.get();r.set({isPending:f.data===null,data:f.data,error:null,isRefetching:!0,refetch:r.value.refetch}),await m?.onRequest?.(h)}}).catch(h=>{r.set({error:h,data:null,isPending:!1,isRefetching:!1,refetch:r.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let l=!1;for(const c of e)c.subscribe(async()=>{dW()||(l?await i():eL(r,()=>{const d=setTimeout(async()=>{l||(await i(),l=!0)},0);return()=>{r.off(),c.off(),clearTimeout(d)}}))});return r},b0=Symbol.for("better-auth:broadcast-channel"),mW=()=>Math.floor(Date.now()/1e3);var fW=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:mW()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const o=JSON.parse(t.newValue??"{}");o?.event!=="session"||!o?.data||this.listeners.forEach(n=>n(o))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function y0(e="better-auth.message"){return globalThis[b0]||(globalThis[b0]=new fW(e)),globalThis[b0]}const S0=Symbol.for("better-auth:focus-manager");var hW=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function bk(){return globalThis[S0]||(globalThis[S0]=new hW),globalThis[S0]}const _0=Symbol.for("better-auth:online-manager");var pW=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function w0(){return globalThis[_0]||(globalThis[_0]=new pW),globalThis[_0]}const uc=()=>Math.floor(Date.now()/1e3),gW=5;function vW(e){const{sessionAtom:t,sessionSignal:o,$fetch:n,options:r={}}=e,i=r.sessionOptions?.refetchInterval??0,l=r.sessionOptions?.refetchOnWindowFocus??!0,c=r.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},m=()=>c||w0().isOnline,h=C=>{if(!m())return;if(C?.event==="storage"){d.lastSync=uc(),o.set(!o.get());return}const P=t.get();if(C?.event==="poll"){d.lastSessionRequest=uc(),n("/get-session").then(E=>{E.error?t.set({...P,data:null,error:E.error}):t.set({...P,data:E.data,error:null}),d.lastSync=uc(),o.set(!o.get())}).catch(()=>{});return}if(C?.event==="visibilitychange"){if(uc()-d.lastSessionRequest<gW)return;d.lastSessionRequest=uc()}(P?.data===null||P?.data===void 0||C?.event==="visibilitychange")&&(d.lastSync=uc(),o.set(!o.get()))},f=C=>{y0().post({event:"session",data:{trigger:C},clientId:Math.random().toString(36).substring(7)})},g=()=>{i&&i>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&h({event:"poll"})},i*1e3))},v=()=>{d.unsubscribeBroadcast=y0().subscribe(()=>{h({event:"storage"})})},y=()=>{l&&(d.unsubscribeFocus=bk().subscribe(()=>{h({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=w0().subscribe(C=>{C&&h({event:"visibilitychange"})})};return{init:()=>{g(),v(),y(),S(),y0().setup(),bk().setup(),w0().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:h,broadcastSessionUpdate:f}}function bW(e,t){const o=kc(!1),n=Pd(o,"/get-session",e,{method:"GET"});return eL(n,()=>{const r=vW({sessionAtom:n,sessionSignal:o,$fetch:e,options:t});return r.init(),()=>{r.cleanup()}}),{session:n,$sessionSignal:o}}function C0(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function v_(e,t,o=".",n){if(!C0(t))return v_(e,{},o,n);const r={...t};for(const i of Object.keys(e)){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(n&&n(r,i,l,o)||(Array.isArray(l)&&Array.isArray(r[i])?r[i]=[...l,...r[i]]:C0(l)&&C0(r[i])?r[i]=v_(l,r[i],(o?`${o}.`:"")+i.toString(),n):r[i]=l))}return r}function yW(e){return(...t)=>t.reduce((o,n)=>v_(o,n,"",e),{})}const SW=yW();var _W=Object.defineProperty,wW=Object.defineProperties,CW=Object.getOwnPropertyDescriptors,yk=Object.getOwnPropertySymbols,xW=Object.prototype.hasOwnProperty,EW=Object.prototype.propertyIsEnumerable,Sk=(e,t,o)=>t in e?_W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,oa=(e,t)=>{for(var o in t||(t={}))xW.call(t,o)&&Sk(e,o,t[o]);if(yk)for(var o of yk(t))EW.call(t,o)&&Sk(e,o,t[o]);return e},ba=(e,t)=>wW(e,CW(t)),TW=class extends Error{constructor(e,t,o){super(t||e.toString(),{cause:o}),this.status=e,this.statusText=t,this.error=o,Error.captureStackTrace(this,this.constructor)}},PW=async(e,t)=>{var o,n,r,i,l,c;let d=t||{};const m={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:m};for(const h of t?.plugins||[]){if(h.init){const f=await((o=h.init)==null?void 0:o.call(h,e.toString(),t));d=f.options||d,e=f.url}m.onRequest.push((n=h.hooks)==null?void 0:n.onRequest),m.onResponse.push((r=h.hooks)==null?void 0:r.onResponse),m.onSuccess.push((i=h.hooks)==null?void 0:i.onSuccess),m.onError.push((l=h.hooks)==null?void 0:l.onError),m.onRetry.push((c=h.hooks)==null?void 0:c.onRetry)}return{url:e,options:d,hooks:m}},_k=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},RW=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function AW(e){if(typeof e=="number")return new _k({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new _k(e);case"exponential":return new RW(e);default:throw new Error("Invalid retry strategy")}}var kW=async e=>{const t={},o=async n=>typeof n=="function"?await n():n;if(e?.auth){if(e.auth.type==="Bearer"){const n=await o(e.auth.token);if(!n)return t;t.authorization=`Bearer ${n}`}else if(e.auth.type==="Basic"){const[n,r]=await Promise.all([o(e.auth.username),o(e.auth.password)]);if(!n||!r)return t;t.authorization=`Basic ${btoa(`${n}:${r}`)}`}else if(e.auth.type==="Custom"){const[n,r]=await Promise.all([o(e.auth.prefix),o(e.auth.value)]);if(!r)return t;t.authorization=`${n??""} ${r}`}}return t},DW=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function OW(e){const t=e.headers.get("content-type"),o=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const n=t.split(";").shift()||"";return DW.test(n)?"json":o.has(n)||n.startsWith("text/")?"text":"blob"}function IW(e){try{return JSON.parse(e),!0}catch{return!1}}function b_(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function wk(e){try{return JSON.parse(e)}catch{return e}}function Ck(e){return typeof e=="function"}function MW(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Ck(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Ck(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function LW(e){const t=new Headers(e?.headers),o=await kW(e);for(const[n,r]of Object.entries(o||{}))t.set(n,r);if(!t.has("content-type")){const n=NW(e?.body);n&&t.set("content-type",n)}return t}function NW(e){return b_(e)?"application/json":null}function FW(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(b_(e.body)&&!t.has("content-type")){for(const[o,n]of Object.entries(e?.body))n instanceof Date&&(e.body[o]=n.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&b_(e.body)?new URLSearchParams(e.body).toString():e.body}function BW(e,t){var o;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const n=(o=e.split("@")[1])==null?void 0:o.split("/")[0];return oL.includes(n)?n.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function zW(e,t){let o;return!e?.signal&&e?.timeout&&(o=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:o,clearTimeout:()=>{o&&clearTimeout(o)}}}var jW=class tL extends Error{constructor(t,o){super(o||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,tL.prototype)}};async function Pp(e,t){const o=await e["~standard"].validate(t);if(o.issues)throw new jW(o.issues);return o.value}var oL=["get","post","put","patch","delete"],UW=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,o){var n,r,i,l;const c=((r=(n=e.plugins)==null?void 0:n.find(d=>{var m;return(m=d.schema)!=null&&m.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:r.schema)||e.schema;if(c){let d=t;(i=c.config)!=null&&i.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.replace(c.config.prefix,c.config.baseURL))),(l=c.config)!=null&&l.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const m=c.schema[d];if(m){let h=ba(oa({},o),{method:m.method,output:m.output});return o?.disableValidation||(h=ba(oa({},h),{body:m.input?await Pp(m.input,o?.body):o?.body,params:m.params?await Pp(m.params,o?.params):o?.params,query:m.query?await Pp(m.query,o?.query):o?.query})),{url:t,options:h}}}return{url:t,options:o}}}),$W=e=>{async function t(o,n){const r=ba(oa(oa({},e),n),{plugins:[...e?.plugins||[],UW(e||{}),...n?.plugins||[]]});if(e?.catchAllError)try{return await y_(o,r)}catch(i){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:i}}}return await y_(o,r)}return t};function qW(e,t){const{baseURL:o,params:n,query:r}=t||{query:{},params:{},baseURL:""};let i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):o||"";if(e.startsWith("@")){const f=e.toString().split("@")[1].split("/")[0];oL.includes(f)&&(e=e.replace(`@${f}/`,"/"))}i.endsWith("/")||(i+="/");let[l,c]=e.replace(i,"").split("?");const d=new URLSearchParams(c);for(const[f,g]of Object.entries(r||{})){if(g==null)continue;let v;if(typeof g=="string")v=g;else if(Array.isArray(g)){for(const y of g)d.append(f,y);continue}else v=JSON.stringify(g);d.set(f,v)}if(n)if(Array.isArray(n)){const f=l.split("/").filter(g=>g.startsWith(":"));for(const[g,v]of f.entries()){const y=n[g];l=l.replace(v,y)}}else for(const[f,g]of Object.entries(n))l=l.replace(`:${f}`,String(g));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let m=d.toString();return m=m.length>0?`?${m}`.replace(/\+/g,"%20"):"",i.startsWith("http")?new URL(`${l}${m}`,i):`${i}${l}${m}`}var y_=async(e,t)=>{var o,n,r,i,l,c,d,m;const{hooks:h,url:f,options:g}=await PW(e,t),v=MW(g),y=new AbortController,S=(o=g.signal)!=null?o:y.signal,x=qW(f,g),_=FW(g),C=await LW(g),P=BW(f,g);let E=ba(oa({},g),{url:x,headers:C,body:_,method:P,signal:S});for(const U of h.onRequest)if(U){const W=await U(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((n=t?.body)==null?void 0:n.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:T}=zW(g,y);let A=await v(E.url,E);T();const k={response:A,request:E};for(const U of h.onResponse)if(U){const W=await U(ba(oa({},k),{response:(r=t?.hookOptions)!=null&&r.cloneResponse?A.clone():A}));W instanceof Response?A=W:typeof W=="object"&&W!==null&&(A=W.response)}if(A.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=OW(A),ae={data:null,response:A,request:E};if(W==="json"||W==="text"){const H=await A.text(),Z=(i=E.jsonParser)!=null?i:wk;ae.data=await Z(H)}else ae.data=await A[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await Pp(E.output,ae.data));for(const H of h.onSuccess)H&&await H(ba(oa({},ae),{response:(l=t?.hookOptions)!=null&&l.cloneResponse?A.clone():A}));return t?.throw?ae.data:{data:ae.data,error:null}}const O=(c=t?.jsonParser)!=null?c:wk,N=await A.text(),q=IW(N),B=q?await O(N):null,$={response:A,responseText:N,request:E,error:ba(oa({},B),{status:A.status,statusText:A.statusText})};for(const U of h.onError)U&&await U(ba(oa({},$),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?A.clone():A}));if(t?.retry){const U=AW(t.retry),W=(m=t.retryAttempt)!=null?m:0;if(await U.shouldAttemptRetry(W,A)){for(const H of h.onRetry)H&&await H(k);const ae=U.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await y_(e,ba(oa({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new TW(A.status,A.statusText,q?B:N);return{data:null,error:ba(oa({},B),{status:A.status,statusText:A.statusText})}};const VW=(e,t)=>{const o="credentials"in Request.prototype,n=QK(e?.baseURL,e?.basePath)??"/api/auth",r=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],i={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:l,onError:c,onRequest:d,onResponse:m,...h}=e?.fetchOptions||{},f=$W({baseURL:n,...o?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?aW(E,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[i,...h.plugins||[],...e?.disableDefaultFetchPlugins?[]:[JK],...r]}),{$sessionSignal:g,session:v}=bW(f,e),y=e?.plugins||[];let S={};const x={$sessionSignal:g,session:v},_={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},C=[{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 y)E.getAtoms&&Object.assign(x,E.getAtoms?.(f)),E.pathMethods&&Object.assign(_,E.pathMethods),E.atomListeners&&C.push(...E.atomListeners);const P={notify:E=>{x[E].set(!x[E].get())},listen:(E,T)=>{x[E].subscribe(T)},atoms:x};for(const E of y)E.getActions&&(S=SW(E.getActions?.(f,P,e)??{},S));return{get baseURL(){return n},pluginsActions:S,pluginsAtoms:x,pluginPathMethods:_,atomListeners:C,$fetch:f,$store:P}};function HW(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function GW(e,t,o){const n=t[e],{fetchOptions:r,query:i,...l}=o||{};return n||(r?.method?r.method:l&&Object.keys(l).length>0?"POST":"GET")}function KW(e,t,o,n,r){function i(l=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const m=[...l,d];let h=e;for(const f of m)if(h&&typeof h=="object"&&f in h)h=h[f];else{h=void 0;break}return typeof h=="function"||HW(h)?h:i(m)},apply:async(c,d,m)=>{const h="/"+l.map(C=>C.replace(/[A-Z]/g,P=>`-${P.toLowerCase()}`)).join("/"),f=m[0]||{},g=m[1]||{},{query:v,fetchOptions:y,...S}=f,x={...g,...y},_=GW(h,o,f);return await t(h,{...x,body:_==="GET"?void 0:{...S,...x?.body||{}},query:v||x?.query,method:_,async onSuccess(C){if(await x?.onSuccess?.(C),!r||x.disableSignal)return;const P=r.filter(T=>T.matcher(h));if(!P.length)return;const E=new Set;for(const T of P){const A=n[T.signal];if(!A)return;if(E.has(T.signal))continue;E.add(T.signal);const k=A.get();setTimeout(()=>{A.set(!k)},10)}}})}})}return i()}function WW(e,t={}){const o=D.useRef(e.get()),{keys:n,deps:r=[e,n]}=t,i=D.useCallback(c=>{const d=m=>{o.current!==m&&(o.current=m,c())};return d(e.value),n?.length?uW(e,n,d):e.listen(d)},r),l=()=>o.current;return D.useSyncExternalStore(i,l,l)}function YW(e){return`use${WK(e)}`}function ZW(e){const{pluginPathMethods:t,pluginsActions:o,pluginsAtoms:n,$fetch:r,$store:i,atomListeners:l}=VW(e),c={};for(const[d,m]of Object.entries(n))c[YW(d)]=()=>WW(m);return KW({...o,...c,$fetch:r,$store:i},r,t,n,l)}function QW(e){return{authorize(t,o="AND"){let n=!1;for(const[r,i]of Object.entries(t)){const l=e[r];if(!l)return{success:!1,error:`You are not allowed to access resource: ${r}`};if(Array.isArray(i))n=i.every(c=>l.includes(c));else if(typeof i=="object"){const c=i;c.connector==="OR"?n=c.actions.some(d=>l.includes(d)):n=c.actions.every(d=>l.includes(d))}else throw new zd("Invalid access control request");if(n&&o==="OR")return{success:n};if(!n&&o==="AND")return{success:!1,error:`unauthorized to access resource "${r}"`}}return n?{success:n}:{success:!1,error:"Not authorized"}},statements:e}}function nL(e){return{newRole(t){return QW(t)},statements:e}}const JW={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},rL=nL(JW),aL=rL.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),iL=rL.newRole({user:[],session:[]}),XW={admin:aL,user:iL},eY=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),o=e.options?.roles||XW;for(const n of t)if(o[n]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},tY=e=>{const t={admin:aL,user:iL,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:o=>eY({role:o.role,options:{ac:e?.ac,roles:t},permissions:o.permissions??o.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},oY=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),nY=()=>({id:"magic-link",$InferServerPlugin:{}}),rY={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},EC=nL(rY),sL=EC.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),lL=EC.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),cL=EC.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),aY={admin:sL,owner:lL,member:cL},iY=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const o=e.role.split(","),n=e.options.creatorRole||"owner",r=o.includes(n),i=e.allowCreatorAllPermissions||!1;if(r&&i)return!0;for(const l of o)if(t[l]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},sY=e=>iY(e,e.options.roles||aY),lY=e=>{const t=kc(!1),o=kc(!1),n=kc(!1),r=kc(!1),i={admin:sL,member:cL,owner:lL,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(l,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:m=>sY({role:m.role,options:{ac:e?.ac,roles:i},permissions:m.permissions??m.permission})}}),getAtoms:l=>{const c=Pd(t,"/organization/list",l,{method:"GET"});return{$listOrg:t,$activeOrgSignal:o,$activeMemberSignal:n,$activeMemberRoleSignal:r,activeOrganization:Pd([o],"/organization/get-full-organization",l,()=>({method:"GET"})),listOrganizations:c,activeMember:Pd([n],"/organization/get-active-member",l,{method:"GET"}),activeMemberRole:Pd([r],"/organization/get-active-member-role",l,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(l){return l==="/organization/create"||l==="/organization/delete"||l==="/organization/update"},signal:"$listOrg"},{matcher(l){return l.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(l){return l.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(l){return l.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(l){return l.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},cY=e=>({id:"sso-client",$InferServerPlugin:{}});function uL(e){const t=e?.metadata;if(!t)return!1;try{return(typeof t=="string"?JSON.parse(t):t).archived===!0}catch{return!1}}const rv=ZW({plugins:[lY({}),tY(),cY(),nY(),oY()]}),uY=3e4;let Rd=null,Qh=null;function dL(){if(Rd&&Rd.expiresAt>Date.now())return Promise.resolve(Rd.result);if(Qh)return Qh;const e=rv.organization.list().then(t=>{const o=t.data?{...t,data:t.data.filter(n=>!uL(n))}:t;return o.data&&(Rd={result:o,expiresAt:Date.now()+uY}),o}).finally(()=>{Qh=null});return Qh=e,e}function bme(){const e=rv.useListOrganizations(),t=e.data?.filter(o=>!uL(o));return{...e,data:t}}function yme(){Rd=null}function mL(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=mL(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function TC(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=mL(e))&&(n&&(n+=" "),n+=t);return n}const dY=(e,t)=>{const o=new Array(e.length+t.length);for(let n=0;n<e.length;n++)o[n]=e[n];for(let n=0;n<t.length;n++)o[e.length+n]=t[n];return o},mY=(e,t)=>({classGroupId:e,validator:t}),fL=(e=new Map,t=null,o)=>({nextPart:e,validators:t,classGroupId:o}),eg="-",xk=[],fY="arbitrary..",hY=e=>{const t=gY(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return pY(l);const c=l.split(eg),d=c[0]===""&&c.length>1?1:0;return hL(c,d,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const d=n[l],m=o[l];return d?m?dY(m,d):d:m||xk}return o[l]||xk}}},hL=(e,t,o)=>{if(e.length-t===0)return o.classGroupId;const r=e[t],i=o.nextPart.get(r);if(i){const m=hL(e,t+1,i);if(m)return m}const l=o.validators;if(l===null)return;const c=t===0?e.join(eg):e.slice(t).join(eg),d=l.length;for(let m=0;m<d;m++){const h=l[m];if(h.validator(c))return h.classGroupId}},pY=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),o=t.indexOf(":"),n=t.slice(0,o);return n?fY+n:void 0})(),gY=e=>{const{theme:t,classGroups:o}=e;return vY(o,t)},vY=(e,t)=>{const o=fL();for(const n in e){const r=e[n];PC(r,o,n,t)}return o},PC=(e,t,o,n)=>{const r=e.length;for(let i=0;i<r;i++){const l=e[i];bY(l,t,o,n)}},bY=(e,t,o,n)=>{if(typeof e=="string"){yY(e,t,o);return}if(typeof e=="function"){SY(e,t,o,n);return}_Y(e,t,o,n)},yY=(e,t,o)=>{const n=e===""?t:pL(t,e);n.classGroupId=o},SY=(e,t,o,n)=>{if(wY(e)){PC(e(n),t,o,n);return}t.validators===null&&(t.validators=[]),t.validators.push(mY(o,e))},_Y=(e,t,o,n)=>{const r=Object.entries(e),i=r.length;for(let l=0;l<i;l++){const[c,d]=r[l];PC(d,pL(t,c),o,n)}},pL=(e,t)=>{let o=e;const n=t.split(eg),r=n.length;for(let i=0;i<r;i++){const l=n[i];let c=o.nextPart.get(l);c||(c=fL(),o.nextPart.set(l,c)),o=c}return o},wY=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,CY=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=Object.create(null),n=Object.create(null);const r=(i,l)=>{o[i]=l,t++,t>e&&(t=0,n=o,o=Object.create(null))};return{get(i){let l=o[i];if(l!==void 0)return l;if((l=n[i])!==void 0)return r(i,l),l},set(i,l){i in o?o[i]=l:r(i,l)}}},S_="!",Ek=":",xY=[],Tk=(e,t,o,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:o,maybePostfixModifierPosition:n,isExternal:r}),EY=e=>{const{prefix:t,experimentalParseClassName:o}=e;let n=r=>{const i=[];let l=0,c=0,d=0,m;const h=r.length;for(let S=0;S<h;S++){const x=r[S];if(l===0&&c===0){if(x===Ek){i.push(r.slice(d,S)),d=S+1;continue}if(x==="/"){m=S;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const f=i.length===0?r:r.slice(d);let g=f,v=!1;f.endsWith(S_)?(g=f.slice(0,-1),v=!0):f.startsWith(S_)&&(g=f.slice(1),v=!0);const y=m&&m>d?m-d:void 0;return Tk(i,v,g,y)};if(t){const r=t+Ek,i=n;n=l=>l.startsWith(r)?i(l.slice(r.length)):Tk(xY,!1,l,void 0,!0)}if(o){const r=n;n=i=>o({className:i,parseClassName:r})}return n},TY=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((o,n)=>{t.set(o,1e6+n)}),o=>{const n=[];let r=[];for(let i=0;i<o.length;i++){const l=o[i],c=l[0]==="[",d=t.has(l);c||d?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(l)):r.push(l)}return r.length>0&&(r.sort(),n.push(...r)),n}},PY=e=>({cache:CY(e.cacheSize),parseClassName:EY(e),sortModifiers:TY(e),postfixLookupClassGroupIds:RY(e),...hY(e)}),RY=e=>{const t=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let n=0;n<o.length;n++)t[o[n]]=!0;return t},AY=/\s+/,kY=(e,t)=>{const{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i,postfixLookupClassGroupIds:l}=t,c=[],d=e.trim().split(AY);let m="";for(let h=d.length-1;h>=0;h-=1){const f=d[h],{isExternal:g,modifiers:v,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:x}=o(f);if(g){m=f+(m.length>0?" "+m:m);continue}let _=!!x,C;if(_){const k=S.substring(0,x);C=n(k);const O=C&&l[C]?n(S):void 0;O&&O!==C&&(C=O,_=!1)}else C=n(S);if(!C){if(!_){m=f+(m.length>0?" "+m:m);continue}if(C=n(S),!C){m=f+(m.length>0?" "+m:m);continue}_=!1}const P=v.length===0?"":v.length===1?v[0]:i(v).join(":"),E=y?P+S_:P,T=E+C;if(c.indexOf(T)>-1)continue;c.push(T);const A=r(C,_);for(let k=0;k<A.length;++k){const O=A[k];c.push(E+O)}m=f+(m.length>0?" "+m:m)}return m},DY=(...e)=>{let t=0,o,n,r="";for(;t<e.length;)(o=e[t++])&&(n=gL(o))&&(r&&(r+=" "),r+=n);return r},gL=e=>{if(typeof e=="string")return e;let t,o="";for(let n=0;n<e.length;n++)e[n]&&(t=gL(e[n]))&&(o&&(o+=" "),o+=t);return o},OY=(e,...t)=>{let o,n,r,i;const l=d=>{const m=t.reduce((h,f)=>f(h),e());return o=PY(m),n=o.cache.get,r=o.cache.set,i=c,c(d)},c=d=>{const m=n(d);if(m)return m;const h=kY(d,o);return r(d,h),h};return i=l,(...d)=>i(DY(...d))},IY=[],Ko=e=>{const t=o=>o[e]||IY;return t.isThemeGetter=!0,t},vL=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bL=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MY=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LY=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NY=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,FY=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BY=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gi=e=>MY.test(e),gt=e=>!!e&&!Number.isNaN(Number(e)),pa=e=>!!e&&Number.isInteger(Number(e)),x0=e=>e.endsWith("%")&&gt(e.slice(0,-1)),ti=e=>LY.test(e),yL=()=>!0,jY=e=>NY.test(e)&&!FY.test(e),RC=()=>!1,UY=e=>BY.test(e),$Y=e=>zY.test(e),qY=e=>!qe(e)&&!Ve(e),VY=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),HY=e=>Cs(e,wL,RC),qe=e=>vL.test(e),Gs=e=>Cs(e,CL,jY),Pk=e=>Cs(e,XY,gt),GY=e=>Cs(e,EL,yL),KY=e=>Cs(e,xL,RC),Rk=e=>Cs(e,SL,RC),WY=e=>Cs(e,_L,$Y),Jh=e=>Cs(e,TL,UY),Ve=e=>bL.test(e),dd=e=>vl(e,CL),YY=e=>vl(e,xL),Ak=e=>vl(e,SL),ZY=e=>vl(e,wL),QY=e=>vl(e,_L),Xh=e=>vl(e,TL,!0),JY=e=>vl(e,EL,!0),Cs=(e,t,o)=>{const n=vL.exec(e);return n?n[1]?t(n[1]):o(n[2]):!1},vl=(e,t,o=!1)=>{const n=bL.exec(e);return n?n[1]?t(n[1]):o:!1},SL=e=>e==="position"||e==="percentage",_L=e=>e==="image"||e==="url",wL=e=>e==="length"||e==="size"||e==="bg-size",CL=e=>e==="length",XY=e=>e==="number",xL=e=>e==="family-name",EL=e=>e==="number"||e==="weight",TL=e=>e==="shadow",eZ=()=>{const e=Ko("color"),t=Ko("font"),o=Ko("text"),n=Ko("font-weight"),r=Ko("tracking"),i=Ko("leading"),l=Ko("breakpoint"),c=Ko("container"),d=Ko("spacing"),m=Ko("radius"),h=Ko("shadow"),f=Ko("inset-shadow"),g=Ko("text-shadow"),v=Ko("drop-shadow"),y=Ko("blur"),S=Ko("perspective"),x=Ko("aspect"),_=Ko("ease"),C=Ko("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),Ve,qe],A=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],O=()=>[Ve,qe,d],N=()=>[Gi,"full","auto",...O()],q=()=>[pa,"none","subgrid",Ve,qe],B=()=>["auto",{span:["full",pa,Ve,qe]},pa,Ve,qe],$=()=>[pa,"auto",Ve,qe],U=()=>["auto","min","max","fr",Ve,qe],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...O()],Z=()=>[Gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],te=()=>[Gi,"screen","full","dvw","lvw","svw","min","max","fit",...O()],le=()=>[Gi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...O()],Q=()=>[e,Ve,qe],M=()=>[...E(),Ak,Rk,{position:[Ve,qe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",ZY,HY,{size:[Ve,qe]}],L=()=>[x0,dd,Gs],j=()=>["","none","full",m,Ve,qe],J=()=>["",gt,dd,Gs],me=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[gt,x0,Ak,Rk],Be=()=>["","none",y,Ve,qe],Y=()=>["none",gt,Ve,qe],ne=()=>["none",gt,Ve,qe],ve=()=>[gt,Ve,qe],ie=()=>[Gi,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ti],breakpoint:[ti],color:[yL],container:[ti],"drop-shadow":[ti],ease:["in","out","in-out"],font:[qY],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ti],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ti],shadow:[ti],spacing:["px",gt],text:[ti],"text-shadow":[ti],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gi,qe,Ve,x]}],container:["container"],"container-type":[{"@container":["","normal","size",Ve,qe]}],"container-named":[VY],columns:[{columns:[gt,qe,Ve,c]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[pa,"auto",Ve,qe]}],basis:[{basis:[Gi,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[gt,Gi,"auto","initial","none",qe]}],grow:[{grow:["",gt,Ve,qe]}],shrink:[{shrink:["",gt,Ve,qe]}],order:[{order:[pa,"first","last","none",Ve,qe]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pbs:[{pbs:O()}],pbe:[{pbe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[c,"screen",...Z()]}],"min-w":[{"min-w":[c,"screen","none",...Z()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",o,dd,Gs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,JY,GY]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",x0,qe]}],"font-family":[{font:[YY,KY,t]}],"font-features":[{"font-features":[qe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Ve,qe]}],"line-clamp":[{"line-clamp":[gt,"none",Ve,Pk]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",Ve,qe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,qe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[gt,"from-font","auto",Ve,Gs]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[gt,"auto",Ve,qe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"tab-size":[{tab:[pa,Ve,qe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,qe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,qe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pa,Ve,qe],radial:["",Ve,qe],conic:[pa,Ve,qe]},QY,WY]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-bs":[{"border-bs":Q()}],"border-color-be":[{"border-be":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[gt,Ve,qe]}],"outline-w":[{outline:["",gt,dd,Gs]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",h,Xh,Jh]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",f,Xh,Jh]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[gt,Gs]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",g,Xh,Jh]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[gt,Ve,qe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[gt]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ve,qe]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[gt]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,qe]}],filter:[{filter:["","none",Ve,qe]}],blur:[{blur:Be()}],brightness:[{brightness:[gt,Ve,qe]}],contrast:[{contrast:[gt,Ve,qe]}],"drop-shadow":[{"drop-shadow":["","none",v,Xh,Jh]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",gt,Ve,qe]}],"hue-rotate":[{"hue-rotate":[gt,Ve,qe]}],invert:[{invert:["",gt,Ve,qe]}],saturate:[{saturate:[gt,Ve,qe]}],sepia:[{sepia:["",gt,Ve,qe]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,qe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[gt,Ve,qe]}],"backdrop-contrast":[{"backdrop-contrast":[gt,Ve,qe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",gt,Ve,qe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gt,Ve,qe]}],"backdrop-invert":[{"backdrop-invert":["",gt,Ve,qe]}],"backdrop-opacity":[{"backdrop-opacity":[gt,Ve,qe]}],"backdrop-saturate":[{"backdrop-saturate":[gt,Ve,qe]}],"backdrop-sepia":[{"backdrop-sepia":["",gt,Ve,qe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,qe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[gt,"initial",Ve,qe]}],ease:[{ease:["linear","initial",_,Ve,qe]}],delay:[{delay:[gt,Ve,qe]}],animate:[{animate:["none",C,Ve,qe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ve,qe]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Y()}],"rotate-x":[{"rotate-x":Y()}],"rotate-y":[{"rotate-y":Y()}],"rotate-z":[{"rotate-z":Y()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Ve,qe,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],zoom:[{zoom:[pa,Ve,qe]}],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,qe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Q()}],"scrollbar-track-color":[{"scrollbar-track":Q()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mbs":[{"scroll-mbs":O()}],"scroll-mbe":[{"scroll-mbe":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pbs":[{"scroll-pbs":O()}],"scroll-pbe":[{"scroll-pbe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,qe]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[gt,dd,Gs,Pk]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},PL=OY(eZ);function Re(...e){return PL(TC(e))}function tZ(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function No({error:e,localization:t,localizeErrors:o=!0}){var n;const r="Request failed";if(!o)return e?.message?e.message:(n=e?.error)!=null&&n.message?e.error.message:r;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||r}function bl(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function __(e,t){for(const o in e)if(e[o]===t)return o}function om(e,t){let o=F().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(o=o.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(o=o.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(o=o.regex(e.regex,{message:t?.INVALID_PASSWORD})),o}var oZ={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"},nZ={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"},rZ={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."},aZ={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."},iZ={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},sZ={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},lZ={...iZ,...sZ},cZ={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},uZ={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},dZ={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},mZ={INVALID_SESSION_TOKEN:"Invalid session token"},fZ={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"},hZ={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"},pZ={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"},gZ={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"},vZ={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"},bZ={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"},yZ={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"},SZ={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",...aZ,...oZ,...nZ,...rZ,...lZ,...cZ,...uZ,...dZ,...mZ,...fZ,...hZ,...pZ,...gZ,...vZ,...bZ,...yZ},_Z={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"},kk={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},Dk={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const RL=D.createContext({});function AL(){return D.useContext(RL)}var E0,Ok;function wZ(){if(Ok)return E0;Ok=1;var e=function(){};return E0=e,E0}var CZ=wZ();const xZ=hl(CZ);function EZ({async:e,appendTo:t,defer:o,id:n,nonce:r,src:i}){const l=document.createElement("script");e!==void 0&&(l.async=e),o!==void 0&&(l.defer=o),n&&(l.id=n),r&&l.setAttribute("nonce",r),l.src=i,(t==="head"?document.head:document.body).appendChild(l)}var TZ=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let jd=null,nm=!1;const tg=new Set,og=new Set,PZ=typeof window<"u",Bc="___grecaptcha_cfg",kL=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function RZ(){if(!PZ)return;function e(o){if(nm)o();else{window[Bc]||(window[Bc]={});const n=window[Bc];n.fns||(n.fns=[]),n.fns.push(o)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){nm=!0;for(const o of og)o();og.clear()}window[kL]=t}function AZ({language:e,onLoadCallbackName:t,render:o,useEnterprise:n=!1,useRecaptchaNet:r=!1}){const i=r?"recaptcha.net":"google.com",l=n?"enterprise.js":"api.js",c=new URLSearchParams({render:o});return t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${i}/recaptcha/${l}?${c.toString()}`}function kZ({language:e,render:t,scriptProps:o,useEnterprise:n,useRecaptchaNet:r}){const i={id:"google-recaptcha-v3"},l=AZ({language:e,onLoadCallbackName:kL,render:t,useEnterprise:n,useRecaptchaNet:r});if(jd){if(jd!==l)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}jd=l,EZ(Object.assign(Object.assign(Object.assign({},i),o),{src:l}))}function DZ(e){if(!window[Bc])return;const t=window[Bc];t.clients&&delete t.clients[e]}function OZ(e,t){var{onLoadCallback:o,onLoadCallbackName:n}=t,r=TZ(t,["onLoadCallback","onLoadCallbackName"]);if(tg.size===0&&RZ(),kZ(r),tg.add(e),o&&(nm?o():og.add(o)),n){let i=function(){if(!n)return;const l=window[n];typeof l=="function"&&l()};nm?i():og.add(i)}}function IZ(e){var t,o,n;tg.delete(e),tg.size===0&&(window.grecaptcha=void 0,window[Bc]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(o=document.querySelector(`script[src="${jd}"]`))===null||o===void 0||o.remove(),(n=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||n===void 0||n.remove(),jd=null,nm=!1)}let Ik=!1;function MZ({container:e,children:t,language:o,reCaptchaKey:n,scriptProps:r,useEnterprise:i,useRecaptchaNet:l}){var c,d,m,h,f,g,v;const y=D.useId(),[S,x]=D.useState(null),[_,C]=D.useState(null),P=D.useRef(!1);D.useEffect(()=>{function k(){var O;const N=i?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!N)throw new Error("reCAPTCHA not found");if(!N.ready)throw new Error("reCAPTCHA ready callback not found");N.ready(()=>{x(N)})}return OZ(y,{language:o,onLoadCallback:k,onLoadCallbackName:r?.onLoadCallbackName,render:e?.element?"explicit":n,scriptProps:{appendTo:r?.appendTo,async:r?.async,defer:r?.defer,id:r?.id,nonce:r?.nonce},useEnterprise:i,useRecaptchaNet:l}),()=>{IZ(y),x(null)}},[e?.element,y,o,n,r?.appendTo,r?.async,r?.defer,r?.id,r?.nonce,r?.onLoadCallbackName,i,l]),D.useEffect(()=>{var k,O,N;if(!e?.element||!S?.render)return;const q={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((k=e.parameters)===null||k===void 0?void 0:k.badge)||"inline",callback:e.parameters.callback,sitekey:n,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const $=S.render(B,q);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(Ik||(xZ(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),Ik=!0),(N=B.querySelector(".grecaptcha-badge"))===null||N===void 0||N.style.setProperty("display","none")),C($),P.current=!0,()=>{C(null),P.current=!1,DZ($),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(m=e?.parameters)===null||m===void 0?void 0:m.callback,(h=e?.parameters)===null||h===void 0?void 0:h.errorCallback,(f=e?.parameters)===null||f===void 0?void 0:f.expiredCallback,(g=e?.parameters)===null||g===void 0?void 0:g.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,S,n]);const E=!!e?.element,T=E?_:n,A=D.useMemo(()=>T!==null&&S?.execute?k=>{if(T===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!P.current?(console.warn("Client ID not mounted"),null):S.execute(T,{action:k})}:void 0,[T,S,E]);return R.jsx(RL.Provider,{value:{container:e?.element,executeRecaptcha:A,reCaptchaInstance:S},children:t})}var LZ=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const o={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,o),this.notify(e)}setRefetching(e,t){const o=this.cache.get(e);o&&(o.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const o of t)this.notify(o)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const o=this.listeners.get(e);o&&(o.delete(t),o.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const o=Array.from(t);for(const n of o)n()}}},Ir=new LZ;function NZ(){return()=>{}}function gi(){return D.useSyncExternalStore(NZ,()=>!0,()=>!1)}function DL(){const[e,t]=D.useState();return D.useEffect(()=>{const o=()=>{const r=document.documentElement.getAttribute("lang");t(r??void 0)};o();const n=new MutationObserver(r=>{for(const i of r)i.attributeName==="lang"&&o()});return n.observe(document.documentElement,{attributes:!0}),()=>{n.disconnect()}},[]),{lang:e}}function AC(){const[e,t]=D.useState("light");return D.useEffect(()=>{const o=()=>{var r;const i=document.documentElement.classList.contains("dark")||((r=document.documentElement.getAttribute("style"))==null?void 0:r.includes("color-scheme: dark"));t(i?"dark":"light")};o();const n=new MutationObserver(r=>{for(const i of r)(i.attributeName==="style"||i.attributeName==="class")&&o()});return n.observe(document.documentElement,{attributes:!0}),()=>{n.disconnect()}},[]),{theme:e}}function FZ({children:e}){const t=gi(),{captcha:o}=D.useContext(bt);return o?.provider!=="google-recaptcha-v3"?e:R.jsxs(MZ,{reCaptchaKey:o.siteKey,useEnterprise:o.enterprise,useRecaptchaNet:o.recaptchaNet,children:[t&&R.jsx("style",{children:`
56
56
  .grecaptcha-badge {
57
57
  visibility: hidden;
58
58
  border-radius: var(--radius) !important;
@@ -160,7 +160,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
160
160
  display: none;
161
161
  }
162
162
  `})]})]})}function Oa({redirectTo:e}){const{redirectTo:t}=D.useContext(bt),[o,n]=D.useState(!1),{navigate:r,hooks:{useSession:i},onSessionChange:l}=D.useContext(bt),{refetch:c}=i();return{onSuccess:D.useCallback(async()=>{n(!0),await c?.(),l&&await l(),n(!1);const m=e||bl("redirectTo")||t;r(m)},[c,l,r,e,t]),isPending:o}}function J3({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:o}=D.useContext(bt),n=t?.(),r=D.useRef(!1),{onSuccess:i}=Oa({redirectTo:e});return D.useEffect(()=>{if(!r.current){if(!o){r.current=!0,i();return}n||(r.current=!0,i())}},[n,o,i]),R.jsx(kn,{className:"animate-spin"})}function gx({className:e,containerClassName:t,...o}){return R.jsx(F3,{"data-slot":"input-otp",containerClassName:Re("flex items-center gap-2 has-disabled:opacity-50",t),className:Re("disabled:cursor-not-allowed",e),...o})}function vc({className:e,...t}){return R.jsx("div",{"data-slot":"input-otp-group",className:Re("flex items-center",e),...t})}function nn({index:e,className:t,...o}){const n=D.useContext(N3),{char:r,hasFakeCaret:i,isActive:l}=n?.slots[e]??{};return R.jsxs("div",{"data-slot":"input-otp-slot","data-active":l,className:Re("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...o,children:[r,i&&R.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:R.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function mS({...e}){return R.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:R.jsx(tQ,{})})}function vx({otpSeparators:e=0}){return e===0?R.jsxs(vc,{children:[R.jsx(nn,{index:0}),R.jsx(nn,{index:1}),R.jsx(nn,{index:2}),R.jsx(nn,{index:3}),R.jsx(nn,{index:4}),R.jsx(nn,{index:5})]}):e===1?R.jsxs(R.Fragment,{children:[R.jsxs(vc,{children:[R.jsx(nn,{index:0}),R.jsx(nn,{index:1}),R.jsx(nn,{index:2})]}),R.jsx(mS,{}),R.jsxs(vc,{children:[R.jsx(nn,{index:3}),R.jsx(nn,{index:4}),R.jsx(nn,{index:5})]})]}):R.jsxs(R.Fragment,{children:[R.jsxs(vc,{children:[R.jsx(nn,{index:0}),R.jsx(nn,{index:1})]}),R.jsx(mS,{}),R.jsxs(vc,{children:[R.jsx(nn,{index:2}),R.jsx(nn,{index:3})]}),R.jsx(mS,{}),R.jsxs(vc,{children:[R.jsx(nn,{index:4}),R.jsx(nn,{index:5})]})]})}function tO(e){const[t,o]=D.useState();return t?R.jsx(Mae,{...e,email:t}):R.jsx(Iae,{...e,setEmail:o})}function Iae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r,setEmail:i}){const l=gi(),{captchaRef:c,getCaptchaHeaders:d}=Lm({localization:n}),{authClient:m,localization:h,toast:f,localizeErrors:g}=D.useContext(bt);n={...h,...n};const v=ye({email:F().email({message:`${n.EMAIL} ${n.IS_INVALID}`})}),y=Ra({resolver:Aa(v),defaultValues:{email:""}});o=o||y.formState.isSubmitting,D.useEffect(()=>{r?.(y.formState.isSubmitting)},[y.formState.isSubmitting,r]);async function S({email:x}){const _={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await m.emailOtp.sendVerificationOtp({email:x,type:"sign-in",fetchOptions:_}),f({variant:"success",message:n.EMAIL_OTP_VERIFICATION_SENT}),i(x)}catch(C){f({variant:"error",message:No({error:C,localization:n,localizeErrors:g})})}}return R.jsx(Da,{...y,children:R.jsxs("form",{method:"POST",onSubmit:y.handleSubmit(S),noValidate:l,className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:y.control,name:"email",render:({field:x})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:n.EMAIL}),R.jsx(Ho,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...x})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Nm,{ref:c,localization:n,action:"/email-otp/send-verification-otp"}),R.jsx(io,{type:"submit",disabled:o,className:Re("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.EMAIL_OTP_SEND_ACTION})]})})}function Mae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l,email:c}){const{authClient:d,localization:m,toast:h,localizeErrors:f}=D.useContext(bt);n={...m,...n};const{onSuccess:g,isPending:v}=Oa({redirectTo:i}),y=ye({code:F().min(1,{message:`${n.EMAIL_OTP} ${n.IS_REQUIRED}`}).min(6,{message:`${n.EMAIL_OTP} ${n.IS_INVALID}`})}),S=Ra({resolver:Aa(y),defaultValues:{code:""}});o=o||S.formState.isSubmitting||v,D.useEffect(()=>{l?.(S.formState.isSubmitting||v)},[S.formState.isSubmitting,v,l]);async function x({code:_}){try{await d.signIn.emailOtp({email:c,otp:_,fetchOptions:{throw:!0}}),await g()}catch(C){h({variant:"error",message:No({error:C,localization:n,localizeErrors:f})}),S.reset()}}return R.jsx(Da,{...S,children:R.jsxs("form",{method:"POST",onSubmit:S.handleSubmit(x),className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:S.control,name:"code",render:({field:_})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:n.EMAIL_OTP}),R.jsx(Ho,{children:R.jsx(gx,{..._,maxLength:6,onChange:C=>{_.onChange(C),C.length===6&&S.handleSubmit(x)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(vx,{otpSeparators:r})})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx("div",{className:"grid gap-4",children:R.jsxs(io,{type:"submit",disabled:o,className:Re(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.EMAIL_OTP_VERIFY_ACTION]})})]})})}function Lae({onCancel:e,localization:t,className:o,classNames:n,otpSeparators:r,callbackURL:i,isSubmitting:l,redirectTo:c,setIsSubmitting:d}){const[m,h]=D.useState(!0),[f,g]=D.useState(30),{authClient:v,localization:y,toast:S,localizeErrors:x,navigate:_,basePath:C,viewPaths:P}=D.useContext(bt);t={...y,...t};const E=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:T,isPending:A}=Oa({redirectTo:c}),k=ye({code:F().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),O=Ra({resolver:Aa(k),defaultValues:{code:""}}),N=l||O.formState.isSubmitting||A;D.useEffect(()=>{d?.(O.formState.isSubmitting||A)},[O.formState.isSubmitting,A,d]),D.useEffect(()=>{if(f>0){const $=setTimeout(()=>g(f-1),1e3);return()=>clearTimeout($)}else h(!1)},[f]);async function q({code:$}){try{const U=await v.emailOtp.verifyEmail({email:E,otp:$,fetchOptions:{throw:!0}});"token"in U&&U.token?await T():(_(`${C}/${P.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(U){S({variant:"error",message:No({error:U,localization:t,localizeErrors:x})}),O.reset()}}async function B(){if(!m){h(!0),g(30);try{await v.emailOtp.sendVerificationOtp({email:E,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch($){S({variant:"error",message:No({error:$,localization:t,localizeErrors:x})}),h(!1),g(0)}}}return E?R.jsx(Da,{...O,children:R.jsxs("form",{method:"POST",onSubmit:O.handleSubmit(q),className:Re("grid w-full gap-6",o,n?.base),children:[R.jsx(Oo,{control:O.control,name:"code",render:({field:$})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:n?.label,children:t.EMAIL_OTP}),R.jsx(Ho,{children:R.jsx(gx,{...$,maxLength:6,onChange:U=>{$.onChange(U),U.length===6&&O.handleSubmit(q)()},containerClassName:n?.otpInputContainer,className:n?.otpInput,disabled:N,children:R.jsx(vx,{otpSeparators:r})})}),R.jsx(Zo,{className:n?.error})]})}),R.jsxs("div",{className:"grid gap-4",children:[R.jsxs(io,{type:"submit",disabled:N,className:Re(n?.button,n?.primaryButton),children:[N&&R.jsx(kn,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),R.jsx(io,{type:"button",variant:"outline",onClick:B,disabled:m||N,className:Re("w-full",n?.button),children:m?`${t.RESEND_VERIFICATION_EMAIL} (${f}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&R.jsx(io,{type:"button",variant:"ghost",onClick:e,disabled:N,className:"w-full",children:t.CANCEL})]})]})}):R.jsx("div",{className:Re("grid w-full gap-6",o),children:R.jsxs("div",{className:"text-center",children:[R.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),R.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function Nae({className:e,classNames:t,isSubmitting:o,localization:n,setIsSubmitting:r}){const i=gi(),{captchaRef:l,getCaptchaHeaders:c,resetCaptcha:d}=Lm({localization:n}),{authClient:m,basePath:h,baseURL:f,localization:g,navigate:v,toast:y,viewPaths:S,localizeErrors:x}=D.useContext(bt);n={...g,...n};const _=ye({email:F().email({message:`${n.EMAIL} ${n.IS_INVALID}`}).min(1,{message:`${n.EMAIL} ${n.IS_REQUIRED}`})}),C=Ra({resolver:Aa(_),defaultValues:{email:""}});o=o||C.formState.isSubmitting,D.useEffect(()=>{r?.(C.formState.isSubmitting)},[C.formState.isSubmitting,r]);async function P({email:E}){try{const T={throw:!0,headers:await c("/forget-password")};await m.requestPasswordReset({email:E,redirectTo:`${f}${h}/${S.RESET_PASSWORD}`,fetchOptions:T}),y({variant:"success",message:n.FORGOT_PASSWORD_EMAIL}),v(`${h}/${S.SIGN_IN}${window.location.search}`)}catch(T){y({variant:"error",message:No({error:T,localization:n,localizeErrors:x})}),d()}}return R.jsx(Da,{...C,children:R.jsxs("form",{method:"POST",onSubmit:C.handleSubmit(P),noValidate:i,className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:C.control,name:"email",render:({field:E})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:n.EMAIL}),R.jsx(Ho,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:n.EMAIL_PLACEHOLDER,disabled:o,...E})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Nm,{ref:l,localization:n,action:"/forget-password"}),R.jsx(io,{type:"submit",disabled:o,className:Re("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.FORGOT_PASSWORD_ACTION})]})})}function oO({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l}){const c=gi(),{captchaRef:d,getCaptchaHeaders:m,resetCaptcha:h}=Lm({localization:r}),{authClient:f,basePath:g,baseURL:v,persistClient:y,localization:S,redirectTo:x,viewPaths:_,toast:C,localizeErrors:P}=D.useContext(bt);r={...S,...r};const E=D.useCallback(()=>i||bl("redirectTo")||x,[i,x]),T=D.useCallback(()=>`${v}${o||(y?`${g}/${_.CALLBACK}?redirectTo=${encodeURIComponent(E())}`:E())}`,[o,y,g,_,v,E]),A=ye({email:F().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),k=Ra({resolver:Aa(A),defaultValues:{email:""}});n=n||k.formState.isSubmitting,D.useEffect(()=>{l?.(k.formState.isSubmitting)},[k.formState.isSubmitting,l]);async function O({email:N}){try{const q={throw:!0,headers:await m("/sign-in/magic-link")};await f.signIn.magicLink({email:N,callbackURL:T(),fetchOptions:q}),C({variant:"success",message:r.MAGIC_LINK_EMAIL}),k.reset()}catch(q){C({variant:"error",message:No({error:q,localization:r,localizeErrors:P})}),h()}}return R.jsx(Da,{...k,children:R.jsxs("form",{method:"POST",onSubmit:k.handleSubmit(O),noValidate:c,className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:k.control,name:"email",render:({field:N})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:r.EMAIL}),R.jsx(Ho,{children:R.jsx(na,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...N})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Nm,{ref:d,localization:r,action:"/sign-in/magic-link"}),R.jsx(io,{type:"submit",disabled:n,className:Re("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.MAGIC_LINK_ACTION})]})})}function Fae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i}){const{authClient:l,localization:c,toast:d,localizeErrors:m}=D.useContext(bt);n={...c,...n};const{onSuccess:h,isPending:f}=Oa({redirectTo:r}),g=ye({code:F().min(1,{message:n.BACKUP_CODE_REQUIRED})}),v=Ra({resolver:Aa(g),defaultValues:{code:""}});o=o||v.formState.isSubmitting||f,D.useEffect(()=>{i?.(v.formState.isSubmitting||f)},[v.formState.isSubmitting,f,i]);async function y({code:S}){try{await l.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await h()}catch(x){d({variant:"error",message:No({error:x,localization:n,localizeErrors:m})}),v.reset()}}return R.jsx(Da,{...v,children:R.jsxs("form",{method:"POST",onSubmit:v.handleSubmit(y),className:Re("grid gap-6",e,t?.base),children:[R.jsx(Oo,{control:v.control,name:"code",render:({field:S})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:n.BACKUP_CODE}),R.jsx(Ho,{children:R.jsx(na,{placeholder:n.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:o,...S})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(io,{type:"submit",disabled:o,className:Re(t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.RECOVER_ACCOUNT_ACTION})]})})}function Bae({className:e,classNames:t,localization:o,passwordValidation:n}){const r=D.useRef(!1),{authClient:i,basePath:l,credentials:c,localization:d,viewPaths:m,navigate:h,toast:f,localizeErrors:g}=D.useContext(bt),v=c?.confirmPassword,y=c?.passwordValidation;o={...d,...o},n={...y,...n};const S=ye({newPassword:om(n,{PASSWORD_REQUIRED:o.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}),confirmPassword:v?om(n,{PASSWORD_REQUIRED:o.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:o.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:o.PASSWORD_TOO_LONG,INVALID_PASSWORD:o.INVALID_PASSWORD}):F().optional()}).refine(P=>!v||P.newPassword===P.confirmPassword,{message:o.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),x=Ra({resolver:Aa(S),defaultValues:{newPassword:"",confirmPassword:""}}),_=x.formState.isSubmitting;D.useEffect(()=>{if(r.current)return;r.current=!0;const E=new URLSearchParams(window.location.search).get("token");(!E||E==="INVALID_TOKEN")&&(h(`${l}/${m.SIGN_IN}${window.location.search}`),f({variant:"error",message:o.INVALID_TOKEN}))},[l,h,f,m,o]);async function C({newPassword:P}){try{const T=new URLSearchParams(window.location.search).get("token");await i.resetPassword({newPassword:P,token:T,fetchOptions:{throw:!0}}),f({variant:"success",message:o.RESET_PASSWORD_SUCCESS}),h(`${l}/${m.SIGN_IN}${window.location.search}`)}catch(E){f({variant:"error",message:No({error:E,localization:o,localizeErrors:g})}),x.reset()}}return R.jsx(Da,{...x,children:R.jsxs("form",{method:"POST",onSubmit:x.handleSubmit(C),className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:x.control,name:"newPassword",render:({field:P})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:o.NEW_PASSWORD}),R.jsx(Ho,{children:R.jsx(cm,{autoComplete:"new-password",className:t?.input,placeholder:o.NEW_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Zo,{className:t?.error})]})}),v&&R.jsx(Oo,{control:x.control,name:"confirmPassword",render:({field:P})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:o.CONFIRM_PASSWORD}),R.jsx(Ho,{children:R.jsx(cm,{autoComplete:"new-password",className:t?.input,placeholder:o.CONFIRM_PASSWORD_PLACEHOLDER,disabled:_,...P})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(io,{type:"submit",disabled:_,className:Re("w-full",t?.button,t?.primaryButton),children:_?R.jsx(kn,{className:"animate-spin"}):o.RESET_PASSWORD_ACTION})]})})}function zae({className:e,classNames:t,isSubmitting:o,localization:n,redirectTo:r,setIsSubmitting:i,passwordValidation:l,callbackURL:c}){const d=gi(),{captchaRef:m,getCaptchaHeaders:h,resetCaptcha:f}=Lm({localization:n}),{authClient:g,basePath:v,credentials:y,localization:S,viewPaths:x,navigate:_,toast:C,Link:P,localizeErrors:E,emailVerification:T}=D.useContext(bt),A=y?.rememberMe,k=y?.username,O=y?.passwordValidation;n={...S,...n},l={...O,...l};const{onSuccess:N,isPending:q}=Oa({redirectTo:r}),B=ye({email:k?F().min(1,{message:`${n.USERNAME} ${n.IS_REQUIRED}`}):F().email({message:`${n.EMAIL} ${n.IS_INVALID}`}),password:om(l,n),rememberMe:It().optional()}),$=Ra({resolver:Aa(B),defaultValues:{email:"",password:"",rememberMe:!A}});o=o||$.formState.isSubmitting||q,D.useEffect(()=>{i?.($.formState.isSubmitting||q)},[$.formState.isSubmitting,q,i]);async function U({email:W,password:ae,rememberMe:H}){var Z;try{let te={};if(k&&!tZ(W)){const le={throw:!0,headers:await h("/sign-in/username")};te=await g.signIn.username({username:W,password:ae,rememberMe:H,fetchOptions:le,callbackURL:c})}else{const le={throw:!0,headers:await h("/sign-in/email")};te=await g.signIn.email({email:W,password:ae,rememberMe:H,fetchOptions:le,callbackURL:c})}te.twoFactorRedirect?_(`${v}/${x.TWO_FACTOR}${window.location.search}`):await N()}catch(te){$.resetField("password"),f(),C({variant:"error",message:No({error:te,localization:n,localizeErrors:E})}),T?.otp&&((Z=te?.error)==null?void 0:Z.code)==="EMAIL_NOT_VERIFIED"&&_(`${v}/${x.EMAIL_VERIFICATION}?email=${encodeURIComponent(W)}`)}}return R.jsx(Da,{...$,children:R.jsxs("form",{method:"POST",onSubmit:$.handleSubmit(U),noValidate:d,className:Re("grid w-full gap-6",e,t?.base),children:[R.jsx(Oo,{control:$.control,name:"email",render:({field:W})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:k?n.USERNAME:n.EMAIL}),R.jsx(Ho,{children:R.jsx(na,{autoComplete:k?"username":"email",className:t?.input,type:k?"text":"email",placeholder:k?n.SIGN_IN_USERNAME_PLACEHOLDER:n.EMAIL_PLACEHOLDER,disabled:o,...W})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Oo,{control:$.control,name:"password",render:({field:W})=>R.jsxs(Io,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Mo,{className:t?.label,children:n.PASSWORD}),y?.forgotPassword&&R.jsx(P,{className:Re("text-sm hover:underline",t?.forgotPasswordLink),href:`${v}/${x.FORGOT_PASSWORD}${d?window.location.search:""}`,children:n.FORGOT_PASSWORD_LINK})]}),R.jsx(Ho,{children:R.jsx(cm,{autoComplete:"current-password",className:t?.input,placeholder:n.PASSWORD_PLACEHOLDER,disabled:o,...W})}),R.jsx(Zo,{className:t?.error})]})}),A&&R.jsx(Oo,{control:$.control,name:"rememberMe",render:({field:W})=>R.jsxs(Io,{className:"flex",children:[R.jsx(Ho,{children:R.jsx(px,{checked:W.value,onCheckedChange:W.onChange,disabled:o})}),R.jsx(Mo,{children:n.REMEMBER_ME})]})}),R.jsx(Nm,{ref:m,localization:n,action:"/sign-in/email"}),R.jsx(io,{type:"submit",disabled:o,className:Re("w-full",t?.button,t?.primaryButton),children:o?R.jsx(kn,{className:"animate-spin"}):n.SIGN_IN_ACTION})]})})}function jae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,redirectTo:i,setIsSubmitting:l,passwordValidation:c}){var d,m,h,f,g,v;const y=gi(),{captchaRef:S,getCaptchaHeaders:x,resetCaptcha:_}=Lm({localization:r}),{additionalFields:C,authClient:P,basePath:E,baseURL:T,credentials:A,localization:k,nameRequired:O,persistClient:N,redirectTo:q,signUp:B,viewPaths:$,navigate:U,toast:W,avatar:ae,localizeErrors:H,emailVerification:Z}=D.useContext(bt),te=A?.confirmPassword,le=A?.username,Q=A?.usernameRequired??!0,M=A?.passwordValidation,G=B?.fields;r={...k,...r},c={...M,...c};const V=D.useRef(null),[L,j]=D.useState(null),[J,me]=D.useState(!1),he=D.useCallback(()=>i||bl("redirectTo")||q,[i,q]),xe=D.useCallback(()=>`${T}${o||(N?`${E}/${$.CALLBACK}?redirectTo=${encodeURIComponent(he())}`:he())}`,[o,N,E,$,T,he]),{onSuccess:Be,isPending:Y}=Oa({redirectTo:i}),ne={email:F().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:om(c,r),name:G?.includes("name")&&O?F().min(1,{message:`${r.NAME} ${r.IS_REQUIRED}`}):F().optional(),image:F().optional(),username:le&&Q?F().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):F().optional(),confirmPassword:te?om(c,{PASSWORD_REQUIRED:r.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:r.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:r.PASSWORD_TOO_LONG,INVALID_PASSWORD:r.INVALID_PASSWORD}):F().optional()},ve={};if(G)for(const Oe of G){if(Oe==="name"||Oe==="image")continue;const De=C?.[Oe];if(!De)continue;let Ue;De.type==="number"?Ue=De.required?Yw(K=>K?Number(K):void 0,ft({message:((d=De.errorMessage)==null?void 0:d.invalid)??`${De.label} ${r.IS_INVALID}`})):jM({message:((m=De.errorMessage)==null?void 0:m.invalid)??`${De.label} ${r.IS_INVALID}`}).optional():De.type==="boolean"?Ue=De.required?y1({message:((h=De.errorMessage)==null?void 0:h.invalid)??`${De.label} ${r.IS_INVALID}`}).refine(K=>K===!0,{message:((f=De.errorMessage)==null?void 0:f.required)??`${De.label} ${r.IS_REQUIRED}`}):y1({message:((g=De.errorMessage)==null?void 0:g.invalid)??`${De.label} ${r.IS_INVALID}`}).optional():Ue=De.required?F().min(1,((v=De.errorMessage)==null?void 0:v.required)??`${De.label} ${r.IS_REQUIRED}`):F().optional(),ve[Oe]=Ue}const ie=ye(ne).extend(ve).refine(Oe=>te?Oe.password===Oe.confirmPassword:!0,{message:r.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),we={email:"",password:"",...te&&{confirmPassword:""},...G?.includes("name")?{name:""}:{},...le?{username:""}:{},...G?.includes("image")&&ae?{image:""}:{}};if(G)for(const Oe of G){if(Oe==="name"||Oe==="image")continue;const De=C?.[Oe];De&&(we[Oe]=De.type==="boolean"?!1:"")}const Pe=Ra({resolver:Aa(ie),defaultValues:we});n=n||Pe.formState.isSubmitting||Y,D.useEffect(()=>{l?.(Pe.formState.isSubmitting||Y)},[Pe.formState.isSubmitting,Y,l]);const tt=async Oe=>{if(ae){me(!0);try{const De=await Kre(Oe,crypto.randomUUID(),ae.size,ae.extension);let Ue;ae.upload?Ue=await ae.upload(De):Ue=await Yre(De),Ue?(j(Ue),Pe.setValue("image",Ue)):(j(null),Pe.setValue("image",""))}catch(De){console.error(De),W({variant:"error",message:No({error:De,localization:r,localizeErrors:H})})}me(!1)}},nt=()=>{j(null),Pe.setValue("image","")},$e=()=>{var Oe;return(Oe=V.current)==null?void 0:Oe.click()};async function Qe({email:Oe,password:De,name:Ue,username:K,confirmPassword:oe,image:se,...Te}){var Ae,ke;try{for(const[yt,Pt]of Object.entries(Te)){const St=C?.[yt];if(St?.validate&&typeof Pt=="string"&&!await St.validate(Pt)){Pe.setError(yt,{message:((Ae=St.errorMessage)==null?void 0:Ae.validate)??((ke=St.errorMessage)==null?void 0:ke.invalid)??`${St.label} ${r.IS_INVALID}`});return}}const Me={throw:!0,headers:await x("/sign-up/email")},Xe={};K!==void 0&&(!Q&&(K===null||K===""||typeof K=="string"&&K.trim()==="")||(Xe.username=K)),se!==void 0&&(Xe.image=se);const et=await P.signUp.email({email:Oe,password:De,name:Ue||"",...Xe,...Te,callbackURL:xe(),fetchOptions:Me});"token"in et&&et.token?await Be():Z?.otp?U(`${E}/${$.EMAIL_VERIFICATION}?email=${encodeURIComponent(Oe)}`):(U(`${E}/${$.SIGN_IN}${window.location.search}`),W({variant:"success",message:r.SIGN_UP_EMAIL}))}catch(Me){W({variant:"error",message:No({error:Me,localization:r,localizeErrors:H})}),Pe.resetField("password"),Pe.resetField("confirmPassword"),_()}}return R.jsx(Da,{...Pe,children:R.jsxs("form",{method:"POST",onSubmit:Pe.handleSubmit(Qe),noValidate:y,className:Re("grid w-full gap-6",e,t?.base),children:[G?.includes("image")&&ae&&R.jsxs(R.Fragment,{children:[R.jsx("input",{ref:V,accept:"image/*",disabled:J,hidden:!0,type:"file",onChange:Oe=>{var De;const Ue=(De=Oe.target.files)==null?void 0:De.item(0);Ue&&tt(Ue),Oe.target.value=""}}),R.jsx(Oo,{control:Pe.control,name:"image",render:()=>R.jsxs(Io,{children:[R.jsx(Mo,{children:r.AVATAR}),R.jsxs("div",{className:"flex items-center gap-4",children:[R.jsxs(Zre,{children:[R.jsx(Qre,{asChild:!0,children:R.jsx(io,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:R.jsx(tae,{isPending:J,className:"size-16",user:L?{name:Pe.watch("name"),email:Pe.watch("email"),image:L}:null,localization:r})})}),R.jsxs(Jre,{align:"start",onCloseAutoFocus:Oe=>Oe.preventDefault(),children:[R.jsxs(eO,{onClick:$e,disabled:J,children:[R.jsx(QZ,{}),r.UPLOAD_AVATAR]}),L&&R.jsxs(eO,{onClick:nt,disabled:J,variant:"destructive",children:[R.jsx(nQ,{}),r.DELETE_AVATAR]})]})]}),R.jsxs(io,{type:"button",variant:"outline",onClick:$e,disabled:J,children:[J&&R.jsx(kn,{className:"animate-spin"}),r.UPLOAD]})]}),R.jsx(Zo,{})]})})]}),G?.includes("name")&&R.jsx(Oo,{control:Pe.control,name:"name",render:({field:Oe})=>R.jsxs(Io,{children:[R.jsxs(Mo,{className:t?.label,children:[r.NAME,!O&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Ho,{children:R.jsx(na,{autoComplete:"name",className:t?.input,placeholder:r.NAME_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),R.jsx(Zo,{className:t?.error})]})}),le&&R.jsx(Oo,{control:Pe.control,name:"username",render:({field:Oe})=>R.jsxs(Io,{children:[R.jsxs(Mo,{className:t?.label,children:[r.USERNAME,!Q&&R.jsx("span",{className:"ml-1 text-muted-foreground",children:r.OPTIONAL_BRACKETS})]}),R.jsx(Ho,{children:R.jsx(na,{autoComplete:"username",className:t?.input,placeholder:r.USERNAME_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Oo,{control:Pe.control,name:"email",render:({field:Oe})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:r.EMAIL}),R.jsx(Ho,{children:R.jsx(na,{autoComplete:"email",className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...Oe,value:Oe.value})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Oo,{control:Pe.control,name:"password",render:({field:Oe})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:r.PASSWORD}),R.jsx(Ho,{children:R.jsx(cm,{autoComplete:"new-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...Oe,value:Oe.value})}),R.jsx(Zo,{className:t?.error})]})}),te&&R.jsx(Oo,{control:Pe.control,name:"confirmPassword",render:({field:Oe})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:r.CONFIRM_PASSWORD}),R.jsx(Ho,{children:R.jsx(cm,{autoComplete:"new-password",className:t?.input,placeholder:r.CONFIRM_PASSWORD_PLACEHOLDER,disabled:n,enableToggle:!0,...Oe,value:Oe.value})}),R.jsx(Zo,{className:t?.error})]})}),G?.filter(Oe=>Oe!=="name"&&Oe!=="image").map(Oe=>{const De=C?.[Oe];return De?De.type==="boolean"?R.jsx(Oo,{control:Pe.control,name:Oe,render:({field:Ue})=>R.jsxs(Io,{className:"flex",children:[R.jsx(Ho,{children:R.jsx(px,{checked:Ue.value,onCheckedChange:Ue.onChange,disabled:n})}),R.jsx(Mo,{className:t?.label,children:De.label}),R.jsx(Zo,{className:t?.error})]})},Oe):R.jsx(Oo,{control:Pe.control,name:Oe,render:({field:Ue})=>R.jsxs(Io,{children:[R.jsx(Mo,{className:t?.label,children:De.label}),R.jsx(Ho,{children:De.type==="number"?R.jsx(na,{className:t?.input,type:"number",placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value}):De.multiline?R.jsx(nae,{className:t?.input,placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value}):R.jsx(na,{className:t?.input,type:"text",placeholder:De.placeholder||(typeof De.label=="string"?De.label:""),disabled:n,...Ue,value:Ue.value})}),R.jsx(Zo,{className:t?.error})]})},Oe):(console.error(`Additional field ${Oe} not found`),null)}),R.jsx(Nm,{ref:S,localization:r,action:"/sign-up/email"}),R.jsx(io,{type:"submit",disabled:n,className:Re("w-full",t?.button,t?.primaryButton),children:n?R.jsx(kn,{className:"animate-spin"}):r.SIGN_UP_ACTION})]})})}function Uae({className:e,classNames:t,isSubmitting:o,localization:n,otpSeparators:r=0,redirectTo:i,setIsSubmitting:l}){var c;const d=gi(),m=d?bl("totpURI"):null,h=D.useRef(!1),{authClient:f,basePath:g,hooks:{useSession:v},localization:y,twoFactor:S,viewPaths:x,toast:_,Link:C,localizeErrors:P}=D.useContext(bt);n={...y,...n};const{onSuccess:E,isPending:T}=Oa({redirectTo:i}),{data:A}=v(),k=(c=A?.user)==null?void 0:c.twoFactorEnabled,[O,N]=D.useState(S?.length===1?S[0]:null),[q,B]=D.useState(!1),[$,U]=D.useState(0),W=ye({code:F().min(1,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_REQUIRED}`}).min(6,{message:`${n.ONE_TIME_PASSWORD} ${n.IS_INVALID}`}),trustDevice:It().optional()}),ae=Ra({resolver:Aa(W),defaultValues:{code:""}});o=o||ae.formState.isSubmitting||T,D.useEffect(()=>{l?.(ae.formState.isSubmitting||T)},[ae.formState.isSubmitting,T,l]),D.useEffect(()=>{O==="otp"&&$<=0&&!h.current&&(h.current=!0,H())},[O]),D.useEffect(()=>{if($<=0)return;const te=setTimeout(()=>{U(le=>le-1)},1e3);return()=>clearTimeout(te)},[$]);const H=async()=>{if(!(q||$>0)){try{B(!0),await f.twoFactor.sendOtp({fetchOptions:{throw:!0}}),U(60)}catch(te){_({variant:"error",message:No({error:te,localization:n,localizeErrors:P})}),te.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}h.current=!1,B(!1)}};async function Z({code:te,trustDevice:le}){try{await(O==="totp"?f.twoFactor.verifyTotp:f.twoFactor.verifyOtp)({code:te,trustDevice:le,fetchOptions:{throw:!0}}),await E(),A&&!k&&_({variant:"success",message:n?.TWO_FACTOR_ENABLED})}catch(Q){_({variant:"error",message:No({error:Q,localization:n,localizeErrors:P})}),ae.reset()}}return R.jsx(Da,{...ae,children:R.jsxs("form",{method:"POST",onSubmit:ae.handleSubmit(Z),className:Re("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&m&&O==="totp"&&R.jsxs("div",{className:"space-y-3",children:[R.jsx(H3,{className:t?.label,children:n.TWO_FACTOR_TOTP_LABEL}),R.jsx(jre,{className:Re("border shadow-xs",t?.qrCode),value:m})]}),O!==null&&R.jsxs(R.Fragment,{children:[R.jsx(Oo,{control:ae.control,name:"code",render:({field:te})=>R.jsxs(Io,{children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx(Mo,{className:t?.label,children:n.ONE_TIME_PASSWORD}),R.jsx(C,{className:Re("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${x.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:n.FORGOT_AUTHENTICATOR})]}),R.jsx(Ho,{children:R.jsx(gx,{...te,maxLength:6,onChange:le=>{te.onChange(le),le.length===6&&ae.handleSubmit(Z)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:o,children:R.jsx(vx,{otpSeparators:r})})}),R.jsx(Zo,{className:t?.error})]})}),R.jsx(Oo,{control:ae.control,name:"trustDevice",render:({field:te})=>R.jsxs(Io,{className:"flex",children:[R.jsx(Ho,{children:R.jsx(px,{checked:te.value,onCheckedChange:te.onChange,disabled:o,className:t?.checkbox})}),R.jsx(Mo,{className:t?.label,children:n.TRUST_DEVICE})]})})]}),R.jsxs("div",{className:"grid gap-4",children:[O!==null&&R.jsxs(io,{type:"submit",disabled:o,className:Re(t?.button,t?.primaryButton),children:[o&&R.jsx(kn,{className:"animate-spin"}),n.TWO_FACTOR_ACTION]}),O==="otp"&&S?.includes("otp")&&R.jsxs(io,{type:"button",variant:"outline",onClick:H,disabled:$>0||q||o,className:Re(t?.button,t?.outlineButton),children:[q?R.jsx(kn,{className:"animate-spin"}):R.jsx(Mk,{className:t?.icon}),n.RESEND_CODE,$>0&&` (${$})`]}),O!=="otp"&&S?.includes("otp")&&R.jsxs(io,{type:"button",variant:"secondary",className:Re(t?.button,t?.secondaryButton),onClick:()=>N("otp"),disabled:o,children:[R.jsx(Mk,{className:t?.icon}),n.SEND_VERIFICATION_CODE]}),O!=="totp"&&S?.includes("totp")&&R.jsxs(io,{type:"button",variant:"secondary",className:Re(t?.button,t?.secondaryButton),onClick:()=>N("totp"),disabled:o,children:[R.jsx(oQ,{className:t?.icon}),n.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function X3({redirectTo:e}){const t=D.useRef(!1),{authClient:o,basePath:n,viewPaths:r}=D.useContext(bt),{onSuccess:i}=Oa({redirectTo:e||`${n}/${r.SIGN_IN}`});return D.useEffect(()=>{t.current||(t.current=!0,o.signOut().finally(i))},[o,i]),R.jsx(kn,{className:"animate-spin"})}function $ae({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,pathname:i,redirectTo:l,view:c,otpSeparators:d=0,setIsSubmitting:m}){const{basePath:h,credentials:f,localization:g,magicLink:v,emailOTP:y,signUp:S,twoFactor:x,viewPaths:_,replace:C}=D.useContext(bt),P=!!S;if(r={...g,...r},D.useEffect(()=>{i&&!__(_,i)&&(console.error(`Invalid auth view: ${i}`),C(`${h}/${_.SIGN_IN}${window.location.search}`))},[i,_,h,C]),c=c||__(_,i)||"SIGN_IN",D.useEffect(()=>{let E=!1;c==="MAGIC_LINK"&&(!v||!f&&!y)&&(E=!0),c==="EMAIL_OTP"&&(!y||!f&&!v)&&(E=!0),c==="SIGN_UP"&&!P&&(E=!0),!f&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&(E=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(c)&&!x&&(E=!0),E&&C(`${h}/${_.SIGN_IN}${window.location.search}`)},[h,c,_,f,C,y,P,v,x]),c==="SIGN_OUT")return R.jsx(X3,{redirectTo:l});if(c==="CALLBACK")return R.jsx(J3,{redirectTo:l});if(c==="SIGN_IN")return f?R.jsx(zae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m,callbackURL:o}):v?R.jsx(oO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):y?R.jsx(tO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m}):null;if(c==="TWO_FACTOR")return R.jsx(Uae,{className:e,classNames:t,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="RECOVER_ACCOUNT")return R.jsx(Fae,{className:e,classNames:t,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="MAGIC_LINK")return R.jsx(oO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_OTP")return R.jsx(tO,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="EMAIL_VERIFICATION")return R.jsx(Lae,{className:e,classNames:t,callbackURL:o,localization:r,otpSeparators:d,redirectTo:l,isSubmitting:n,setIsSubmitting:m});if(c==="FORGOT_PASSWORD")return R.jsx(Nae,{className:e,classNames:t,localization:r,isSubmitting:n,setIsSubmitting:m});if(c==="RESET_PASSWORD")return R.jsx(Bae,{className:e,classNames:t,localization:r});if(c==="SIGN_UP")return P&&R.jsx(jae,{className:e,classNames:t,callbackURL:o,localization:r,redirectTo:l,isSubmitting:n,setIsSubmitting:m})}function qae({className:e,classNames:t,localization:o}){const{localization:n,redirectTo:r,replace:i,toast:l}=D.useContext(bt),c=D.useMemo(()=>({...n,...o}),[n,o]),{data:d}=Hre(),[m,h]=D.useState(null);return D.useEffect(()=>{const f=bl("invitationId");if(!f){l({variant:"error",message:c.INVITATION_NOT_FOUND}),i(r);return}h(f)},[c.INVITATION_NOT_FOUND,l,i,r]),!d||!m?R.jsx(e4,{className:e,classNames:t}):R.jsx(Vae,{className:e,classNames:t,localization:c,invitationId:m})}function Vae({className:e,classNames:t,localization:o,invitationId:n}){var r;const{authClient:i,hooks:{useInvitation:l},localization:c,organization:d,redirectTo:m,replace:h,toast:f,localizeErrors:g}=D.useContext(bt),v=D.useMemo(()=>({...c,...o}),[c,o]),[y,S]=D.useState(!1),[x,_]=D.useState(!1),C=y||x,{data:P,isPending:E}=l({query:{id:n}}),T=D.useCallback(()=>bl("redirectTo")||m,[m]);D.useEffect(()=>{if(!(E||!n)){if(!P){f({variant:"error",message:v.INVITATION_NOT_FOUND}),h(m);return}(P.status!=="pending"||new Date(P.expiresAt)<new Date)&&(f({variant:"error",message:new Date(P.expiresAt)<new Date?v.INVITATION_EXPIRED:v.INVITATION_NOT_FOUND}),h(m))}},[P,E,n,v,f,h,m]);const A=async()=>{_(!0);try{await i.organization.acceptInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_ACCEPTED||"Invitation accepted"}),h(T())}catch(B){f({variant:"error",message:No({error:B,localization:v,localizeErrors:g})}),_(!1)}},k=async()=>{S(!0);try{await i.organization.rejectInvitation({invitationId:n,fetchOptions:{throw:!0}}),f({variant:"success",message:v.INVITATION_REJECTED}),h(m)}catch(B){f({variant:"error",message:No({error:B,localization:v,localizeErrors:g})}),S(!1)}},q=((r=[...[{role:"owner",label:v.OWNER},{role:"admin",label:v.ADMIN},{role:"member",label:v.MEMBER}],...d?.customRoles||[]].find(B=>B.role===P?.role))==null?void 0:r.label)||P?.role;return P?R.jsxs(lm,{className:Re("w-full max-w-sm",e,t?.base),children:[R.jsxs(mx,{className:Re("justify-items-center text-center",t?.header),children:[R.jsx(q3,{className:Re("text-lg md:text-xl",t?.title),children:v.ACCEPT_INVITATION}),R.jsx(V3,{className:Re("text-xs md:text-sm",t?.description),children:v.ACCEPT_INVITATION_DESCRIPTION})]}),R.jsxs(fx,{className:Re("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(lm,{className:Re("flex-row items-center p-4"),children:[R.jsx(Q3,{organization:{id:P.organizationId,name:P.organizationName,slug:P.organizationSlug,logo:P.organizationLogo,createdAt:new Date},localization:v}),R.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:q})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsxs(io,{variant:"outline",className:Re(t?.button,t?.outlineButton),onClick:k,disabled:C,children:[y?R.jsx(kn,{className:"animate-spin"}):R.jsx(aQ,{}),v.REJECT]}),R.jsxs(io,{className:Re(t?.button,t?.primaryButton),onClick:A,disabled:C,children:[x?R.jsx(kn,{className:"animate-spin"}):R.jsx(IL,{}),v.ACCEPT]})]})]})]}):R.jsx(e4,{className:e,classNames:t})}var e4=({className:e,classNames:t,localization:o})=>R.jsxs(lm,{className:Re("w-full max-w-sm",e,t?.base),children:[R.jsxs(mx,{className:Re("justify-items-center",t?.header),children:[R.jsx(ii,{className:Re("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),R.jsx(ii,{className:Re("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),R.jsxs(fx,{className:Re("flex flex-col gap-6 truncate",t?.content),children:[R.jsxs(lm,{className:Re("flex-row items-center p-4"),children:[R.jsx(Q3,{isPending:!0,localization:o}),R.jsx(ii,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),R.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[R.jsx(ii,{className:"h-9 w-full"}),R.jsx(ii,{className:"h-9 w-full"})]})]})]});function nO({className:e,orientation:t="horizontal",decorative:o=!0,...n}){return R.jsx(Vre,{"data-slot":"separator",decorative:o,orientation:t,className:Re("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function Hae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h}=D.useContext(bt);return R.jsxs(io,{className:Re("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[n==="EMAIL_OTP"?R.jsx(ML,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(LL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="EMAIL_OTP"?o.PASSWORD:o.EMAIL_OTP]})}function Gae({classNames:e,isSubmitting:t,localization:o,view:n}){var r,i,l,c;const{viewPaths:d,navigate:m,basePath:h,credentials:f}=D.useContext(bt);return R.jsxs(io,{className:Re("w-full",(r=e?.form)==null?void 0:r.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>m(`${h}/${n==="MAGIC_LINK"||!f?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[n==="MAGIC_LINK"?R.jsx(ML,{className:(l=e?.form)==null?void 0:l.icon}):R.jsx(LL,{className:(c=e?.form)==null?void 0:c.icon}),o.SIGN_IN_WITH," ",n==="MAGIC_LINK"?o.PASSWORD:o.MAGIC_LINK]})}function Kae({localization:e,redirectTo:t}){const{authClient:o,localization:n,toast:r,localizeErrors:i}=D.useContext(bt),l=D.useRef(!1);e=D.useMemo(()=>({...n,...e}),[n,e]);const{onSuccess:c}=Oa({redirectTo:t});return D.useEffect(()=>{if(!l.current){l.current=!0;try{o.oneTap({fetchOptions:{throw:!0,onSuccess:c}})}catch(d){r({variant:"error",message:No({error:d,localization:e,localizeErrors:i})})}}},[o,e,i,c,r]),null}function Wae({classNames:e,isSubmitting:t,localization:o,redirectTo:n,setIsSubmitting:r}){var i,l;const{authClient:c,localization:d,toast:m,localizeErrors:h}=D.useContext(bt);o={...d,...o};const{onSuccess:f}=Oa({redirectTo:n}),g=async()=>{r?.(!0);try{const v=await c.signIn.passkey({fetchOptions:{throw:!0}});v?.error?(m({variant:"error",message:No({error:v.error,localization:o,localizeErrors:h})}),r?.(!1)):f()}catch(v){m({variant:"error",message:No({error:v,localization:o,localizeErrors:h})}),r?.(!1)}};return R.jsxs(io,{className:Re("w-full",(i=e?.form)==null?void 0:i.button,(l=e?.form)==null?void 0:l.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[R.jsx(eQ,{}),o.SIGN_IN_WITH," ",o.PASSKEY]})}function rO({className:e,classNames:t,callbackURL:o,isSubmitting:n,localization:r,other:i,provider:l,redirectTo:c,socialLayout:d,setIsSubmitting:m}){var h,f,g,v;const{authClient:y,basePath:S,baseURL:x,persistClient:_,redirectTo:C,viewPaths:P,social:E,genericOAuth:T,toast:A,localizeErrors:k}=D.useContext(bt),O=D.useCallback(()=>c||bl("redirectTo")||C,[c,C]),N=D.useCallback(()=>`${x}${o||(_?`${S}/${P.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[o,_,S,P,x,O]),q=async()=>{m(!0);try{if(i){const B={providerId:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};T?.signIn?(await T.signIn(B),setTimeout(()=>{m(!1)},1e4)):await y.signIn.oauth2(B)}else{const B={provider:l.provider,callbackURL:N(),fetchOptions:{throw:!0}};E?.signIn?(await E.signIn(B),setTimeout(()=>{m(!1)},1e4)):await y.signIn.social(B)}}catch(B){A({variant:"error",message:No({error:B,localization:r,localizeErrors:k})}),m(!1)}};return R.jsxs(io,{className:Re(d==="vertical"?"w-full":"grow",e,(h=t?.form)==null?void 0:h.button,(f=t?.form)==null?void 0:f.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:n,variant:"outline",onClick:q,children:[l.icon&&R.jsx(l.icon,{className:(v=t?.form)==null?void 0:v.icon}),d==="grid"&&l.name,d==="vertical"&&`${r.SIGN_IN_WITH} ${l.name}`]})}function Lme({className:e,classNames:t,callbackURL:o,cardHeader:n,cardFooter:r,localization:i,path:l,pathname:c,redirectTo:d,socialLayout:m="auto",view:h,otpSeparators:f=0}){var g,v,y,S,x,_;const C=gi(),{basePath:P,credentials:E,localization:T,magicLink:A,emailOTP:k,oneTap:O,passkey:N,signUp:q,social:B,genericOAuth:$,viewPaths:U,Link:W}=D.useContext(bt);i={...T,...i};let ae=m;ae==="auto"&&(ae=E&&B?.providers&&B.providers.length>2?"horizontal":"vertical");const H=l??c?.split("/").pop(),Z=h||__(U,H)||"SIGN_IN",[te,le]=D.useState(!1);if(D.useEffect(()=>{const M=()=>le(!1);return window.addEventListener("pagehide",M),()=>{le(!1),window.removeEventListener("pagehide",M)}},[]),Z==="CALLBACK")return R.jsx(J3,{redirectTo:d});if(Z==="SIGN_OUT")return R.jsx(X3,{redirectTo:d});if(Z==="ACCEPT_INVITATION")return R.jsx(qae,{className:e,classNames:t});const Q=!E&&!A&&!k?i.DISABLED_CREDENTIALS_DESCRIPTION:i[`${Z}_DESCRIPTION`];return R.jsxs(lm,{className:Re("w-full max-w-sm",e,t?.base),children:[R.jsx(mx,{className:t?.header,children:n||R.jsxs(R.Fragment,{children:[R.jsx(q3,{className:Re("text-lg md:text-xl",t?.title),children:i[Z]}),Q&&R.jsx(V3,{className:Re("text-xs md:text-sm",t?.description),children:Q})]})}),R.jsxs(fx,{className:Re("grid gap-6",t?.content),children:[O&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(Z)&&R.jsx(Kae,{localization:i,redirectTo:d}),(E||A||k)&&R.jsxs("div",{className:"grid gap-4",children:[R.jsx($ae,{classNames:t?.form,callbackURL:o,isSubmitting:te,localization:i,otpSeparators:f,view:Z,redirectTo:d,setIsSubmitting:le}),A&&(E&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||k&&Z==="EMAIL_OTP")&&R.jsx(Gae,{classNames:t,localization:i,view:Z,isSubmitting:te}),k&&(E&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(Z)||A&&["SIGN_IN","MAGIC_LINK"].includes(Z))&&R.jsx(Hae,{classNames:t,localization:i,view:Z,isSubmitting:te})]}),Z!=="RESET_PASSWORD"&&Z!=="EMAIL_VERIFICATION"&&(((g=B?.providers)==null?void 0:g.length)||((v=$?.providers)==null?void 0:v.length)||Z==="SIGN_IN"&&N)&&R.jsxs(R.Fragment,{children:[(E||A||k)&&R.jsxs("div",{className:Re("flex items-center gap-2",t?.continueWith),children:[R.jsx(nO,{className:Re("!w-auto grow",t?.separator)}),R.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:i.OR_CONTINUE_WITH}),R.jsx(nO,{className:Re("!w-auto grow",t?.separator)})]}),R.jsxs("div",{className:"grid gap-4",children:[(((y=B?.providers)==null?void 0:y.length)||((S=$?.providers)==null?void 0:S.length))&&R.jsxs("div",{className:Re("flex w-full items-center justify-between gap-4",ae==="horizontal"&&"flex-wrap",ae==="vertical"&&"flex-col",ae==="grid"&&"grid grid-cols-2"),children:[(x=B?.providers)==null?void 0:x.map(M=>{const G=Pae.find(V=>V.provider===M);return G?R.jsx(rO,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:G,redirectTo:d,setIsSubmitting:le,socialLayout:ae},M):null}),(_=$?.providers)==null?void 0:_.map(M=>R.jsx(rO,{classNames:t,callbackURL:o,isSubmitting:te,localization:i,provider:M,redirectTo:d,setIsSubmitting:le,socialLayout:ae,other:!0},M.provider))]}),N&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(Z)&&R.jsx(Wae,{classNames:t,isSubmitting:te,localization:i,redirectTo:d,setIsSubmitting:le})]})]})]}),r&&R.jsx(XD,{className:t?.footer,children:r}),E&&q&&R.jsxs(XD,{className:Re("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.DONT_HAVE_AN_ACCOUNT:Z==="SIGN_UP"?i.ALREADY_HAVE_AN_ACCOUNT:R.jsx(YZ,{className:"size-3"}),Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"||Z==="SIGN_UP"?R.jsx(W,{className:Re("text-foreground underline",t?.footerLink),href:`${P}/${U[Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${C?window.location.search:""}`,children:R.jsx(io,{variant:"link",size:"sm",className:Re("px-0 text-foreground underline",t?.footerLink),children:Z==="SIGN_IN"||Z==="MAGIC_LINK"||Z==="EMAIL_OTP"?i.SIGN_UP:i.SIGN_IN})}):R.jsx(io,{variant:"link",size:"sm",className:Re("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:i.GO_BACK})]})]})}function Nme({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{isPending:o}=t();return o?e:null}function Fme({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{data:o}=t();return o?e:null}function Bme({children:e}){const{hooks:{useSession:t}}=D.useContext(bt),{data:o,isPending:n}=t();return!o&&!n?e:null}function Yae(e){const t=ro.c(8),{children:o}=e,n=Cm();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={basePath:"/",pathMode:"slug"},t[0]=r):r=t[0];let i,l;t[1]!==n?(i=d=>n({to:d}),l=d=>n({to:d,replace:!0}),t[1]=n,t[2]=i,t[3]=l):(i=t[2],l=t[3]);let c;return t[4]!==o||t[5]!==i||t[6]!==l?(c=R.jsx(HZ,{authClient:rv,redirectTo:"/",organization:r,navigate:i,replace:l,Link:Zae,children:o}),t[4]=o,t[5]=i,t[6]=l,t[7]=c):c=t[7],c}function Zae(e){const{href:t,className:o,children:n,...r}=e;return R.jsx(xm,{to:t,className:o,...r,children:n})}var pe=typeof window<"u"?window:void 0,Xo=typeof globalThis<"u"?globalThis:pe;typeof self>"u"&&(Xo.self=Xo),typeof File>"u"&&(Xo.File=function(){});var vr=Xo?.navigator,Ne=Xo?.document,pn=Xo?.location,H_=Xo?.fetch,G_=Xo!=null&&Xo.XMLHttpRequest&&"withCredentials"in new Xo.XMLHttpRequest?Xo.XMLHttpRequest:void 0,aO=Xo?.AbortController,Qae=Xo?.CompressionStream,Qn=vr?.userAgent,Ze=pe??{},iO="1.372.3",Bn={DEBUG:!1,LIB_VERSION:iO,LIB_NAME:"web",JS_SDK_VERSION:iO};function sO(e,t,o,n,r,i,l){try{var c=e[i](l),d=c.value}catch(m){return void o(m)}c.done?t(d):Promise.resolve(d).then(n,r)}function Nr(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function l(d){sO(i,n,r,l,c,"next",d)}function c(d){sO(i,n,r,l,c,"throw",d)}l(void 0)}))}}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ie.apply(null,arguments)}function t4(e,t){if(e==null)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;o[n]=e[n]}return o}function K_(){return K_=Nr((function*(e,t,o){t===void 0&&(t=!0);try{var n=new CompressionStream("gzip"),r=n.writable.getWriter(),i=r.write(new TextEncoder().encode(e)).then((()=>r.close())).catch((function(){var d=Nr((function*(m){try{yield r.abort(m)}catch{}throw m}));return function(m){return d.apply(this,arguments)}})()),l=new Response(n.readable).blob(),[c]=yield Promise.all([l,i]);return c}catch(d){if(o!=null&&o.rethrow)throw d;return t&&console.error("Failed to gzip compress data",d),null}})),K_.apply(this,arguments)}var Jae=["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"],lO=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var o=e.toLowerCase();return Jae.concat(t).some((n=>{var r=n.toLowerCase();return o.indexOf(r)!==-1}))},Xae=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Ct(e,t){return e.indexOf(t)!==-1}var yv=function(e){return e.trim()},W_=function(e){return e.replace(/^\$/,"")},o4=Object.prototype,n4=o4.hasOwnProperty,Sv=o4.toString,Ot=Array.isArray||function(e){return Sv.call(e)==="[object Array]"},ai=e=>typeof e=="function",Do=e=>e===Object(e)&&!Ot(e),Oc=e=>{if(Do(e)){for(var t in e)if(n4.call(e,t))return!1;return!0}return!1},ze=e=>e===void 0,So=e=>Sv.call(e)=="[object String]",Ip=e=>So(e)&&e.trim().length===0,yi=e=>e===null,xt=e=>ze(e)||yi(e),Ur=e=>Sv.call(e)=="[object Number]"&&e==e,xc=e=>Ur(e)&&e>0,Ea=e=>Sv.call(e)==="[object Boolean]",eie=e=>e instanceof FormData,tie=e=>Ct(Xae,e);function r4(e){return e===null||typeof e!="object"}function pg(e,t){return{}.toString.call(e)==="[object "+t+"]"}function bx(e){return typeof Event<"u"&&(function(t,o){try{return t instanceof o}catch{return!1}})(e,Event)}var oie=[!0,"true",1,"1","yes"],fS=e=>Ct(oie,e),nie=[!1,"false",0,"0","no"];function Ta(e,t,o,n,r){return t>o&&(n.warn("min cannot be greater than max."),t=o),Ur(e)?e>o?(n.warn(" cannot be greater than max: "+o+". Using max value instead."),o):t>e?(n.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(n.warn(" must be a number. using max or fallback. max: "+o+", fallback: "+r),Ta(r||o,t,o,n))}class rie{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Ta(t.bucketSize,0,100,t.Gt),this.Wt=Ta(t.refillRate,0,this.Ut,t.Gt),this.Xt=Ta(t.refillInterval,0,864e5,t.Gt)}Jt(t,o){var n=Math.floor((o-t.lastAccess)/this.Xt);n>0&&(t.tokens=Math.min(t.tokens+n*this.Wt,this.Ut),t.lastAccess=t.lastAccess+n*this.Xt)}consumeRateLimit(t){var o,n=Date.now(),r=String(t),i=this.$t[r];return i?this.Jt(i,n):this.$t[r]=i={tokens:this.Ut,lastAccess:n},i.tokens===0||(i.tokens--,i.tokens===0&&((o=this.zt)==null||o.call(this,t)),i.tokens===0)}stop(){this.$t={}}}var mp,cO,hS,yr="Mobile",gg="iOS",ci="Android",Jc="Tablet",a4=ci+" "+Jc,i4="iPad",s4="Apple",l4=s4+" Watch",$d="Safari",Xc="BlackBerry",c4="Samsung",u4=c4+"Browser",d4=c4+" Internet",cl="Chrome",aie=cl+" OS",m4=cl+" "+gg,yx="Internet Explorer",f4=yx+" "+yr,Sx="Opera",iie=Sx+" Mini",_x="Edge",h4="Microsoft "+_x,qc="Firefox",p4=qc+" "+gg,um="Nintendo",dm="PlayStation",Vc="Xbox",g4=ci+" "+yr,v4=yr+" "+$d,Dd="Windows",Y_=Dd+" Phone",uO="Nokia",Z_="Ouya",b4="Generic",sie=b4+" "+yr.toLowerCase(),y4=b4+" "+Jc.toLowerCase(),Q_="Konqueror",Fn="(\\d+(\\.\\d+)?)",pS=new RegExp("Version/"+Fn),lie=new RegExp(Vc,"i"),cie=new RegExp(dm+" \\w+","i"),uie=new RegExp(um+" \\w+","i"),wx=new RegExp(Xc+"|PlayBook|BB10","i"),die={"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"},S4=function(e,t){return t=t||"",Ct(e," OPR/")&&Ct(e,"Mini")?iie:Ct(e," OPR/")?Sx:wx.test(e)?Xc:Ct(e,"IE"+yr)||Ct(e,"WPDesktop")?f4:Ct(e,u4)?d4:Ct(e,_x)||Ct(e,"Edg/")?h4:Ct(e,"FBIOS")?"Facebook "+yr:Ct(e,"UCWEB")||Ct(e,"UCBrowser")?"UC Browser":Ct(e,"CriOS")?m4:Ct(e,"CrMo")||Ct(e,cl)?cl:Ct(e,ci)&&Ct(e,$d)?g4:Ct(e,"FxiOS")?p4:Ct(e.toLowerCase(),Q_.toLowerCase())?Q_:((o,n)=>n&&Ct(n,s4)||(function(r){return Ct(r,$d)&&!Ct(r,cl)&&!Ct(r,ci)})(o))(e,t)?Ct(e,yr)?v4:$d:Ct(e,qc)?qc:Ct(e,"MSIE")||Ct(e,"Trident/")?yx:Ct(e,"Gecko")?qc:""},mie={[f4]:[new RegExp("rv:"+Fn)],[h4]:[new RegExp(_x+"?\\/"+Fn)],[cl]:[new RegExp("("+cl+"|CrMo)\\/"+Fn)],[m4]:[new RegExp("CriOS\\/"+Fn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Fn)],[$d]:[pS],[v4]:[pS],[Sx]:[new RegExp("(Opera|OPR)\\/"+Fn)],[qc]:[new RegExp(qc+"\\/"+Fn)],[p4]:[new RegExp("FxiOS\\/"+Fn)],[Q_]:[new RegExp("Konqueror[:/]?"+Fn,"i")],[Xc]:[new RegExp(Xc+" "+Fn),pS],[g4]:[new RegExp("android\\s"+Fn,"i")],[d4]:[new RegExp(u4+"\\/"+Fn)],[yx]:[new RegExp("(rv:|MSIE )"+Fn)],Mozilla:[new RegExp("rv:"+Fn)]},fie=function(e,t){var o=S4(e,t),n=mie[o];if(ze(n))return null;for(var r=0;n.length>r;r++){var i=e.match(n[r]);if(i)return parseFloat(i[i.length-2])}return null},dO=[[new RegExp(Vc+"; "+Vc+" (.*?)[);]","i"),e=>[Vc,e&&e[1]||""]],[new RegExp(um,"i"),[um,""]],[new RegExp(dm,"i"),[dm,""]],[wx,[Xc,""]],[new RegExp(Dd,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Y_,""];if(new RegExp(yr).test(t)&&!/IEMobile\b/.test(t))return[Dd+" "+yr,""];var o=/Windows NT ([0-9.]+)/i.exec(t);if(o&&o[1]){var n=die[o[1]]||"";return/arm/i.test(t)&&(n="RT"),[Dd,n]}return[Dd,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[gg,[e[3],e[4],e[5]||"0"].join(".")]:[gg,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=ze(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+ci+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+ci+")","i"),e=>e&&e[2]?[ci,[e[2],e[3],e[4]||"0"].join(".")]:[ci,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[aie,""]],[/Linux|debian/i,["Linux",""]]],mO=function(e){return uie.test(e)?um:cie.test(e)?dm:lie.test(e)?Vc:new RegExp(Z_,"i").test(e)?Z_:new RegExp("("+Y_+"|WPDesktop)","i").test(e)?Y_:/iPad/.test(e)?i4:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?l4:wx.test(e)?Xc:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(uO,"i").test(e)?uO:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(yr).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?ci:a4:new RegExp("(pda|"+yr+")","i").test(e)?sie:new RegExp(Jc,"i").test(e)&&!new RegExp(Jc+" pc","i").test(e)?y4:""},hie=e=>e instanceof Error,_4={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}},pie=_4.info;function w4(e){if(Ea(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Ot(e))return{arrayValue:{values:e.map((t=>w4(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function fO(e){var t=[];for(var o in e){var n=e[o];yi(n)||ze(n)||t.push({key:o,value:w4(n)})}return t}function gie(e){var t=globalThis._posthogChunkIds;if(t){var o=Object.keys(t);return hS&&o.length===cO||(cO=o.length,hS=o.reduce(((n,r)=>{mp||(mp={});var i=mp[r];if(i)n[i[0]]=i[1];else for(var l=e(r),c=l.length-1;c>=0;c--){var d=l[c],m=d?.filename,h=t[r];if(m&&h){n[m]=h,mp[r]=[m,h];break}}return n}),{})),hS}}class vie{constructor(t,o,n){n===void 0&&(n=[]),this.coercers=t,this.stackParser=o,this.modifiers=n}buildFromUnknown(t,o){o===void 0&&(o={});var n=o&&o.mechanism||{handled:!0,type:"generic"},r=this.buildCoercingContext(n,o,0).apply(t),i=this.buildParsingContext(o),l=this.parseStacktrace(r,i);return{$exception_list:this.convertToExceptionList(l,n),$exception_level:"error"}}modifyFrames(t){var o=this;return Nr((function*(){for(var n of t)n.stacktrace&&n.stacktrace.frames&&Ot(n.stacktrace.frames)&&(n.stacktrace.frames=yield o.applyModifiers(n.stacktrace.frames));return t}))()}coerceFallback(t){var o;return{type:"Error",value:"Unknown error",stack:(o=t.syntheticException)==null?void 0:o.stack,synthetic:!0}}parseStacktrace(t,o){var n,r;return t.cause!=null&&(n=this.parseStacktrace(t.cause,o)),t.stack!=""&&t.stack!=null&&(r=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?o.skipFirstLines:0),o.chunkIdMap)),Ie({},t,{cause:n,stack:r})}applyChunkIds(t,o){return t.map((n=>(n.filename&&o&&(n.chunk_id=o[n.filename]),n)))}applyCoercers(t,o){for(var n of this.coercers)if(n.match(t))return n.coerce(t,o);return this.coerceFallback(o)}applyModifiers(t){var o=this;return Nr((function*(){var n=t;for(var r of o.modifiers)n=yield r(n);return n}))()}convertToExceptionList(t,o){var n,r,i,l={type:t.type,value:t.value,mechanism:{type:(n=o.type)!==null&&n!==void 0?n:"generic",handled:(r=o.handled)===null||r===void 0||r,synthetic:(i=t.synthetic)!==null&&i!==void 0&&i}};t.stack&&(l.stacktrace={type:"raw",frames:t.stack});var c=[l];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Ie({},o,{handled:!0}))),c}buildParsingContext(t){var o;return{chunkIdMap:gie(this.stackParser),skipFirstLines:(o=t.skipFirstLines)!==null&&o!==void 0?o:1}}buildCoercingContext(t,o,n){n===void 0&&(n=0);var r=(i,l)=>{if(4>=l){var c=this.buildCoercingContext(t,o,l);return this.applyCoercers(i,c)}};return Ie({},o,{syntheticException:n==0?o.syntheticException:void 0,mechanism:t,apply:i=>r(i,n),next:i=>r(i,n+1)})}}var eu="?";function J_(e,t,o,n,r){var i={platform:e,filename:t,function:o==="<anonymous>"?eu:o,in_app:!0};return ze(n)||(i.lineno=n),ze(r)||(i.colno=r),i}var C4=(e,t)=>{var o=e.indexOf("safari-extension")!==-1,n=e.indexOf("safari-web-extension")!==-1;return o||n?[e.indexOf("@")!==-1?e.split("@")[0]:eu,o?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},bie=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sie=/\((\S*)(?::(\d+))(?::(\d+))\)/,_ie=(e,t)=>{var o=bie.exec(e);if(o){var[,n,r,i]=o;return J_(t,n,eu,+r,+i)}var l=yie.exec(e);if(l){if(l[2]&&l[2].indexOf("eval")===0){var c=Sie.exec(l[2]);c&&(l[2]=c[1],l[3]=c[2],l[4]=c[3])}var[d,m]=C4(l[1]||eu,l[2]);return J_(t,m,d,l[3]?+l[3]:void 0,l[4]?+l[4]:void 0)}},wie=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cie=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xie=(e,t)=>{var o=wie.exec(e);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){var n=Cie.exec(o[3]);n&&(o[1]=o[1]||"eval",o[3]=n[1],o[4]=n[2],o[5]="")}var r=o[3],i=o[1]||eu;return[i,r]=C4(i,r),J_(t,r,i,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}},hO=/\(error: (.*)\)/;class Eie{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,o){var n=So(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var o=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?o+": "+t.message:o}isDOMException(t){return pg(t,"DOMException")}isDOMError(t){return pg(t,"DOMError")}}class Tie{match(t){return(o=>o instanceof Error)(t)}coerce(t,o){return{type:this.getType(t),value:this.getMessage(t,o),stack:this.getStack(t),cause:t.cause?o.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,o){var n=t.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(t){return t.stacktrace||t.stack||void 0}}class Pie{constructor(){}match(t){return pg(t,"ErrorEvent")&&t.error!=null}coerce(t,o){var n;return o.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var Rie=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class Aie{match(t){return typeof t=="string"}coerce(t,o){var n,[r,i]=this.getInfos(t);return{type:r??"Error",value:i??t,stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var o="Error",n=t,r=t.match(Rie);return r&&(o=r[1],n=r[2]),[o,n]}}var kie=["fatal","error","warning","log","info","debug"];function x4(e,t){t===void 0&&(t=40);var o=Object.keys(e);if(o.sort(),!o.length)return"[object has no keys]";for(var n=o.length;n>0;n--){var r=o.slice(0,n).join(", ");if(t>=r.length)return n===o.length?r:r.length>t?r.slice(0,t)+"...":r}return""}class Die{match(t){return typeof t=="object"&&t!==null}coerce(t,o){var n,r=this.getErrorPropertyFromObject(t);return r?o.apply(r):{type:this.getType(t),value:this.getValue(t),stack:(n=o.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return bx(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var o="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(o+=" with message: '"+t.message+"'"),o}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+x4(t)}isSeverityLevel(t){return So(t)&&!Ip(t)&&kie.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var o in t)if({}.hasOwnProperty.call(t,o)){var n=t[o];if(hie(n))return n}}getObjectClassName(t){try{var o=Object.getPrototypeOf(t);return o?o.constructor.name:void 0}catch{return}}}class Oie{match(t){return bx(t)}coerce(t,o){var n,r=t.constructor.name;return{type:r,value:r+" captured as exception with keys: "+x4(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Iie{match(t){return r4(t)}coerce(t,o){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Mie{match(t){return pg(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!bx(t))return!1;try{var o=t.detail;return o!=null&&typeof o=="object"&&"reason"in o}catch{return!1}}coerce(t,o){var n,r=this.getUnhandledRejectionReason(t);return r4(r)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r),stack:(n=o.syntheticException)==null?void 0:n.stack,synthetic:!0}:o.apply(r)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var vg="$message",bg="$timestamp",Lie=new Set([vg,bg]),gS={enabled:!0,max_bytes:32768};function yg(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:gS.enabled,max_bytes:Fie(e.max_bytes,gS.max_bytes)}:Ie({},gS)}class Nie{constructor(t){this.Kt=[],this.Qt=0,this.Bt=yg(t)}setConfig(t){this.Bt=yg(t),this.er()}add(t){var o=(function(r){var i=(function(h){var f=new WeakSet;try{return JSON.stringify(h,((g,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(f.has(v))return"[Circular]";f.add(v)}return v}}))}catch{return}})(r);if(i)try{var l=JSON.parse(i);if(!Do(l))return;var c=l,d=c[vg],m=c[bg];return!So(d)||d.trim().length===0||!So(m)&&!Ur(m)?void 0:{step:c,json:i}}catch{return}})(t);if(o){var n=(function(r){if(typeof TextEncoder<"u")return new TextEncoder().encode(r).length;for(var i=encodeURIComponent(r),l=0,c=0;i.length>c;c++)i[c]==="%"?(l+=1,c+=2):l+=1;return l})(o.json);n>this.Bt.max_bytes||(this.Kt.push({step:o.step,bytes:n}),this.Qt+=n,this.er())}}getAttachable(){return this.Kt.map((t=>t.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}}function Fie(e,t){if(!Ur(e)||e===1/0||e===-1/0)return t;var o=Math.floor(e);return 0>o?t:o}var E4=function(e,t){var{debugEnabled:o}=t===void 0?{}:t,n={C(r){if(pe&&(Bn.DEBUG||Ze.POSTHOG_DEBUG||o)&&!ze(pe.console)&&pe.console){for(var i=("__rrweb_original__"in pe.console[r])?pe.console[r].__rrweb_original__:pe.console[r],l=arguments.length,c=new Array(l>1?l-1:0),d=1;l>d;d++)c[d-1]=arguments[d];i(e,...c)}},info(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("log",...i)},warn(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("warn",...i)},error(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];n.C("error",...i)},critical(){for(var r=arguments.length,i=new Array(r),l=0;r>l;l++)i[l]=arguments[l];console.error(e,...i)},uninitializedWarning(r){n.error("You must initialize PostHog before calling "+r)},createLogger:(r,i)=>E4(e+" "+r,i)};return n},Fe=E4("[PostHog.js]"),go=Fe.createLogger,Bie=go("[ExternalScriptsLoader]"),vS=(e,t,o)=>{if(e.config.disable_external_dependency_loading)return Bie.warn(t+" was requested but loading of external scripts is disabled."),o("Loading of external scripts is disabled");var n=Ne?.querySelectorAll("script");if(n){for(var r,i=function(){if(n[l].src===t){var d=n[l];return d.__posthog_loading_callback_fired?{v:o()}:(d.addEventListener("load",(m=>{d.__posthog_loading_callback_fired=!0,o(void 0,m)})),d.onerror=m=>o(m),{v:void 0})}},l=0;n.length>l;l++)if(r=i())return r.v}var c=()=>{if(!Ne)return o("document not found");var d=Ne.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=t,d.onload=f=>{d.__posthog_loading_callback_fired=!0,o(void 0,f)},d.onerror=f=>o(f),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return o("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Ne.head.appendChild(d);else{var m,h=Ne.querySelectorAll("body > script");h.length>0?(m=h[0].parentNode)==null||m.insertBefore(d,h[0]):Ne.body.appendChild(d)}};Ne!=null&&Ne.body?c():Ne?.addEventListener("DOMContentLoaded",c)};Ze.__PosthogExtensions__=Ze.__PosthogExtensions__||{},Ze.__PosthogExtensions__.loadExternalDependency=(e,t,o)=>{if(t!=="remote-config"){var n;if(e.config.__preview_external_dependency_versioned_paths)n=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var r="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}n=e.requestRouter.endpointFor("assets",r)}vS(e,n,o)}else{var l=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");vS(e,l,o)}},Ze.__PosthogExtensions__.loadSiteApp=(e,t,o)=>{var n=e.requestRouter.endpointFor("api",t);vS(e,n,o)};var T4="$people_distinct_id",Sg="$device_id",Od="__alias",Id="__timers",X_="$autocapture_disabled_server_side",ew="$heatmaps_enabled_server_side",tw="$exception_capture_enabled_server_side",ow="$error_tracking_suppression_rules",nw="$error_tracking_capture_extension_exceptions",rw="$web_vitals_enabled_server_side",Cx="$dead_clicks_enabled_server_side",aw="$product_tours_enabled_server_side",iw="$web_vitals_allowed_metrics",Md="$session_recording_remote_config",P4="$replay_override_sampling",R4="$replay_override_linked_flag",A4="$replay_override_url_trigger",k4="$replay_override_event_trigger",_g="$sesid",xx="$session_is_sampled",Ic="$enabled_feature_flags",Mp="$active_feature_flags",Ld="$early_access_features",sw="$feature_flag_details",lw="$feature_flag_payloads",cw="$feature_flag_request_id",ri="$override_feature_flags",Ec="$override_feature_flag_payloads",Nd="$stored_person_properties",Xs="$stored_group_properties",uw="$surveys",dw="$surveys_activated",Lp="ph_product_tours",qd="$flag_call_reported",mw="$flag_call_reported_session_id",fw="$feature_flag_errors",wg="$feature_flag_evaluated_at",ta="$user_state",hw="$client_session_props",pw="$capture_rate_limit",gw="$initial_campaign_params",vw="$initial_referrer_info",Cg="$initial_person_info",xg="$epp",D4="__POSTHOG_TOOLBAR__",fp="$posthog_cookieless",O4="$sdk_debug_extensions_init_method",I4="$sdk_debug_extensions_init_time_ms",M4="$sdk_debug_recording_script_not_loaded",Ex="PostHog loadExternalDependency extension not found.",el="on_reject",si="always",bc="anonymous",yc="identified",bw="identified_only",Eg="visibilitychange",Tg="beforeunload",Tc="$pageview",bS="$pageleave",yS="$identify",pO="$groupidentify";function hp(e,t){Ot(e)&&e.forEach(t)}function mo(e,t){if(!xt(e))if(Ot(e))e.forEach(t);else if(eie(e))e.forEach(((n,r)=>t(n,r)));else for(var o in e)n4.call(e,o)&&t(e[o],o)}var To=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;t>n;n++)o[n-1]=arguments[n];for(var r of o)for(var i in r)r[i]!==void 0&&(e[i]=r[i]);return e};function Np(e){for(var t=Object.keys(e),o=t.length,n=new Array(o);o--;)n[o]=[t[o],e[t[o]]];return n}var gO=function(e){try{return e()}catch{return}},zie=function(e){return function(){try{for(var t=arguments.length,o=new Array(t),n=0;t>n;n++)o[n]=arguments[n];return e.apply(this,o)}catch(r){Fe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Fe.critical(r)}}},Tx=function(e){var t={};return mo(e,(function(o,n){(So(o)&&o.length>0||Ur(o))&&(t[n]=o)})),t},jie=["herokuapp.com","vercel.app","netlify.app"];function Uie(e){var t=e?.hostname;if(!So(t))return!1;var o=t.split(".").slice(-2).join(".");for(var n of jie)if(o===n)return!1;return!0}function Vo(e,t,o,n){var{capture:r=!1,passive:i=!0}=n??{};e?.addEventListener(t,o,{capture:r,passive:i})}function L4(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ur(e)&&isFinite(e)&&Math.floor(e)===e});class Pg{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,o,n,r){if(!Number.isInteger(t)||!Number.isInteger(o)||!Number.isInteger(n)||!Number.isInteger(r)||0>t||0>o||0>n||0>r||t>0xffffffffffff||o>4095||n>1073741823||r>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|o>>>8,i[7]=o,i[8]=128|n>>>24,i[9]=n>>>16,i[10]=n>>>8,i[11]=n,i[12]=r>>>24,i[13]=r>>>16,i[14]=r>>>8,i[15]=r,new Pg(i)}toString(){for(var t="",o=0;this.bytes.length>o;o++)t=t+(this.bytes[o]>>>4).toString(16)+(15&this.bytes[o]).toString(16),o!==3&&o!==5&&o!==7&&o!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Pg(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var o=0;16>o;o++){var n=this.bytes[o]-t.bytes[o];if(n!==0)return Math.sign(n)}return 0}}class $ie{constructor(){this.I=0,this.S=0,this.k=new qie}generate(){var t=this.generateOrAbort();if(ze(t)){this.I=0;var o=this.generateOrAbort();if(ze(o))throw new Error("Could not generate UUID after timestamp reset");return o}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return Pg.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 vO,N4=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};pe&&!ze(pe.crypto)&&crypto.getRandomValues&&(N4=e=>crypto.getRandomValues(e));class qie{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(N4(this.T),this.N=0),this.T[this.N++]}}var ns=()=>Vie().toString(),Vie=()=>(vO||(vO=new $ie)).generate(),vd="",Hie=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Ca={R:()=>!!Ne,B(e){Fe.error("cookieStore error: "+e)},O(e){if(Ne){try{for(var t=e+"=",o=Ne.cookie.split(";").filter((i=>i.length)),n=0;o.length>n;n++){for(var r=o[n];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return decodeURIComponent(r.substring(t.length,r.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(Ca.O(e))||{}}catch{}return t},M(e,t,o,n,r){if(Ne)try{var i="",l="",c=(function(h,f){if(f){var g=(function(y,S){if(S===void 0&&(S=Ne),vd)return vd;if(!S||["localhost","127.0.0.1"].includes(y))return"";for(var x=y.split("."),_=Math.min(x.length,8),C="dmn_chk_"+ns();!vd&&_--;){var P=x.slice(_).join("."),E=C+"=1;domain=."+P+";path=/";S.cookie=E+";max-age=3",S.cookie.includes(C)&&(S.cookie=E+";max-age=0",vd=P)}return vd})(h);if(!g){var v=(y=>{var S=y.match(Hie);return S?S[0]:""})(h);v!==g&&Fe.info("Warning: cookie subdomain discovery mismatch",v,g),g=v}return g?"; domain=."+g:""}return""})(Ne.location.hostname,n);if(o){var d=new Date;d.setTime(d.getTime()+864e5*o),i="; expires="+d.toUTCString()}r&&(l="; secure");var m=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+c+l;return m.length>3686.4&&Fe.warn("cookieStore warning: large cookie, len="+m.length),Ne.cookie=m,m}catch{return}},F(e,t){if(Ne!=null&&Ne.cookie)try{Ca.M(e,"",-1,t)}catch{return}}},SS=null,yo={R(){if(!yi(SS))return SS;var e=!0;if(ze(pe))e=!1;else try{var t="__mplssupport__";yo.M(t,"xyz"),yo.O(t)!=='"xyz"'&&(e=!1),yo.F(t)}catch{e=!1}return e||Fe.error("localStorage unsupported; falling back to cookie store"),SS=e,e},B(e){Fe.error("localStorage error: "+e)},O(e){try{return pe?.localStorage.getItem(e)}catch(t){yo.B(t)}return null},Z(e){try{return JSON.parse(yo.O(e))||{}}catch{}return null},M(e,t){try{pe?.localStorage.setItem(e,JSON.stringify(t))}catch(o){yo.B(o)}},F(e){try{pe?.localStorage.removeItem(e)}catch(t){yo.B(t)}}},Gie=[Sg,"distinct_id",_g,xx,xg,Cg,ta],pp={},Kie={R:()=>!0,B(e){Fe.error("memoryStorage error: "+e)},O:e=>pp[e]||null,Z:e=>pp[e]||null,M(e,t){pp[e]=t},F(e){delete pp[e]}},Zs=null,gn={R(){if(!yi(Zs))return Zs;if(Zs=!0,ze(pe))Zs=!1;else try{var e="__support__";gn.M(e,"xyz"),gn.O(e)!=='"xyz"'&&(Zs=!1),gn.F(e)}catch{Zs=!1}return Zs},B(e){Fe.error("sessionStorage error: ",e)},O(e){try{return pe?.sessionStorage.getItem(e)}catch(t){gn.B(t)}return null},Z(e){try{return JSON.parse(gn.O(e))||null}catch{}return null},M(e,t){try{pe?.sessionStorage.setItem(e,JSON.stringify(t))}catch(o){gn.B(o)}},F(e){try{pe?.sessionStorage.removeItem(e)}catch(t){gn.B(t)}}};class Wie{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===si||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===el}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(t){this.nr.M(this.sr,t?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:o,consent_persistence_name:n}=this._instance.config;return n||(o?o+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return fS(t)?1:Ct(nie,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,o=t==="localStorage"?yo:Ca;if(!this.ar||this.ar!==o){this.ar=o;var n=t==="localStorage"?Ca:yo;n.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(fS(n.O(this.sr))),n.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[vr?.doNotTrack,vr?.msDoNotTrack,Ze.doNotTrack].some((t=>fS(t)))}}var gp=go("[Dead Clicks]"),Yie=()=>!0,Zie=e=>{var t,o=!((t=e.instance.persistence)==null||!t.get_property(Cx)),n=e.instance.config.capture_dead_clicks;return Ea(n)?n:!!Do(n)||o};class bO{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,o,n){this.instance=t,this.isEnabled=o,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[Cx]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.initDeadClicksAutocapture&&t(),(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(r=>{r?gp.error("failed to load script",r):t()}))}hr(){var t;if(Ne){if(!this.lr&&(t=Ze.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var o=Do(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};o.__onCapture=this.onCapture,this.lr=Ze.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,o),this.lr.start(Ne),gp.info("starting...")}}else gp.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,gp.info("stopping..."))}}var _S=go("[SegmentIntegration]"),F4="posthog-js";function B4(e,t){var{organization:o,projectId:n,prefix:r,severityAllowList:i=["error"],sendExceptionsToPostHog:l=!0}=t===void 0?{}:t;return c=>{var d,m,h,f,g;if(i!=="*"&&!i.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var y,S=((d=c.exception)==null?void 0:d.values)||[],x=S.map((C=>Ie({},C,{stacktrace:C.stacktrace?Ie({},C.stacktrace,{type:"raw",frames:(C.stacktrace.frames||[]).map((P=>Ie({},P,{platform:"web:javascript"})))}):void 0}))),_={$exception_message:((m=S[0])==null?void 0:m.value)||c.message,$exception_type:(h=S[0])==null?void 0:h.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((f=S[0])==null?void 0:f.value)||c.message,$sentry_exception_type:(g=S[0])==null?void 0:g.type,$sentry_tags:c.tags};return o&&n&&(_.$sentry_url=(r||"https://sentry.io/organizations/")+o+"/issues/?project="+n+"&query="+c.event_id),l&&((y=e.exceptions)==null||y.sendExceptionEvent(_)),c}}class Qie{constructor(t,o,n,r,i,l){this.name=F4,this.setupOnce=function(c){c(B4(t,{organization:o,projectId:n,prefix:r,severityAllowList:i,sendExceptionsToPostHog:l==null||l}))}}}class yO{constructor(t){this.cr=(o,n,r)=>{r&&(r.noSessionId||r.activityTimeout||r.sessionPastMaximumLength)&&(Fe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:o,changeReason:r}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,o){var n,r=this.gr(t,o);return this.dr={pathname:(n=pe?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:o,timestamp:t},this._instance.scrollManager.resetContext(),r}doPageLeave(t){var o;return this.gr(t,(o=this.dr)==null?void 0:o.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,o){var n=this.dr;if(!n)return{$pageview_id:o};var r={$pageview_id:o,$prev_pageview_id:n.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:l,lastScrollY:c,maxScrollY:d,maxContentHeight:m,lastContentY:h,maxContentY:f}=i;if(!(ze(l)||ze(c)||ze(d)||ze(m)||ze(h)||ze(f))){l=Math.ceil(l),c=Math.ceil(c),d=Math.ceil(d),m=Math.ceil(m),h=Math.ceil(h),f=Math.ceil(f);var g=l>1?Ta(c/l,0,1,Fe):1,v=l>1?Ta(d/l,0,1,Fe):1,y=m>1?Ta(h/m,0,1,Fe):1,S=m>1?Ta(f/m,0,1,Fe):1;r=To(r,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:g,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:f,$prev_pageview_max_content_percentage:S})}}return n.pathname&&(r.$prev_pageview_pathname=n.pathname),n.timestamp&&(r.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),r}}var Jie={[T4]:{exposure:"hidden"},[Od]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Id]:{exposure:"hidden"},[X_]:{exposure:"event"},[ew]:{exposure:"hidden"},[tw]:{exposure:"event"},[ow]:{exposure:"hidden"},[nw]:{exposure:"event"},[rw]:{exposure:"event"},[Cx]:{exposure:"event"},[aw]:{exposure:"hidden"},[iw]:{exposure:"event"},[Md]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[_g]:{exposure:"hidden"},[xx]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[Ic]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Do(e))return{};for(var t={},o=Object.keys(e),n=0;o.length>n;n++)t["$feature/"+o[n]]=e[o[n]];return t}},[Mp]:{exposure:"event"},[Ld]:{exposure:"hidden"},[sw]:{exposure:"hidden"},[lw]:{exposure:"event"},[cw]:{exposure:"event"},[ri]:{exposure:"event"},[Ec]:{exposure:"hidden"},[Nd]:{exposure:"hidden"},[Xs]:{exposure:"hidden"},[uw]:{exposure:"hidden"},[dw]:{exposure:"event"},[Lp]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[qd]:{exposure:"hidden"},[mw]:{exposure:"hidden"},[fw]:{exposure:"hidden"},[wg]:{exposure:"hidden"},[ta]:{exposure:"hidden"},[hw]:{exposure:"hidden"},[pw]:{exposure:"hidden"},[gw]:{exposure:"hidden"},[vw]:{exposure:"hidden"},[Cg]:{exposure:"hidden"},[xg]:{exposure:"hidden"},[P4]:{exposure:"event"},[R4]:{exposure:"event"},[A4]:{exposure:"event"},[k4]:{exposure:"event"},[O4]:{exposure:"event"},[I4]:{exposure:"event"},[M4]:{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"}},Xie=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Rg=e=>{var t=Ne?.createElement("a");return ze(t)?null:(t.href=e,t)},Ag=function(e,t){for(var o,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),r=0;n.length>r;r++){var i=n[r].split("=");if(i[0]===t){o=i;break}}if(!Ot(o)||2>o.length)return"";var l=o[1];try{l=decodeURIComponent(l)}catch{Fe.error("Skipping decoding for malformed query param: "+l)}return l.replace(/\+/g," ")},mm=function(e,t,o){if(!e||!t||!t.length)return e;for(var n=e.split("#"),r=n[1],i=(n[0]||"").split("?"),l=i[1],c=i[0],d=(l||"").split("&"),m=[],h=0;d.length>h;h++){var f=d[h].split("=");Ot(f)&&(t.includes(f[0])?m.push(f[0]+"="+o):m.push(d[h]))}var g=c;return l!=null&&(g+="?"+m.join("&")),r!=null&&(g+="#"+r),g},kg=function(e,t){var o=e.match(new RegExp(t+"=([^&]*)"));return o?o[1]:null},vp="https?://(.*)",tu=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],ese=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...tu],fm="<masked>",tse=["li_fat_id"];function z4(e,t,o){if(!Ne)return{};var n,r=t?[...tu,...o||[]]:[],i=j4(mm(Ne.URL,r,fm),e),l=(n={},mo(tse,(function(c){var d=Ca.O(c);n[c]=d||null})),n);return To(l,i)}function j4(e,t){var o=ese.concat(t||[]),n={};return mo(o,(function(r){var i=Ag(e,r);n[r]=i||null})),n}function U4(e){var t=(function(i){return i?i.search(vp+"google.([^/?]*)")===0?"google":i.search(vp+"bing.com")===0?"bing":i.search(vp+"yahoo.com")===0?"yahoo":i.search(vp+"duckduckgo.com")===0?"duckduckgo":null:null})(e),o=t!="yahoo"?"q":"p",n={};if(!yi(t)){n.$search_engine=t;var r=Ne?Ag(Ne.referrer,o):"";r.length&&(n.ph_keyword=r)}return n}function SO(){return navigator.language||navigator.userLanguage}var Dg="$direct";function $4(){return Ne?.referrer||Dg}function q4(e,t){var o=e?[...tu,...t||[]]:[],n=pn?.href.substring(0,1e3);return{r:$4().substring(0,1e3),u:n?mm(n,o,fm):void 0}}function V4(e){var t,{r:o,u:n}=e,r={$referrer:o,$referring_domain:o==null?void 0:o==Dg?Dg:(t=Rg(o))==null?void 0:t.host};if(n){r.$current_url=n;var i=Rg(n);r.$host=i?.host,r.$pathname=i?.pathname;var l=j4(n);To(r,l)}if(o){var c=U4(o);To(r,c)}return r}function H4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function ose(){try{return new Date().getTimezoneOffset()}catch{return}}var nse=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class wS{constructor(t,o){this.Bt=t,this.props={},this.mr=!1,this.yr=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.nr=this.br(t),this.load(),t.debug&&Fe.info("Persistence loaded",t.persistence,Ie({},this.props)),this.update_config(t,t,o),this.save()}isDisabled(){return!!this._r}br(t){nse.indexOf(t.persistence.toLowerCase())===-1&&(Fe.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var o=(function(r){r===void 0&&(r=[]);var i=[...Gie,...r];return Ie({},yo,{Z(l){try{var c={};try{c=Ca.Z(l)||{}}catch{}var d=To(c,JSON.parse(yo.O(l)||"{}"));return yo.M(l,d),d}catch{}return null},M(l,c,d,m,h,f){try{yo.M(l,c,void 0,void 0,f);var g={};i.forEach((v=>{c[v]&&(g[v]=c[v])})),Object.keys(g).length&&Ca.M(l,g,d,m,h,f)}catch(v){yo.B(v)}},F(l,c){try{pe?.localStorage.removeItem(l),Ca.F(l,c)}catch(d){yo.B(d)}}})})(t.cookie_persisted_properties||[]),n=t.persistence.toLowerCase();return n==="localstorage"&&yo.R()?yo:n==="localstorage+cookie"&&o.R()?o:n==="sessionstorage"&&gn.R()?gn:n==="memory"?Kie:n==="cookie"?Ca:o.R()?o:Ca}wr(t){var o=t??this.Bt.feature_flag_cache_ttl_ms;if(!o||0>=o)return!1;var n=this.props[wg];return!n||typeof n!="number"||Date.now()-n>o}properties(){var t={};return mo(this.props,((o,n)=>{var r=(i=>{var l=Jie[i];if(l)return l;for(var[c,d]of Xie)if(i.indexOf(c)===0)return d})(n);if(r?.exposure==="derived"){if(r.shouldSkipFromEventProperties!=null&&r.shouldSkipFromEventProperties(o,n===Ic?()=>this.wr():()=>!1))return;r.transformToEventProperties&&To(t,r.transformToEventProperties(o))}else r&&r.exposure!=="event"||(t[n]=o)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=To({},t))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(t,o,n){if(Do(t)){ze(o)&&(o="None"),this.Ir=ze(n)?this.kr:n;var r=!1;if(mo(t,((i,l)=>{this.props.hasOwnProperty(l)&&this.props[l]!==o||(this.Tr(l,i),r=!0)})),r)return this.save(),!0}return!1}register(t,o){if(Do(t)){this.Ir=ze(o)?this.kr:o;var n=!1;if(mo(t,((r,i)=>{t.hasOwnProperty(i)&&this.props[i]!==r&&(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=z4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);Oc(Tx(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=Ne?.referrer)?U4(t):{})}update_referrer_info(){var t;this.register_once({$referrer:$4(),$referring_domain:Ne!=null&&Ne.referrer&&((t=Rg(Ne.referrer))==null?void 0:t.host)||Dg},void 0)}set_initial_person_info(){this.props[gw]||this.props[vw]||this.register_once({[Cg]:q4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};mo([vw,gw],(l=>{var c=this.props[l];c&&mo(c,(function(d,m){t["$initial_"+W_(m)]=d}))}));var o,n,r=this.props[Cg];if(r){var i=(o=V4(r),n={},mo(o,(function(l,c){n["$initial_"+W_(c)]=l})),n);To(t,i)}return t}safe_merge(t){return mo(this.props,(function(o,n){n in t||(t[n]=o)})),t}update_config(t,o,n){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==o.persistence||!((l,c)=>{if(l.length!==c.length)return!1;var d=[...l].sort(),m=[...c].sort();return d.every(((h,f)=>h===m[f]))})(t.cookie_persisted_properties||[],o.cookie_persisted_properties||[])){var r=this.br(t),i=this.props;this.clear(),this.nr=r,this.props=i,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,o){var n=this.props[Id]||{};n[t]=o,this.Tr(Id,n),this.save()}remove_event_timer(t){var o=this.props[Id]||{},n=o[t];return ze(n)||(delete o[t],this.Tr(Id,o),this.save()),n}get_property(t){return this.props[t]}set_property(t,o){this.Tr(t,o),this.save()}Tr(t,o){this.props[t]=o}Ar(t){delete this.props[t]}}var bd={Activation:"events",Cancellation:"cancelEvents"},CS={Popover:"popover",API:"api",Widget:"widget"},Fd={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},xS={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},yw={Popover:"popover",Inline:"inline"},rse={SHOWN:"product tour shown"},_O={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},wO=go("[RateLimiter]");class ase{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=o=>{var n=o.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((r=>{wO.info((r||"events")+" is quota limited."),this.serverLimits[r]=new Date().getTime()+6e4}))}catch(r){return void wO.warn('could not rate limit - continuing. Error: "'+r?.message+'"',{text:n})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var o,n,r;t===void 0&&(t=!1);var{captureEventsBurstLimit:i,captureEventsPerSecond:l}=this,c=new Date().getTime(),d=(o=(n=this.instance.persistence)==null?void 0:n.get_property(pw))!==null&&o!==void 0?o:{tokens:i,last:c};d.tokens+=(c-d.last)/1e3*l,d.last=c,d.tokens>i&&(d.tokens=i);var m=1>d.tokens;return m||t||(d.tokens=Math.max(0,d.tokens-1)),!m||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+l+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=m,(r=this.instance.persistence)==null||r.set_property(pw,d),{isRateLimited:m,remainingTokens:d.tokens}}isServerRateLimited(t){var o=this.serverLimits[t||"events"]||!1;return o!==!1&&new Date().getTime()<o}}var yd=go("[RemoteConfig]");class G4{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Ze._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var o,n;(o=Ze.__PosthogExtensions__)!=null&&o.loadExternalDependency?(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(o){t(o.json)}})}load(){try{if(this.remoteConfig)return yd.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void yd.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return yd.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((o=>{this.Nr(o),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){yd.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||Ne?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var o=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;o!==0&&(this.Or=setInterval((()=>{this.refresh()}),o))}}Nr(t){var o;t||yd.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(o=this._instance.featureFlags)==null||o.ensureFlagsLoaded())}}var ya={GZipJS:"gzip-js",Base64:"base64"},jr=Uint8Array,tr=Uint16Array,ou=Uint32Array,Px=new jr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rx=new jr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),CO=new jr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),K4=function(e,t){for(var o=new tr(31),n=0;31>n;++n)o[n]=t+=1<<e[n-1];var r=new ou(o[30]);for(n=1;30>n;++n)for(var i=o[n];o[n+1]>i;++i)r[i]=i-o[n]<<5|n;return[o,r]},W4=K4(Px,2),Sw=W4[1];W4[0][28]=258,Sw[258]=28;for(var xO=K4(Rx,0)[1],Y4=new tr(32768),fo=0;32768>fo;++fo){var Sc=(43690&fo)>>>1|(21845&fo)<<1;Y4[fo]=((65280&(Sc=(61680&(Sc=(52428&Sc)>>>2|(13107&Sc)<<2))>>>4|(3855&Sc)<<4))>>>8|(255&Sc)<<8)>>>1}var Vd=function(e,t,o){for(var n=e.length,r=0,i=new tr(t);n>r;++r)++i[e[r]-1];var l,c=new tr(t);for(r=0;t>r;++r)c[r]=c[r-1]+i[r-1]<<1;for(l=new tr(n),r=0;n>r;++r)l[r]=Y4[c[e[r]-1]++]>>>15-e[r];return l},fl=new jr(288);for(fo=0;144>fo;++fo)fl[fo]=8;for(fo=144;256>fo;++fo)fl[fo]=9;for(fo=256;280>fo;++fo)fl[fo]=7;for(fo=280;288>fo;++fo)fl[fo]=8;var Og=new jr(32);for(fo=0;32>fo;++fo)Og[fo]=5;var ise=Vd(fl,9),sse=Vd(Og,5),Z4=function(e){return(e/8>>0)+(7&e&&1)},Q4=function(e,t,o){(o==null||o>e.length)&&(o=e.length);var n=new(e instanceof tr?tr:e instanceof ou?ou:jr)(o-t);return n.set(e.subarray(t,o)),n},oi=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8},Sd=function(e,t,o){var n=t/8>>0;e[n]|=o<<=7&t,e[n+1]|=o>>>8,e[n+2]|=o>>>16},ES=function(e,t){for(var o=[],n=0;e.length>n;++n)e[n]&&o.push({s:n,f:e[n]});var r=o.length,i=o.slice();if(!r)return[new jr(0),0];if(r==1){var l=new jr(o[0].s+1);return l[o[0].s]=1,[l,1]}o.sort((function(T,A){return T.f-A.f})),o.push({s:-1,f:25001});var c=o[0],d=o[1],m=0,h=1,f=2;for(o[0]={s:-1,f:c.f+d.f,l:c,r:d};h!=r-1;)c=o[o[f].f>o[m].f?m++:f++],d=o[m!=h&&o[f].f>o[m].f?m++:f++],o[h++]={s:-1,f:c.f+d.f,l:c,r:d};var g=i[0].s;for(n=1;r>n;++n)i[n].s>g&&(g=i[n].s);var v=new tr(g+1),y=_w(o[h-1],v,0);if(y>t){n=0;var S=0,x=y-t,_=1<<x;for(i.sort((function(T,A){return v[A.s]-v[T.s]||T.f-A.f}));r>n;++n){var C=i[n].s;if(t>=v[C])break;S+=_-(1<<y-v[C]),v[C]=t}for(S>>>=x;S>0;){var P=i[n].s;t>v[P]?S-=1<<t-v[P]++-1:++n}for(;n>=0&&S;--n){var E=i[n].s;v[E]==t&&(--v[E],++S)}y=t}return[new jr(v),y]},_w=function(e,t,o){return e.s==-1?Math.max(_w(e.l,t,o+1),_w(e.r,t,o+1)):t[e.s]=o},EO=function(e){for(var t=e.length;t&&!e[--t];);for(var o=new tr(++t),n=0,r=e[0],i=1,l=function(d){o[n++]=d},c=1;t>=c;++c)if(e[c]==r&&c!=t)++i;else{if(!r&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(r),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(r);i=1,r=e[c]}return[o.subarray(0,n),t]},_d=function(e,t){for(var o=0,n=0;t.length>n;++n)o+=e[n]*t[n];return o},ww=function(e,t,o){var n=o.length,r=Z4(t+2);e[r]=255&n,e[r+1]=n>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var i=0;n>i;++i)e[r+i+4]=o[i];return 8*(r+4+n)},TO=function(e,t,o,n,r,i,l,c,d,m,h){oi(t,h++,o),++r[256];for(var f=ES(r,15),g=f[0],v=f[1],y=ES(i,15),S=y[0],x=y[1],_=EO(g),C=_[0],P=_[1],E=EO(S),T=E[0],A=E[1],k=new tr(19),O=0;C.length>O;++O)k[31&C[O]]++;for(O=0;T.length>O;++O)k[31&T[O]]++;for(var N=ES(k,7),q=N[0],B=N[1],$=19;$>4&&!q[CO[$-1]];--$);var U,W,ae,H,Z=m+5<<3,te=_d(r,fl)+_d(i,Og)+l,le=_d(r,g)+_d(i,S)+l+14+3*$+_d(k,q)+(2*k[16]+3*k[17]+7*k[18]);if(te>=Z&&le>=Z)return ww(t,h,e.subarray(d,d+m));if(oi(t,h,1+(te>le)),h+=2,te>le){U=Vd(g,v),W=g,ae=Vd(S,x),H=S;var Q=Vd(q,B);for(oi(t,h,P-257),oi(t,h+5,A-1),oi(t,h+10,$-4),h+=14,O=0;$>O;++O)oi(t,h+3*O,q[CO[O]]);h+=3*$;for(var M=[C,T],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)oi(t,h,Q[L=31&V[O]]),h+=q[L],L>15&&(oi(t,h,V[O]>>>5&127),h+=V[O]>>>12)}}else U=ise,W=fl,ae=sse,H=Og;for(O=0;c>O;++O)if(n[O]>255){var L;Sd(t,h,U[257+(L=n[O]>>>18&31)]),h+=W[L+257],L>7&&(oi(t,h,n[O]>>>23&31),h+=Px[L]);var j=31&n[O];Sd(t,h,ae[j]),h+=H[j],j>3&&(Sd(t,h,n[O]>>>5&8191),h+=Rx[j])}else Sd(t,h,U[n[O]]),h+=W[n[O]];return Sd(t,h,U[256]),h+W[256]},lse=new ou([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),cse=(function(){for(var e=new ou(256),t=0;256>t;++t){for(var o=t,n=9;--n;)o=(1&o&&3988292384)^o>>>1;e[t]=o}return e})(),TS=function(e,t,o){for(;o;++t)e[t]=o,o>>>=8};function use(e,t){t===void 0&&(t={});var o=(function(){var f=4294967295;return{p(g){for(var v=f,y=0;g.length>y;++y)v=cse[255&v^g[y]]^v>>>8;f=v},d(){return 4294967295^f}}})(),n=e.length;o.p(e);var r,i,l,c,d,m=(c=10+((r=t).filename&&r.filename.length+1||0),d=8,(function(f,g,v,y,S,x){var _=f.length,C=new jr(y+_+5*(1+Math.floor(_/7e3))+S),P=C.subarray(y,C.length-S),E=0;if(!g||8>_)for(var T=0;_>=T;T+=65535){var A=T+65535;_>A?E=ww(P,E,f.subarray(T,A)):(P[T]=!0,E=ww(P,E,f.subarray(T,_)))}else{for(var k=lse[g-1],O=k>>>13,N=8191&k,q=(1<<v)-1,B=new tr(32768),$=new tr(q+1),U=Math.ceil(v/3),W=2*U,ae=function(Ue){return(f[Ue]^f[Ue+1]<<U^f[Ue+2]<<W)&q},H=new ou(25e3),Z=new tr(288),te=new tr(32),le=0,Q=0,M=(T=0,0),G=0,V=0;_>T;++T){var L=ae(T),j=32767&T,J=$[L];if(B[j]=J,$[L]=j,T>=G){var me=_-T;if((le>7e3||M>24576)&&me>423){E=TO(f,P,0,H,Z,te,Q,M,V,T-V,E),M=le=Q=0,V=T;for(var he=0;286>he;++he)Z[he]=0;for(he=0;30>he;++he)te[he]=0}var xe=2,Be=0,Y=N,ne=j-J&32767;if(me>2&&L==ae(T-ne))for(var ve=Math.min(O,me)-1,ie=Math.min(32767,T),we=Math.min(258,me);ie>=ne&&--Y&&j!=J;){if(f[T+xe]==f[T+xe-ne]){for(var Pe=0;we>Pe&&f[T+Pe]==f[T+Pe-ne];++Pe);if(Pe>xe){if(xe=Pe,Be=ne,Pe>ve)break;var tt=Math.min(ne,Pe-2),nt=0;for(he=0;tt>he;++he){var $e=T-ne+he+32768&32767,Qe=$e-B[$e]+32768&32767;Qe>nt&&(nt=Qe,J=$e)}}}ne+=(j=J)-(J=B[j])+32768&32767}if(Be){H[M++]=268435456|Sw[xe]<<18|xO[Be];var Oe=31&Sw[xe],De=31&xO[Be];Q+=Px[Oe]+Rx[De],++Z[257+Oe],++te[De],G=T+xe,++le}else H[M++]=f[T],++Z[f[T]]}}E=TO(f,P,!0,H,Z,te,Q,M,V,T-V,E)}return Q4(C,0,y+Z4(E)+S)})(i=e,(l=t).level==null?6:l.level,l.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+l.mem,c,d)),h=m.length;return(function(f,g){var v=g.filename;if(f[0]=31,f[1]=139,f[2]=8,f[8]=2>g.level?4:g.level==9?2:0,f[9]=3,g.mtime!=0&&TS(f,4,Math.floor(new Date(g.mtime||Date.now())/1e3)),v){f[3]=8;for(var y=0;v.length>=y;++y)f[y+10]=v.charCodeAt(y)}})(m,t),TS(m,h-8,o.d()),TS(m,h-4,n),m}var dse=!!G_||!!H_,J4="text/plain",PO=!1,_v=function(e,t,o){var n;o===void 0&&(o=!0);var[r,i]=e.split("?"),l=Ie({},t),c=(n=i?.split("&").map((m=>{var h,[f,g]=m.split("="),v=o&&(h=l[f])!==null&&h!==void 0?h:g;return delete l[f],f+"="+v})))!==null&&n!==void 0?n:[],d=(function(m,h){var f,g;h===void 0&&(h="&");var v=[];return mo(m,(function(y,S){ze(y)||ze(S)||S==="undefined"||(f=encodeURIComponent((x=>x instanceof File)(y)?y.name:y.toString()),g=encodeURIComponent(S),v[v.length]=g+"="+f)})),v.join(h)})(l);return d&&c.push(d),r+"?"+c.join("&")},Mc=(e,t)=>JSON.stringify(e,((o,n)=>typeof n=="bigint"?n.toString():n),t),PS=e=>{if(e.tr)return e.tr;var{data:t,compression:o}=e;if(t){if(o===ya.GZipJS){var n=use((function(c,d){var m=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var h=new jr(c.length+(c.length>>>1)),f=0,g=function(x){h[f++]=x},v=0;m>v;++v){if(f+5>h.length){var y=new jr(f+8+(m-v<<1));y.set(h),h=y}var S=c.charCodeAt(v);128>S?g(S):2048>S?(g(192|S>>>6),g(128|63&S)):S>55295&&57344>S?(g(240|(S=65536+(1047552&S)|1023&c.charCodeAt(++v))>>>18),g(128|S>>>12&63),g(128|S>>>6&63),g(128|63&S)):(g(224|S>>>12),g(128|S>>>6&63),g(128|63&S))}return Q4(h,0,f)})(Mc(t)),{mtime:0});return{contentType:J4,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(o===ya.Base64){var r=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,m)=>String.fromCharCode(parseInt(m,16)))))})(Mc(t)),i=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Mc(c)))(r);return{contentType:"application/x-www-form-urlencoded",body:i,estimatedSize:new Blob([i]).size}}var l=Mc(t);return{contentType:"application/json",body:l,estimatedSize:new Blob([l]).size}}},mse=(function(){var e=Nr((function*(t){var o=Mc(t.data),n=yield(function(i,l,c){return K_.apply(this,arguments)})(o,Bn.DEBUG,{rethrow:!0});if(!n)return t;var r=yield n.arrayBuffer();return Ie({},t,{tr:{contentType:J4,body:r,estimatedSize:r.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),RO=(e,t)=>_v(e,{_:new Date().getTime().toString(),ver:Bn.JS_SDK_VERSION,compression:t}),Fp=[];H_&&Fp.push({transport:"fetch",method(e){var t,o,{contentType:n,body:r,estimatedSize:i}=(t=PS(e))!==null&&t!==void 0?t:{},l=new Headers;mo(e.headers,(function(h,f){l.append(f,h)})),n&&l.append("Content-Type",n);var c=e.url,d=null;if(aO){var m=new aO;d={signal:m.signal,timeout:setTimeout((()=>m.abort()),e.timeout)}}H_(c,Ie({method:e?.method||"GET",headers:l,keepalive:e.method==="POST"&&52428.8>(i||0),body:r,signal:(o=d)==null?void 0:o.signal},e.fetchOptions)).then((h=>h.text().then((f=>{var g={statusCode:h.status,text:f};if(h.status===200)try{g.json=JSON.parse(f)}catch(v){Fe.error(v)}e.callback==null||e.callback(g)})))).catch((h=>{Fe.error(h),e.callback==null||e.callback({statusCode:0,error:h})})).finally((()=>d?clearTimeout(d.timeout):null))}}),G_&&Fp.push({transport:"XHR",method(e){var t,o=new G_;o.open(e.method||"GET",e.url,!0);var{contentType:n,body:r}=(t=PS(e))!==null&&t!==void 0?t:{};mo(e.headers,(function(i,l){o.setRequestHeader(l,i)})),n&&o.setRequestHeader("Content-Type",n),e.timeout&&(o.timeout=e.timeout),e.disableXHRCredentials||(o.withCredentials=!0),o.onreadystatechange=()=>{if(o.readyState===4){var i={statusCode:o.status,text:o.responseText};if(o.status===200)try{i.json=JSON.parse(o.responseText)}catch{}e.callback==null||e.callback(i)}},o.send(r)}}),vr!=null&&vr.sendBeacon&&Fp.push({transport:"sendBeacon",method(e){var t=_v(e.url,{beacon:"1"});try{var o,{contentType:n,body:r}=(o=PS(e))!==null&&o!==void 0?o:{};if(!r)return;var i=r instanceof Blob?r:new Blob([r],{type:n});vr.sendBeacon(t,i)}catch{}}});var Cw=3e3;class fse{constructor(t,o){this.Pr=!0,this.Lr=[],this.Dr=Ta(o?.flush_interval_ms||Cw,250,5e3,Fe.createLogger("flush interval"),Cw),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},o=Object.values(t);[...o.filter((n=>n.url.indexOf("/e")===0)),...o.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Br(Ie({},n,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var t=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var o=this.Zr(),n=function(){var i=o[r],l=new Date().getTime();i.data&&Ot(i.data)&&mo(i.data,(c=>{c.offset=Math.abs(c.timestamp-l),delete c.timestamp})),t.Br(i)};for(var r in o)n()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return mo(this.Lr,(o=>{var n,r=o,i=(r?r.batchKey:null)||r.url;ze(t[i])&&(t[i]=Ie({},r,{data:[]})),(n=t[i].data)==null||n.push(r.data)})),this.Lr=[],t}}var hse=["retriesPerformedSoFar"];class pse{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,this.Lr=[],this.zr=!0,!ze(pe)&&"onLine"in pe.navigator&&(this.zr=pe.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Vo(pe,"online",this.Ur),Vo(pe,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(t){var{retriesPerformedSoFar:o}=t,n=t4(t,hse);xc(o)&&(n.url=_v(n.url,{retry_count:o})),this._instance._send_request(Ie({},n,{callback:r=>{r.statusCode===200||r.statusCode>=400&&500>r.statusCode||(o??0)>=10?n.callback==null||n.callback(r):this.Wr(Ie({retriesPerformedSoFar:o},n))}}))}Wr(t){var o=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=o+1;var n=(function(l){var c=3e3*Math.pow(2,l),d=c/2,m=Math.min(18e5,c),h=Math.random()-.5;return Math.ceil(m+h*(m-d))})(o),r=Date.now()+n;this.Lr.push({retryAt:r,requestOptions:t});var i="Enqueued failed request for retry in "+n;navigator.onLine||(i+=" (Browser is offline)"),Fe.warn(i),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var t=Date.now(),o=[],n=this.Lr.filter((i=>t>i.retryAt||(o.push(i),!1)));if(this.Lr=o,n.length>0)for(var{requestOptions:r}of n)this.retriableRequest(r)}unload(){for(var{requestOptions:t}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,ze(pe)||(this.Ur&&(pe.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(pe.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Ie({},t,{transport:"sendBeacon"}))}catch(o){Fe.error(o)}this.Lr=[]}}class gse{constructor(t){this.Kr=()=>{var o,n,r,i;this.Qr||(this.Qr={});var l=this.scrollElement(),c=this.scrollY(),d=l?Math.max(0,l.scrollHeight-l.clientHeight):0,m=c+(l?.clientHeight||0),h=l?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(o=this.Qr.maxScrollY)!==null&&o!==void 0?o:0),this.Qr.maxScrollHeight=Math.max(d,(n=this.Qr.maxScrollHeight)!==null&&n!==void 0?n:0),this.Qr.lastContentY=m,this.Qr.maxContentY=Math.max(m,(r=this.Qr.maxContentY)!==null&&r!==void 0?r:0),this.Qr.maxContentHeight=Math.max(h,(i=this.Qr.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}startMeasuringScrollPosition(){Vo(pe,"scroll",this.Kr,{capture:!0}),Vo(pe,"scrollend",this.Kr,{capture:!0}),Vo(pe,"resize",this.Kr)}scrollElement(){if(!this.ei)return pe?.document.documentElement;var t=Ot(this.ei)?this.ei:[this.ei];for(var o of t){var n=pe?.document.querySelector(o);if(n)return n}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return pe&&(pe.scrollY||pe.pageYOffset||pe.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return pe&&(pe.scrollX||pe.pageXOffset||pe.document.documentElement.scrollLeft)||0}}var vse=e=>q4(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class AO{constructor(t,o,n,r){this.ti=i=>{var l=this.ri();if(!l||l.sessionId!==i){var c={sessionId:i,props:this.ii(this._instance)};this.ni.register({[hw]:c})}},this._instance=t,this.si=o,this.ni=n,this.ii=r||vse,this.si.onSessionId(this.ti)}ri(){return this.ni.props[hw]}getSetOnceProps(){var t,o=(t=this.ri())==null?void 0:t.props;return o?"r"in o?V4(o):{$referring_domain:o.referringDomain,$pathname:o.initialPathName,utm_source:o.utm_source,utm_campaign:o.utm_campaign,utm_medium:o.utm_medium,utm_content:o.utm_content,utm_term:o.utm_term}:{}}getSessionProps(){var t={};return mo(Tx(this.getSetOnceProps()),((o,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+W_(n)]=o})),t}}class Ax{constructor(){this.oi={}}on(t,o){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(o),()=>{this.oi[t]=this.oi[t].filter((n=>n!==o))}}emit(t,o){for(var n of this.oi[t]||[])n(o);for(var r of this.oi["*"]||[])r(t,o)}}var RS=go("[SessionId]");class kO{on(t,o){return this.ai.on(t,o)}constructor(t,o,n){var r;if(this.li=[],this.ui=void 0,this.ai=new Ax,this.hi=(m,h)=>!(!xc(m)||!xc(h))&&Math.abs(m-h)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===si)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=o||ns,this.fi=n||ns;var i=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Ta(this.Bt.session_idle_timeout_seconds||1800,60,36e3,RS.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+i+"_window_id",this.mi="ph_"+i+"_primary_window_exists",this.yi()){var l=gn.Z(this.gi),c=gn.Z(this.mi);l&&!c?this.ci=l:gn.F(this.gi),gn.M(this.mi,!0)}if((r=this.Bt.bootstrap)!=null&&r.sessionID)try{var d=(m=>{var h=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(h.length!==32)throw new Error("Not a valid UUID");if(h[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(h.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(m){RS.error("Invalid sessionID in bootstrap",m)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ze(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((o=>o!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&gn.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&gn.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?gn.Z(this.gi):null}bi(t,o,n){t===this.di&&o===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=o,this.di=t,this.ni.register({[_g]:[o,t,n]}))}Si(){var t=this.ni.props[_g];return Ot(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&pe&&(pe.removeEventListener(Tg,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&gn.F(this.mi)},Vo(pe,Tg,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,o){if(t===void 0&&(t=!1),o===void 0&&(o=null),this.Bt.cookieless_mode===si)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=o||new Date().getTime(),[r,i,l]=this.Si(),c=this.Ci(),d=xc(l)&&Math.abs(n-l)>864e5,m=!1,h=!i,f=!h&&!t&&this.hi(n,r);h||f||d?(i=this.vi(),c=this.fi(),RS.info("new session ID generated",{sessionId:i,windowId:c,changeReason:{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}}),l=n,m=!0):c||(c=this.fi(),m=!0);var g=xc(r)&&t&&!d?r:n,v=xc(l)?l:new Date().getTime();return this.Ii(c),this.bi(i,g,v),t||this.pi(),m&&this.li.forEach((y=>y(i,c,m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0))),{sessionId:i,windowId:c,sessionStartTimestamp:v,changeReason:m?{noSessionId:h,activityTimeout:f,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:r}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var o=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:o})}}),1.1*this.sessionTimeoutMs)}}var X4=function(e,t){if(!e)return!1;var o=e.userAgent;if(o&&lO(o,t))return!0;try{var n=e?.userAgentData;if(n!=null&&n.brands&&n.brands.some((r=>lO(r?.brand,t))))return!0}catch{}return!!e.webdriver},Ig=function(e,t){if(!(function(o){try{new RegExp(o)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function DO(e,t,o){return Mc({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:o})}var eB={exact:(e,t)=>t.some((o=>e.some((n=>o===n)))),is_not:(e,t)=>t.every((o=>e.every((n=>o!==n)))),regex:(e,t)=>t.some((o=>e.some((n=>Ig(o,n))))),not_regex:(e,t)=>t.every((o=>e.every((n=>!Ig(o,n))))),icontains:(e,t)=>t.map(bp).some((o=>e.map(bp).some((n=>o.includes(n))))),not_icontains:(e,t)=>t.map(bp).every((o=>e.map(bp).every((n=>!o.includes(n))))),gt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n>parseFloat(r)))})),lt:(e,t)=>t.some((o=>{var n=parseFloat(o);return!isNaN(n)&&e.some((r=>n<parseFloat(r)))}))},bp=e=>e.toLowerCase();function tB(e,t){return!e||Object.entries(e).every((o=>{var[n,r]=o,i=t?.[n];if(ze(i)||yi(i))return!1;var l=[String(i)],c=eB[r.operator];return!!c&&c(r.values,l)}))}var xw="custom",OO="i.posthog.com",bse=/^\/static\//;class yse{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,o=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return o||(o=this.apiHost.replace("."+OO,".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":xw),this.ki[this.apiHost]}Ti(t){var o=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof o=="string"&&bse.test(t))return o.trim().replace(/\/$/,"")||void 0}endpointFor(t,o){if(o===void 0&&(o=""),o&&(o=o[0]==="/"?o:"/"+o),t==="ui")return this.uiHost+o;if(t==="flags")return this.flagsApiHost+o;if(t==="assets"){var n=this.Ti(o);if(n)return""+n+o}if(this.region===xw)return this.apiHost+o;var r=OO+o;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Jt=go("[Surveys]"),Ew="seenSurvey_",Sse=[CS.Popover,CS.Widget,CS.API],_se={ignoreConditions:!1,ignoreDelay:!1,displayType:yw.Popover},wse=go("[PostHog ExternalIntegrations]"),Cse={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class xse{constructor(t){this._instance=t}ur(t,o){var n;(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,(r=>{if(r)return wse.error("failed to load script",r);o()}))}startIfEnabledOrStop(){var t=this,o=function(l){var c,d,m;!r||(c=Ze.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[l]||t.ur(Cse[l],(()=>{var h;(h=Ze.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[l])==null||h.start(t._instance)})),!r&&(d=Ze.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[l]&&((m=Ze.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[l])==null||m.stop())};for(var[n,r]of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;o(n)}}}var _c,Hd={},AS=0,Tw=()=>{},IO='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',wd="Surveys module not available",MO="sanitize_properties is deprecated. Use before_send instead",oB="Invalid value for property_denylist config: ",Pc="posthog",nB=!dse&&Qn?.indexOf("MSIE")===-1&&Qn?.indexOf("Mozilla")===-1,LO=e=>{var t;return Ie({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:Uie(Ne?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:Tw,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:pn&&So(pn?.search)&&pn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(pe==null||(t=pe.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(o){Fe.error("Bad HTTP status: "+o.statusCode+" "+o.text)},get_device_id:o=>o,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:bw,before_send:void 0,request_queue_config:{flush_interval_ms:Cw},error_tracking:{},_onCapture:Tw,__preview_eager_load_replay:!1},(o=>({rageclick:!o||"2025-11-30">o||{content_ignorelist:!0},capture_pageview:!o||"2025-05-24">o||"history_change",session_recording:o&&o>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:o&&o>="2026-01-30"?"head":"body",internal_or_test_user_hostname:o&&o>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},Ese=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],NO=e=>{var t={};for(var[o,n]of Ese)ze(e[o])||(t[n]=e[o]);var r=To({},t,e);return Ot(e.property_blacklist)&&(ze(e.property_denylist)?r.property_denylist=e.property_blacklist:Ot(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Fe.error(oB+e.property_denylist)),r};class Tse{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Fe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class Fr{Ei(t,o){if(t){var n=this.Ri.indexOf(t);n!==-1&&this.Ri.splice(n,1)}return this.Ri.push(o),o.initialize==null||o.initialize(),o}Ni(){return this.config.cookieless_mode===si||this.config.cookieless_mode===el&&this.consent.isRejected()}get decideEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,o;return(t=(o=this.featureFlags)==null?void 0:o.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Tse,this.Mi=!1,this.version=Bn.LIB_VERSION,this.Fi=new Ax,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=LO(),this.SentryIntegration=Qie,this.sentryIntegration=n=>(function(r,i){var l=B4(r,i);return{name:F4,processEvent:c=>l(c)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new gse(this),this.pageViewManager=new yO(this),this.rateLimiter=new ase(this),this.requestRouter=new yse(this),this.consent=new Wie(this),this.externalIntegrations=new xse(this);var o=(t=Fr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=o.featureFlags&&new o.featureFlags(this),this.toolbar=o.toolbar&&new o.toolbar(this),this.surveys=o.surveys&&new o.surveys(this),this.conversations=o.conversations&&new o.conversations(this),this.logs=o.logs&&new o.logs(this),this.experiments=o.experiments&&new o.experiments(this),this.exceptions=o.exceptions&&new o.exceptions(this),this.people={set:(n,r,i)=>{var l=So(n)?{[n]:r}:n;this.setPersonProperties(l),i?.({})},set_once:(n,r,i)=>{var l=So(n)?{[n]:r}:n;this.setPersonProperties(void 0,l),i?.({})}},this.on("eventCaptured",(n=>Fe.info('send "'+n?.event+'"',n)))}init(t,o,n){if(n&&n!==Pc){var r,i=(r=Hd[n])!==null&&r!==void 0?r:new Fr;return i._init(t,o,n),Hd[n]=i,Hd[Pc][n]=i,i}return this._init(t,o,n)}_init(t,o,n){var r,i;if(o===void 0&&(o={}),ze(t)||Ip(t))return Fe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},o.debug=this.Bi(o.debug),this.ji=o,this.$i=[],o.person_profiles?this.Li=o.person_profiles:o.process_person&&(this.Li=o.process_person),this.set_config(To({},LO(o.defaults),NO(o),{name:n,token:t})),this.config.on_xhr_error&&Fe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=o.disable_compression?void 0:ya.GZipJS;var l=this.qi();this.persistence=new wS(this.config,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new wS(Ie({},this.config,{persistence:"sessionStorage"}),l);var c=Ie({},this.persistence.props),d=Ie({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new fse((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new pse(this),this.__request_queue=[];var m=this.Ni();if(m||(this.sessionManager=new kO(this),this.sessionPropsManager=new AO(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Fe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(m)}),0)):(Fe.info("Initializing extensions synchronously"),this.zi(m)),Bn.DEBUG=Bn.DEBUG||this.config.debug,Bn.DEBUG&&Fe.info("Starting in debug mode",{this:this,config:o,thisC:Ie({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(r=o.bootstrap)!=null&&r.distinctID||(o.bootstrap=Ie({},o.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((i=o.bootstrap)==null?void 0:i.distinctID)!==void 0){var h=o.bootstrap.distinctID,f=this.get_distinct_id(),g=this.persistence.get_property(ta);if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===bc)this.identify(h);else if(o.bootstrap.isIdentifiedID&&f!=null&&f!==h&&g===yc)Fe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var v=this.config.get_device_id(ns()),y=o.bootstrap.isIdentifiedID?v:h;this.persistence.set_property(ta,o.bootstrap.isIdentifiedID?yc:bc),this.register({distinct_id:h,$device_id:y})}}if(m)this.register_once({distinct_id:fp,$device_id:null},"");else if(!this.get_distinct_id()){var S=this.config.get_device_id(ns());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(ta,bc)}return Vo(pe,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),o.segment?(function(x,_){var C=x.config.segment;if(!C)return _();(function(P,E){var T=P.config.segment;if(!T)return E();var A=O=>{var N=()=>O.anonymousId()||ns();P.config.get_device_id=N,O.id()&&(P.register({distinct_id:O.id(),$device_id:N()}),P.persistence.set_property(ta,yc)),E()},k=T.user();"then"in k&&ai(k.then)?k.then(A):A(k)})(x,(()=>{C.register((P=>{Promise&&Promise.resolve||_S.warn("This browser does not have Promise support, and can not use the segment integration");var E=(T,A)=>{if(!A)return T;T.event.userId||T.event.anonymousId===P.get_distinct_id()||(_S.info("No userId set, resetting PostHog"),P.reset()),T.event.userId&&T.event.userId!==P.get_distinct_id()&&(_S.info("UserId set, identifying with PostHog"),P.identify(T.event.userId));var k=P.calculateEventProperties(A,T.event.properties);return T.event.properties=Object.assign({},k,T.event.properties),T};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:T=>E(T,T.event.event),page:T=>E(T,Tc),identify:T=>E(T,yS),screen:T=>E(T,"$screen")}})(x)).then((()=>{_()}))}))})(this,(()=>this.Ui())):this.Ui(),ai(this.config._onCapture)&&this.config._onCapture!==Tw&&(Fe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&Fe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(t){var o,n,r,i,l,c,d,m=performance.now(),h=Ie({},Fr.__defaultExtensionClasses,this.config.__extensionClasses),f=[];h.featureFlags&&this.Ri.push(this.featureFlags=(o=this.featureFlags)!==null&&o!==void 0?o:new h.featureFlags(this)),h.exceptions&&this.Ri.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new h.exceptions(this)),h.historyAutocapture&&this.Ri.push(this.historyAutocapture=new h.historyAutocapture(this)),h.tracingHeaders&&this.Ri.push(new h.tracingHeaders(this)),h.siteApps&&this.Ri.push(this.siteApps=new h.siteApps(this)),h.sessionRecording&&!t&&this.Ri.push(this.sessionRecording=new h.sessionRecording(this)),this.config.disable_scroll_properties||f.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),h.autocapture&&this.Ri.push(this.autocapture=new h.autocapture(this)),h.surveys&&this.Ri.push(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new h.surveys(this)),h.logs&&this.Ri.push(this.logs=(i=this.logs)!==null&&i!==void 0?i:new h.logs(this)),h.conversations&&this.Ri.push(this.conversations=(l=this.conversations)!==null&&l!==void 0?l:new h.conversations(this)),h.productTours&&this.Ri.push(this.productTours=new h.productTours(this)),h.heatmaps&&this.Ri.push(this.heatmaps=new h.heatmaps(this)),h.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new h.webVitalsAutocapture(this)),h.exceptionObserver&&this.Ri.push(this.exceptionObserver=new h.exceptionObserver(this)),h.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new h.deadClicksAutocapture(this,Zie)),h.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new h.toolbar(this)),h.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new h.experiments(this)),this.Ri.forEach((g=>{g.initialize&&f.push((()=>{g.initialize==null||g.initialize()}))})),f.push((()=>{if(this.Yi){var g=this.Yi;this.Yi=void 0,this.Nr(g)}})),this.Gi(f,m)}Gi(t,o){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-o>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,o)}),0);var n=t.shift();if(n)try{n()}catch(i){Fe.error("Error initializing extension:",i)}}var r=Math.round(performance.now()-o);this.register_for_session({[O4]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[I4]:r}),this.config.__preview_deferred_init_extensions&&Fe.info("PostHog extensions initialized ("+r+"ms)")}Nr(t){var o;if(!Ne||!Ne.body)return Fe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(t.supportedCompression,ya.GZipJS)?ya.GZipJS:Ct(t.supportedCompression,ya.Base64)?ya.Base64:void 0),(o=t.analytics)!=null&&o.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:bw}),this.Ri.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(n){Fe.critical("`loaded` function failed",n)}if(this.Xi(),this.config.internal_or_test_user_hostname&&pn!=null&&pn.hostname){var t=pn.hostname,o=this.config.internal_or_test_user_hostname;(typeof o=="string"?t===o:o.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new G4(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&hp(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,o,n,r;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(bS),(o=this.logs)==null||o.flushLogs("sendBeacon"),(n=this.Zi)==null||n.unload(),(r=this.Hi)==null||r.unload()):this.Qi()&&this.capture(bS,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(nB?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=_v(t.url,{ip:this.config.ip?1:0}),t.headers=Ie({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(o=>{var n,r,i,l=Ie({},o);l.timeout=l.timeout||6e4,l.url=RO(l.url,l.compression);var c=(n=l.transport)!==null&&n!==void 0?n:"fetch",d=Fp.filter((h=>!l.disableTransport||!h.transport||!l.disableTransport.includes(h.transport))),m=(r=(i=(function(h,f){for(var g=0;h.length>g;g++)if(h[g].transport===c)return h[g]})(d))==null?void 0:i.method)!==null&&r!==void 0?r:d[0].method;if(!m)throw new Error("No available transport method");c!=="sendBeacon"&&l.data&&l.compression===ya.GZipJS&&Qae&&!PO?mse(l).then((h=>{m(h)})).catch((h=>{if((f=>!(!f||typeof f!="object")&&("name"in f?String(f.name):"")==="NotReadableError")(h))return PO=!0,void m(Ie({},l,{compression:void 0,url:RO(o.url,void 0)}));m(l)})):m(l)})(Ie({},t,{callback:o=>{var n,r;this.rateLimiter.checkForLimiting(o),400>o.statusCode||(n=(r=this.config).on_request_error)==null||n.call(r,o),t.callback==null||t.callback(o)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){AS++;try{var o,n=[],r=[],i=[];hp(t,(c=>{c&&(Ot(o=c[0])?i.push(c):ai(c)?c.call(this):Ot(c)&&o==="alias"?n.push(c):Ot(c)&&o.indexOf("capture")!==-1&&ai(this[o])?i.push(c):r.push(c))}));var l=function(c,d){hp(c,(function(m){if(Ot(m[0])){var h=d;mo(m,(function(f){h=h[f[0]].apply(h,f.slice(1))}))}else d[m[0]].apply(d,m.slice(1))}))};l(n,this),l(r,this),l(i,this)}finally{AS--}}push(t){if(AS>0&&Ot(t)&&So(t[0])){var o=Fr.prototype[t[0]];ai(o)&&o.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,o,n){var r,i,l,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!ze(t)&&So(t)){var m=!this.config.opt_out_useragent_filter&&this._is_bot();if(!m||this.config.__preview_capture_bot_pageviews){var h=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(h==null||!h.isRateLimited){o!=null&&o.$current_url&&!So(o?.$current_url)&&(Fe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),o==null||delete o.$current_url),t!=="$exception"||n!=null&&n.en||Fe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var f=new Date,g=n?.timestamp||f,v=ns(),y={uuid:v,event:t,properties:this.calculateEventProperties(t,o||{},g,v)};t===Tc&&this.config.__preview_capture_bot_pageviews&&m&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),h&&(y.properties.$lib_rate_limit_remaining_tokens=h.remainingTokens),n?.$set&&(y.$set=n?.$set);var S,x,_,C=this.tn(n?.$set_once,t!==pO,t===yS);if(C&&(y.$set_once=C),n!=null&&n._noTruncate||(i=this.config.properties_string_max_length,l=y,c=N=>So(N)?N.slice(0,i):N,d=new Set,y=(function N(q,B){return q!==Object(q)?c?c(q):q:d.has(q)?void 0:(d.add(q),Ot(q)?($=[],hp(q,(U=>{$.push(N(U))}))):($={},mo(q,((U,W)=>{d.has(U)||($[W]=N(U))}))),$);var $})(l)),y.timestamp=g,ze(n?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=f),t===Fd.DISMISSED||t===Fd.SENT){var P=o?.[xS.SURVEY_ID],E=o?.[xS.SURVEY_ITERATION];(N=>{try{var q=(B=>(($,U)=>{var W=""+Ew+U.id;return U.current_iteration&&U.current_iteration>0&&(W=""+Ew+U.id+"_"+U.current_iteration),W})(0,B))(N);if(localStorage.getItem(q))return;localStorage.setItem(q,"true")}catch(B){Jt.error("Failed to persist survey seen state",B)}})({id:P,current_iteration:E}),y.$set=Ie({},y.$set,{[(S={id:P,current_iteration:E},x=t===Fd.SENT?"responded":"dismissed",_="$survey_"+x+"/"+S.id,S.current_iteration&&S.current_iteration>0&&(_="$survey_"+x+"/"+S.id+"/"+S.current_iteration),_)]:!0})}else t===Fd.SHOWN&&(y.$set=Ie({},y.$set,{[xS.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===rse.SHOWN){var T=o?.[_O.TOUR_TYPE];T&&(y.$set=Ie({},y.$set,{[_O.TOUR_LAST_SEEN_DATE+"/"+T]:new Date().toISOString()}))}var A=Ie({},y.properties.$set,y.$set);if(Oc(A)||this.setPersonPropertiesForFlags(A),!xt(this.config.before_send)){var k=this.rn(y);if(!k)return;y=k}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(r=n?._url)!==null&&r!==void 0?r:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}Fe.critical("This capture call is ignored due to client rate limiting.")}}else Fe.error("No event name provided to posthog.capture")}else Fe.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(o=>t(o.event,o)))}calculateEventProperties(t,o,n,r,i){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return o;var l=i?void 0:this.persistence.remove_event_timer(t),c=Ie({},o);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Ie({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!So(c.distinct_id)&&!Ur(c.distinct_id)||Ip(c.distinct_id))&&Fe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var m,h=(function(_,C){var P,E,T,A;if(!Qn)return{};var k,O,N,q,B,$,U,W,ae=_?[...tu,...C||[]]:[],[H,Z]=(function(te){for(var le=0;dO.length>le;le++){var[Q,M]=dO[le],G=Q.exec(te),V=G&&(ai(M)?M(G,te):M);if(V)return V}return["",""]})(Qn);return To(Tx({$os:H,$os_version:Z,$browser:S4(Qn,navigator.vendor),$device:mO(Qn),$device_type:(O=Qn,N={userAgentDataPlatform:(P=navigator)==null||(P=P.userAgentData)==null?void 0:P.platform,maxTouchPoints:(E=navigator)==null?void 0:E.maxTouchPoints,screenWidth:pe==null||(T=pe.screen)==null?void 0:T.width,screenHeight:pe==null||(A=pe.screen)==null?void 0:A.height,devicePixelRatio:pe?.devicePixelRatio},W=mO(O),W===i4||W===a4||W==="Kobo"||W==="Kindle Fire"||W===y4?Jc:W===um||W===Vc||W===dm||W===Z_?"Console":W===l4?"Wearable":W?yr:N?.userAgentDataPlatform==="Android"&&((q=N?.maxTouchPoints)!==null&&q!==void 0?q:0)>0?600>Math.min((B=N?.screenWidth)!==null&&B!==void 0?B:0,($=N?.screenHeight)!==null&&$!==void 0?$:0)/((U=N?.devicePixelRatio)!==null&&U!==void 0?U:1)?yr:Jc:"Desktop"),$timezone:H4(),$timezone_offset:ose()}),{$current_url:mm(pn?.href,ae,fm),$host:pn?.host,$pathname:pn?.pathname,$raw_user_agent:Qn.length>1e3?Qn.substring(0,997)+"...":Qn,$browser_version:fie(Qn,navigator.vendor),$browser_language:SO(),$browser_language_prefix:(k=SO(),typeof k=="string"?k.split("-")[0]:void 0),$screen_height:pe?.screen.height,$screen_width:pe?.screen.width,$viewport_height:pe?.innerHeight,$viewport_width:pe?.innerWidth,$lib:Bn.LIB_NAME,$lib_version:Bn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:f,windowId:g}=this.sessionManager.checkAndGetSessionAndWindowId(i,n.getTime());c.$session_id=f,c.$window_id=g}this.sessionPropsManager&&To(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&To(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(_){c.$sdk_debug_error_capturing_properties=String(_)}if(this.requestRouter.region===xw&&(c.$lib_custom_api_host=this.config.api_host),m=t!==Tc||i?t!==bS||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,r),c=To(c,m),t===Tc&&Ne&&(c.title=Ne.title),!ze(l)){var y=n.getTime()-l;c.$duration=parseFloat((y/1e3).toFixed(3))}Qn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=To({},h,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Ot(this.config.property_denylist)?mo(this.config.property_denylist,(function(_){delete c[_]})):Fe.error(oB+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var S=this.config.sanitize_properties;S&&(Fe.error(MO),c=S(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!i&&this.sn("_calculate_event_properties"),c}tn(t,o,n){var r;if(o===void 0&&(o=!0),n===void 0&&(n=!1),!this.persistence||!this.nn()||this.Mi&&!n)return t;var i=this.persistence.get_initial_props(),l=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),c=To({},i,l||{},t||{}),d=this.config.sanitize_properties;return d&&(Fe.error(MO),c=d(c,"$set_once")),o&&(this.Mi=!0),Oc(c)?void 0:c}register(t,o){var n;(n=this.persistence)==null||n.register(t,o)}register_once(t,o,n){var r;(r=this.persistence)==null||r.register_once(t,o,n)}register_for_session(t){var o;(o=this.sessionPersistence)==null||o.register(t)}unregister(t){var o;(o=this.persistence)==null||o.unregister(t)}unregister_for_session(t){var o;(o=this.sessionPersistence)==null||o.unregister(t)}an(t,o){this.register({[t]:o})}getFeatureFlag(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(t,o)}getFeatureFlagPayload(t){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagPayload(t)}getFeatureFlagResult(t,o){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(t,o)}isFeatureEnabled(t,o){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(t,o)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,o,n){var r;(r=this.featureFlags)==null||r.updateFlags(t,o,n)}updateEarlyAccessFeatureEnrollment(t,o,n){var r;(r=this.featureFlags)==null||r.updateEarlyAccessFeatureEnrollment(t,o,n)}getEarlyAccessFeatures(t,o,n){var r;return o===void 0&&(o=!1),(r=this.featureFlags)==null?void 0:r.getEarlyAccessFeatures(t,o,n)}on(t,o){return this.Fi.on(t,o)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:wd}),()=>{})}onSessionId(t){var o,n;return(o=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&o!==void 0?o:()=>{}}getSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getSurveys(t,o):t([],{isLoaded:!1,error:wd})}getActiveMatchingSurveys(t,o){o===void 0&&(o=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,o):t([],{isLoaded:!1,error:wd})}renderSurvey(t,o){var n;(n=this.surveys)==null||n.renderSurvey(t,o)}displaySurvey(t,o){var n;o===void 0&&(o=_se),(n=this.surveys)==null||n.displaySurvey(t,o)}cancelPendingSurvey(t){var o;(o=this.surveys)==null||o.cancelPendingSurvey(t)}canRenderSurvey(t){var o,n;return(o=(n=this.surveys)==null?void 0:n.canRenderSurvey(t))!==null&&o!==void 0?o:{visible:!1,disabledReason:wd}}canRenderSurveyAsync(t,o){var n,r;return o===void 0&&(o=!1),(n=(r=this.surveys)==null?void 0:r.canRenderSurveyAsync(t,o))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:wd})}ln(t){return!t||Ip(t)?(Fe.critical("Unique user id has not been set in posthog.identify"),!1):t===fp?(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Fe.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,o,n){if(!this.__loaded||!this.persistence)return Fe.uninitializedWarning("posthog.identify");if(Ur(t)&&(t=t.toString(),Fe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(t)&&this.sn("posthog.identify")){var r=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Sg)||this.register_once({$had_persisted_distinct_id:!0,$device_id:r},""),t!==r&&t!==this.get_property(Od)&&(this.unregister(Od),this.register({distinct_id:t}));var i,l=(this.persistence.get_property(ta)||bc)===bc;t!==r&&l?(this.persistence.set_property(ta,yc),this.setPersonPropertiesForFlags({$set:o||{},$set_once:n||{}},!1),this.capture(yS,{distinct_id:t,$anon_distinct_id:r},{$set:o||{},$set_once:n||{}}),this.Di=DO(t,o,n),(i=this.featureFlags)==null||i.setAnonymousDistinctId(r)):(o||n)&&this.setPersonProperties(o,n),t!==r&&(this.reloadFeatureFlags(),this.unregister(qd))}}setPersonProperties(t,o){if((t||o)&&this.sn("posthog.setPersonProperties")){var n=DO(this.get_distinct_id(),t,o);this.Di!==n?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:o||{}},!0),this.capture("$set",{$set:t||{},$set_once:o||{}}),this.Di=n):Fe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,o,n){if(t&&o){var r=this.getGroups(),i=r[t]!==o;if(i&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Ie({},r,{[t]:o})}),i||n){var l={$group_type:t,$group_key:o};n&&(l.$group_set=n),this.capture(pO,l)}n&&this.setGroupPropertiesForFlags({[t]:n}),i&&!n&&this.reloadFeatureFlags()}else Fe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(t,o)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,o){var n;o===void 0&&(o=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(t,o))}resetGroupPropertiesForFlags(t){var o;(o=this.featureFlags)==null||o.resetGroupPropertiesForFlags(t)}reset(t){var o,n,r,i,l,c,d,m;if(Fe.info("reset"),!this.__loaded)return Fe.uninitializedWarning("posthog.reset");var h=this.get_property(Sg);if(this.consent.reset(),(o=this.persistence)==null||o.clear(),(n=this.sessionPersistence)==null||n.clear(),(r=this.surveys)==null||r.reset(),(i=this.Ki)==null||i.stop(),(l=this.featureFlags)==null||l.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(ta,bc),(m=this.sessionManager)==null||m.resetSessionId(),this.Di=null,this.config.cookieless_mode===si)this.register_once({distinct_id:fp,$device_id:null},"");else{var f=this.config.get_device_id(ns());this.register_once({distinct_id:f,$device_id:t?f:h},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,o){var n;this.config.identity_distinct_id=t,this.config.identity_hash=o,this.alias(t),(n=this.conversations)==null||n.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,o;return(t=(o=this.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:o,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+o);if(t!=null&&t.withTimestamp&&n){var i,l=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!n)return r;r+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-l,0)}return r}alias(t,o){return t===this.get_property(T4)?(Fe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?(ze(o)&&(o=this.get_distinct_id()),t!==o?(this.an(Od,t),this.capture("$create_alias",{alias:t,distinct_id:o})):(Fe.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var o=Ie({},this.config);if(Do(t)){var n,r,i,l,c,d,m,h,f,g;To(this.config,NO(t));var v=this.qi();(n=this.persistence)==null||n.update_config(this.config,o,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new wS(Ie({},this.config,{persistence:"sessionStorage"}),v);var y=this.Bi(this.config.debug);Ea(y)&&(this.config.debug=y),Ea(this.config.debug)&&(this.config.debug?(Bn.DEBUG=!0,yo.R()&&yo.M("ph_debug",!0),Fe.info("set_config",{config:t,oldConfig:o,newConfig:Ie({},this.config)})):(Bn.DEBUG=!1,yo.R()&&yo.F("ph_debug"))),(r=this.exceptionObserver)==null||r.onConfigChange(),(i=this.exceptions)==null||i.onConfigChange(),(l=this.sessionRecording)==null||l.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(m=this.exceptionObserver)==null||m.startIfEnabledOrStop(),(h=this.deadClicksAutocapture)==null||h.startIfEnabledOrStop(),(f=this.surveys)==null||f.loadIfEnabled(),this.cn(),(g=this.externalIntegrations)==null||g.startIfEnabledOrStop()}}_overrideSDKInfo(t,o){Bn.LIB_NAME=t,Bn.LIB_VERSION=o}startSessionRecording(t){var o,n,r,i,l,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.event_trigger)};Object.values(d).some(Boolean)&&((o=this.sessionManager)==null||o.checkAndGetSessionAndWindowId(),d.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),d.linked_flag&&((r=this.sessionRecording)==null||r.overrideLinkedFlag()),d.url_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("url")),d.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,o){if(this.exceptions){var n=new Error("PostHog syntheticException"),r=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Ie({},r,o))}}addExceptionStep(t,o){var n;(n=this.exceptions)==null||n.addExceptionStep(t,o)}captureLog(t){var o;(o=this.logs)==null||o.captureLog(t)}get logger(){var t,o;return(t=(o=this.logs)==null?void 0:o.logger)!==null&&t!==void 0?t:Fr.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var o,n;return(o=(n=this.toolbar)==null?void 0:n.loadToolbar(t))!==null&&o!==void 0&&o}get_property(t){var o;return(o=this.persistence)==null?void 0:o.props[t]}getSessionProperty(t){var o;return(o=this.sessionPersistence)==null?void 0:o.props[t]}toString(){var t,o=(t=this.config.name)!==null&&t!==void 0?t:Pc;return o!==Pc&&(o=Pc+"."+o),o}_isIdentified(){var t,o;return((t=this.persistence)==null?void 0:t.get_property(ta))===yc||((o=this.sessionPersistence)==null?void 0:o.get_property(ta))===yc}nn(){var t,o;return!(this.config.person_profiles==="never"||this.config.person_profiles===bw&&!this._isIdentified()&&Oc(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Od])&&((o=this.persistence)==null||(o=o.props)==null||!o[xg]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(t){return this.config.person_profiles==="never"?(Fe.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(xg,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==el)}cn(){var t,o,n,r,i=this.qi();return((t=this.persistence)==null?void 0:t._r)!==i&&((n=this.persistence)==null||n.set_disabled(i)),((o=this.sessionPersistence)==null?void 0:o._r)!==i&&((r=this.sessionPersistence)==null||r.set_disabled(i)),i}opt_in_capturing(t){var o;if(this.config.cookieless_mode!==si){if(this.Ni()){var n,r,i,l,c;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewManager)==null||r.destroy(),this.sessionManager=new kO(this),this.pageViewManager=new yO(this),this.persistence&&(this.sessionPropsManager=new AO(this,this.sessionManager,this.persistence));var d,m=(i=(l=this.config.__extensionClasses)==null?void 0:l.sessionRecording)!==null&&i!==void 0?i:(c=Fr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;m&&(this.sessionRecording=this.Ei(this.sessionRecording,new m(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var h,f;this.consent.optInOut(!0),this.cn(),this.Xi(),(o=this.sessionRecording)==null||o.startIfEnabledOrStop(),this.config.cookieless_mode==el&&((h=this.surveys)==null||h.loadIfEnabled()),(ze(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((f=t?.captureEventName)!==null&&f!==void 0?f:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Fe.warn(IO)}opt_out_capturing(){var t,o,n;this.config.cookieless_mode!==si?(this.config.cookieless_mode===el&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===el&&(this.register({distinct_id:fp,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),(o=this.pageViewManager)==null||o.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Ji())):Fe.warn(IO)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===si||(this.config.cookieless_mode===el?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return vr?X4(vr,this.config.custom_blocked_useragents):void 0}Ji(){Ne&&(Ne.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(Tc,{title:Ne.title},{send_instantly:!0}),this.Pi&&(Ne.removeEventListener(Eg,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Vo(Ne,Eg,this.Pi)))}debug(t){t===!1?(pe?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(pe?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var t,o,n,r,i,l,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Fe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",r=Fe,i=(o="advanced_disable_flags")in(t=c)&&!xt(t[o]),l=n in t&&!xt(t[n]),i?t[o]:!!l&&(r&&r.warn("Config field '"+n+"' is deprecated. Please use '"+o+"' instead. The old field will be removed in a future major version."),t[n]))}rn(t){if(xt(this.config.before_send))return t;var o=Ot(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var r of o){if(n=r(n),xt(n)){var i="Event '"+t.event+"' was rejected in beforeSend function";return tie(t.event)?Fe.warn(i+". This can cause unexpected behavior."):Fe.info(i),null}n.properties&&!Oc(n.properties)||Fe.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,o){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:o})}captureTraceMetric(t,o,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:o,$ai_metric_value:String(n)})}Bi(t){var o=Ea(t)&&!t,n=yo.R()&&yo.O("ph_debug")==="true";return!o&&(!!n||t)}}function FO(e){return e instanceof Element&&(e.id===D4||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function wv(e){return!!e&&e.nodeType===1}function fs(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function rB(e){return!!e&&e.nodeType===3}function aB(e){return!!e&&e.nodeType===11}function kx(e){return e?yv(e).split(/\s+/):[]}function BO(e){var t=pe?.location.href;return!!(t&&e&&e.some((o=>t.match(o))))}function Mg(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return kx(t)}function iB(e){return xt(e)?null:yv(e).split(/(\s+)/).filter((t=>Gd(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function hm(e){var t="";return Rw(e)&&!lB(e)&&e.childNodes&&e.childNodes.length&&mo(e.childNodes,(function(o){var n;rB(o)&&o.textContent&&(t+=(n=iB(o.textContent))!==null&&n!==void 0?n:"")})),yv(t)}function zO(e){return ze(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}Fr.__defaultExtensionClasses={},Fr.dn={trace:_c=()=>{},debug:_c,info:_c,warn:_c,error:_c,fatal:_c},(function(e,t){for(var o=0;t.length>o;o++)e.prototype[t[o]]=zie(e.prototype[t[o]])})(Fr,["identify"]);var Dx=["a","button","form","input","select","textarea","label"];function jO(e,t){if(ze(t))return!0;var o,n=function(i){if(t.some((l=>i.matches(l))))return{v:!0}};for(var r of e)if(o=n(r))return o.v;return!1}function sB(e){var t=e.parentNode;return!(!t||!wv(t))&&t}var Pse=["next","previous","prev",">","<"],UO=[".ph-no-rageclick",".ph-no-capture"],Pw=e=>!e||fs(e,"html")||!wv(e),$O=(e,t)=>{if(!pe||Pw(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var o=!1,n=[e],r=e;r.parentNode&&!fs(r,"body");)if(aB(r.parentNode))n.push(r.parentNode.host),r=r.parentNode.host;else{var i=sB(r);if(!i)break;if(t||Dx.indexOf(i.tagName.toLowerCase())>-1)o=!0;else{var l=pe.getComputedStyle(i);l&&l.getPropertyValue("cursor")==="pointer"&&(o=!0)}n.push(i),r=i}return{parentIsUsefulElement:o,targetElementList:n}};function Rw(e){for(var t=e;t.parentNode&&!fs(t,"body");t=t.parentNode){var o=Mg(t);if(Ct(o,"ph-sensitive")||Ct(o,"ph-no-capture"))return!1}if(Ct(Mg(e),"ph-include"))return!0;var n=e.type||"";if(So(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!So(r)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,""))}function lB(e){return!!(fs(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||fs(e,"select")||fs(e,"textarea")||e.getAttribute("contenteditable")==="true")}var cB="(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})",Rse=new RegExp("^(?:"+cB+")$"),Ase=new RegExp(cB),uB="\\d{3}-?\\d{2}-?\\d{4}",kse=new RegExp("^("+uB+")$"),Dse=new RegExp("("+uB+")");function Gd(e,t){return t===void 0&&(t=!0),!(xt(e)||So(e)&&(e=yv(e),(t?Rse:Ase).test((e||"").replace(/[- ]/g,""))||(t?kse:Dse).test(e)))}function qO(e){var t=hm(e);return Gd(t=(t+" "+dB(e)).trim())?t:""}function dB(e){var t="";return e&&e.childNodes&&e.childNodes.length&&mo(e.childNodes,(function(o){var n;if(o&&((n=o.tagName)==null?void 0:n.toLowerCase())==="span")try{var r=hm(o);t=(t+" "+r).trim(),o.childNodes&&o.childNodes.length&&(t=(t+" "+dB(o)).trim())}catch(i){Fe.error("[AutoCapture]",i)}})),t}function VO(e){return e.replace(/"|\\"/g,'\\"')}function Ose(e){var t=e.attr__class;return t?Ot(t)?t:kx(t):void 0}class HO{constructor(t){this.disabled=t===!1;var o=Do(t)?t:{};this.thresholdPx=o.threshold_px||30,this.timeoutMs=o.timeout_ms||1e3,this.clickCount=o.click_count||3,this.clicks=[]}isRageClick(t,o,n){if(this.disabled)return!1;var r=this.clicks[this.clicks.length-1];if(r&&Math.abs(t-r.x)+Math.abs(o-r.y)<this.thresholdPx&&this.timeoutMs>n-r.timestamp){if(this.clicks.push({x:t,y:o,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:o,timestamp:n}];return!1}}var kS="$copy_autocapture",GO=go("[AutoCapture]");function DS(e,t){return t.length>e?t.slice(0,e)+"...":t}function Ise(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!wv(t));return t}function Mse(e,t){for(var o,n,{e:r,maskAllElementAttributes:i,maskAllText:l,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,m=[e],h=e;h.parentNode&&!fs(h,"body");)aB(h.parentNode)?(m.push(h.parentNode.host),h=h.parentNode.host):(m.push(h.parentNode),h=h.parentNode);var f,g,v=[],y={},S=!1,x=!1;if(mo(m,(T=>{var A=Rw(T);T.tagName.toLowerCase()==="a"&&(S=T.getAttribute("href"),S=A&&S&&Gd(S)&&S),Ct(Mg(T),"ph-no-capture")&&(x=!0),v.push((function(O,N,q,B){var $=O.tagName.toLowerCase(),U={tag_name:$};Dx.indexOf($)>-1&&!q&&(U.$el_text=$.toLowerCase()==="a"||$.toLowerCase()==="button"?DS(1024,qO(O)):DS(1024,hm(O)));var W=Mg(O);W.length>0&&(U.classes=W.filter((function(te){return te!==""}))),mo(O.attributes,(function(te){var le;if((!lB(O)||["name","id","class","aria-label"].indexOf(te.name)!==-1)&&(B==null||!B.includes(te.name))&&!N&&Gd(te.value)&&(!So(le=te.name)||le.substring(0,10)!=="_ngcontent"&&le.substring(0,7)!=="_nghost")){var Q=te.value;te.name==="class"&&(Q=kx(Q).join(" ")),U["attr__"+te.name]=DS(1024,Q)}}));for(var ae=1,H=1,Z=O;Z=Ise(Z);)ae++,Z.tagName===O.tagName&&H++;return U.nth_child=ae,U.nth_of_type=H,U})(T,i,l,c));var k=(function(O){if(!Rw(O))return{};var N={};return mo(O.attributes,(function(q){if(q.name&&q.name.indexOf("data-ph-capture-attribute")===0){var B=q.name.replace("data-ph-capture-attribute-",""),$=q.value;B&&$&&Gd($)&&(N[B]=$)}})),N})(T);To(y,k)})),x)return{props:{},explicitNoCapture:x};if(l||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?qO(e):hm(e)),S){var _,C;v[0].attr__href=S;var P=(_=Rg(S))==null?void 0:_.host,E=pe==null||(C=pe.location)==null?void 0:C.host;P&&E&&P!==E&&(f=S)}return{props:To({$event_type:r.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(g=v,(function(T){return T.map((A=>{var k,O,N="";if(A.tag_name&&(N+=A.tag_name),A.attr_class)for(var q of(A.attr_class.sort(),A.attr_class))N+="."+q.replace(/"/g,"");var B=Ie({},A.text?{text:A.text}:{},{"nth-child":(k=A.nth_child)!==null&&k!==void 0?k:0,"nth-of-type":(O=A.nth_of_type)!==null&&O!==void 0?O:0},A.href?{href:A.href}:{},A.attr_id?{attr_id:A.attr_id}:{},A.attributes),$={};return Np(B).sort(((U,W)=>{var[ae]=U,[H]=W;return ae.localeCompare(H)})).forEach((U=>{var[W,ae]=U;return $[VO(W.toString())]=VO(ae.toString())})),(N+=":")+Np($).map((U=>{var[W,ae]=U;return W+'="'+ae+'"'})).join("")})).join(";")})((function(T){return T.map((A=>{var k,O,N={text:(k=A.$el_text)==null?void 0:k.slice(0,400),tag_name:A.tag_name,href:(O=A.attr__href)==null?void 0:O.slice(0,2048),attr_class:Ose(A),attr_id:A.attr__id,nth_child:A.nth_child,nth_of_type:A.nth_of_type,attributes:{}};return Np(A).filter((q=>{var[B]=q;return B.indexOf("attr__")===0})).forEach((q=>{var[B,$]=q;return N.attributes[B]=$})),N}))})(g)))},(o=v[0])!=null&&o.$el_text?{$el_text:(n=v[0])==null?void 0:n.$el_text}:{},f&&r.type==="click"?{$external_click_url:f}:{},y)}}var Cd=go("[ExceptionAutocapture]");function KO(e,t,o){try{if(!(t in e))return()=>{};var n=e[t],r=o(n);return ai(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=r,()=>{e[t]=n}}catch{return()=>{}}}var Lse=go("[TracingHeaders]"),Zi=go("[Web Vitals]"),WO=9e5,YO="disabled",ZO="lazy_loading",xd="awaiting_config",yp="missing_config";go("[SessionRecording]"),go("[SessionRecording]");var Aw="[SessionRecording]",Qi=go(Aw),Nse=go("[Heatmaps]");function QO(e){return Do(e)&&"clientX"in e&&"clientY"in e&&Ur(e.clientX)&&Ur(e.clientY)}var JO=go("[Product Tours]"),Fse=["$set_once","$set"],Ji=go("[SiteApps]"),XO="Error while initializing PostHog app with config id ";function wc(e,t,o){if(xt(e))return!1;switch(o){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class Bse{constructor(t){this.vn=new Ax,this.fn=(o,n)=>this.pn(o,n)&&this.gn(o,n)&&this.mn(o,n)&&this.yn(o,n),this.pn=(o,n)=>n==null||!n.event||o?.event===n?.event,this._instance=t,this.bn=new Set,this._n=new Set}init(){var t,o;ze((t=this._instance)==null?void 0:t._addCaptureHook)||(o=this._instance)==null||o._addCaptureHook(((n,r)=>{this.on(n,r)}))}register(t){var o,n;if(!ze((o=this._instance)==null?void 0:o._addCaptureHook)&&(t.forEach((l=>{var c,d;(c=this._n)==null||c.add(l),(d=l.steps)==null||d.forEach((m=>{var h;(h=this.bn)==null||h.add(m?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var r,i=new Set;t.forEach((l=>{var c;(c=l.steps)==null||c.forEach((d=>{d!=null&&d.selector&&i.add(d?.selector)}))})),(r=this._instance)==null||r.autocapture.setElementSelectors(i)}}on(t,o){var n;o!=null&&t.length!=0&&(this.bn.has(t)||this.bn.has(o?.event))&&this._n&&((n=this._n)==null?void 0:n.size)>0&&this._n.forEach((r=>{this.wn(o,r)&&this.vn.emit("actionCaptured",r.name)}))}In(t){this.onAction("actionCaptured",(o=>t(o)))}wn(t,o){if(o?.steps==null)return!1;for(var n of o.steps)if(this.fn(t,n))return!0;return!1}onAction(t,o){return this.vn.on(t,o)}gn(t,o){if(o!=null&&o.url){var n,r=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!r||typeof r!="string"||!wc(r,o.url,o.url_matching||"contains"))return!1}return!0}mn(t,o){return!!this.Cn(t,o)&&!!this.Sn(t,o)&&!!this.xn(t,o)}Cn(t,o){var n;if(o==null||!o.href)return!0;var r=this.kn(t);if(r.length>0)return r.some((c=>wc(c.href,o.href,o.href_matching||"exact")));var i,l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!l&&wc((i=l.match(/(?::|")href="(.*?)"/))?i[1]:"",o.href,o.href_matching||"exact")}Sn(t,o){var n;if(o==null||!o.text)return!0;var r=this.kn(t);if(r.length>0)return r.some((m=>wc(m.text,o.text,o.text_matching||"exact")||wc(m.$el_text,o.text,o.text_matching||"exact")));var i,l,c,d=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!d&&(i=(function(m){for(var h,f=[],g=/(?::|")text="(.*?)"/g;!xt(h=g.exec(m));)f.includes(h[1])||f.push(h[1]);return f})(d),l=o.text,c=o.text_matching||"exact",i.some((m=>wc(m,l,c))))}xn(t,o){var n,r;if(o==null||!o.selector)return!0;var i=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(i!=null&&i.includes(o.selector))return!0;var l=(t==null||(r=t.properties)==null?void 0:r.$elements_chain)||"";if(o.selector_regex&&l)try{return new RegExp(o.selector_regex).test(l)}catch{return!1}return!1}kn(t){var o;return(t==null||(o=t.properties)==null?void 0:o.$elements)==null?[]:t?.properties.$elements}yn(t,o){return o==null||!o.properties||o.properties.length===0||tB(o.properties.reduce(((n,r)=>{var i=Ot(r.value)?r.value.map(String):r.value!=null?[String(r.value)]:[];return n[r.key]={values:i,operator:r.operator||"exact"},n}),{}),t?.properties)}}class zse{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,o){return!!t&&tB(t.propertyFilters,o?.properties)}Nn(t,o){var n=new Map;return t.forEach((r=>{var i;(i=r.conditions)==null||(i=i[o])==null||(i=i.values)==null||i.forEach((l=>{if(l!=null&&l.name){var c=n.get(l.name)||[];c.push(r.id),n.set(l.name,c)}}))})),n}Mn(t,o,n){var r=(n===bd.Activation?this.Tn:this.An).get(t),i=[];return this.Fn((l=>{i=l.filter((c=>r?.includes(c.id)))})),i.filter((l=>{var c,d=(c=l.conditions)==null||(c=c[n])==null||(c=c.values)==null?void 0:c.find((m=>m.name===t));return this.Rn(d,o)}))}register(t){var o;ze((o=this._instance)==null?void 0:o._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var o=t.filter((n=>{var r,i;return((r=n.conditions)==null?void 0:r.actions)&&((i=n.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0}));o.length!==0&&(this.Ln==null&&(this.Ln=new Bse(this._instance),this.Ln.init(),this.Ln.In((n=>{this.onAction(n)}))),o.forEach((n=>{var r,i,l,c,d;n.conditions&&(r=n.conditions)!=null&&r.actions&&(i=n.conditions)!=null&&(i=i.actions)!=null&&i.values&&((l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0&&((c=this.Ln)==null||c.register(n.conditions.actions.values),(d=n.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((m=>{if(m&&m.name){var h=this.En.get(m.name);h&&h.push(n.id),this.En.set(m.name,h||[n.id])}})))})))}On(t){var o,n=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.events)&&((c=i.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),r=t.filter((i=>{var l,c;return((l=i.conditions)==null?void 0:l.cancelEvents)&&((c=i.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));n.length===0&&r.length===0||((o=this._instance)==null||o._addCaptureHook(((i,l)=>{this.onEvent(i,l)})),this.Tn=this.Nn(t,bd.Activation),this.An=this.Nn(t,bd.Cancellation))}onEvent(t,o){var n,r=this.le(),i=this.Dn(),l=this.Bn(),c=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];if(l===t&&o&&c.length>0){var d,m;r.info("event matched, removing item from activated items",{event:t,eventPayload:o,existingActivatedItems:c});var h=(o==null||(d=o.properties)==null?void 0:d.$survey_id)||(o==null||(m=o.properties)==null?void 0:m.$product_tour_id);if(h){var f=c.indexOf(h);0>f||(c.splice(f,1),this.jn(c))}}else{if(this.An.has(t)){var g=this.Mn(t,o,bd.Cancellation);g.length>0&&(r.info("cancel event matched, cancelling items",{event:t,itemsToCancel:g.map((y=>y.id))}),g.forEach((y=>{var S=c.indexOf(y.id);0>S||c.splice(S,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(t)){r.info("event name matched",{event:t,eventPayload:o,items:this.Tn.get(t)});var v=this.Mn(t,o,bd.Activation);this.jn(c.concat(v.map((y=>y.id))||[]))}}}onAction(t){var o,n=this.Dn(),r=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[n])||[];this.En.has(t)&&this.jn(r.concat(this.En.get(t)||[]))}jn(t){var o=this.le(),n=[...new Set(t)].filter((r=>!this.qn(r)));o.info("updating activated items",{activatedItems:n}),this.Zn(n)}getActivatedIds(){var t,o=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[o])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class jse extends zse{constructor(t){super(t)}Dn(){return dw}Bn(){return Fd.SHOWN}Fn(t){var o;(o=this._instance)==null||o.getSurveys(t)}$n(t){var o;(o=this._instance)==null||o.cancelPendingSurvey(t)}le(){return Jt}Zn(t){var o;(o=this._instance)==null||(o=o.persistence)==null||o.register({[dw]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var OS="SDK is not enabled or survey functionality is not yet loaded",eI="Disabled. Not loading surveys.",Use=pe!=null&&pe.location?kg(pe.location.hash,"__posthog")||kg(location.hash,"state"):null,tI="_postHogToolbarParams",oI=go("[Toolbar]"),Ln=go("[FeatureFlags]"),Qs=go("[FeatureFlags]",{debugEnabled:!0}),IS=`" failed. Feature flags didn't load in time.`,nI=e=>{for(var t={},o=0;e.length>o;o++)t[e[o]]=!0;return t},rI=e=>{var t={};for(var[o,n]of Np(e||{}))n&&(t[o]=n);return t},ni=go("[Error tracking]"),aI="Refusing to render web experiment since the viewer is a likely bot",$se={icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!pe&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!pe&&Ig(t.href,e),not_regex:(e,t)=>!!pe&&!Ig(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Tn{get Bt(){return this._instance.config}constructor(t){var o=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),o.getWebExperiments((r=>{Tn.Hn("retrieved web experiments from the server"),o.zn=new Map,r.forEach((i=>{if(i.feature_flag_key){var l;o.zn&&(Tn.Hn("setting flag key ",i.feature_flag_key," to web experiment ",i),(l=o.zn)==null||l.set(i.feature_flag_key,i));var c=o._instance.getFeatureFlag(i.feature_flag_key);So(c)&&i.variants[c]&&o.Un(i.name,c,i.variants[c].transforms)}else if(i.variants)for(var d in i.variants){var m=i.variants[d];Tn.Yn(m)&&o.Un(i.name,d,m.transforms)}}))}),n)},this._instance=t,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Tn.Hn(aI);else if(!this.Bt.disable_web_experiments){if(xt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Tn.Hn("applying feature flags",t),t.forEach((o=>{var n;if(this.zn&&(n=this.zn)!=null&&n.has(o)){var r,i=this._instance.getFeatureFlag(o),l=(r=this.zn)==null?void 0:r.get(o);i&&l!=null&&l.variants[i]&&this.Un(l.name,i,l.variants[i].transforms)}}))}}previewWebExperiment(){var t=Tn.getWindowLocation();if(t!=null&&t.search){var o=Ag(t?.search,"__experiment_id"),n=Ag(t?.search,"__experiment_variant");o&&n&&(Tn.Hn("previewing web experiments "+o+" && "+n),this.getWebExperiments((r=>{this.Gn(parseInt(o),n,r)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,o,n){if(this.Bt.disable_web_experiments&&!n)return t([]);var r=this._instance.get_property("$web_experiments");if(r&&!o)return t(r);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:i=>t(i.statusCode===200&&i.json&&i.json.experiments||[])})}Gn(t,o,n){var r=n.filter((i=>i.id===t));r&&r.length>0&&(Tn.Hn("Previewing web experiment ["+r[0].name+"] with variant ["+o+"]"),this.Un(r[0].name,o,r[0].variants[o].transforms))}static Yn(t){return!xt(t.conditions)&&Tn.Wn(t)&&Tn.Xn(t)}static Wn(t){var o;if(xt(t.conditions)||xt((o=t.conditions)==null?void 0:o.url))return!0;var n,r,i,l=Tn.getWindowLocation();return!!l&&((n=t.conditions)==null||!n.url||$se[(r=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&r!==void 0?r:"icontains"](t.conditions.url,l))}static getWindowLocation(){return pe?.location}static Xn(t){var o;if(xt(t.conditions)||xt((o=t.conditions)==null?void 0:o.utm))return!0;var n=z4();if(n.utm_source){var r,i,l,c,d,m,h,f,g=(r=t.conditions)==null||(r=r.utm)==null||!r.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==n.utm_campaign,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==n.utm_source,y=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((m=t.conditions)==null||(m=m.utm)==null?void 0:m.utm_medium)==n.utm_medium,S=(h=t.conditions)==null||(h=h.utm)==null||!h.utm_term||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_term)==n.utm_term;return g&&y&&S&&v}return!1}static Hn(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;o>r;r++)n[r-1]=arguments[r];Fe.info("[WebExperiments] "+t,n)}Un(t,o,n){this._is_bot()?Tn.Hn(aI):o!=="control"?n.forEach((r=>{if(r.selector){var i;Tn.Hn("applying transform of variant "+o+" for experiment "+t+" ",r);var l=(i=document)==null?void 0:i.querySelectorAll(r.selector);l?.forEach((c=>{var d=c;r.html&&(d.innerHTML=r.html),r.css&&d.setAttribute("style",r.css)}))}})):Tn.Hn("Control variants leave the page unmodified.")}_is_bot(){return vr&&this._instance?X4(vr,this.Bt.custom_blocked_useragents):void 0}}var Mr=go("[Conversations]"),Js="Conversations not available yet.",Cv={featureFlags:class{constructor(e){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Ln.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Ln.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((o=>{var n=o&&typeof o=="string"&&o.trim().length>0;return n||Ln.error("Invalid evaluation context found:",o,"Expected non-empty string"),n})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:o}=this._instance,n=(e=(t=o.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(n).length){var r,i,l=(r=(i=o.bootstrap)==null?void 0:i.featureFlagPayloads)!==null&&r!==void 0?r:{},c=Object.keys(n).filter((m=>!!n[m])).reduce(((m,h)=>(m[h]=n[h]||!1,m)),{}),d=Object.keys(l).filter((m=>c[m])).reduce(((m,h)=>(l[h]&&(m[h]=l[h]),m)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(e,t,o){var n=o!=null&&o.merge?this.getFlagVariants():{},r=o!=null&&o.merge?this.getFlagPayloads():{},i=Ie({},n,e),l=Ie({},r,t),c={};for(var[d,m]of Object.entries(i)){var h=typeof m=="string";c[d]={key:d,enabled:!!h||!!m,variant:h?m:void 0,reason:void 0,metadata:ze(l?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:l[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.os(sw),t=this.os(ri),o=this.os(Ec);if(!o&&!t)return e||{};var n=To({},e||{}),r=[...new Set([...Object.keys(o||{}),...Object.keys(t||{})])];for(var i of r){var l,c,d=n[i],m=t?.[i],h=ze(m)?(l=d?.enabled)!==null&&l!==void 0&&l:!!m,f=ze(m)?d.variant:typeof m=="string"?m:void 0,g=o?.[i],v=Ie({},d,{enabled:h,variant:h?f??d?.variant:void 0});h!==d?.enabled&&(v.original_enabled=d?.enabled),f!==d?.variant&&(v.original_variant=d?.variant),g&&(v.metadata=Ie({},d?.metadata,{payload:g,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),n[i]=v}return this.Jn||(Ln.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:o,finalDetails:n}),this.Jn=!0),n}getFlagVariants(){var e=this.os(Ic),t=this.os(ri);if(!t)return e||{};for(var o=To({},e),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:o}),this.Jn=!0),o}getFlagPayloads(){var e=this.os(lw),t=this.os(Ec);if(!t)return e||{};for(var o=To({},e||{}),n=Object.keys(t),r=0;n.length>r;r++)o[n[r]]=t[n[r]];return this.Jn||(Ln.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:o}),this.Jn=!0),o}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var o=this.Bt.token,n=this.os(Sg),r={token:o,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ie({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(Nd)||{}),group_properties:this.os(Xs),timezone:H4()};yi(n)||ze(n)||(r.$device_id=n),(e!=null&&e.disableFlags||this.Bt.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.cs()&&(r.evaluation_contexts=this.hs());var i=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:i,data:r,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:l=>{var c,d,m,h=!0;if(l.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),h=!1),this.Qn=!1,!r.disable_flags||this.ts){this.rs=!h;var f=[];l.error?l.error instanceof Error?f.push(l.error.name==="AbortError"?"timeout":"connection_error"):f.push("unknown_error"):l.statusCode!==200&&f.push("api_error_"+l.statusCode),(c=l.json)!=null&&c.errorsWhileComputingFlags&&f.push("errors_while_computing_flags");var g,v=!((d=l.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&f.push("quota_limited"),(m=this.ni)==null||m.register({[fw]:f}),v?Ln.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(r.disable_flags||this.receivedFeatureFlags((g=l.json)!==null&&g!==void 0?g:{},h,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(e,t){var o;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var n=this.getFeatureFlagResult(e,t);return(o=n?.variant)!==null&&o!==void 0?o:n?.enabled}}else Ln.warn('getFeatureFlag for key "'+e+IS)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFlagVariants(),n=e in o,r=o[e],i=this.getFlagPayloads()[e],l=String(r),c=this.os(cw)||void 0,d=this.os(wg)||void 0,m=this.os(qd)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var h,f=this._instance.get_session_id(),g=this.os(mw);f&&f!==g&&(m={},(h=this.ni)==null||h.register({[qd]:m,[mw]:f}))}if((t.send_event||!("send_event"in t))&&(!(e in m)||!m[e].includes(l))){var v,y,S,x,_,C,P,E,T,A;Ot(m[e])?m[e].push(l):m[e]=[l],(v=this.ni)==null||v.register({[qd]:m});var k=this.getFeatureFlagDetails(e),O=[...(y=this.os(fw))!==null&&y!==void 0?y:[]];ze(r)&&O.push("flag_missing");var N={$feature_flag:e,$feature_flag_response:r,$feature_flag_payload:i||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((S=this.Bt.bootstrap)==null||(S=S.featureFlags)==null?void 0:S[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};ze(k==null||(_=k.metadata)==null?void 0:_.version)||(N.$feature_flag_version=k.metadata.version);var q,B=(C=k==null||(P=k.reason)==null?void 0:P.description)!==null&&C!==void 0?C:k==null||(E=k.reason)==null?void 0:E.code;B&&(N.$feature_flag_reason=B),k!=null&&(T=k.metadata)!=null&&T.id&&(N.$feature_flag_id=k.metadata.id),ze(k?.original_variant)&&ze(k?.original_enabled)||(N.$feature_flag_original_response=ze(k.original_variant)?k.original_enabled:k.original_variant),k!=null&&(A=k.metadata)!=null&&A.original_payload&&(N.$feature_flag_original_payload=k==null||(q=k.metadata)==null?void 0:q.original_payload),O.length&&(N.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",N)}if(n){var $=i;if(!ze(i))try{$=JSON.parse(i)}catch{}return{key:e,enabled:!!r,variant:typeof r=="string"?r:void 0,payload:$}}}}else Ln.warn('getFeatureFlagResult for key "'+e+IS)}getRemoteConfigPayload(e,t){var o=this.Bt.token,n={distinct_id:this._instance.get_distinct_id(),token:o};this.cs()&&(n.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Bt.disable_compression?void 0:ya.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(r){var i,l=(i=r.json)==null?void 0:i.featureFlagPayloads;t(l?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var o=this.getFeatureFlag(e,t);return ze(o)?void 0:!!o}Ln.warn('isFeatureEnabled for key "'+e+IS)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,o){if(this.ni){this.Kn=!0;var n=this.getFlagVariants(),r=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(l,c,d,m,h,f){d===void 0&&(d={}),m===void 0&&(m={}),h===void 0&&(h={});var g=(O=>{var N=O.flags;return N?(O.featureFlags=Object.fromEntries(Object.keys(N).map((q=>{var B;return[q,(B=N[q].variant)!==null&&B!==void 0?B:N[q].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(N).filter((q=>N[q].enabled)).filter((q=>{var B;return(B=N[q].metadata)==null?void 0:B.payload})).map((q=>{var B;return[q,(B=N[q].metadata)==null?void 0:B.payload]})))):Ln.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(l),v=g.flags,y=g.featureFlags,S=g.featureFlagPayloads;if(y){var x=l.requestId,_=l.evaluatedAt;if(Ot(y)){Ln.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var C={};if(y)for(var P=0;y.length>P;P++)C[y[P]]=!0;c&&c.register({[Mp]:y,[Ic]:C})}else{var E=y,T=S,A=v;if(f!=null&&f.partialResponse)E=Ie({},d,E),T=Ie({},m,T),A=Ie({},h,A);else if(l.errorsWhileComputingFlags)if(v){var k=new Set(Object.keys(v).filter((O=>{var N;return!((N=v[O])!=null&&N.failed)})));E=Ie({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[N]=O;return k.has(N)})))),T=Ie({},m,Object.fromEntries(Object.entries(T||{}).filter((O=>{var[N]=O;return k.has(N)})))),A=Ie({},h,Object.fromEntries(Object.entries(A||{}).filter((O=>{var[N]=O;return k.has(N)}))))}else E=Ie({},d,E),T=Ie({},m,T),A=Ie({},h,A);c&&c.register(Ie({[Mp]:Object.keys(rI(E)),[Ic]:E||{},[lw]:T||{},[sw]:A||{}},x?{[cw]:x}:{},_?{[wg]:_}:{}))}}})(e,this.ni,n,r,i,o),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Ln.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Ln.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(ri),this.ni.unregister(Ec),this.ps(),Qs.info("All overrides cleared");if(Ot(e)){var t=nI(e);return this.ni.register({[ri]:t}),this.ps(),Qs.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var o,n=e;if(this.Jn=!!((o=n.suppressWarning)!==null&&o!==void 0&&o),"flags"in n){if(n.flags===!1)this.ni.unregister(ri),Qs.info("Flag overrides cleared");else if(n.flags){if(Ot(n.flags)){var r=nI(n.flags);this.ni.register({[ri]:r})}else this.ni.register({[ri]:n.flags});Qs.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.ni.unregister(Ec),Qs.info("Payload overrides cleared")):n.payloads&&(this.ni.register({[Ec]:n.payloads}),Qs.info("Payload overrides set",{payloads:n.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[ri]:e}),this.ps(),Qs.info("Flag overrides set",{flags:e});Ln.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:o}=this.gs();e(t,o)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,o){var n,r=(this.os(Ld)||[]).find((d=>d.flagKey===e)),i={["$feature_enrollment/"+e]:t},l={$feature_flag:e,$feature_enrollment:t,$set:i};r&&(l.$early_access_feature_name=r.name),o&&(l.$feature_enrollment_stage=o),this._instance.capture("$feature_enrollment_update",l),this.setPersonPropertiesForFlags(i,!1);var c=Ie({},this.getFlagVariants(),{[e]:t});(n=this.ni)==null||n.register({[Mp]:Object.keys(rI(c)),[Ic]:c}),this.ps()}getEarlyAccessFeatures(e,t,o){t===void 0&&(t=!1);var n=this.os(Ld),r=o?"&"+o.map((i=>"stage="+i)).join("&"):"";if(n&&!t)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+r),method:"GET",callback:i=>{var l,c;if(i.json){var d=i.json.earlyAccessFeatures;return(l=this.ni)==null||l.unregister(Ld),(c=this.ni)==null||c.register({[Ld]:d}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((o=>t[o])),flagVariants:Object.keys(t).filter((o=>t[o])).reduce(((o,n)=>(o[n]=t[n],o)),{})}}ps(e){var{flags:t,flagVariants:o}=this.gs();this.featureFlagEventHandlers.forEach((n=>n(t,o,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Nd)||{},n=e?.$set||(e!=null&&e.$set_once?{}:e),r=e?.$set_once,i={};if(r)for(var l in r)({}).hasOwnProperty.call(r,l)&&(l in o||(i[l]=r[l]));this._instance.register({[Nd]:Ie({},o,i,n)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Nd)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var o=this.os(Xs)||{};Object.keys(o).length!==0&&Object.keys(o).forEach((n=>{o[n]=Ie({},o[n],e[n]),delete e[n]})),this._instance.register({[Xs]:Ie({},o,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Xs)||{};this._instance.register({[Xs]:Ie({},t,{[e]:{}})})}else this._instance.unregister(Xs)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},qse={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===xd||this.bs===yp?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=YO,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Qi.error("started without valid sessionManager"),new Error(Aw+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===si)throw new Error(Aw+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Md))==null||!e.enabled),o=!this.Bt.disable_session_recording,n=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return pe&&t&&o&&!n}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var o=!ze(Object.assign)&&!ze(Array.from);this.ws&&o?(this.Is(e),Qi.info("starting")):(this.bs=YO,this.stopRecording())}}Is(e){var t,o,n;this.ws&&(this.bs!==xd&&this.bs!==yp&&(this.bs=ZO),Ze!=null&&(t=Ze.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(o=Ze.__PosthogExtensions__)!=null&&o.initSessionRecording?this.Cs(e):(n=Ze.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.Ss,(r=>{if(r)return Qi.error("could not load recorder",r);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(xx)}Ts(e,t){if(xt(e))return null;var o,n=Ur(e)?e:parseFloat(e);return typeof(o=n)!="number"||!Number.isFinite(o)||0>o||o>1?(Qi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):n}As(e){if(this.ni){var t,o,n=this.ni,r=()=>{var i,l=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.Ts((i=this.Bt.session_recording)==null?void 0:i.sampleRate,"session_recording.sampleRate"),d=this.Ts(l?.sampleRate,"remote config sampleRate"),m=c??d;xt(m)&&this.ks();var h=l?.minimumDurationMilliseconds;n.register({[Md]:Ie({cache_timestamp:Date.now(),enabled:!!l},l,{networkPayloadCapture:Ie({capturePerformance:e.capturePerformance},l?.networkPayloadCapture),canvasRecording:{enabled:l?.recordCanvas,fps:l?.canvasFps,quality:l?.canvasQuality},sampleRate:m,minimumDurationMilliseconds:ze(h)?null:h,endpoint:l?.endpoint,triggerMatchType:l?.triggerMatchType,masking:l?.masking,urlTriggers:l?.urlTriggers,version:l?.version,triggerGroups:l?.triggerGroups})})};r(),(t=this._s)==null||t.call(this),this._s=(o=this._instance.sessionManager)==null?void 0:o.onSessionId(r)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===xd&&(this.bs=yp,Qi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var o;t===void 0&&(t="log"),(o=this.ys)!=null&&o.log?this.ys.log(e,t):Qi.warn("log called before recorder was ready")}get Ss(){var e,t,o=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Md);return(o==null||(t=o.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Md);if(!t)return!1;var o=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-o}Cs(e){var t,o;if((t=Ze.__PosthogExtensions__)==null||!t.initSessionRecording)return Qi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[M4]:!0});if(this.ys||(this.ys=(o=Ze.__PosthogExtensions__)==null?void 0:o.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===yp||this.bs===xd?void 0:(this.bs=xd,Qi.info("persisted remote config is stale, requesting fresh config before starting"),void new G4(this._instance).load());this.bs=ZO,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[R4]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[P4]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,o;this.ys||(o=this.ni)==null||o.register({[e==="url"?A4:k4]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var o;return!((o=this.ys)==null||!o.tryAddCustomEvent(e,t))}}},Vse={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new HO(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,o=Do(this.instance.config.autocapture)?this.instance.config.autocapture:{};return o.url_allowlist=(e=o.url_allowlist)==null?void 0:e.map((n=>new RegExp(n))),o.url_ignorelist=(t=o.url_ignorelist)==null?void 0:t.map((n=>new RegExp(n))),o}Os(){if(this.isBrowserSupported()){if(pe&&Ne){var e=o=>{o=o||pe?.event;try{this.Ps(o)}catch(n){GO.error("Failed to capture event",n)}};if(Vo(Ne,"submit",e,{capture:!0}),Vo(Ne,"change",e,{capture:!0}),Vo(Ne,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=o=>{this.Ps(o=o||pe?.event,kS)};Vo(Ne,"copy",t,{capture:!0}),Vo(Ne,"cut",t,{capture:!0})}}}else GO.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[X_]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,o=[];return(t=this.Fs)==null||t.forEach((n=>{var r=Ne?.querySelectorAll(n);r?.forEach((i=>{e===i&&o.push(n)}))})),o}get isEnabled(){var e,t,o=(e=this.instance.persistence)==null?void 0:e.props[X_];if(yi(this.Ns)&&!Ea(o)&&!this.instance.Fr())return!1;var n=(t=this.Ns)!==null&&t!==void 0?t:!!o;return!!this.instance.config.autocapture&&!n}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var o,n=zO(e);rB(n)&&(n=n.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(f,g){if(!pe||Pw(f))return!1;var v,y,S;if(Ea(g)?(v=!!g&&UO,y=void 0):(v=(S=g?.css_selector_ignorelist)!==null&&S!==void 0?S:UO,y=g?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=$O(f,!1);return!(function(_,C){if(_===!1||ze(_))return!1;var P;if(_===!0)P=Pse;else{if(!Ot(_))return!1;if(_.length>10)return Fe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;P=_.map((E=>E.toLowerCase()))}return C.some((E=>{var{safeText:T,ariaLabel:A}=E;return P.some((k=>T.includes(k)||A.includes(k)))}))})(y,x.map((_=>{var C;return{safeText:hm(_).toLowerCase(),ariaLabel:((C=_.getAttribute("aria-label"))==null?void 0:C.toLowerCase().trim())||""}})))&&!jO(x,v)})(n,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var r=t===kS;if(n&&(function(f,g,v,y,S){var x,_,C,P;if(v===void 0&&(v=void 0),!pe||Pw(f)||(x=v)!=null&&x.url_allowlist&&!BO(v.url_allowlist)||(_=v)!=null&&_.url_ignorelist&&BO(v.url_ignorelist))return!1;if((C=v)!=null&&C.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((N=>g.type===N)))return!1}var{parentIsUsefulElement:T,targetElementList:A}=$O(f,y);if(!(function(N,q){var B=q?.element_allowlist;if(ze(B))return!0;var $,U=function(ae){if(B.some((H=>ae.tagName.toLowerCase()===H)))return{v:!0}};for(var W of N)if($=U(W))return $.v;return!1})(A,v)||!jO(A,(P=v)==null?void 0:P.css_selector_allowlist))return!1;var k=pe.getComputedStyle(f);if(k&&k.getPropertyValue("cursor")==="pointer"&&g.type==="click")return!0;var O=f.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(S||["submit"]).indexOf(g.type)>=0;case"input":case"select":case"textarea":return(S||["change","click"]).indexOf(g.type)>=0;default:return T?(S||["click"]).indexOf(g.type)>=0:(S||["click"]).indexOf(g.type)>=0&&(Dx.indexOf(O)>-1||f.getAttribute("contenteditable")==="true")}})(n,e,this.Bt,r,r?["copy","cut"]:void 0)){var{props:i,explicitNoCapture:l}=Mse(n,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(l)return!1;var c=this.getElementSelectors(n);if(c&&c.length>0&&(i.$element_selectors=c),t===kS){var d,m=iB(pe==null||(d=pe.getSelection())==null?void 0:d.toString()),h=e.type||"clipboard";if(!m)return!1;i.$selected_content=m,i.$copy_type=h}return this.instance.capture(t,i),!0}}}isBrowserSupported(){return ai(Ne?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(pe==null||(t=pe.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Fe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Fe.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(pe&&pe.history){var o=this;(e=pe.history.pushState)!=null&&e.__posthog_wrapped__||KO(pe.history,"pushState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("pushState")})),(t=pe.history.replaceState)!=null&&t.__posthog_wrapped__||KO(pe.history,"replaceState",(n=>function(r,i,l){n.call(this,r,i,l),o.Bs("replaceState")})),this.js()}}Bs(e){try{var t,o=pe==null||(t=pe.location)==null?void 0:t.pathname;if(!o)return;o!==this.Ls&&this.isEnabled&&this._instance.capture(Tc,{navigation_type:e}),this.Ls=o}catch(n){Fe.error("Error capturing "+e+" pageview",n)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Vo(pe,"popstate",e),this.Ds=()=>{pe&&pe.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[ew]),this.rageclicks=new HO(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Do(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return xt(this.Bt.capture_heatmaps)?xt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;Nse.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[ew]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=Ne?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){pe&&Ne&&(this.zs=this.Yr.bind(this),Vo(pe,Tg,this.zs),this.Us=e=>this.Tt(e||pe?.event),Vo(Ne,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||pe?.event),Vo(Ne,"mousemove",this.Ys,{capture:!0}),this.Ws=new bO(this.instance,Yie,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Vo(Ne,Eg,this.Xs),this.Rs=!0)}Vs(){var e;pe&&Ne&&(this.zs&&pe.removeEventListener(Tg,this.zs),this.Us&&Ne.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&Ne.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&Ne.removeEventListener(Eg,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){var o=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),i=(function(l,c,d){for(var m=l;m&&wv(m)&&!fs(m,"body");){if(m===d)return!1;if(Ct(c,pe?.getComputedStyle(m).position))return!0;m=sB(m)}return!1})(zO(e),["fixed","sticky"],r);return{x:e.clientX+(i?0:n),y:e.clientY+(i?0:o),target_fixed:i,type:t}}Tt(e,t){var o;if(t===void 0&&(t="click"),!FO(e.target)&&QO(e)){var n=this.Ks(e,t);(o=this.rageclicks)!=null&&o.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Ie({},n,{type:"rageclick"})),this.Qs(n)}}Gs(e){!FO(e.target)&&QO(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(pe){var t=pe.location.href,o=this.Bt.custom_personal_data_properties,n=this.Bt.mask_personal_data_properties?[...tu,...o||[]]:[],r=mm(t,n,fm);this.T=this.T||{},this.T[r]||(this.T[r]=[]),this.T[r].push(e)}}Yr(){this.T&&!Oc(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:bO,webVitalsAutocapture:class{constructor(e){var t;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((o,n)=>Ie({},o,{["$web_vitals_"+n.name+"_event"]:Ie({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=o=>{var n,r=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(ze(r))Zi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var i=this.io();ze(i)||(xt(o?.name)||xt(o?.value)?Zi.error("Invalid metric received",o):!this.no||this.no>o.value?(this.T.url!==i&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),ze(this.T.url)&&(this.T.url=i),this.T.firstMetricTimestamp=ze(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,o.attribution&&o.attribution.interactionTargetElement&&(o.attribution.interactionTargetElement=void 0),this.T.metrics.push(Ie({},o,{$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):Zi.error("Ignoring metric with value >= "+this.no,o))}},this.so=()=>{if(!this.Rs){var o,n,r,i,l=Ze.__PosthogExtensions__;ze(l)||ze(l.postHogWebVitalsCallbacks)||({onLCP:o,onCLS:n,onFCP:r,onINP:i}=l.postHogWebVitalsCallbacks),o&&n&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this.ht.bind(this)),this.Rs=!0):Zi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[rw]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,o=Do(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return xt(o)?((t=this._instance.persistence)==null?void 0:t.props[iw])||["CLS","FCP","INP","LCP"]:o}get flushToCaptureTimeoutMs(){return(Do(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Do(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Do(this.oo)&&Ur(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:WO;return e>0&&6e4>=e?WO:e}get isEnabled(){var e=pn?.protocol;if(e!=="http:"&&e!=="https:")return Zi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Do(this.oo)?this.oo.web_vitals:Ea(this.oo)?this.oo:void 0;return Ea(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(Zi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Do(e.capturePerformance)&&!!e.capturePerformance.web_vitals,o=Do(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[rw]:t}),this._instance.persistence.register({[iw]:o})),this.$s=t,this.startIfEnabled()}}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Zi.error("failed to load script",n):e()}))}io(){var e=pe?pe.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,o=this._instance.config.mask_personal_data_properties?[...tu,...t||[]]:[];return mm(e,o,fm)}Zi.error("Could not determine current URL")}}},Hse={exceptionObserver:class{constructor(e){var t,o,n;this.so=()=>{var r;if(pe&&this.isEnabled&&(r=Ze.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var i=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,l=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=Ze.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=i(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=l(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){Cd.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[tw]),this.do=new rie({refillRate:(o=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&o!==void 0?o:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,Gt:Cd}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Do(e)?t=Ie({},t,e):(ze(e)?this.co:e)&&(t=Ie({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Cd.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return Cd.error("failed to load script",n);e()}))}ho(){var e,t,o;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(o=this.uo)==null||o.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[tw]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,o,n,r=(t=e==null||(o=e.$exception_list)==null||(o=o[0])==null?void 0:o.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(r)?Cd.info("Skipping exception capture because of client rate limiting.",{exception:r}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,o;this.fo=[],this.po=new vie([new Eie,new Mie,new Pie,new Tie,new Oie,new Die,new Aie,new Iie],(function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),l=1;r>l;l++)i[l-1]=arguments[l];return function(c,d){d===void 0&&(d=0);for(var m=[],h=c.split(`
163
- `),f=d;h.length>f;f++){var g=h[f];if(1024>=g.length){var v=hO.test(g)?g.replace(hO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){m.push(S);break}}if(m.length>=50)break}}}return(function(x){if(!x.length)return[];var _=Array.from(x);return _.reverse(),_.slice(0,50).map((C=>{return Ie({},C,{filename:C.filename||(P=_,P[P.length-1]||{}).filename,function:C.function||eu});var P}))})(m)}})("web:javascript",_ie,xie)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(ow))!==null&&t!==void 0?t:[],this.mo=yg(this.yo()),this.bo=new Nie(this.mo)}onConfigChange(){this.mo=yg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[ow]:this.fo,[nw]:i})}}get _o(){var e,t=!!this._instance.get_property(nw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!So(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>Lie.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Ie({[vg]:e,[bg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&xt(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ie({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[vg]:e,[bg]:new Date().toISOString()})}wo(e){return Do(e)?Ie({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return So(r)&&r.length>0&&o.$exception_types.push(r),So(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=eB[r.operator],c=Ot(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!xt(e)&&Ot(e)}}},Gse=Ie({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[aw]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(aw)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?JO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Ot(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Lp];if(Ot(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return JO.error(l),void e([],{isLoaded:!1,error:l})}var c=Ot(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Lp]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){xt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Lp)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},Cv),Kse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},m=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[f,g]of Object.entries(h))d[f]={id:m[f],type:f,properties:g};var{$set_once:v,$set:y}=e;return{event:Ie({},t4(e,Fse),{properties:Ie({},e.properties,y?{$set:Ie({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ie({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(XO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var m;Ze["__$$ph_site_app_"+d]=r._instance,(m=Ze.__PosthogExtensions__)==null||m.loadSiteApp==null||m.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(XO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return Lse.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Yse=Ie({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(xt(t))return Jt.warn("Flags not loaded yet. Not loading surveys.");var o=Ot(t);this.jo=o?t.length>0:t,Jt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(Ew)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Jt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Jt.info(eI);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Jt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(Ex);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Jt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new jse(this._instance),Jt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Jt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Jt.info(eI),e([]);var o,n=this._instance.get_property(uw);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Jt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var m,h=r.json.surveys||[],f=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));f.length>0&&((m=this._surveyEventReceiver)==null||m.register(f)),(i=this._instance.persistence)==null||i.register({[uw]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Jt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!xt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Jt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(xt(this._surveyManager))return{eligible:!1,reason:OS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(xt(this._surveyManager))return Jt.warn("init was not called"),{visible:!1,disabledReason:OS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return xt(this._surveyManager)?(Jt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:OS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(xt(this._surveyManager))Jt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(Sse.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Jt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Jt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Jt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Jt.warn("Survey element not found")}else Jt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Jt.warn("Survey not found")}}displaySurvey(e,t){var o;if(xt(this._surveyManager))Jt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Ie({},n,{appearance:Ie({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==yw.Popover&&t.initialResponses&&Jt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Jt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==yw.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Jt.warn("Survey not found")}}cancelPendingSurvey(e){xt(this._surveyManager)?Jt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Cv),Zse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),L4(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=Use||kg(e.hash,"__posthog")||kg(e.hash,"state"),i=r?gO((()=>JSON.parse(atob(decodeURIComponent(r)))))||gO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(tI)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!xt(t)&&ai(t)?t(e,this.instance):oI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(D4));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(tI,JSON.stringify(Ie({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return oI.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),Vo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},Qse=Ie({experiments:Tn},Cv),Jse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;xt(t)||(Ea(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||L4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(Ex);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Js),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Js),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Js),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Js),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Js),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Js),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Js),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Xse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=go("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!xt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(Ex)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,m=Date.now();if(c>m-this.aa||(this.aa=m,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(f,g){var v=f.level||"info",{text:y,number:S}=_4[v]||pie,x=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var C=Ie({},_,f.attributes||{}),P={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:y,body:{stringValue:f.body},attributes:fO(C)};return f.trace_id&&(P.traceId=f.trace_id),f.span_id&&(P.spanId=f.span_id),ze(f.trace_flags)||(P.flags=f.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Ie({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,m){return{resourceLogs:[{resource:{attributes:fO(c)},scopeLogs:[{scope:{name:d,version:m},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},ele=Ie({},Cv,qse,Vse,Hse,Gse,Kse,Yse,Wse,Zse,Qse,Jse,Xse);Fr.__defaultExtensionClasses=Ie({},ele);var iI,_l=(iI=Hd[Pc]=new Fr,(function(){function e(){e.done||(e.done=!0,nB=!1,mo(Hd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():Vo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),iI);const tle="mesh-ui-resources",Lg="html",ole=10080*60*1e3,nle=50,rle=16*1024*1024;function ale(e){return e[0]==="mcp"&&e[1]===y2}function xv(){return new Promise((e,t)=>{const o=indexedDB.open(tle,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Lg)||o.result.createObjectStore(Lg)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function nu(e,t){return e.transaction(Lg,t).objectStore(Lg)}function kw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function ile(e){if(!(typeof indexedDB>"u"))try{const t=await xv(),o=nu(t,"readonly"),n=await kw(o.getAllKeys()),r=await kw(o.getAll()),i=Date.now(),l=n.map((m,h)=>({key:m,value:r[h]})).sort((m,h)=>(h.value?.updatedAt??0)-(m.value?.updatedAt??0)),c=[];let d=0;for(const{key:m,value:h}of l){if(!h||i-h.updatedAt>ole||d>=nle){c.push(m);continue}d++;try{const g=JSON.parse(String(m));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(m)}}if(c.length>0){const m=nu(t,"readwrite");for(const h of c)m.delete(h)}}catch{}}function sle(e){if(typeof indexedDB>"u")return()=>{};const t=xv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!ale(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>rle||t.then(i=>{if(i)try{nu(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function lle(){typeof indexedDB>"u"||xv().then(e=>nu(e,"readwrite").clear()).catch(()=>{})}async function zme(e){if(!(typeof indexedDB>"u"))try{const t=await xv(),o=await kw(nu(t,"readonly").getAllKeys()),n=nu(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===y2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Ng="mesh:rq-cache",mB=1440*60*1e3,cle=1e3,ule=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),dle=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let fB=!1,hB=!1;function mle(e){const t=e[0];return typeof t=="string"&&ule.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&dle.has(e[4])}function fle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Ng);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>mB;if(o.buster!=="4.110.0"||n||!o.state){window.localStorage.removeItem(Ng);return}yz(e,o.state),fB=!0}catch{ple()}}function hle(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=bz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&mle(r.queryKey)});window.localStorage.setItem(Ng,JSON.stringify({buster:"4.110.0",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,cle))})}const pB="studio:org-cache:";function gB(e){return`${pB}${e}`}function jme(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>mB?null:(hB=!0,n)}catch{return null}}function Ume(e,t,o){if(!(typeof window>"u"))try{const n=gB(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function ple(){if(lle(),!(typeof window>"u"))try{window.localStorage.removeItem(Ng);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(pB)&&window.localStorage.removeItem(t)}}catch{}}function gle(){return fB}function vle(){return hB}let hi=!1,Dw=null,sI=!1;const Ox="mesh:lp-distinct-id",MS="/api/_reports/link-token/",ble=1440*60*1e3;function vB(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(MS)&&r.pathname!==MS&&(r.pathname=`${MS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function LS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?vB(o):o]))}const yle=e=>e?(e.properties=LS(e.properties),e.$set&&(e.$set=LS(e.$set)),e.$set_once&&(e.$set_once=LS(e.$set_once)),e):null;function bB(){try{const e=window.localStorage.getItem(Ox);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=ble?t:void 0}catch{return}}function Sle(){try{window.localStorage.removeItem(Ox)}catch{}}function _le(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Ox,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??bB();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function wle(e){const t=bB();if(t&&(Sle(),t!==e))try{_l.alias(t)}catch{}}function Cle(e,t){if(hi||typeof window>"u")return;const o=_le();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:yle,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:vB(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function xle(e,t){hi&&(_l.identify(e,t),wle(e))}function Ele(){hi&&(_l.reset(),Dw=null)}function Tle(e,t){hi&&_l.capture(e,t)}function $me(){return hi}function qme(){if(!hi||sI||typeof performance>"u")return;sI=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Tle("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:gle(),org_cache_restored:vle()})}function Vme(e,t){hi&&e!==Dw&&(_l.group("organization",e,t),Dw=e)}function yB(e,t){if(hi)try{_l.captureException(e,t)}catch{}}let Sp=null;function Ple({children:e}){const t=P2(),{data:o}=rv.useSession();if(t.posthog){Cle(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==Sp?(xle(n,{email:o?.user?.email,name:o?.user?.name}),Sp=n):!n&&Sp&&(Ele(),Sp=null)}return R.jsx(R.Fragment,{children:e})}const Ix=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));Ix.displayName="AlertTriangle";const SB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"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"}));SB.displayName="Archive";const Mx=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));Mx.displayName="Loading01";const _B=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"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"}));_B.displayName="Lock01";const wB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));wB.displayName="RefreshCw01";function Lx(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:R.jsx(Mx,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Rle(e){try{return JSON.parse(e)}catch{return}}function lI(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Rle(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function Ale(e,t){const o=ro.c(25),n=Bg();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>lI(e,t),c=()=>lI(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:m}=AI(d);let h;o[10]!==e?(h=async C=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(C)),C),o[10]=e,o[11]=h):h=o[11];let f;o[12]!==n||o[13]!==i?(f=C=>{n.setQueryData(i,C)},o[12]=n,o[13]=i,o[14]=f):f=o[14];let g;o[15]!==h||o[16]!==f?(g={mutationFn:h,onSuccess:f},o[15]=h,o[16]=f,o[17]=g):g=o[17];const v=_p(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=C=>{const P=n.getQueryData(i),E=typeof C=="function"?C(P):C;v.mutate(E)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,x=m;let _;return o[22]!==S||o[23]!==x?(_=[x,S],o[22]=S,o[23]=x,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,sidePanelWidth:()=>"mesh:side-panel:width",sidebarOpen:()=>"mesh:sidebar-open",preferences:()=>"mesh:user:preferences",lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`mesh:announcement:pt-br:${e}`},kle=["en","pt-BR"];function CB(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Dle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:CB()},xB=["auto","readonly"],Hme=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Ole=["light","dark","system"];function Gme(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(xB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function EB(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],Ale(t,Ile)}function Ile(e){const t={...Dle,...e};return xB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Ole.includes(t.theme)||(t.theme="system"),kle.includes(t.language)||(t.language=CB()),t}async function Mle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Lle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
163
+ `),f=d;h.length>f;f++){var g=h[f];if(1024>=g.length){var v=hO.test(g)?g.replace(hO,"$1"):g;if(!v.match(/\S*Error: /)){for(var y of i){var S=y(v,n);if(S){m.push(S);break}}if(m.length>=50)break}}}return(function(x){if(!x.length)return[];var _=Array.from(x);return _.reverse(),_.slice(0,50).map((C=>{return Ie({},C,{filename:C.filename||(P=_,P[P.length-1]||{}).filename,function:C.function||eu});var P}))})(m)}})("web:javascript",_ie,xie)),this._instance=e,this.fo=(t=(o=this._instance.persistence)==null?void 0:o.get_property(ow))!==null&&t!==void 0?t:[],this.mo=yg(this.yo()),this.bo=new Nie(this.mo)}onConfigChange(){this.mo=yg(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,o,n;if("errorTracking"in e){var r=(t=(o=e.errorTracking)==null?void 0:o.suppressionRules)!==null&&t!==void 0?t:[],i=(n=e.errorTracking)==null?void 0:n.captureExtensionExceptions;this.fo=r,this._instance.persistence&&this._instance.persistence.register({[ow]:this.fo,[nw]:i})}}get _o(){var e,t=!!this._instance.get_property(nw),o=this._instance.config.error_tracking.captureExtensionExceptions;return(e=o??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!So(e)||e.trim().length===0)return void ni.warn("Ignoring exception step because message must be a non-empty string");var o=this.wo(t),{sanitizedProperties:n,droppedKeys:r}=(function(i){if(!i)return{sanitizedProperties:{},droppedKeys:[]};var l=[];return{sanitizedProperties:Object.keys(i).reduce(((c,d)=>Lie.has(d)?(l.push(d),c):(c[d]=i[d],c)),{}),droppedKeys:l}})(o);r.length>0&&ni.warn("Ignoring reserved exception step fields",{droppedKeys:r}),this.bo.add(Ie({[vg]:e,[bg]:new Date().toISOString()},n))}catch(i){ni.error("Failed to add exception step. Ignoring breadcrumb.",i)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void ni.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void ni.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void ni.info("Skipping exception capture because it was thrown by the PostHog SDK")}var o=this.mo.enabled&&xt(e.$exception_steps)?this.To(e):e;try{var n=this._instance.capture("$exception",o,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return n&&this.bo.clear(),n}catch(r){return ni.error("Failed to capture exception event. Dropping this exception.",r),void this.bo.clear()}}catch(r){return void ni.error("Failed to process exception event. Ignoring this exception.",r)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Ie({},e,{$exception_steps:t})}catch(o){return ni.error("Failed to read buffered exception steps. Capturing exception without steps.",o),e}}So(e){this.mo.enabled&&this.bo.add({[vg]:e,[bg]:new Date().toISOString()})}wo(e){return Do(e)?Ie({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((o,n)=>{var{type:r,value:i}=n;return So(r)&&r.length>0&&o.$exception_types.push(r),So(i)&&i.length>0&&o.$exception_values.push(i),o}),{$exception_types:[],$exception_values:[]});return this.fo.some((o=>{var n=o.values.map((r=>{var i,l=eB[r.operator],c=Ot(r.value)?r.value:[r.value],d=(i=t[r.key])!==null&&i!==void 0?i:[];return c.length>0&&l(c,d)}));return o.type==="OR"?n.some(Boolean):n.every(Boolean)}))}xo(e){return e.flatMap((t=>{var o,n;return(o=(n=t.stacktrace)==null?void 0:n.frames)!==null&&o!==void 0?o:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,o,n,r,i=(t=(o=e[0].stacktrace)==null?void 0:o.frames)!==null&&t!==void 0?t:[],l=i[i.length-1];return(n=l==null||(r=l.filename)==null?void 0:r.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}Io(e){return!xt(e)&&Ot(e)}}},Gse=Ie({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[aw]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(aw)||this.ur((()=>this.Ro()))}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.generateProductTours?e():(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"product-tours",(n=>{n?JO.error("Could not load product tours script",n):e()}))}Ro(){var e;!this.Ao&&(e=Ze.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=Ze.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Ot(this.Eo)||t){var o=this.ni;if(o){var n=o.props[Lp];if(Ot(n)&&!t)return this.Eo=n,void e(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:r=>{var i=r.statusCode;if(i!==200||!r.json){var l="Product Tours API could not be loaded, status: "+i;return JO.error(l),void e([],{isLoaded:!1,error:l})}var c=Ot(r.json.product_tours)?r.json.product_tours:[];this.Eo=c,o&&o.register({[Lp]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){xt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Lp)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},Cv),Kse={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var o=this.globalsForEvent(t);this.No.push(o),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=Ze._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,o,n,r,i,l,c;if(!e)throw new Error("Event payload is required");var d={},m=this._instance.get_property("$groups")||[],h=this._instance.get_property("$stored_group_properties")||{};for(var[f,g]of Object.entries(h))d[f]={id:m[f],type:f,properties:g};var{$set_once:v,$set:y}=e;return{event:Ie({},t4(e,Fse),{properties:Ie({},e.properties,y?{$set:Ie({},(t=(o=e.properties)==null?void 0:o.$set)!==null&&t!==void 0?t:{},y)}:{},v?{$set_once:Ie({},(n=(r=e.properties)==null?void 0:r.$set_once)!==null&&n!==void 0?n:{},v)}:{}),elements_chain:(i=(l=e.properties)==null?void 0:l.$elements_chain)!==null&&i!==void 0?i:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],o=()=>{var l;!t.errored&&this.No.length&&(Ji.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((l=this.Fo)==null||l.call(this))},n=!1,r=l=>{t.errored=!l,t.loaded=!0,Ji.info("Site app with id "+e.id+" "+(l?"loaded":"errored")),n&&o()};try{var{processEvent:i}=e.init({posthog:this._instance,callback(l){r(l)}});i&&(t.processEvent=i),n=!0}catch(l){Ji.error(XO+e.id,l),r(!1)}if(n&&t.loaded)try{o()}catch(l){Ji.error("Error while processing buffered events PostHog app with config id "+e.id,l),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var o of e)this.setupSiteApp(o)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var o of Object.values(this.apps))try{o.processEvent==null||o.processEvent(t)}catch(n){Ji.error("Error while processing event "+e.event+" for site app "+o.id,n)}}}onRemoteConfig(e){var t,o,n,r=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((o=this.Fo)==null||o.call(this),(n=e.siteApps)!=null&&n.length)if(this.isEnabled){var i=function(d){var m;Ze["__$$ph_site_app_"+d]=r._instance,(m=Ze.__PosthogExtensions__)==null||m.loadSiteApp==null||m.loadSiteApp(r._instance,c,(h=>{if(h)return Ji.error(XO+d,h)}))};for(var{id:l,url:c}of e.siteApps)i(l)}else Ji.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Wse={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,o,n=this.Bo()||[];ze(this.Lo)&&((t=Ze.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),ze(this.Do)&&((o=Ze.__PosthogExtensions__)==null||(o=o.tracingHeadersPatchFns)==null||o._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,o;(t=Ze.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(o=Ze.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return Lse.error("failed to load script",n);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},Yse=Ie({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(xt(t))return Jt.warn("Flags not loaded yet. Not loading surveys.");var o=Ot(t);this.jo=o?t.length>0:t,Jt.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var o=localStorage.key(t);(o!=null&&o.startsWith(Ew)||o!=null&&o.startsWith("inProgressSurvey_"))&&e.push(o)}e.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)Jt.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)Jt.info(eI);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())Jt.info("Not loading surveys in cookieless mode without consent.");else{var e=Ze?.__PosthogExtensions__;if(e){if(!ze(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var o=e.generateSurveys;if(o)return void this.Vo(o,t);var n=e.loadExternalDependency;if(!n)return void this.Ho(Ex);n(this._instance,"surveys",(r=>{r||!e.generateSurveys?this.Ho("Could not load surveys script",r):this.Vo(e.generateSurveys,t)}))}catch(r){throw this.Ho("Error initializing surveys",r),r}finally{this.$o=!1}}}else Jt.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new jse(this._instance),Jt.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){Jt.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return Jt.info(eI),e([]);var o,n=this._instance.get_property(uw);if(n&&!t)return e(n,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((r=>{var{surveys:i,context:l}=r;return e(i,l)})):(typeof Promise<"u"&&(this.Zo=new Promise((r=>{o=r}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:r=>{var i;this.Zo=null;var l=r.statusCode;if(l!==200||!r.json){var c="Surveys API could not be loaded, status: "+l;Jt.error(c);var d={isLoaded:!1,error:c};return e([],d),void(o==null||o({surveys:[],context:d}))}var m,h=r.json.surveys||[],f=h.filter((v=>(function(y){return!(!y.start_date||y.end_date)})(v)&&((function(y){var S;return!((S=y.conditions)==null||(S=S.events)==null||(S=S.values)==null||!S.length)})(v)||(function(y){var S;return!((S=y.conditions)==null||(S=S.actions)==null||(S=S.values)==null||!S.length)})(v))));f.length>0&&((m=this._surveyEventReceiver)==null||m.register(f)),(i=this._instance.persistence)==null||i.register({[uw]:h});var g={isLoaded:!0};e(h,g),o?.({surveys:h,context:g})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(o){Jt.error("Error in survey callback",o)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!xt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Jt.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((o=>{var n;t=(n=o.find((r=>r.id===e)))!==null&&n!==void 0?n:null})),t}Yo(e){if(xt(this._surveyManager))return{eligible:!1,reason:OS};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(xt(this._surveyManager))return Jt.warn("init was not called"),{visible:!1,disabledReason:OS};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return xt(this._surveyManager)?(Jt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:OS})):new Promise((o=>{this.getSurveys((n=>{var r,i=(r=n.find((c=>c.id===e)))!==null&&r!==void 0?r:null;if(i){var l=this.Yo(i);o({visible:l.eligible,disabledReason:l.reason})}else o({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,o){var n;if(xt(this._surveyManager))Jt.warn("init was not called");else{var r=typeof e=="string"?this.Uo(e):e;if(r!=null&&r.id)if(Sse.includes(r.type)){var i=Ne?.querySelector(t);if(i)return(n=r.appearance)!=null&&n.surveyPopupDelaySeconds?(Jt.info("Rendering survey "+r.id+" with delay of "+r.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var l,c;Jt.info("Rendering survey "+r.id+" with delay of "+((l=r.appearance)==null?void 0:l.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(r,i,o),Jt.info("Survey "+r.id+" rendered")}),1e3*r.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(r,i,o);Jt.warn("Survey element not found")}else Jt.warn("Surveys of type "+r.type+" cannot be rendered in the app");else Jt.warn("Survey not found")}}displaySurvey(e,t){var o;if(xt(this._surveyManager))Jt.warn("init was not called");else{var n=this.Uo(e);if(n){var r=n;if((o=n.appearance)!=null&&o.surveyPopupDelaySeconds&&t.ignoreDelay&&(r=Ie({},n,{appearance:Ie({},n.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==yw.Popover&&t.initialResponses&&Jt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var i=this.canRenderSurvey(n);if(!i.visible)return void Jt.warn("Survey is not eligible to be displayed: ",i.disabledReason)}t.displayType!==yw.Inline?this._surveyManager.handlePopoverSurvey(r,t):this.renderSurvey(r,t.selector,t.properties)}else Jt.warn("Survey not found")}}cancelPendingSurvey(e){xt(this._surveyManager)?Jt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},Cv),Zse={toolbar:class{constructor(e){this.instance=e}Go(e){Ze.ph_toolbar_state=e}Wo(){var e;return(e=Ze.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,o){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),L4(this.instance.config)||!pe||!Ne)return!1;e=e??pe.location,o=o??pe.history;try{if(!t){try{pe.localStorage.setItem("test","test"),pe.localStorage.removeItem("test")}catch{return!1}t=pe?.localStorage}var n,r=Use||kg(e.hash,"__posthog")||kg(e.hash,"state"),i=r?gO((()=>JSON.parse(atob(decodeURIComponent(r)))))||gO((()=>JSON.parse(decodeURIComponent(r)))):null;return i&&i.action==="ph_authorize"?((n=i).source="url",n&&Object.keys(n).length>0&&(i.desiredHash?e.hash=i.desiredHash:o?o.replaceState(o.state,"",e.pathname+e.search):e.hash="")):((n=JSON.parse(t.getItem(tI)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Xo(e){var t=Ze.ph_load_toolbar||Ze.ph_load_editor;!xt(t)&&ai(t)?t(e,this.instance):oI.warn("No toolbar load function found")}loadToolbar(e){var t=!(Ne==null||!Ne.getElementById(D4));if(!pe||t)return!1;var o=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},o?{instrument:!1}:{});if(pe.localStorage.setItem(tI,JSON.stringify(Ie({},n,{source:void 0}))),this.Wo()===2)this.Xo(n);else if(this.Wo()===0){var r;this.Go(1),(r=Ze.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"toolbar",(i=>{if(i)return oI.error("[Toolbar] Failed to load",i),void this.Go(0);this.Go(2),this.Xo(n)})),Vo(pe,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(n)}))}return!0}Jo(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,o){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),o===void 0&&(o=void 0),this.maybeLoadToolbar(e,t,o)}}},Qse=Ie({experiments:Tn},Cv),Jse={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;xt(t)||(Ea(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||L4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Ze?.__PosthogExtensions__;if(e&&!ze(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var o=e.loadExternalDependency;if(!o)return void this.ra(Ex);o(this._instance,"conversations",(n=>{n||!e.initConversations?this.ra("Could not load conversations script",n):this.ta(e.initConversations),this.Qo=!1}))}catch(n){this.ra("Error initializing conversations",n),this.Qo=!1}}else Mr.error("Conversations enabled but missing token in remote config.")}}ta(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Mr.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Mr.error("Cannot complete initialization: remote config is null")}ra(e,t){Mr.error(e,t),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Mr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!yi(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,o){var n=this;return Nr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(e,t,o):(Mr.warn(Js),null)}))()}getMessages(e,t){var o=this;return Nr((function*(){return o._conversationsManager?o._conversationsManager.getMessages(e,t):(Mr.warn(Js),null)}))()}markAsRead(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Mr.warn(Js),null)}))()}getTickets(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Mr.warn(Js),null)}))()}requestRestoreLink(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Mr.warn(Js),null)}))()}restoreFromToken(e){var t=this;return Nr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Mr.warn(Js),null)}))()}restoreFromUrlToken(){var e=this;return Nr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Mr.warn(Js),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Xse={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=go("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,o=(t=e.logs)==null?void 0:t.captureConsoleLogs;!xt(o)&&o&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var e=Ze?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(o=>{var n;o||(n=e.logs)==null||!n.initializeLogs?this.Gt.error("Could not load logs script",o):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(Ex)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,o,n,r,i,l;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(o=this._instance.config.logs)==null?void 0:o.flushIntervalMs)!==null&&t!==void 0?t:3e3,d=(n=(r=this._instance.config.logs)==null?void 0:r.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,m=Date.now();if(c>m-this.aa||(this.aa=m,this.oa=0,this.la=!1),d>this.oa){this.oa++;var h=(function(f,g){var v=f.level||"info",{text:y,number:S}=_4[v]||pie,x=String(Date.now())+"000000",_={};g.distinctId&&(_.posthogDistinctId=g.distinctId),g.sessionId&&(_.sessionId=g.sessionId),g.currentUrl&&(_["url.full"]=g.currentUrl),g.screenName&&(_["screen.name"]=g.screenName),g.appState&&(_["app.state"]=g.appState),g.activeFeatureFlags&&g.activeFeatureFlags.length>0&&(_.feature_flags=g.activeFeatureFlags);var C=Ie({},_,f.attributes||{}),P={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:S,severityText:y,body:{stringValue:f.body},attributes:fO(C)};return f.trace_id&&(P.traceId=f.trace_id),f.span_id&&(P.spanId=f.span_id),ze(f.trace_flags)||(P.flags=f.trace_flags),P})(e,this.ua());this.sa.push({record:h}),((i=(l=this._instance.config.logs)==null?void 0:l.maxBufferSize)!==null&&i!==void 0?i:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=this.sa;this.sa=[];var o=this._instance.config.logs,n=Ie({"service.name":o?.serviceName||"unknown_service"},o?.environment&&{"deployment.environment":o.environment},o?.serviceVersion&&{"service.version":o.serviceVersion},o?.resourceAttributes),r=(function(l,c,d,m){return{resourceLogs:[{resource:{attributes:fO(c)},scopeLogs:[{scope:{name:d,version:m},logRecords:l}]}]}})(t.map((l=>l.record)),n,Bn.LIB_NAME,Bn.LIB_VERSION),i=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:i,data:r,compression:"best-available",batchKey:"logs",transport:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:o}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=o}if(Ze!=null&&(e=Ze.location)!=null&&e.href&&(t.currentUrl=Ze.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},ele=Ie({},Cv,qse,Vse,Hse,Gse,Kse,Yse,Wse,Zse,Qse,Jse,Xse);Fr.__defaultExtensionClasses=Ie({},ele);var iI,_l=(iI=Hd[Pc]=new Fr,(function(){function e(){e.done||(e.done=!0,nB=!1,mo(Hd,(function(t){t._dom_loaded()})))}Ne!=null&&Ne.addEventListener?Ne.readyState==="complete"?e():Vo(Ne,"DOMContentLoaded",e,{capture:!1}):pe&&Fe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),iI);const tle="mesh-ui-resources",Lg="html",ole=10080*60*1e3,nle=50,rle=16*1024*1024;function ale(e){return e[0]==="mcp"&&e[1]===y2}function xv(){return new Promise((e,t)=>{const o=indexedDB.open(tle,1);o.onupgradeneeded=()=>{o.result.objectStoreNames.contains(Lg)||o.result.createObjectStore(Lg)},o.onsuccess=()=>e(o.result),o.onerror=()=>t(o.error)})}function nu(e,t){return e.transaction(Lg,t).objectStore(Lg)}function kw(e){return new Promise((t,o)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>o(e.error)})}async function ile(e){if(!(typeof indexedDB>"u"))try{const t=await xv(),o=nu(t,"readonly"),n=await kw(o.getAllKeys()),r=await kw(o.getAll()),i=Date.now(),l=n.map((m,h)=>({key:m,value:r[h]})).sort((m,h)=>(h.value?.updatedAt??0)-(m.value?.updatedAt??0)),c=[];let d=0;for(const{key:m,value:h}of l){if(!h||i-h.updatedAt>ole||d>=nle){c.push(m);continue}d++;try{const g=JSON.parse(String(m));e.getQueryData(g)===void 0&&e.setQueryData(g,h.html,{updatedAt:0})}catch{c.push(m)}}if(c.length>0){const m=nu(t,"readwrite");for(const h of c)m.delete(h)}}catch{}}function sle(e){if(typeof indexedDB>"u")return()=>{};const t=xv().catch(()=>null);return e.getQueryCache().subscribe(o=>{const n=o.query;if(!Array.isArray(n.queryKey)||!ale(n.queryKey)||n.state.status!=="success")return;const r=n.state.data;typeof r!="string"||r.length>rle||t.then(i=>{if(i)try{nu(i,"readwrite").put({html:r,updatedAt:Date.now()},JSON.stringify(n.queryKey))}catch{}})})}function lle(){typeof indexedDB>"u"||xv().then(e=>nu(e,"readwrite").clear()).catch(()=>{})}async function zme(e){if(!(typeof indexedDB>"u"))try{const t=await xv(),o=await kw(nu(t,"readonly").getAllKeys()),n=nu(t,"readwrite");for(const r of o)try{const i=JSON.parse(String(r));i[1]===y2&&i[3]===e&&n.delete(r)}catch{}}catch{}}const Ng="mesh:rq-cache",mB=1440*60*1e3,cle=1e3,ule=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),dle=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let fB=!1,hB=!1;function mle(e){const t=e[0];return typeof t=="string"&&ule.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&dle.has(e[4])}function fle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Ng);if(!t)return;const o=JSON.parse(t),n=!o.timestamp||Date.now()-o.timestamp>mB;if(o.buster!=="4.111.0"||n||!o.state){window.localStorage.removeItem(Ng);return}yz(e,o.state),fB=!0}catch{ple()}}function hle(e){if(typeof window>"u")return()=>{};let t=null;const o=()=>{t=null;try{const n=bz(e,{shouldDehydrateQuery:r=>r.state.status==="success"&&mle(r.queryKey)});window.localStorage.setItem(Ng,JSON.stringify({buster:"4.111.0",timestamp:Date.now(),state:n}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(o,cle))})}const pB="studio:org-cache:";function gB(e){return`${pB}${e}`}function jme(e,t){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(gB(e));if(!o)return null;const n=JSON.parse(o)[t];return!n||Date.now()-n.updatedAt>mB?null:(hB=!0,n)}catch{return null}}function Ume(e,t,o){if(!(typeof window>"u"))try{const n=gB(e),r=window.localStorage.getItem(n),i=r?JSON.parse(r):{};i[t]={data:o,updatedAt:Date.now()},window.localStorage.setItem(n,JSON.stringify(i))}catch{}}function ple(){if(lle(),!(typeof window>"u"))try{window.localStorage.removeItem(Ng);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(pB)&&window.localStorage.removeItem(t)}}catch{}}function gle(){return fB}function vle(){return hB}let hi=!1,Dw=null,sI=!1;const Ox="mesh:lp-distinct-id",MS="/api/_reports/link-token/",ble=1440*60*1e3;function vB(e){const t="https://analytics.invalid",o=/^[a-z][a-z\d+.-]*:\/\//i.test(e),n=e.startsWith("//");try{const r=new URL(e,t);let i=!1;for(const l of["key","d"])r.searchParams.has(l)&&(r.searchParams.delete(l),i=!0);return r.pathname.startsWith(MS)&&r.pathname!==MS&&(r.pathname=`${MS}redacted`,i=!0),i?o?r.toString():n?`//${r.host}${r.pathname}${r.search}${r.hash}`:`${r.pathname}${r.search}${r.hash}`:e}catch{return e}}function LS(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,typeof o=="string"?vB(o):o]))}const yle=e=>e?(e.properties=LS(e.properties),e.$set&&(e.$set=LS(e.$set)),e.$set_once&&(e.$set_once=LS(e.$set_once)),e):null;function bB(){try{const e=window.localStorage.getItem(Ox);if(!e)return;const{id:t,ts:o}=JSON.parse(e);return typeof t!="string"||!t||typeof o!="number"?void 0:Date.now()-o<=ble?t:void 0}catch{return}}function Sle(){try{window.localStorage.removeItem(Ox)}catch{}}function _le(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(Ox,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const o=t??bB();return o?Object.keys(window.localStorage).some(r=>r.startsWith("ph_")&&r.endsWith("_posthog"))?void 0:o:void 0}catch{return}}function wle(e){const t=bB();if(t&&(Sle(),t!==e))try{_l.alias(t)}catch{}}function Cle(e,t){if(hi||typeof window>"u")return;const o=_le();_l.init(e,{api_host:t,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...o?{bootstrap:{distinctID:o}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:yle,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:n=>({...n,...typeof n.name=="string"?{name:vB(n.name)}:{}})},person_profiles:"identified_only"}),hi=!0}function xle(e,t){hi&&(_l.identify(e,t),wle(e))}function Ele(){hi&&(_l.reset(),Dw=null)}function Tle(e,t){hi&&_l.capture(e,t)}function $me(){return hi}function qme(){if(!hi||sI||typeof performance>"u")return;sI=!0;const e=performance.getEntriesByType("navigation")[0],t=o=>{const n=performance.getEntriesByName(o,"measure")[0];return n?Math.round(n.duration):void 0};Tle("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:gle(),org_cache_restored:vle()})}function Vme(e,t){hi&&e!==Dw&&(_l.group("organization",e,t),Dw=e)}function yB(e,t){if(hi)try{_l.captureException(e,t)}catch{}}let Sp=null;function Ple({children:e}){const t=P2(),{data:o}=rv.useSession();if(t.posthog){Cle(t.posthog.key,t.posthog.host);const n=o?.user?.id??null;n&&n!==Sp?(xle(n,{email:o?.user?.email,name:o?.user?.name}),Sp=n):!n&&Sp&&(Ele(),Sp=null)}return R.jsx(R.Fragment,{children:e})}const Ix=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));Ix.displayName="AlertTriangle";const SB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"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"}));SB.displayName="Archive";const Mx=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));Mx.displayName="Loading01";const _B=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"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"}));_B.displayName="Lock01";const wB=({size:e=24,color:t="currentColor",...o})=>D.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},D.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));wB.displayName="RefreshCw01";function Lx(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{className:"flex items-center justify-center min-h-screen w-full",children:R.jsx(Mx,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Rle(e){try{return JSON.parse(e)}catch{return}}function lI(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const o=localStorage.getItem(e),n=o?Rle(o):void 0,r=typeof t=="function"?t(n):n??t;if(n===void 0||r!==n)try{const i=JSON.stringify(r);localStorage.setItem(e,i)}catch{}return r}function Ale(e,t){const o=ro.c(25),n=Bg();let r;o[0]!==e?(r=["localStorage",e],o[0]=e,o[1]=r):r=o[1];const i=r;let l,c;o[2]!==t||o[3]!==e?(l=()=>lI(e,t),c=()=>lI(e,t),o[2]=t,o[3]=e,o[4]=l,o[5]=c):(l=o[4],c=o[5]);let d;o[6]!==i||o[7]!==l||o[8]!==c?(d={queryKey:i,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},o[6]=i,o[7]=l,o[8]=c,o[9]=d):d=o[9];const{data:m}=AI(d);let h;o[10]!==e?(h=async C=>(typeof localStorage<"u"&&localStorage.setItem(e,JSON.stringify(C)),C),o[10]=e,o[11]=h):h=o[11];let f;o[12]!==n||o[13]!==i?(f=C=>{n.setQueryData(i,C)},o[12]=n,o[13]=i,o[14]=f):f=o[14];let g;o[15]!==h||o[16]!==f?(g={mutationFn:h,onSuccess:f},o[15]=h,o[16]=f,o[17]=g):g=o[17];const v=_p(g);let y;o[18]!==v||o[19]!==n||o[20]!==i?(y=C=>{const P=n.getQueryData(i),E=typeof C=="function"?C(P):C;v.mutate(E)},o[18]=v,o[19]=n,o[20]=i,o[21]=y):y=o[21];const S=y,x=m;let _;return o[22]!==S||o[23]!==x?(_=[x,S],o[22]=S,o[23]=x,o[24]=_):_=o[24],_}const uu={chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`mesh:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,sidePanelWidth:()=>"mesh:side-panel:width",sidebarOpen:()=>"mesh:sidebar-open",preferences:()=>"mesh:user:preferences",lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,ptBrAnnouncementSeen:e=>`mesh:announcement:pt-br:${e}`},kle=["en","pt-BR"];function CB(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Dle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:CB()},xB=["auto","readonly"],Hme=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Ole=["light","dark","system"];function Gme(){try{const e=JSON.parse(localStorage.getItem(uu.preferences())??"{}");if(xB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function EB(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=uu.preferences(),e[0]=t):t=e[0],Ale(t,Ile)}function Ile(e){const t={...Dle,...e};return xB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Ole.includes(t.theme)||(t.theme="system"),kle.includes(t.language)||(t.language=CB()),t}async function Mle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Lle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const o=[];if(e.light&&Object.keys(e.light).length>0){const n=Object.entries(e.light).map(([r,i])=>` ${r}: ${i};`).join(`
164
164
  `);o.push(`:root {
165
165
  ${n}
166
166
  }`)}if(e.dark&&Object.keys(e.dark).length>0){const n=Object.entries(e.dark).map(([r,i])=>` ${r}: ${i};`).join(`
@@ -232,4 +232,4 @@ debug?`,"orgs.monitoring.propertyFilters":"Filtros de propriedade","orgs.monitor
232
232
  e.g. usuario1@example.com, usuario2@example.com
233
233
  ou um por linha`,"common.inviteMemberDialog.errorFailedInvite":"Falha ao convidar {count} membro(s)","common.inviteMemberDialog.errorGeneric":"Falha ao convidar membros","common.inviteMemberDialog.errorNoValidEmail":"Digite pelo menos um endereço de e-mail válido","common.inviteMemberDialog.errorSelectRole":"Selecione uma função","common.inviteMemberDialog.inviteButton":"Convidar {count} membro(s)","common.inviteMemberDialog.invitingButton":"Convidando...","common.inviteMemberDialog.permAllConnections":"Todas as conexões","common.inviteMemberDialog.permAllTools":"todas as ferramentas","common.inviteMemberDialog.permConnections":"{count} conexão(ões)","common.inviteMemberDialog.permFullOrgAccess":"Acesso total à organização","common.inviteMemberDialog.permOrgPerms":"{count} permissão(ns) de org","common.inviteMemberDialog.permTools":"{count} ferramenta(s)","common.inviteMemberDialog.roleSelectPlaceholder":"Selecione uma função","common.inviteMemberDialog.successMultiple":"{count} membros convidados com sucesso!","common.inviteMemberDialog.successSingle":"Membro convidado com sucesso!","common.inviteMemberDialog.title":"Convidar membros","common.keyboardShortcutsDialog.title":"Atalhos de teclado","common.noAccessScreen.askAdminToInvite":"Peça a um administrador que o convide.","common.noAccessScreen.couldNotFind":"Não conseguimos encontrar uma organização chamada","common.noAccessScreen.goToHome":"Ir para home","common.noAccessScreen.noAccess":"Sem acesso","common.noAccessScreen.noAccessTo":"Você não tem acesso a","common.noAccessScreen.organizationNotFound":"Organização não encontrada","common.pendingInviteScreen.acceptButton":"Aceitar convite","common.pendingInviteScreen.acceptDescription":"Aceite o convite para se juntar a esta organização.","common.pendingInviteScreen.acceptingButton":"Aceitando…","common.pendingInviteScreen.declineButton":"Recusar","common.pendingInviteScreen.decliningButton":"Recusando…","common.pendingInviteScreen.failedToAccept":"Falha ao aceitar o convite","common.pendingInviteScreen.failedToDecline":"Falha ao recusar o convite","common.pendingInviteScreen.invitationDeclined":"Convite recusado","common.pendingInviteScreen.invitedTo":"Você foi convidado para {orgName}","common.requestPendingScreen.description":"Sua solicitação para ingressar em {orgName} está aguardando aprovação de um administrador. Você terá acesso após a aprovação.","common.requestPendingScreen.goHome":"Ir para início","common.requestPendingScreen.title":"Solicitação pendente","common.requestToJoinScreen.description":"Um administrador deve aprovar solicitações de e-mails @{domain} antes que você possa entrar.","common.requestToJoinScreen.failedToRequest":"Falha ao solicitar acesso","common.requestToJoinScreen.goToHome":"Ir para início","common.requestToJoinScreen.requestButton":"Solicitar acesso","common.requestToJoinScreen.requesting":"Solicitando…","common.requestToJoinScreen.title":"Solicitar acesso a {orgName}?","common.simpleIconPicker.filterPlaceholder":"Filtrar…","common.simpleIconPicker.noIconsFound":"Nenhum ícone encontrado","common.ssoRequiredScreen.goBack":"Voltar","common.ssoRequiredScreen.orgRequiresSsoAuth":"Esta organização requer autenticação SSO para acessar.","common.ssoRequiredScreen.requiresSsoAuth":"requer autenticação SSO","common.ssoRequiredScreen.signInWithSso":"Entrar com SSO","common.ssoRequiredScreen.title":"Autenticação SSO Necessária","common.ssoRequiredScreen.via":"via {domain}","common.tagMultiSelect.addTags":"Adicionar tags...","common.tagMultiSelect.available":"Disponível","common.tagMultiSelect.createTag":'Criar "{tagName}"',"common.tagMultiSelect.noTagsFound":"Nenhuma tag encontrada.","common.tagMultiSelect.searchOrCreate":"Pesquisar ou criar...","common.tagMultiSelect.selected":"Selecionado","common.toolInputForm.enterPlaceholder":"Digite {fieldKey}…","common.toolInputForm.false":"falso","common.toolInputForm.jsonPlaceholder":"Digite {fieldKey} como JSON…","common.toolInputForm.selectPlaceholder":"Selecione…","common.toolInputForm.true":"verdadeiro","common.toolSetSelector.filterAll":"Todos","common.toolSetSelector.filterSelected":"Selecionados","common.toolSetSelector.filterUnselected":"Não selecionados","common.toolSetSelector.noConnectionsAvailable":"Nenhuma conexão disponível","common.toolSetSelector.noConnectionsFound":"Nenhuma conexão encontrada","common.toolSetSelector.noServersSelected":"Nenhum servidor selecionado","common.toolSetSelector.noToolsAvailable":"Esta conexão não tem ferramentas disponíveis","common.toolSetSelector.noUnselectedServers":"Nenhum servidor não selecionado","common.toolSetSelector.searchPlaceholder":"Pesquisar servidores MCP...","common.toolSetSelector.selectConnection":"Selecione uma conexão para visualizar suas ferramentas","common.useStartThreadFromPrompt.failedToStartChat":"Falha ao iniciar o chat. Tente novamente.","common.useStartThreadFromPrompt.mcpClientNotAvailable":"Cliente MCP não disponível","common.versionCheckDialog.available":"Uma nova versão está disponível","common.versionCheckDialog.outdatedVersion":"Você está visualizando uma versão desatualizada desta página. Atualize para obter as últimas atualizações.","common.versionCheckDialog.refresh":"Atualizar","common.createAgentDropdown.createFromScratch":"Criar do zero","common.createAgentDropdown.importFromGitHub":"Importar do GitHub","common.createAgentDropdown.importFromDeco":"Importar do deco.cx","common.mainPanelTabs.overview":"Visão Geral","common.mainPanelTabs.preview":"Visualização","common.mainPanelTabs.code":"Código","common.mainPanelTabs.content":"Conteúdo","common.mainPanelTabs.reviewChanges":"Revisar alterações","common.mainPanelTabs.automations":"Automações","common.mainPanelTabs.settings":"Configurações","common.mainPanelTabs.report":"Relatório","common.taskBoard.listView":"Lista","common.taskBoard.boardView":"Quadro"},Vce={"commerceOnboarding.companionCard.configure":"Configurar","commerceOnboarding.companionCard.configureAriaLabel":"Configurar {title}","commerceOnboarding.companionCard.configureDescription":"Configure o {title} para enriquecer os dados","commerceOnboarding.companionCard.connect":"Conectar","commerceOnboarding.companionCard.connectAriaLabel":"Conectar {title}","commerceOnboarding.companionCard.connected":"Conectado","commerceOnboarding.companionCard.disconnect":"Desconectar","commerceOnboarding.companionCard.disconnectAriaLabel":"Desconectar {title}","commerceOnboarding.companionCard.disconnectError":"Não foi possível desconectar. Tente novamente.","commerceOnboarding.companionCard.disconnectedSuccess":"{title} desconectado","commerceOnboarding.companionCard.editConfiguration":"Editar configuração","commerceOnboarding.companionCard.grantAccessDescription":"Conceda acesso ao nosso leitor e informe o identificador","commerceOnboarding.githubConfigForm.cancel":"Cancelar","commerceOnboarding.githubConfigForm.failedToSave":"Não foi possível salvar a configuração","commerceOnboarding.githubConfigForm.githubConnectionNotFound":"Conexão do GitHub não encontrada.","commerceOnboarding.githubConfigForm.invalidRepository":'Repositório inválido: "{repo}". Use o formato owner/nome.',"commerceOnboarding.githubConfigForm.loadingRepositories":"Carregando repositórios...","commerceOnboarding.githubConfigForm.noGithubInstallation":'Nenhuma instalação do GitHub encontrada para "{owner}".',"commerceOnboarding.githubConfigForm.noRepositoriesFound":"Nenhum repositório encontrado. Digite o nome do repositório (owner/nome) para buscar.","commerceOnboarding.githubConfigForm.save":"Salvar","commerceOnboarding.githubConfigForm.saving":"Salvando...","commerceOnboarding.githubConfigForm.searchFailedPartial":"Parte da busca falhou — alguns repositórios podem não ter aparecido. Tente novamente ou digite owner/nome.","commerceOnboarding.githubConfigForm.searchFailedTotal":"Não foi possível buscar os repositórios (erro ou tempo esgotado). Tente novamente ou digite o repositório no formato owner/nome.","commerceOnboarding.githubConfigForm.searchRepositoryLabel":"Buscar repositório","commerceOnboarding.githubConfigForm.searchRepositoryPlaceholder":"Buscar repositório","commerceOnboarding.githubConfigForm.selectRepository":"Selecione um repositório","commerceOnboarding.saBindingForm.bind":"Vincular","commerceOnboarding.saBindingForm.bindError":"Não foi possível vincular.","commerceOnboarding.saBindingForm.cancel":"Cancelar","commerceOnboarding.saBindingForm.connectedSuccess":"{label} conectado","commerceOnboarding.saBindingForm.copyEmailLabel":"Copiar e-mail do service account","commerceOnboarding.saBindingForm.emailCopied":"E-mail copiado","commerceOnboarding.saBindingForm.googleLoginAlternative":"autorizar via login do Google","commerceOnboarding.saBindingForm.resourceIdRequired":"Informe o {resourceLabel}","commerceOnboarding.saBindingForm.storeUrlUnavailable":"URL da loja indisponível — recarregue a página.","commerceOnboarding.saBindingForm.verifying":"Verificando...","commerceOnboarding.vtexConfigForm.accountNameLabel":"Nome da conta","commerceOnboarding.vtexConfigForm.accountNamePlaceholder":"Nome da sua conta VTEX","commerceOnboarding.vtexConfigForm.appKeyLabel":"App Key (opcional)","commerceOnboarding.vtexConfigForm.appKeyPlaceholder":"App Key da VTEX","commerceOnboarding.vtexConfigForm.appTokenLabel":"App Token (opcional)","commerceOnboarding.vtexConfigForm.appTokenPlaceholder":"App Token da VTEX","commerceOnboarding.vtexConfigForm.cancelButton":"Cancelar","commerceOnboarding.vtexConfigForm.saveButton":"Salvar","commerceOnboarding.vtexConfigForm.savingButton":"Salvando...","commerceOnboarding.vtexConfigForm.savingError":"Não foi possível salvar a configuração"},Hce={"collections.collectionDisplayButton.displayAndFilters":"Exibição & filtros","collections.collectionDisplayButton.sortBy":"Ordenar por","collections.collectionTableWrapper.loading":"Carregando...","collections.collectionTableWrapper.noItemsFound":"Nenhum item encontrado","collections.mutations.itemCreatedSuccessfully":"Item criado com sucesso","collections.mutations.itemUpdatedSuccessfully":"Item atualizado com sucesso","collections.mutations.itemDeletedSuccessfully":"Item deletado com sucesso","collections.mutations.createItemFailed":"Falha ao criar item: {error}","collections.mutations.updateItemFailed":"Falha ao atualizar item: {error}","collections.mutations.deleteItemFailed":"Falha ao deletar item: {error}"},Gce={"chat.agentCreate.agentCreated":"Agente criado: {name}","chat.agentCreate.cancelled":"Criação de agente cancelada","chat.agentCreate.couldntCreate":"Não foi possível criar o agente","chat.agentCreate.createAgent":"Criar agente","chat.agentCreate.created":"Agente criado","chat.agentCreate.creating":"Criando agente","chat.agentCreate.seeAgent":"Ver agente","chat.agentCreate.seeAgentLabel":"Ver agente: {name}","chat.agentIcons.claudeCode":"Claude Code","chat.agentIcons.codex":"Codex","chat.agentList.agentsNoun":"agentes","chat.agentList.couldntLoad":"Não foi possível carregar agentes","chat.agentList.listAgents":"Listar agentes","chat.agentList.loading":"Carregando agentes","chat.agentList.multiAgents":"{count} agentes","chat.agentList.noAgents":"Nenhum agente ainda","chat.agentList.noAgentsDesc":"Esta organização ainda não criou nenhum agente.","chat.agentList.oneAgent":"1 agente","chat.agentList.unavailable":"Lista de agentes indisponível","chat.agentModels.balancedQuality":"Qualidade equilibrada","chat.agentModels.deeperReasoning":"Raciocínio mais profundo","chat.agentModels.gptLunaLabel":"GPT-5.6 Luna","chat.agentModels.gptSolLabel":"GPT-5.6 Sol","chat.agentModels.gptTerraLabel":"GPT-5.6 Terra","chat.agentModels.haikuLabel":"Haiku 4.5","chat.agentModels.opusLabel":"Opus 4.8 1M","chat.agentModels.quickerResponses":"Respostas mais rápidas","chat.agentModels.sonnetLabel":"Sonnet 5","chat.approval.acceptButton":"Aceitar","chat.approval.batchedLabel":"{count} aprovação(ões) pendente(s)","chat.approval.defaultDenyReason":"O usuário negou esta chamada de ferramenta, ofereça outras alternativas.","chat.approval.denyButton":"Negar","chat.approval.needsApproval":"Aprovação necessária","chat.approval.noInput":"Sem entrada","chat.approval.preparingRequest":"Preparando solicitação de aprovação...","chat.assistant.messagePlural":"{count} mensagem(ns)","chat.assistant.noResponseGenerated":"Nenhuma resposta foi gerada","chat.assistant.resumedBackgroundTask":"Retomado — tarefa em segundo plano concluída","chat.assistant.resumingTask":"Retomando tarefa...","chat.assistant.toolCallPlural":"{count} chamada(s) de ferramenta","chat.brandContext.brand":"Marca","chat.brandContext.brandContextSet":"Contexto de marca definido","chat.brandContext.brandSet":"Marca definida: {name}","chat.brandContext.brandWithName":"Marca · {name}","chat.brandContext.colorAccent":"Destaque","chat.brandContext.colorBackground":"Fundo","chat.brandContext.colorForeground":"Primeiro Plano","chat.brandContext.colorPrimary":"Primário","chat.brandContext.colorSecondary":"Secundário","chat.brandContext.colorsSection":"Cores","chat.brandContext.couldNotLoadBrand":"Não foi possível carregar a marca","chat.brandContext.couldNotLoadBrands":"Não foi possível carregar as marcas","chat.brandContext.defaultBadge":"padrão","chat.brandContext.extractingBrand":"Extraindo marca","chat.brandContext.extractionFailed":"Falha ao extrair marca","chat.brandContext.fromDomain":"de {domain}","chat.brandContext.loadingBrand":"Carregando marca","chat.brandContext.loadingBrands":"Carregando marcas","chat.brandContext.multipleBrands":"{count} marca(s)","chat.brandContext.noBrandsContext":"A organização ainda não configurou nenhum contexto de marca.","chat.brandContext.noBrandsYet":"Nenhuma marca ainda","chat.brandContext.oneBrand":"1 marca","chat.brandContext.typographySection":"Tipografia","chat.brandContext.unknownError":"Erro desconhecido","chat.brandContext.untitled":"Sem Título","chat.chat.jumpToLatest":"Ir para o mais recente","chat.chat.loadingOlderMessages":"Carregando mensagens mais antigas…","chat.chatContext.activeTaskProviderMissingContext":"ActiveTaskProvider deve ser usado dentro de ChatContextProvider","chat.chatContext.cancelFailedStatus":"Falha ao cancelar: {status}","chat.chatContext.couldNotRemoveOriginalMessage":"Não foi possível remover a mensagem original","chat.chatContext.failedToCancel":"Falha ao cancelar","chat.chatContext.failedToQueueMessage":"Falha ao enfileirar mensagem","chat.chatContext.failedToSendEditedMessage":"Falha ao enviar mensagem editada","chat.chatContext.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em alguns momentos","chat.chatContext.useChatPrefsMissingContext":"useChatPrefs deve ser usado dentro de ChatContextProvider","chat.chatContext.useChatStreamMissingContext":"useChatStream deve ser usado dentro de ActiveTaskProvider","chat.chatContext.useChatTaskMissingContext":"useChatTask deve ser usado dentro de ChatContextProvider","chat.collapsibleHighlight.closeLabel":"Fechar","chat.collapsibleHighlight.closeTitle":"Fechar","chat.common.copy":"Copiar","chat.common.seeAll":"Ver todos os {count} {noun}","chat.connectDesktopDialog.agentClaudeCodeDescription":"Executa através do CLI do Claude Code","chat.connectDesktopDialog.agentClaudeCodeLabel":"Claude Code","chat.connectDesktopDialog.agentCodexDescription":"Executa através do CLI do Codex","chat.connectDesktopDialog.agentCodexLabel":"Codex","chat.connectDesktopDialog.connectYourDesktop":"Conecte seu desktop","chat.connectDesktopDialog.connectedTo":"Conectado a {desktopName}","chat.connectDesktopDialog.machineAgentsDescription":"Esta máquina fornece os seguintes agentes locais.","chat.connectDesktopDialog.notDetected":"Não detectado","chat.connectDesktopDialog.runCommandDescription":"Execute este comando no terminal do seu desktop. A caixa de diálogo será fechada assim que seu desktop ficar online.","chat.connectDesktopDialog.waitingForDesktop":"Aguardando desktop…","chat.connectDesktopDialog.yourDesktop":"Seu desktop","chat.connectionList.connectionNoun":"conexões","chat.connectionList.emptySummary":"Esta organização não conectou nenhum MCP.","chat.connectionList.emptyTitle":"Nenhuma conexão ainda","chat.connectionList.errorTitle":"Não foi possível carregar conexões","chat.connectionList.loadingTitle":"Carregando conexões","chat.connectionList.multipleConnections":"{count} conexões","chat.connectionList.singleConnection":"1 conexão","chat.connectionList.unavailableTitle":"Lista de conexões indisponível","chat.contextPanel.agentLabel":"Agente","chat.contextPanel.assistantPercent":"Assistente {pct}%","chat.contextPanel.contextBreakdownSection":"Análise do Contexto","chat.contextPanel.contextLimitLabel":"Limite de Contexto","chat.contextPanel.costLabel":"Custo","chat.contextPanel.emptyState":"Inicie uma conversa para ver o contexto","chat.contextPanel.inputTokensLabel":"Tokens de Entrada","chat.contextPanel.lastActivityLabel":"Última Atividade","chat.contextPanel.messagesLabel":"Mensagens","chat.contextPanel.modelLabel":"Modelo","chat.contextPanel.newChat":"Novo chat","chat.contextPanel.otherPercent":"Outro {pct}%","chat.contextPanel.outputTokensLabel":"Tokens de Saída","chat.contextPanel.rawMessagesSection":"Mensagens brutas","chat.contextPanel.reasoningTokensLabel":"Tokens de Raciocínio","chat.contextPanel.requestLabel":"Solicitação","chat.contextPanel.sessionCreatedLabel":"Sessão Criada","chat.contextPanel.sessionLabel":"Sessão","chat.contextPanel.sessionTokensLabel":"Tokens da Sessão (cobrados)","chat.contextPanel.subtask":"Subtarefa","chat.contextPanel.subtasksSection":"Subtarefas","chat.contextPanel.systemPromptLabel":"Prompt do sistema","chat.contextPanel.title":"Contexto","chat.contextPanel.tokAbbrev":"tok","chat.contextPanel.toolsActive":"ferramentas ativas","chat.contextPanel.usageLabel":"Uso","chat.contextPanel.userPercent":"Usuário {pct}%","chat.creditsEmptyState.add":"Adicionar","chat.creditsEmptyState.bestValueLabel":"Melhor custo","chat.creditsEmptyState.description":"Seus créditos gratuitos foram utilizados em outro workspace. Adicione créditos para usar IA aqui.","chat.creditsEmptyState.enterCustomAmount":"Inserir valor personalizado","chat.creditsEmptyState.opening":"Abrindo...","chat.creditsEmptyState.popularLabel":"Popular","chat.creditsEmptyState.skipForNow":"Pular por enquanto","chat.creditsEmptyState.starterLabel":"Iniciante","chat.creditsEmptyState.title":"Este workspace não possui créditos","chat.creditsEmptyState.topUpFailed":"Falha ao recarregar: {message}","chat.creditsEmptyState.useYourOwnProvider":"Usar seu próprio provedor","chat.creditsExhaustedBanner.add":"Adicionar","chat.creditsExhaustedBanner.benefit1":"Acesso a 100+ modelos de IA","chat.creditsExhaustedBanner.benefit2":"API unificada, sem necessidade de chaves separadas","chat.creditsExhaustedBanner.benefit3":"Pague apenas pelo que usar","chat.creditsExhaustedBanner.customPlaceholder":"50","chat.creditsExhaustedBanner.description":"Seus créditos foram esgotados. Adicione mais para continuar usando IA em todos os seus agentes.","chat.creditsExhaustedBanner.dismiss":"Descartar","chat.creditsExhaustedBanner.enterCustom":"Inserir valor personalizado","chat.creditsExhaustedBanner.manageProviders":"Gerenciar provedores","chat.creditsExhaustedBanner.opening":"Abrindo...","chat.creditsExhaustedBanner.tierBestValue":"Melhor valor","chat.creditsExhaustedBanner.tierPopular":"Popular","chat.creditsExhaustedBanner.tierStarter":"Iniciante","chat.creditsExhaustedBanner.title":"Recarregue para continuar criando","chat.creditsExhaustedBanner.topupError":"Falha na recarga: {error}","chat.decopilot.back":"Voltar","chat.decopilot.couldNotFetchModels":"Não foi possível buscar modelos deste provedor.","chat.decopilot.failedToLoadModels":"Falha ao carregar modelos","chat.decopilot.key":"Chave","chat.decopilot.manageApiKeys":"Gerenciar chaves de API","chat.decopilot.manageModels":"Gerenciar modelos","chat.decopilot.retry":"Tentar novamente","chat.decopilot.searchAllModels":"Pesquisar todos os modelos...","chat.decopilot.searchForModel":"Procure um modelo...","chat.decopilot.selectedCount":"{count} selecionado(s)","chat.decopilot.tierCheaper":"Mais barato","chat.decopilot.tierFaster":"Mais rápido","chat.decopilot.tierOther":"Outro","chat.decopilot.tierSmarter":"Mais inteligente","chat.decopilot.tryAnotherProviderOrRetry":"Tente outro provedor ou tente novamente.","chat.desktopCli.tierFastDescription":"Respostas mais rápidas","chat.desktopCli.tierSmartDescription":"Qualidade equilibrada","chat.desktopCli.tierThinkingDescription":"Raciocínio mais profundo","chat.desktopOfflineBanner.instructions":"Execute bunx decocms@latest link em um terminal naquele computador para trazê-lo de volta. As mensagens que você enviar enquanto estiver offline falharão.","chat.desktopOfflineBanner.label":"Seu desktop está offline","chat.desktopOfflineBanner.reconnectButton":"Reconectar desktop","chat.desktopOfflineBanner.title":"Este chat é executado no seu desktop, que não está conectado no momento.","chat.generateImage.failed":"Falhou","chat.generateImage.generatedImage":"Imagem gerada","chat.generateImage.generatedImageAlt":"Imagem gerada","chat.generateImage.generatingImage":"Gerando imagem","chat.generateImage.imageGeneration":"Geração de imagem","chat.generateImage.imageQueuedGeneratingInBackground":"Imagem na fila — gerando em segundo plano","chat.generateImage.noImagesGenerated":"Nenhuma imagem gerada","chat.generateImage.reference":"referência","chat.generateImage.references":"referências:","chat.generic.cancelled":"Cancelado","chat.generic.done":"Concluído","chat.generic.dynamicTool":"Ferramenta Dinâmica","chat.generic.failed":"Falhou","chat.generic.failedToLoad":"Falha ao carregar app {toolName}","chat.generic.loadingApp":"Carregando app...","chat.generic.openInPanel":"Abrir no painel","chat.generic.preparing":"Preparando...","chat.generic.retry":"Tentar novamente","chat.generic.waitingForApproval":"Aguardando sua aprovação","chat.highlight.continue":"Continuar","chat.highlight.copiedToClipboard":"Copiado para a área de transferência","chat.highlight.copy":"Copiar","chat.highlight.copyErrorDetails":"Copiar detalhes do erro","chat.highlight.couldNotCopy":"Não foi possível copiar","chat.highlight.errorOccurred":"Erro ocorreu","chat.highlight.fixInChat":"Corrigir no chat","chat.highlight.fixInChatMessage":"Encontrei este erro: {error}. Você pode me ajudar a corrigi-lo?","chat.highlight.hideTechnicalDetails":"Ocultar detalhes técnicos","chat.highlight.implementPlanMessage":`Implemente este plano:
234
234
 
235
- {plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.approved":"Aprovado","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.proposePlan.rejected":"Rejeitado","chat.proposePlan.viewPlan":"Ver plano","chat.queueTray.queuedMessage":"{count} mensagem na fila","chat.queueTray.queuedMessages":"{count} mensagens na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.runtimeSwitcher.cloudSandbox":"Sandbox em nuvem","chat.runtimeSwitcher.notAvailableOnThisDeployment":"Não disponível nesta implantação","chat.runtimeSwitcher.runDecocmsLinkOnYourDesktop":"Execute `decocms link` em seu desktop","chat.runtimeSwitcher.runOn":"Executar em","chat.runtimeSwitcher.runningOn":"Executando em {label}","chat.runtimeSwitcher.runsInDecosCloud":"Executa na nuvem do deco","chat.runtimeSwitcher.runsOnYourMachineViaDecoLink":"Executa em sua máquina via deco link","chat.runtimeSwitcher.runtime":"Tempo de execução: {label}","chat.runtimeSwitcher.thisDevice":"Dispositivo","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionCount":"{current} de {total}","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}","chat.mention.noItemsFound":"Nenhum item encontrado"},Kce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},Wce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},Yce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},Zce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerDeleteDialog.cancel":"Cancelar","sandbox.fileExplorerDeleteDialog.delete":"Excluir","sandbox.fileExplorerDeleteDialog.description":"Isso excluirá permanentemente","sandbox.fileExplorerDeleteDialog.folderSuffix":" e tudo dentro dela.","sandbox.fileExplorerDeleteDialog.titleFile":"Excluir arquivo?","sandbox.fileExplorerDeleteDialog.titleFolder":"Excluir pasta?","sandbox.fileExplorerDeleteDialog.unsavedChangesMany":"{count} arquivos abertos têm alterações não salvas que serão perdidas.","sandbox.fileExplorerDeleteDialog.unsavedChangesOne":"Um arquivo aberto tem alterações não salvas que serão perdidas.","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categorias","sandbox.pathParamPickerChip.kindCategoryNoun":"categoria","sandbox.pathParamPickerChip.kindProductHeading":"Produtos","sandbox.pathParamPickerChip.kindProductNoun":"produto","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.blocks":"Blocos","sandbox.preview.blocksEditor":"Editor de blocos","sandbox.preview.catchAllParamLabel":"caminho","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.enterToGo":"Enter para ir","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.hardReload":"Recarregamento forçado","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.moreOptions":"Mais opções","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.siteSeo":"SEO do site","sandbox.preview.startingPreview":"Iniciando seu preview","sandbox.preview.startingPreviewHint":"Você já pode fazer alterações — elas aparecem quando o preview estiver pronto.","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.valueForParam":"Valor de {label}","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.productionUrlField.description":"Exibida no preview enquanto o servidor de desenvolvimento inicia, para você já visualizar e editar.","sandbox.productionUrlField.label":"URL de produção","sandbox.productionUrlField.placeholder":"https://exemplo.com","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.othersThreadTitle":"Você está no chat de outra pessoa","sandbox.stateCard.othersThreadMessage":"Esta conversa ({label}) é de outro membro. Continuar aqui significa dar sequência ao trabalho dela — comece um novo chat para trabalhar no seu.","sandbox.stateCard.othersThreadContinue":"Continuar mesmo assim","sandbox.stateCard.othersThreadNewChat":"Começar novo chat","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Qce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},Jce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Xce={...yce,...Sce,..._ce,...wce,...Cce,...xce,...Ece,...Tce,...Pce,...Rce,...Ace,...kce,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce,...zce,...jce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Kce,...Wce,...Yce,...Zce,...Jce,...Qce},eue={en:vce,"pt-BR":Xce};function Fm(){const e=ro.c(2),[t]=EB(),o=eue[t.language];let n;return e[0]!==o?(n=(r,i)=>bce(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const Bm=new Oz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});fle(Bm);hle(Bm);ile(Bm);sle(Bm);function tue(e){const t=ro.c(2),{children:o}=e,n=Fm();bj({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=R.jsx(R.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function oue(e){const t=ro.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx(vj,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=R.jsx(Lx,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=R.jsxs(Iz,{client:Bm,children:[n,R.jsx(D.Suspense,{fallback:r,children:R.jsx(Nle,{children:R.jsx(WH,{children:R.jsx(Yae,{children:R.jsx(Ple,{children:R.jsx(tue,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function Nx(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:R.jsx(Mx,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function nue(...e){return PL(TC(e))}const rue=QL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function pm(e){const t=ro.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?FC:"button";let m;t[6]!==o||t[7]!==r||t[8]!==l?(m=nue(rue({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==m?(h=R.jsx(d,{"data-slot":"button",className:m,...n}),t[10]=d,t[11]=n,t[12]=m,t[13]=h):h=t[13],h}const aue=["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 iue(e){const t=ro.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:aue}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=R.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,R.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function TB(e){const t=ro.c(20),{orgName:o}=e,n=Fm(),r=sue;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=R.jsx("div",{className:"bg-muted p-3 rounded-full",children:R.jsx(SB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=R.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let m;t[8]!==d?(m=R.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=m):m=t[9];let h;t[10]!==c||t[11]!==m?(h=R.jsxs("div",{className:"space-y-2",children:[c,m]}),t[10]=c,t[11]=m,t[12]=h):h=t[12];let f;t[13]!==n?(f=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=f):f=t[14];let g;t[15]!==f?(g=R.jsx(pm,{onClick:r,children:f}),t[15]=f,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=R.jsxs(iue,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function sue(){window.location.href="/"}function lue(){const e=ro.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=nv(t);let n;return e[1]!==o?(n=R.jsx(pm,{variant:"outline",size:"sm",asChild:!0,children:R.jsx(xm,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function cue(e){const t=ro.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=R.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:R.jsx(_B,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=R.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let m;t[3]!==l?(m=R.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=m):m=t[4];let h;t[5]!==d||t[6]!==m?(h=R.jsxs("div",{className:"space-y-1",children:[d,m]}),t[5]=d,t[6]=m,t[7]=h):h=t[7];let f;t[8]!==r?(f=r??R.jsx(lue,{}),t[8]=r,t[9]=f):f=t[9];let g;return t[10]!==h||t[11]!==f?(g=R.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,f]}),t[10]=h,t[11]=f,t[12]=g):g=t[12],g}const cI="__mesh_chunk_reload_ts";function PB(e){return e?.message==="Organization is archived"}function uue(e){return!!e?.message?.includes("Access denied")}function uI(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class due extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),yB(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:PB(this.state.error)?R.jsx(TB,{}):uue(this.state.error)?R.jsx(cue,{}):R.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(Ix,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),R.jsx(pm,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kme(e){const t=ro.c(3),o=Fm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(due,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class mue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=uI(t);if(yB(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(cI),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(cI,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&uI(this.state.error)?R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:R.jsx(wB,{className:"h-6 w-6 text-primary"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),R.jsx(pm,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?PB(this.state.error)?R.jsx(TB,{}):R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(Ix,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),R.jsx(pm,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function fue(e){const t=ro.c(3),o=Fm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(mue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}function RB(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function hue(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Wme(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,dI=!1;const Ow=new Set;function Fg(){for(const e of Ow)e()}function pue(){dI||typeof window>"u"||(dI=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Fg()}),window.addEventListener("appinstalled",()=>{ui=null,Fg()}))}function Yme(){ui!==null&&(ui=null,Fg())}function gue(e){return Ow.add(e),()=>{Ow.delete(e)}}function vue(){return ui}function bue(){return null}function yue(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function Sue(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Zme(){const e=ro.c(5),t=D.useSyncExternalStore(gue,vue,bue);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=yue(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=Sue(),l=_ue,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function _ue(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Fg(),e.outcome}const Hr=EK({component:()=>R.jsx(fue,{children:R.jsx(D.Suspense,{fallback:R.jsx(Lx,{}),children:R.jsx(X2,{})})})}),wue=rt({getParentRoute:()=>Hr,path:"/login",component:ct(()=>lt(()=>import("./login-BUPb9Aqy.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>ye({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),Cue=rt({getParentRoute:()=>Hr,path:"/cli/auth-success",component:ct(()=>lt(()=>import("./cli-auth-success-DcYlqPOT.js"),__vite__mapDeps([7,6])))}),xue=rt({getParentRoute:()=>Hr,path:"/reset-password",component:ct(()=>lt(()=>import("./reset-password-DcLOeuUy.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>ye({token:F().optional(),error:F().optional()}))}),Eue=rt({getParentRoute:()=>Hr,path:"/auth/$pathname",component:ct(()=>lt(()=>import("./auth-catchall-CMhRWvdJ.js"),[]))}),Tue=rt({getParentRoute:()=>Hr,path:"/oauth/callback",component:ct(()=>lt(()=>import("./oauth-callback-BPX1yEnk.js"),__vite__mapDeps([9,10,11])))}),Pue=rt({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:ct(()=>lt(()=>import("./oauth-callback-ai-provider-DElydn7F.js"),[]))}),Ev=rt({getParentRoute:()=>Hr,path:"/_admin",component:ct(()=>lt(()=>import("./layout-BPzmXhj_.js"),__vite__mapDeps([12,13,14,15])))}),Rue=rt({getParentRoute:()=>Ev,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),Aue=rt({getParentRoute:()=>Ev,path:"/users",component:ct(()=>lt(()=>import("./users-hB1pAYf2.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),kue=rt({getParentRoute:()=>Ev,path:"/orgs",component:ct(()=>lt(()=>import("./orgs-CSn-u-tx.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),Due=Ev.addChildren([Rue,Aue,kue]),Fx=rt({getParentRoute:()=>Hr,id:"shell",component:ct(()=>lt(()=>import("./shell-layout-DPWoiFkr.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,55,4,5,56,57,58,59])))}),Oue=rt({getParentRoute:()=>Fx,path:"/",beforeLoad:async()=>{const e=hue();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await dL();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),Iue=rt({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await dL();if(e&&e.length>0)throw is({to:"/"})},component:ct(()=>lt(()=>import("./onboarding-DASxAvUP.js"),__vite__mapDeps([60,14,6,61,29,30,2,38,62,45,49,63,64,65])))}),Mue=rt({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:ct(()=>lt(()=>import("./commerce-onboarding-B1iWCHBf.js"),__vite__mapDeps([66,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,21,51,39,22,100,101,102,103,38,2,32,104,105,106,10,1,3,4,5,6,61,29,107]))),validateSearch:pi(()=>ye({org:F().optional(),siteUrl:F().optional()}))}),Lue=rt({getParentRoute:()=>Hr,path:"/report/$domain",component:ct(()=>lt(()=>import("./reports-C3U6ysZ7.js"),__vite__mapDeps([108,1,2,3,4,5,71,25,74,76,49,83,89,93,46,96,97,51,109]))),validateSearch:pi(()=>ye({key:F().optional()}))}),Tv=rt({getParentRoute:()=>Fx,path:"/$org",beforeLoad:({params:e})=>{RB({org:e.org})},component:ct(()=>lt(()=>import("./org-layout-I-AE-Gv9.js"),[]))}),zm=rt({getParentRoute:()=>Tv,id:"org-shell",component:ct(()=>lt(()=>import("./index-izQk8sQ6.js"),__vite__mapDeps([110,18,19,20,21,22,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,39,100,101,102,103,38,2,32,104,105,106,10,56,111,112,113,114,115,52,54,55,4,5,58,116,117,118,57,119,120,121,122,123,124,125,126,127,44,29,14,59,128,129,130,131,132,3,133,134,40,135,136,137,31,138,15,139,140,141,142,143,144,145,146,147,148,149,150,34,35,151])))}),AB=rt({getParentRoute:()=>zm,id:"agent-shell",pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-BFTm3kDp.js").then(e=>e.b4),__vite__mapDeps([152,25,115,52,54,53,11,55,4,5,58,112,116,117,56,118,57,153,40,22,41,42,43,131,132,125,134,18,19,20,21,24,26,154,141,150,71,49,80,70,72,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,155,138,29,34,35,143,156,39,157,158,159,160,44,14,59,68,126,127,161,103,38,2,120,124,162,36,113,121,122,102,106,10,101,107,147,148,100,163,146,128,129,130,3,133,135,136,137,31,145,164,165,111,166,167,168,114,151,32,169,170,171,172,119,173,174,175,17,27,62,123,104,176,105,177,178,179])))}),Nue=ye({virtualmcpid:F().optional(),tab:F().optional(),sidepanel:oo([Ge("chat"),Ge(0)]).optional(),main:oo([F(),Ge(0)]).optional(),preview:F().optional(),id:F().optional(),toolName:F().optional(),tasks:ft().optional(),mainOpen:ft().optional(),autosend:F().optional(),runLocally:F().optional(),connect:zM().optional(),siteUrl:F().optional()}),Fue=rt({getParentRoute:()=>AB,path:"/$taskId",validateSearch:Nue,beforeLoad:({params:e,search:t})=>{RB({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Bue=ye({main:F().optional(),connect:zM().optional(),siteUrl:F().optional()}),zue=rt({getParentRoute:()=>zm,path:"/",validateSearch:Bue,pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-DvzxBwP2.js"),__vite__mapDeps([180,53,11,54,55,4,5,127])))}),jue=ye({path:F().optional(),preview:F().optional(),skill:F().optional()}),Uue=rt({getParentRoute:()=>zm,path:"/files",validateSearch:jue,pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-DnyLLaV-.js").then(e=>e.Y),__vite__mapDeps([168,83,64,95,46,65,48,51,20,114,39,21,2,156,41,81,82,78,56,151,93,32,117,111,135,42,43,113,22,88,90,158,87,107,79,80,19,97,98])))}),$ue=ye({task:F().optional()}),que=rt({getParentRoute:()=>zm,path:"/board",validateSearch:$ue,component:ct(()=>lt(()=>import("./index-D68VZ7Yi.js").then(e=>e.n),__vite__mapDeps([162,36,29,30,70,71,72,25,73,69,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,99,48,21,51,113,53,11,121,122,39,125,102,106,10,101,154,141,58,55,4,118,34,35,107,160,143,147,148,120,44,14,52,54,5,56,57,59,100])))}),Po=rt({getParentRoute:()=>Tv,path:"/settings",component:ct(()=>lt(()=>import("./settings-layout-KG-3LWCC.js"),__vite__mapDeps([181,13,18,19,20,21,22,17,77,45,86,88,90,96,30,51,172,182,58,170,169,118,55,4,151,149,119])))}),Vue=rt({getParentRoute:()=>Tv,path:"/install",component:ct(()=>lt(()=>import("./org-install-BaWsrsHM.js"),[]))}),Hue=rt({getParentRoute:()=>Po,path:"/",component:ct(()=>lt(()=>import("./index-redirect-D1rzKgvE.js"),__vite__mapDeps([183,172,184])))}),Gue=rt({getParentRoute:()=>Po,path:"/connections",component:ct(()=>lt(()=>import("./connections-BStqRXj9.js"),__vite__mapDeps([185,101,53,11,186,107,41,79,80,25,85,22,187,31,27,28,137,129,130,125,57,58,131,132,3,4,5,133,134,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,86,87,88,19,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,21,51,26,17,18,20,188,114,172,189,39,120,103,38,2,40,135,112,136,106,10,165]))),validateSearch:pi(()=>ye({action:no(["create"]).optional(),tab:no(["all","connected"]).optional()}))}),Kue=rt({getParentRoute:()=>Po,path:"/connections/$appSlug",component:ct(()=>lt(()=>import("./connection-detail-B_nYC26c.js"),__vite__mapDeps([190,101,53,11,26,136,2,95,98,191,17,18,19,20,21,22,122,78,88,125,130,57,58,40,41,42,43,159,174,31,83,84,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,50,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,65,30,99,48,51,10,148,113,112,192,126,54,55,4,5,127,154,141,29,161,68,103,38,188,114,193,163,133,124,134,107]))),validateSearch:pi(()=>ye({tab:F().optional()}))}),Wue=rt({getParentRoute:()=>Po,path:"/connections/$appSlug/$collectionName/$itemId",component:ct(()=>lt(()=>import("./collection-detail-BpU07fFr.js"),__vite__mapDeps([194,26,53,11,103,38,2,135,191,17,18,19,20,21,22,122,78,88,125,101,130,57,58,95,40,41,42,43,159,174,31,83,84,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,50,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,98,65,30,99,48,51,10,148,113,112,192,126,54,55,4,5,127,195,133,157,158,115,52,116,117,56,118,68,44,29,39,14,59]))),validateSearch:pi(()=>ye({replayId:F().optional()}))}),Yue=rt({getParentRoute:()=>Po,path:"/monitor",component:ct(()=>lt(()=>import("./index-CK7G-IhD.js"),__vite__mapDeps([196,27,28,17,18,19,20,21,22,26,197,172,198,184,153,40,41,42,43,131,132,125,53,11,112,134,24,154,141,150,71,49,80,70,72,25,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,51,155,58,138,29,34,35,143,156,39,56,54,55,4,5,115,52,116,117,118,57,157,158,159,160,44,14,59,68,126,127,161,103,38,2,133,31,113,199,165,147,148,135,137,62,195,193]))),validateSearch:pi(()=>ye({tab:no(["overview","audit","dashboards","threads","automations"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:Ee(F()).optional().default([]),virtualMcpId:Ee(F()).optional().default([]),tool:F().default(""),status:no(["all","success","errors"]).default("all"),search:F().default(""),page:ft().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Zue=rt({getParentRoute:()=>Po,path:"/general",component:ct(()=>lt(()=>import("./general-vNZSooJh.js"),__vite__mapDeps([200,17,18,19,20,21,22,195,74,90,48,141,175,29,30,2,167,134,75,201,58,31,40,41,42,43,114,197,172,198,184])))}),Que=rt({getParentRoute:()=>Po,path:"/connect",component:ct(()=>lt(()=>import("./connect-FnskaYUQ.js"),__vite__mapDeps([202,195,134,163,143,41,81,88,90,98,17,18,19,20,21,22,167,75,144,53,11])))}),Jue=rt({getParentRoute:()=>Po,path:"/brand-context",component:ct(()=>lt(()=>import("./brand-context-DgtumXpd.js"),__vite__mapDeps([203,42,79,95,84,98,114,17,18,19,20,21,22,58,175,90,51,2,135,197,172,198,184])))}),Xue=rt({getParentRoute:()=>Po,path:"/ai-providers",component:ct(()=>lt(()=>import("./ai-providers-plym3Xnj.js"),__vite__mapDeps([204,71,17,18,19,20,21,22,111,167,134,75,116,58,49,115,52,54,53,11,55,4,5,112,117,56,118,57,164,39,120,165,41,2,40,42,43,73,72,88,28,166,91,79,29,30,83,145,81,87,97,175,146,114,95,173,35,98,197,172,198,184])))}),ede=rt({getParentRoute:()=>Po,path:"/secrets",component:ct(()=>lt(()=>import("./secrets-XAb4hF-c.js"),__vite__mapDeps([205,71,95,30,99,39,21,2,38,40,22,41,42,43,111,135,17,18,19,20,167,134,75,176,58,197,172,198,184])))}),tde=rt({getParentRoute:()=>Po,path:"/files",component:ct(()=>lt(()=>import("./files-Bzp-HJo7.js"),[]))}),ode=rt({getParentRoute:()=>Po,path:"/buckets",component:ct(()=>lt(()=>import("./buckets-CXll4zGq.js"),__vite__mapDeps([206,71,86,95,98,114,39,21,2,38,40,22,41,42,43,62,111,135,17,18,19,20,167,134,75,177,58,197,172,198,184])))}),nde=rt({getParentRoute:()=>Po,path:"/members",component:ct(()=>lt(()=>import("./members-C61nWLWJ.js"),__vite__mapDeps([207,186,107,41,79,80,25,85,22,187,31,27,28,17,18,19,20,21,23,24,26,140,39,103,38,40,42,43,135,141,142,167,134,75,182,172,58,29,30,34,35,36,154,208,114,88,96,98,48,165,147,148,113,95,197,198,184])))}),rde=rt({getParentRoute:()=>Po,path:"/roles",component:ct(()=>lt(()=>import("./roles-B3ROu0Hg.js"),__vite__mapDeps([209,142,141,208,31,114,107,41,79,80,95,98,23,24,25,17,18,19,20,21,22,26,27,28,166,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,51,132,165,138,53,11,124,154,36,125,116,58,29,62,167,134,172,198,184]))),validateSearch:pi(()=>ye({role:F().optional()}))}),ade=rt({getParentRoute:()=>Po,path:"/sso",component:ct(()=>lt(()=>import("./sso-VK6rLmml.js"),__vite__mapDeps([210,201,58,167,134,75,31,2,40,22,41,42,43,17,18,19,20,21,114,62,59,98,197,172,198,184])))}),ide=rt({getParentRoute:()=>Po,path:"/profile",component:ct(()=>lt(()=>import("./profile-uSFlSS6u.js"),__vite__mapDeps([211,17,18,19,20,21,22,29,30,62,40,41,42,43,146,2,91,92,94,175,169,139,167,134,75])))}),sde=rt({getParentRoute:()=>Po,path:"/store",component:ct(()=>lt(()=>import("./store-Buz8wmTR.js"),__vite__mapDeps([212,71,79,95,98,2,62,111,29,30,113,125,53,11,17,18,19,20,21,22,130,57,58,167,134,75,197,172,198,184])))}),lde=rt({getParentRoute:()=>Po,path:"/registry",component:ct(()=>lt(()=>import("./registry-V1-HJ81t.js"),__vite__mapDeps([213,197,172,198,184])))}),cde=rt({getParentRoute:()=>Po,path:"/store/registry",component:ct(()=>lt(()=>import("./store-registry-C6J7OMm0.js"),__vite__mapDeps([214,197,172,198,184])))}),ude=rt({getParentRoute:()=>Po,path:"/agents",component:ct(()=>lt(()=>import("./agents-list-CBw7DhQD.js"),__vite__mapDeps([215,107,41,79,80,45,121,53,11,122,112,17,18,19,20,21,22,73,98,173,35,70,71,72,25,69,74,75,76,77,78,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,65,30,99,48,51,126,54,55,4,5,127,134,172,26,192,125,123,39,124,32,106,10,101,104,102,171,114,27])))}),dde=rt({getParentRoute:()=>Po,path:"/automations",component:ct(()=>lt(()=>import("./automations-D7xHBu36.js"),__vite__mapDeps([216,95,51,27,28,17,18,19,20,21,22,26,155,53,11,58,126,112,54,55,4,5,127,178,114,107,41,79,80,47,98,70,71,72,25,73,69,74,75,76,77,78,45,49,42,43,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,197,172,198,184])))}),mde=Po.addChildren([Hue,Gue,Kue,Wue,ude,dde,Yue,Zue,Que,Jue,Xue,ede,tde,ode,nde,rde,ade,ide,sde,cde,lde]),fde=AB.addChildren([Fue]),hde=zm.addChildren([zue,Uue,que,fde]),pde=Tv.addChildren([hde,mde,Vue]),gde=Fx.addChildren([Oue,pde]),vde=Hr.addChildren([gde,Due,Iue,Mue,Lue,wue,Cue,xue,Eue,Tue,Pue]);function bde(){const e=ro.c(16),t=Fm();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=R.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=R.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=R.jsx("button",{type:"button",onClick:yde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function yde(){return window.history.back()}const Sde=NK({routeTree:vde,defaultPendingComponent:Lx,defaultPendingMs:200,defaultNotFoundComponent:bde});pue();const _de=document.getElementById("root");ez.createRoot(_de).render(R.jsx(D.StrictMode,{children:R.jsx(oue,{children:R.jsx(zK,{router:Sde})})}));export{mme as $,Nme as A,pm as B,vme as C,pme as D,Kme as E,Vz as F,uu as G,mX as H,Ale as I,ye as J,T2 as K,xm as L,F as M,gme as N,X2 as O,Aa as P,Pde as Q,Ra as R,Lx as S,_l as T,bt as U,ws as V,lae as W,ple as X,SB as Y,Nx as Z,zz as _,rv as a,jn as a$,hI as a0,Qo as a1,Ee as a2,no as a3,Dt as a4,It as a5,cQ as a6,Hme as a7,lQ as a8,Gme as a9,wB as aA,zH as aB,ee as aC,cme as aD,Co as aE,AN as aF,yl as aG,Pm as aH,en as aI,kN as aJ,dt as aK,ds as aL,ft as aM,lt as aN,ru as aO,Bp as aP,wI as aQ,Mz as aR,Lz as aS,jz as aT,Nz as aU,Fz as aV,Yo as aW,$z as aX,ZR as aY,Bz as aZ,Cde as a_,au as aa,P2 as ab,ume as ac,hD as ad,Iw as ae,mee as af,ia as ag,am as ah,zg as ai,YC as aj,Zc as ak,vs as al,bi as am,sa as an,IN as ao,hee as ap,vee as aq,pee as ar,oee as as,AH as at,b2 as au,nme as av,dme as aw,sQ as ax,Sme as ay,FH as az,Fm as b,Vme as b$,Sr as b0,nl as b1,hme as b2,Yme as b3,Zme as b4,Gt as b5,lme as b6,rme as b7,sme as b8,zme as b9,TC as bA,QL as bB,Vre as bC,n3 as bD,a3 as bE,noe as bF,qN as bG,Aoe as bH,$ee as bI,qee as bJ,oF as bK,vi as bL,ra as bM,Rde as bN,aa as bO,wde as bP,ioe as bQ,uK as bR,DI as bS,rue as bT,Yg as bU,Qd as bV,bs as bW,iue as bX,hue as bY,Wme as bZ,CB as b_,y2 as ba,kde as bb,Ode as bc,FC as bd,Yde as be,Wq as bf,MM as bg,Gq as bh,oo as bi,Ge as bj,Vw as bk,DM as bl,Nde as bm,Qq as bn,yV as bo,Kw as bp,Hw as bq,tV as br,Fde as bs,Hde as bt,y7 as bu,Pq as bv,hl as bw,vt as bx,gH as by,PL as bz,ro as c,_me as c$,qme as c0,jme as c1,uL as c2,TB as c3,Ume as c4,Ade as c5,Mde as c6,d7 as c7,m7 as c8,rC as c9,CV as cA,YS as cB,QS as cC,ZS as cD,Xde as cE,l_ as cF,wn as cG,t_ as cH,eme as cI,ome as cJ,tme as cK,Zde as cL,foe as cM,hoe as cN,moe as cO,fX as cP,lX as cQ,hX as cR,uX as cS,pX as cT,dX as cU,eF as cV,Aee as cW,jC as cX,HN as cY,BC as cZ,kee as c_,c2 as ca,aC as cb,Wg as cc,KM as cd,T7 as ce,YM as cf,_7 as cg,M7 as ch,VV as ci,GV as cj,YV as ck,i7 as cl,w7 as cm,HV as cn,KV as co,ZV as cp,QV as cq,s7 as cr,p7 as cs,ime as ct,ame as cu,Mme as cv,w2 as cw,Qde as cx,EH as cy,Jde as cz,Cm as d,wme as d$,Dee as d0,cX as d1,mN as d2,nN as d3,UC as d4,zC as d5,rm as d6,Vj as d7,GM as d8,ZM as d9,Gde as dA,vq as dB,Ide as dC,Bde as dD,pi as dE,Gw as dF,Lde as dG,Zte as dH,Qte as dI,eoe as dJ,Jte as dK,Xte as dL,xme as dM,Eme as dN,Ame as dO,kme as dP,Dme as dQ,Ome as dR,Tme as dS,Pme as dT,Rme as dU,dQ as dV,uQ as dW,UL as dX,Dde as dY,fme as dZ,Cme as d_,XM as da,t2 as db,o2 as dc,r2 as dd,qde as de,Vde as df,Ude as dg,$de as dh,xV as di,jde as dj,QM as dk,e2 as dl,n2 as dm,Kde as dn,JM as dp,FV as dq,zde as dr,HM as ds,i9 as dt,h7 as du,Wde as dv,J7 as dw,t9 as dx,N7 as dy,L7 as dz,_p as e,Ede as e0,xde as e1,RI as e2,Im as e3,Tm as e4,bte as e5,Cte as e6,Rte as e7,yte as e8,Ste as e9,vte as ea,lF as eb,_te as ec,wte as ed,xte as ee,Ete as ef,Tte as eg,Pte as eh,Ate as ei,Dte as ej,Ote as ek,nv as f,Fme as g,Lme as h,Bme as i,R as j,Mx as k,cue as l,nue as m,AI as n,Bg as o,$me as p,Tle as q,D as r,bme as s,cs as t,CC as u,EB as v,yme as w,pl as x,_B as y,Ix as z};
235
+ {plan}`,"chat.highlight.pleaseContinue":"Por favor, continue.","chat.highlight.responseIncomplete":"Resposta incompleta","chat.highlight.responseStoppedUnexpectedly":"A resposta parou inesperadamente: {reason}","chat.highlight.showTechnicalDetails":"Mostrar detalhes técnicos","chat.highlight.warningDescriptionContentFilter":"A resposta foi filtrada devido à política de conteúdo.","chat.highlight.warningDescriptionLength":"A resposta atingiu o limite de saída do modelo. Diferentes modelos têm limites diferentes. Tente trocar de modelo ou peça para continuar.","chat.highlight.warningDescriptionToolCalls":"A resposta foi pausada após a execução da ferramenta para evitar loops infinitos e economizar custos. Clique continuar para continuar trabalhando.","chat.iceBreakers.allPromptsTitle":"Todos os prompts","chat.iceBreakers.failedToLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.iceBreakers.mcpClientNotAvailable":"Cliente MCP não disponível","chat.iceBreakers.moreButton":"+{count} mais","chat.iceBreakers.noPromptsMatch":'Nenhum prompt correspondente a "{search}"',"chat.iceBreakers.promptsLabel":"Prompts","chat.iceBreakers.searchPromptsPlaceholder":"Pesquisar prompts...","chat.imageLightbox.downloadImage":"Baixar imagem","chat.imageLightbox.zoomIn":"Aumentar zoom","chat.imageLightbox.zoomOut":"Diminuir zoom","chat.input.cancelRecording":"Cancelar gravação","chat.input.cancelRun":"Cancelar execução","chat.input.createImage":"Criar imagem","chat.input.deepResearch":"Pesquisa profunda","chat.input.dropFilesHere":"Solte {fileTypes} aqui","chat.input.microphoneAccessDenied":"Acesso ao microfone negado — clique para tentar novamente","chat.input.modelCannotReadAttachments":"Este modelo não consegue ler anexos — mude para um com suporte a visão ou arquivos","chat.input.planMode":"Modo de planejamento","chat.input.readOnlyOthersChat":"Apenas leitura - você está visualizando um chat de outra pessoa","chat.input.sendMessage":"Enviar mensagem","chat.input.sendMessageEnter":"Enviar mensagem (Enter)","chat.input.stillSendingPreviousMessage":"Ainda enviando sua mensagem anterior — tente novamente em um momento","chat.input.stopGenerating":"Parar de gerar","chat.input.useTranscription":"Usar transcrição","chat.input.voiceInput":"Entrada de voz","chat.input.webSearch":"Busca na web","chat.input.placeholder":"Pergunte qualquer coisa, / para prompts & habilidades, @ para agentes & recursos...","chat.markdown.copyAsCSV":"Copiar como CSV","chat.markdown.copyCode":"Copiar código","chat.markdown.image":"Imagem","chat.markdown.openFile":"Abrir arquivo","chat.mentionAt.agentsDescription":"Mencione um agente para transferir o trabalho","chat.mentionAt.agentsTitle":"Agentes","chat.mentionAt.failedToLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionAt.resourcesDescription":"Anexar um recurso como contexto","chat.mentionAt.resourcesTitle":"Recursos","chat.mentionSlash.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.mentionSlash.failedLoadResource":"Falha ao carregar recurso. Tente novamente.","chat.mentionSlash.failedLoadSkill":"Falha ao carregar skill. Tente novamente.","chat.mentionSlash.failedUpdatePrompt":"Falha ao atualizar prompt. Tente novamente.","chat.nextActionChip.failedLoadPrompt":"Falha ao carregar prompt. Tente novamente.","chat.nextActionChip.mcpClientNotAvailable":"Cliente MCP não disponível","chat.nextActionChip.next":"Próximo:","chat.noAiProviderEmptyState.connectDesktopLabel":"Conecte seu desktop","chat.noAiProviderEmptyState.desktopLinkedLabel":"Desktop vinculado","chat.noAiProviderEmptyState.headingDefault":"Seus agentes estão quase prontos","chat.noAiProviderEmptyState.headingWithOrg":"{org} está pronto para agentes","chat.noAiProviderEmptyState.orConnectProvider":"ou conecte um provedor em nuvem","chat.noAiProviderEmptyState.subtitleDefault":"Conecte um provedor — ou execute `bunx decocms@latest link` em seu desktop para usar Claude Code, Codex ou seus arquivos locais.","chat.noAiProviderEmptyState.subtitleLocalMode":"Conecte um provedor ou execute `bunx decocms@latest link` em seu desktop para Claude Code, Codex e arquivos locais.","chat.noAiProviderEmptyState.subtitleWithDesktop":"Seu desktop está vinculado — comece agora com um agente de codificação local ou conecte um provedor em nuvem para modelos hospedados.","chat.noAiProviderEmptyState.useLabel":"Usar {label}","chat.outputFileRow.download":"Baixar","chat.outputFileRow.downloadFile":"Baixar {filename}","chat.outputFileRow.open":"Abrir","chat.pagination.counter":"{current} de {total}","chat.pagination.nextLabel":"Próxima pergunta","chat.pagination.previousLabel":"Pergunta anterior","chat.proposePlan.approved":"Aprovado","chat.proposePlan.implementationPlan":"Plano de Implementação","chat.proposePlan.keepIterating":"Continuar iterando","chat.proposePlan.letsGo":"Vamos lá","chat.proposePlan.planReady":"Plano pronto","chat.proposePlan.preparingPlan":"Preparando plano...","chat.proposePlan.rejected":"Rejeitado","chat.proposePlan.viewPlan":"Ver plano","chat.queueTray.queuedMessage":"{count} mensagem na fila","chat.queueTray.queuedMessages":"{count} mensagens na fila","chat.queueTray.removeFromQueue":"Remover da fila","chat.queueTray.sendNow":"Enviar agora","chat.runtimeSwitcher.cloudSandbox":"Sandbox em nuvem","chat.runtimeSwitcher.notAvailableOnThisDeployment":"Não disponível nesta implantação","chat.runtimeSwitcher.runDecocmsLinkOnYourDesktop":"Execute `decocms link` em seu desktop","chat.runtimeSwitcher.runOn":"Executar em","chat.runtimeSwitcher.runningOn":"Executando em {label}","chat.runtimeSwitcher.runsInDecosCloud":"Executa na nuvem do deco","chat.runtimeSwitcher.runsOnYourMachineViaDecoLink":"Executa em sua máquina via deco link","chat.runtimeSwitcher.runtime":"Tempo de execução: {label}","chat.runtimeSwitcher.thisDevice":"Dispositivo","chat.selectModel.selectModel":"Selecionar modelo","chat.selectVirtualMcp.chooseAgentTooltip":"Escolha um agente para conversar","chat.selectVirtualMcp.createAgent":"Criar Agente","chat.selectVirtualMcp.creating":"Criando...","chat.selectVirtualMcp.noAgentsFound":"Nenhum agente encontrado","chat.selectVirtualMcp.searchPlaceholder":"Pesquisar por um agente...","chat.selectVirtualMcp.selectAgent":"Selecionar Agente","chat.shared.approxWords":"~{wordCount} palavras","chat.shared.capabilityImage":"Imagem","chat.shared.capabilityReasoning":"Raciocínio","chat.shared.capabilityText":"Texto","chat.shared.capabilityTools":"Ferramentas","chat.shared.capabilityVision":"Visão","chat.shared.capabilityWebSearch":"Pesquisa na web","chat.shared.context":"Contexto","chat.shared.contextLevelLarge":"Grande","chat.shared.contextLevelLargeDesc":"Projetos longos e pesquisa","chat.shared.contextLevelMedium":"Médio","chat.shared.contextLevelMediumDesc":"Bom para a maioria das tarefas","chat.shared.contextLevelSmall":"Pequeno","chat.shared.contextLevelSmallDesc":"Conversas curtas","chat.shared.contextLevelVeryLarge":"Muito grande","chat.shared.contextLevelVeryLargeDesc":"Arquivos e dados massivos","chat.shared.contextWindow":"Janela de contexto","chat.shared.costLevelCheap":"Barato","chat.shared.costLevelExpensive":"Caro","chat.shared.costLevelHigh":"Alto","chat.shared.costLevelModerate":"Moderado","chat.shared.fileTypeAudio":"áudio","chat.shared.fileTypeImages":"imagens","chat.shared.fileTypeOffice":"Arquivos Office","chat.shared.fileTypePdfs":"PDFs","chat.shared.fileTypeVideo":"vídeo","chat.shared.hoverToPreview":"Passe o mouse para visualizar","chat.shared.input":"Entrada","chat.shared.output":"Saída","chat.shared.outputLimit":"Limite de saída","chat.shared.pricing":"Preços","chat.shared.selectModel":"Selecionar modelo","chat.shared.tokens":"tokens","chat.subtask.errorLabel":"Erro","chat.subtask.failedWithError":"Subtarefa falhou: {error}","chat.subtask.resultLabel":"Resultado","chat.subtask.running":"Executando…","chat.subtask.runningInBackground":"Executando em background…","chat.subtask.taskLabel":"Tarefa","chat.takeScreenshot.failed":"Falhou","chat.takeScreenshot.screenshot":"Captura de tela","chat.takeScreenshot.screenshotAlt":"Captura de tela","chat.takeScreenshot.taking":"Capturando tela","chat.takeScreenshot.title":"Capturar tela","chat.textPart.copyMessage":"Copiar mensagem","chat.thinkingIndicator.cancel":"Cancelar","chat.thinkingIndicator.planningDetail":"Decidindo como abordar a solicitação","chat.thinkingIndicator.planningLabel":"Planejando os próximos passos","chat.thinkingIndicator.takingLonger":"Isso está levando mais tempo que o usual.","chat.thinkingIndicator.thinking":"Pensando...","chat.thinkingIndicator.thinkingDetail":"Processando a próxima resposta","chat.thinkingIndicator.thinkingLabel":"Pensando","chat.thinkingIndicator.thought":"Pensou","chat.thinkingIndicator.thoughtFor":"Pensou por {duration}","chat.tierTrigger.runtimeClaudeCode":"Claude Code","chat.tierTrigger.runtimeCloud":"Nuvem","chat.tierTrigger.runtimeCodex":"Codex","chat.tierTrigger.runtimeThisDevice":"Dispositivo","chat.tierTrigger.selected":"Selecionado","chat.tierTrigger.tierFast":"Rápido","chat.tierTrigger.tierSmart":"Inteligente","chat.tierTrigger.tierThinking":"Pensamento","chat.toolsPopover.addFile":"Adicionar arquivo","chat.toolsPopover.approval":"Aprovação","chat.toolsPopover.connections":"Conexões","chat.toolsPopover.createImage":"Criar imagem","chat.toolsPopover.deepResearch":"Pesquisa aprofundada","chat.toolsPopover.failedLoadPrompt":"Falha ao carregar prompt. Por favor, tente novamente.","chat.toolsPopover.loadingPrompts":"Carregando prompts…","chat.toolsPopover.modelNoFileSupport":"O modelo selecionado não suporta leitura de arquivos ou imagens.","chat.toolsPopover.noPromptsAvailable":"Nenhum prompt disponível","chat.toolsPopover.on":"Ativado","chat.toolsPopover.planMode":"Modo planejamento","chat.toolsPopover.prompts":"Prompts","chat.toolsPopover.tools":"Ferramentas","chat.toolsPopover.webSearch":"Busca na web","chat.triggerEventPart.triggeredByEvent":"Acionado por evento","chat.uploader.accepts":"{modelName} aceita","chat.uploader.cantAttachToChat":"não pode ser anexado a este chat.","chat.uploader.fileTypeNotSupported":"Tipo de arquivo não suportado","chat.uploader.gotIt":"Entendi","chat.userAskQuestion.choiceOptionsAriaLabel":"Opções de escolha","chat.userAskQuestion.confirmNo":"Não","chat.userAskQuestion.confirmValue":"Confirme {value}","chat.userAskQuestion.confirmYes":"Sim","chat.userAskQuestion.confirmationOptionsAriaLabel":"Opções de confirmação","chat.userAskQuestion.customChoiceInputAriaLabel":"Entrada de escolha customizada","chat.userAskQuestion.preparingQuestion":"Preparando pergunta...","chat.userAskQuestion.question":"Pergunta","chat.userAskQuestion.questionCount":"{current} de {total}","chat.userAskQuestion.questionPending":"Pergunta pendente","chat.userAskQuestion.selectOption":"Selecione {option}","chat.userAskQuestion.skip":"Pular","chat.userAskQuestion.skipMessage":"usuário pulou esta pergunta","chat.userAskQuestion.somethingElsePlaceholder":"Algo mais...","chat.userAskQuestion.textResponseInputAriaLabel":"Entrada de resposta em texto","chat.userAskQuestion.typeResponse":"Digite sua resposta...","chat.webSearch.failed":"Falhou","chat.webSearch.researching":"Pesquisando...","chat.webSearch.showLess":"mostrar menos","chat.webSearch.showMore":"+{count} mais","chat.webSearch.title":"Busca na web","chat.mention.editPrompt":"Editar argumentos do prompt {name}","chat.mention.noItemsFound":"Nenhum item encontrado"},Kce={"automations.addStarterPopover.addStarter":"Adicionar Gatilho","automations.addStarterPopover.customCron":"Personalizado (cron)","automations.addStarterPopover.event":"Evento","automations.addStarterPopover.every":"A cada...","automations.addStarterPopover.everyUnit":"A cada {unit}","automations.addStarterPopover.failedAddStarter":"Erro ao adicionar gatilho","automations.addStarterPopover.failedAddWebhookStarter":"Erro ao adicionar gatilho webhook","automations.addStarterPopover.starterAdded":"Gatilho adicionado","automations.addStarterPopover.webhook":"Webhook","automations.addStarterPopover.webhookStarterAdded":"Gatilho webhook adicionado","automations.automationConfig.all":"Todos","automations.automationConfig.allTools":"Todas as ferramentas","automations.automationConfig.allToolsEnabled":"Todas as {count} ferramentas habilitadas","automations.automationConfig.browser":"Navegador","automations.automationConfig.builtinCapabilities":"Capacidades integradas","automations.automationConfig.clear":"Limpar","automations.automationConfig.connectAiProviderHint":"Conecte um provedor de IA nas configurações para selecionar um modelo específico.","automations.automationConfig.context":"Contexto","automations.automationConfig.filesCode":"Arquivos e código","automations.automationConfig.loadingModels":"Carregando modelos…","automations.automationConfig.loadingTools":"Carregando ferramentas…","automations.automationConfig.modelLabel":"Modelo","automations.automationConfig.noToolsFound":"Nenhuma ferramenta encontrada","automations.automationConfig.none":"Nenhum","automations.automationConfig.otherTools":"Outras ferramentas","automations.automationConfig.pickAgentFirst":"Selecione um agente primeiro","automations.automationConfig.pickModelPlaceholder":"Selecione um modelo","automations.automationConfig.searchToolsPlaceholder":"Pesquisar ferramentas...","automations.automationConfig.selectAll":"Selecionar tudo","automations.automationConfig.specificModel":"Modelo específico","automations.automationConfig.tierFast":"Rápido","automations.automationConfig.tierFastSubtitle":"Respostas rápidas para tarefas simples","automations.automationConfig.tierSmart":"Inteligente","automations.automationConfig.tierSmartSubtitle":"Equilíbrio entre qualidade e velocidade","automations.automationConfig.tierThinking":"Raciocínio","automations.automationConfig.tierThinkingSubtitle":"Raciocínio profundo para tarefas complexas","automations.automationConfig.toolAskUser":"Pergunte ao usuário","automations.automationConfig.toolAskUserDesc":"Pause para fazer uma pergunta de esclarecimento ao usuário","automations.automationConfig.toolEditFile":"Editar arquivo","automations.automationConfig.toolEditFileDesc":"Faça edições direcionadas em um arquivo existente","automations.automationConfig.toolFindFiles":"Encontrar arquivos","automations.automationConfig.toolFindFilesDesc":"Encontre arquivos por padrão de nome","automations.automationConfig.toolGenerateImage":"Gerar imagem","automations.automationConfig.toolGenerateImageDesc":"Crie imagens a partir de um prompt de texto","automations.automationConfig.toolInspectPage":"Inspecionar página","automations.automationConfig.toolInspectPageDesc":"Inspecione a estrutura de uma página web","automations.automationConfig.toolLoadSkill":"Carregar habilidade","automations.automationConfig.toolLoadSkillDesc":"Carregue as instruções completas de uma habilidade (SKILL.md) por id","automations.automationConfig.toolReadFile":"Ler arquivo","automations.automationConfig.toolReadFileDesc":"Leia um arquivo do espaço de trabalho","automations.automationConfig.toolReadPrompt":"Ler prompt","automations.automationConfig.toolReadPromptDesc":"Leia uma definição de prompt MCP","automations.automationConfig.toolReadResource":"Ler recurso","automations.automationConfig.toolReadResourceDesc":"Leia um recurso MCP por URI","automations.automationConfig.toolRunCommand":"Executar comando","automations.automationConfig.toolRunCommandDesc":"Execute comandos shell na sandbox","automations.automationConfig.toolScrapeUrl":"Raspar URL","automations.automationConfig.toolScrapeUrlDesc":"Busque e extraia conteúdo de uma URL","automations.automationConfig.toolSearchContent":"Pesquisar conteúdo","automations.automationConfig.toolSearchContentDesc":"Pesquise conteúdo de arquivo por padrão","automations.automationConfig.toolSubtask":"Subtarefa","automations.automationConfig.toolSubtaskDesc":"Crie um sub-agente focado para lidar com parte do trabalho","automations.automationConfig.toolTakeScreenshot":"Tirar captura de tela","automations.automationConfig.toolTakeScreenshotDesc":"Capture uma captura de tela de uma página web","automations.automationConfig.toolWebSearch":"Busca na web","automations.automationConfig.toolWebSearchDesc":"Pesquise informações atuais na web","automations.automationConfig.toolWriteFile":"Escrever arquivo","automations.automationConfig.toolWriteFileDesc":"Crie ou sobrescreva um arquivo","automations.automationConfig.tools":"Ferramentas","automations.automationConfig.toolsEnabledCount":"{enabled} de {total} habilitadas","automations.automationConfig.toolsLabel":"Ferramentas","automations.automationDetail.active":"Ativo","automations.automationDetail.addStarter":"Adicionar um acionador","automations.automationDetail.advanced":"Avançado","automations.automationDetail.automationNamePlaceholder":"Nome da automação","automations.automationDetail.backToList":"Voltar para a lista","automations.automationDetail.failedToAddStarter":"Falha ao adicionar acionador","automations.automationDetail.improve":"Melhorar","automations.automationDetail.inactive":"Inativo","automations.automationDetail.instructions":"Instruções","automations.automationDetail.instructionsPlaceholder":"O que esta automação deve fazer?","automations.automationDetail.invalid":"inválido","automations.automationDetail.loadingConnections":"Carregando conexões...","automations.automationDetail.maxSteps":"Máx. passos","automations.automationDetail.maxStepsPlaceholder":"{default} (padrão)","automations.automationDetail.noInstructionsConfigured":"Nenhuma instrução configurada para esta automação","automations.automationDetail.starter":"Acionador","automations.automationDetail.starterAdded":"Acionador adicionado","automations.automationDetail.test":"Testar","automations.automationDetail.testAutomation":"Testar Automação","automations.automationDetail.toGetGoing":"para começar.","automations.automationDetail.whenShouldRun":"Quando esta automação deve executar?","automations.automationListRow.ariaActive":"Ativo","automations.automationListRow.ariaNoTriggers":"Nenhum gatilho configurado","automations.automationListRow.ariaPaused":"Pausado","automations.automationListRow.cancel":"Cancelar","automations.automationListRow.delete":"Deletar","automations.automationListRow.deleteButton":"Deletar","automations.automationListRow.deleteDescription":"Isto remove {name} e todos os seus gatilhos. Esta ação não pode ser desfeita.","automations.automationListRow.deleteTitle":"Deletar automação?","automations.automationListRow.nextRun":"Próxima execução {date}","automations.automationListRow.noTriggers":"Nenhum gatilho configurado","automations.automationListRow.triggers":"{count} gatilho{plural}","automations.automationRuns.costHeader":"Custo","automations.automationRuns.costTitle":"Custo","automations.automationRuns.failed":"falhadas","automations.automationRuns.lastRunsSubtitle":"últimas {count} execuções","automations.automationRuns.loadingMore":"Carregando mais…","automations.automationRuns.loadingRuns":"Carregando execuções…","automations.automationRuns.noRunsDescription":"Esta automação ainda não foi executada. Dispare-a ou aguarde um inicializador disparar.","automations.automationRuns.noRunsTitle":"Nenhuma execução ainda","automations.automationRuns.noStartersDescription":"Adicione um inicializador (cron, evento ou webhook) para começar a coletar execuções.","automations.automationRuns.noStartersTitle":"Nenhum inicializador ainda","automations.automationRuns.ok":"ok","automations.automationRuns.runHeader":"Execução","automations.automationRuns.running":"em execução","automations.automationRuns.runsTitle":"Execuções","automations.automationRuns.startedHeader":"Iniciada","automations.automationRuns.statusHeader":"Status","automations.automationRuns.successRateTitle":"Taxa de sucesso","automations.automationRuns.tokensHeader":"Tokens","automations.automationRuns.tokensTitle":"Tokens","automations.automationsList.emptyDescription":"Crie sua primeira automação para executar este agente em um cronograma ou em resposta a eventos.","automations.automationsList.emptyTitle":"Nenhuma automação ainda","automations.automationsList.newAutomation":"Nova automação","automations.automationsList.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"automations.automationsList.noResultsTitle":"Nenhuma automação encontrada","automations.automationsList.searchPlaceholder":"Pesquisar automações...","automations.automationsList.title":"Automações","automations.eventTriggerForm.addTriggerButton":"Adicionar gatilho","automations.eventTriggerForm.errorFailed":"Falha ao adicionar gatilho de evento","automations.eventTriggerForm.loadingEvents":"Carregando eventos...","automations.eventTriggerForm.noConnectionsWithTrigger":"Nenhuma conexão com suporte a gatilho","automations.eventTriggerForm.selectConnectionPlaceholder":"Selecionar conexão...","automations.eventTriggerForm.selectEventTypePlaceholder":"Selecionar tipo de evento...","automations.eventTriggerForm.selectParamPlaceholder":"Selecionar {key}...","automations.eventTriggerForm.successAdded":"Gatilho de evento adicionado","automations.eventTriggerForm.title":"Gatilho de evento","automations.triggerCard.cancel":"Cancelar","automations.triggerCard.confirmRemoveStarter":"Tem certeza de que deseja remover este disparador?","automations.triggerCard.every":"A cada","automations.triggerCard.failedToRemoveStarter":"Falha ao remover disparador","automations.triggerCard.failedToUpdateStarter":"Falha ao atualizar disparador","automations.triggerCard.invalid":"inválido","automations.triggerCard.newWebhookToken":"Novo token de webhook","automations.triggerCard.newWebhookTokenDescription":"O token anterior foi revogado. Copie o novo token agora — ele não será mostrado novamente.","automations.triggerCard.remove":"Remover","automations.triggerCard.removeStarter":"Remover Disparador","automations.triggerCard.rotate":"Girar","automations.triggerCard.rotateToken":"Girar token","automations.triggerCard.rotateWebhookToken":"Girar token de webhook","automations.triggerCard.rotateWebhookTokenDescription":"Um novo token será gerado e o token atual deixará de funcionar. Quaisquer remetentes que usem o token antigo devem ser atualizados.","automations.triggerCard.starterRemoved":"Disparador removido","automations.triggerCard.webhookPostToFire":"Webhook · POST para disparar","automations.webhookSecretDialog.copied":"Copiado","automations.webhookSecretDialog.copy":"Copiar","automations.webhookSecretDialog.done":"Concluído","automations.webhookSecretDialog.failedCopy":"Falha ao copiar","automations.webhookSecretDialog.snippet":"Snippet","automations.webhookSecretDialog.tokenInUrl":"Token na URL","automations.webhookSecretDialog.tokenLabel":"Token (exibido uma vez)","automations.webhookSecretDialog.url":"URL"},Wce={"agentShellLayout.agentShellLayout.agentNotFound":"Agente não encontrado","agentShellLayout.agentShellLayout.agentNotFoundDescription":'O agente "{virtualMcpId}" não existe nesta organização.',"agentShellLayout.agentShellLayout.chatLoadingError":"Algo deu errado ao carregar o chat. Tente atualizar.","agentShellLayout.agentShellLayout.creatingTask":"Criando tarefa…","agentShellLayout.agentShellLayout.goToOrgHome":"Ir para a página inicial da organização","agentShellLayout.agentShellLayout.somethingWentWrong":"Algo deu errado. Tente atualizar.","agentShellLayout.agentShellLayout.taskUnavailable":"Tarefa indisponível","agentShellLayout.libraryToggle.library":"Biblioteca","agentShellLayout.tasksToggle.tasks":"Tarefas","agentShellLayout.toggleButtons.chat":"Chat","agentShellLayout.toolbar.backToHome":"Voltar para home","agentShellLayout.toolbar.logo":"Logo"},Yce={"admin.layout.adminDashboard":"Painel de Administração","admin.layout.adminDashboardArea":"o painel de administração","admin.layout.emailVerificationRequired":"Verifique seu endereço de e-mail para acessar o painel de administração.","admin.layout.goHome":"Voltar para início","admin.layout.organizationsTab":"Organizações","admin.layout.restrictedToDashboard":"Este painel é restrito a administradores de implantação.","admin.layout.usersTab":"Usuários","admin.orgs.addMember":"Adicionar membro","admin.orgs.addMemberTo":"Adicionar membro para {org}","admin.orgs.adding":"Adicionando...","admin.orgs.cancel":"Cancelar","admin.orgs.created":"Criado","admin.orgs.email":"E-mail","admin.orgs.emailPlaceholder":"usuario@example.com","admin.orgs.failedAddMember":"Falha ao adicionar membro","admin.orgs.failedLoadOrgs":"Falha ao carregar organizações","admin.orgs.failedLoadOrgsDescription":"Algo deu errado. Atualize para tentar novamente.","admin.orgs.memberAdded":"{email} adicionado(a) a {org}","admin.orgs.members":"Membros","admin.orgs.noOrgsFound":"Nenhuma organização encontrada","admin.orgs.noOrgsMatchSearch":'Nenhuma organização corresponde a "{search}"',"admin.orgs.noOrgsYet":"Nenhuma organização existe ainda.","admin.orgs.organization":"Organização","admin.orgs.searchPlaceholder":"Procure organizações por nome ou slug...","admin.users.columnCreated":"Criado","admin.users.columnEmail":"E-mail","admin.users.columnUser":"Usuário","admin.users.failedToImpersonate":"Falha ao assumir identidade do usuário","admin.users.failedToLoadDescription":"Algo deu errado. Atualize a página para tentar novamente.","admin.users.failedToLoadTitle":"Falha ao carregar usuários","admin.users.impersonate":"Assumir identidade","admin.users.noUsersFoundTitle":"Nenhum usuário encontrado","admin.users.noUsersMatchSearch":'Nenhum usuário corresponde a "{search}"',"admin.users.noUsersYet":"Nenhum usuário ainda.","admin.users.searchPlaceholder":"Pesquise usuários por e-mail ou nome...","admin.users.unknown":"Desconhecido","admin.users.unverified":"Não verificado","admin.users.verified":"Verificado"},Zce={"sandbox.appEditor.createdSection":'Seção "{name}" criada',"sandbox.appEditor.editingBreadcrumb":"Trilha de navegação de edição","sandbox.appEditor.failedAddSection":"Não foi possível adicionar a seção","sandbox.appEditor.loadingSchema":"Carregando schema do app…","sandbox.appEditor.noEditableSchema":"Nenhum schema editável foi encontrado para este app.","sandbox.availableSectionEditor.editingBreadcrumb":"Navegação de edição","sandbox.availableSectionEditor.localEditsHint":"{typeLabel} — edições permanecem locais até que você salve isto como uma seção global.","sandbox.availableSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.availableSectionEditor.saveAsGlobalSection":"Salvar como seção global","sandbox.blockPicker.blocksLabel":"Blocos","sandbox.blockPicker.customBlocksLabel":"Blocos personalizados","sandbox.blockPicker.insertBlockButton":"Inserir bloco","sandbox.blockPicker.noBlocksFound":"Nenhum bloco encontrado.","sandbox.blockPicker.searchPlaceholder":"Pesquisar blocos…","sandbox.blockRegistry.unknownBlockType":'Tipo de bloco desconhecido{type ? ` (${type})` : ""}.',"sandbox.blockRegistry.writeSomethingPlaceholder":"Escreva algo…","sandbox.blockRow.deleteBlock":"Deletar bloco","sandbox.blockRow.dragToReorder":"Arraste para reordenar","sandbox.blockRow.duplicateBlock":"Duplicar bloco","sandbox.bulkCategoryPanel.applyButton":"Aplicar","sandbox.bulkCategoryPanel.cancelButton":"Cancelar","sandbox.bulkCategoryPanel.categoryLabel":"Categoria","sandbox.bulkCategoryPanel.descriptionEmpty":"Selecione posts da lista para escolher a quais posts essa atualização se aplica.","sandbox.bulkCategoryPanel.descriptionWithCount":"Escolha uma categoria para aplicar a {count} post(s).","sandbox.bulkCategoryPanel.exitSelection":"Sair da seleção","sandbox.bulkCategoryPanel.modeAddDescription":"Mantenha as categorias existentes e adicione esta.","sandbox.bulkCategoryPanel.modeAddTitle":"Adicionar categoria","sandbox.bulkCategoryPanel.modeReplaceDescription":"Remova todas as categorias atuais e defina apenas esta.","sandbox.bulkCategoryPanel.modeReplaceTitle":"Substituir categoria","sandbox.bulkCategoryPanel.noCategoriesMessage":"Nenhuma categoria ainda — crie uma na coleção de Categorias.","sandbox.bulkCategoryPanel.noPostsSelectedMessage":"Nenhum post selecionado ainda — escolha-os da lista à esquerda.","sandbox.bulkCategoryPanel.selectCategoryPlaceholder":"Selecione uma categoria","sandbox.bulkCategoryPanel.selectedCount":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.selectedPostsLabel":"{count} post(s) selecionado(s)","sandbox.bulkCategoryPanel.title":"Atualizar categoria","sandbox.bulkCategoryPanel.updatingButton":"Atualizando…","sandbox.categoryEditor.addPostsButton":"Adicionar posts","sandbox.categoryEditor.cancelButton":"Cancelar","sandbox.categoryEditor.categoryNamePlaceholder":"Nome da categoria","sandbox.categoryEditor.contentTitle":"Conteúdo","sandbox.categoryEditor.descriptionLabel":"Descrição","sandbox.categoryEditor.descriptionPlaceholder":"Descrição breve desta categoria","sandbox.categoryEditor.noContentEmpty":"Esta categoria ainda não possui conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.categoryEditor.pickPostsTooltip":"Selecione posts para adicionar nesta categoria","sandbox.categoryEditor.postsInCategory":"{count} post(ns) nesta categoria","sandbox.categoryEditor.previewTooltip":"Abra a visualização da categoria em uma nova aba","sandbox.categoryEditor.renameActionButton":"Renomear e atualizar posts","sandbox.categoryEditor.renameDialogDescription":'Alterar o slug de "{oldSlug}" para "{newSlug}" atualizará {count} post(ns) que fazem referência a esta categoria.',"sandbox.categoryEditor.renameDialogTitle":"Renomear slug da categoria?","sandbox.categoryEditor.renameFailed":"Falha ao renomear","sandbox.categoryEditor.renameSuccessNoPosts":"Slug renomeado","sandbox.categoryEditor.renameSuccessWithPosts":"Slug renomeado e {count} post(ns) atualizado(s)","sandbox.categoryEditor.renamingLabel":"Renomeando…","sandbox.categoryEditor.seeCategoryPreview":"Ver visualização da categoria","sandbox.categoryEditor.setSlugTooltip":"Defina um slug para adicionar posts nesta categoria","sandbox.categoryEditor.slugLabel":"Slug","sandbox.categoryEditor.slugPlaceholder":"minha-categoria","sandbox.categoryEditor.untitledCategory":"Categoria sem título","sandbox.categoryEditor.untitledPost":"Post sem título","sandbox.collectionsSidebar.actions":"Ações","sandbox.collectionsSidebar.apps":"Apps","sandbox.collectionsSidebar.authors":"Autores","sandbox.collectionsSidebar.blog":"Blog","sandbox.collectionsSidebar.calendar":"Calendário","sandbox.collectionsSidebar.categories":"Categorias","sandbox.collectionsSidebar.content":"Conteúdo","sandbox.collectionsSidebar.loaders":"Carregadores","sandbox.collectionsSidebar.pages":"Páginas","sandbox.collectionsSidebar.posts":"Posts","sandbox.collectionsSidebar.redirects":"Redirecionamentos","sandbox.collectionsSidebar.sections":"Seções","sandbox.collectionsSidebar.seo":"SEO","sandbox.collectionsSidebar.site":"Site","sandbox.drawer.failedToRestart":"Falha ao reiniciar {name}","sandbox.drawer.failedToRun":"Falha ao executar {name}","sandbox.drawer.failedToStop":"Falha ao parar {name}","sandbox.drawer.run":"Executar","sandbox.drawer.scriptNotRunning":'Script "{name}" não está em execução',"sandbox.envVarsField.addEnvVar":"Adicionar variável de ambiente","sandbox.envVarsField.added":"Adicionada(s) {added} variável(eis)","sandbox.envVarsField.addedWithSkipped":"Adicionada(s) {added} variável(eis) ({skipped} já existia(m))","sandbox.envVarsField.allKeysExist":"Todas as {count} chave(s) já existem","sandbox.envVarsField.cancel":"Cancelar","sandbox.envVarsField.clipboardEmpty":"A área de transferência está vazia","sandbox.envVarsField.clipboardReadFailed":"Não foi possível ler a área de transferência","sandbox.envVarsField.createNewSecret":"Criar novo segredo","sandbox.envVarsField.createNewSecretAriaLabel":"Criar novo segredo","sandbox.envVarsField.createNewSecretDescription":"Armazenado criptografado no cofre de credenciais. A variável de ambiente referenciará o novo segredo por id.","sandbox.envVarsField.createNewSecretTitle":"Criar novo segredo","sandbox.envVarsField.description":"Injetadas na sandbox a cada início. Referencie um segredo de org/usuário para manter os valores fora dos metadados; valores literais são armazenados inline.","sandbox.envVarsField.descriptionLabel":"Descrição (opcional)","sandbox.envVarsField.descriptionPlaceholder":"Para que este segredo é usado?","sandbox.envVarsField.envVarKeyLabel":"Chave da variável de ambiente {index}","sandbox.envVarsField.envVarValueLabel":"Valor da variável de ambiente {index}","sandbox.envVarsField.failedToLoadSecrets":"Falha ao carregar segredos","sandbox.envVarsField.failedToSaveSecret":"Falha ao salvar","sandbox.envVarsField.invalidKeyMessage":"Letras, dígitos, sublinhados. Deve começar com uma letra ou sublinhado.","sandbox.envVarsField.keyPlaceholder":"CHAVE","sandbox.envVarsField.literal":"Literal","sandbox.envVarsField.missingSecret":"Segredo ausente ({id})","sandbox.envVarsField.nameHelperText":"Letras, dígitos, sublinhado, ponto, hífen. Independente da chave da variável de ambiente.","sandbox.envVarsField.nameLabel":"Nome","sandbox.envVarsField.namePlaceholder":"STRIPE_API_KEY","sandbox.envVarsField.noSecretsYet":'Nenhum segredo ainda. Use o "+" para criar um.',"sandbox.envVarsField.nothingToAdd":"Nada para adicionar","sandbox.envVarsField.pasteDotenv":"Colar .env","sandbox.envVarsField.pasteDotenvAriaLabel":"Colar .env","sandbox.envVarsField.pasteDotenvTooltip":"Leia um blob .env da área de transferência. Cada par é preparado como um literal — salve as linhas individuais como segredos depois.","sandbox.envVarsField.pickSecretPlaceholder":"Escolha um segredo…","sandbox.envVarsField.remove":"Remover","sandbox.envVarsField.removeEnvVarAriaLabel":"Remover variável de ambiente","sandbox.envVarsField.restartDev":"Reiniciar dev","sandbox.envVarsField.restartFailed":"Falha ao reiniciar {failed} de {total} ramificação(ões)","sandbox.envVarsField.restartedMultiple":"Reiniciadas {count} ramificações com novo ambiente","sandbox.envVarsField.restartedSingle":"Dev reiniciado com novo ambiente","sandbox.envVarsField.restarting":"Reiniciando…","sandbox.envVarsField.sandboxRunningNotice":"Sua sandbox está em execução. Reinicie o script de desenvolvimento para aplicar o novo ambiente.","sandbox.envVarsField.saveAsSecret":"Salvar valor como segredo","sandbox.envVarsField.saveAsSecretAriaLabel":"Salvar valor como segredo","sandbox.envVarsField.saveSecret":"Salvar segredo","sandbox.envVarsField.saveValueAsSecretDescription":"Mova este valor para o cofre criptografado. A variável de ambiente referenciará o segredo por id — seu valor nunca sai do servidor.","sandbox.envVarsField.saveValueAsSecretTitle":"Salvar valor como segredo","sandbox.envVarsField.saving":"Salvando…","sandbox.envVarsField.scopeLabel":"Escopo","sandbox.envVarsField.scopeOrganization":"Organização — visível para todos os membros","sandbox.envVarsField.scopePrivate":"Privado — visível apenas para mim","sandbox.envVarsField.secret":"Segredo","sandbox.envVarsField.secretSaved":'Segredo "{name}" salvo',"sandbox.envVarsField.secretValuePlaceholder":"valor do segredo","sandbox.envVarsField.title":"Variáveis de ambiente","sandbox.envVarsField.valueLabel":"Valor","sandbox.envVarsField.valuePlaceholder":"valor","sandbox.fileExplorer.askTheAiPlaceholder":"Pergunte à IA...","sandbox.fileExplorer.deleteFailed":"Falha ao deletar","sandbox.fileExplorer.failedToCopyText":"Falha ao copiar {label}","sandbox.fileExplorer.failedToLoadFolder":"Falha ao carregar pasta","sandbox.fileExplorer.failedToOpenFile":"Falha ao abrir arquivo","sandbox.fileExplorer.failedToRefreshFileTree":"Falha ao atualizar árvore de arquivos","sandbox.fileExplorer.fileAlreadyExists":'"{name}" já existe',"sandbox.fileExplorer.fileCreated":'Criado "{name}"',"sandbox.fileExplorer.fileDeleted":'Deletado "{name}"',"sandbox.fileExplorer.fileListTruncated":"Lista de arquivos truncada — alguns arquivos podem estar ocultos","sandbox.fileExplorer.files":"Arquivos","sandbox.fileExplorer.folderCreated":'Pasta criada "{name}"',"sandbox.fileExplorer.folderListingTruncated":"Lista de pastas truncada — expanda novamente para carregar mais","sandbox.fileExplorer.inFiles":"Nos arquivos","sandbox.fileExplorer.modified":"Modificado","sandbox.fileExplorer.newFile":"Novo arquivo","sandbox.fileExplorer.newFileLabel":"Novo arquivo","sandbox.fileExplorer.newFolder":"Nova pasta","sandbox.fileExplorer.newFolderLabel":"Nova pasta","sandbox.fileExplorer.noFileNamesMatch":"Nenhum nome de arquivo corresponde","sandbox.fileExplorer.noFilesFound":"Nenhum arquivo encontrado","sandbox.fileExplorer.noMatchesInFileContents":"Nenhuma correspondência no conteúdo dos arquivos","sandbox.fileExplorer.operationFailed":"Operação falhou","sandbox.fileExplorer.renamedTo":'Renomeado para "{name}"',"sandbox.fileExplorer.saved":"Salvo","sandbox.fileExplorer.searchFilesLabel":"Pesquisar arquivos","sandbox.fileExplorer.searchFilesPlaceholder":"Pesquisar arquivos...","sandbox.fileExplorer.selectFileToEdit":"Selecione um arquivo para editar","sandbox.fileExplorer.send":"Enviar","sandbox.fileExplorer.textCopied":"{label} copiado","sandbox.fileExplorerDeleteDialog.cancel":"Cancelar","sandbox.fileExplorerDeleteDialog.delete":"Excluir","sandbox.fileExplorerDeleteDialog.description":"Isso excluirá permanentemente","sandbox.fileExplorerDeleteDialog.folderSuffix":" e tudo dentro dela.","sandbox.fileExplorerDeleteDialog.titleFile":"Excluir arquivo?","sandbox.fileExplorerDeleteDialog.titleFolder":"Excluir pasta?","sandbox.fileExplorerDeleteDialog.unsavedChangesMany":"{count} arquivos abertos têm alterações não salvas que serão perdidas.","sandbox.fileExplorerDeleteDialog.unsavedChangesOne":"Um arquivo aberto tem alterações não salvas que serão perdidas.","sandbox.fileExplorerNameDialog.cancel":"Cancelar","sandbox.fileExplorerNameDialog.location":"Local","sandbox.fileExplorerNameDialog.name":"Nome","sandbox.fileExplorerNameDialog.newFileDescription":"Digite um nome para o novo arquivo.","sandbox.fileExplorerNameDialog.newFilePlaceholder":"nomedoarquivo.ts","sandbox.fileExplorerNameDialog.newFileSubmit":"Criar","sandbox.fileExplorerNameDialog.newFileTitle":"Novo Arquivo","sandbox.fileExplorerNameDialog.newFolderDescription":"Digite um nome para a nova pasta.","sandbox.fileExplorerNameDialog.newFolderPlaceholder":"nome-da-pasta","sandbox.fileExplorerNameDialog.newFolderSubmit":"Criar","sandbox.fileExplorerNameDialog.newFolderTitle":"Nova Pasta","sandbox.fileExplorerNameDialog.renameDescription":"Digite um novo nome para este item.","sandbox.fileExplorerNameDialog.renamePlaceholder":"novo-nome","sandbox.fileExplorerNameDialog.renameSubmit":"Renomear","sandbox.fileExplorerNameDialog.renameTitle":"Renomear","sandbox.fileExplorerNameDialog.saving":"Salvando…","sandbox.fileTreeRow.copyPath":"Copiar caminho","sandbox.fileTreeRow.copyRelativePath":"Copiar caminho relativo","sandbox.fileTreeRow.delete":"Deletar","sandbox.fileTreeRow.newFile":"Novo arquivo","sandbox.fileTreeRow.newFolder":"Nova pasta","sandbox.fileTreeRow.rename":"Renomear","sandbox.itemActions.addVariant":"Adicionar variante","sandbox.itemActions.delete":"Excluir","sandbox.itemActions.duplicate":"Duplicar","sandbox.itemActions.editSeo":"Editar SEO","sandbox.itemActions.moreActions":"Mais ações","sandbox.itemActions.rename":"Renomear","sandbox.itemActions.viewJson":"Visualizar JSON","sandbox.listBlocks.addCard":"Adicionar card","sandbox.listBlocks.addItem":"Adicionar item","sandbox.listBlocks.addStat":"Adicionar estatística","sandbox.listBlocks.addStep":"Adicionar passo","sandbox.listBlocks.cardBody":"Corpo do card","sandbox.listBlocks.cardTitle":"Título do card","sandbox.listBlocks.checklistItem":"Item da checklist","sandbox.listBlocks.checklistTitle":"Título da checklist (opcional)","sandbox.listBlocks.columnTitle":"Título da coluna","sandbox.listBlocks.item":"Item","sandbox.listBlocks.label":"Rótulo","sandbox.listBlocks.optionA":"Opção A","sandbox.listBlocks.optionB":"Opção B","sandbox.listBlocks.removeCard":"Remover card","sandbox.listBlocks.removeItem":"Remover item","sandbox.listBlocks.removeStat":"Remover estatística","sandbox.listBlocks.removeStep":"Remover passo","sandbox.listBlocks.statValuePlaceholder":"99%","sandbox.listBlocks.stepDescription":"Descrição do passo","sandbox.listBlocks.stepTitle":"Título do passo","sandbox.listBlocks.stepsTitle":"Título dos passos (opcional)","sandbox.mediaBlocks.addCaption":"Adicione uma legenda…","sandbox.mediaBlocks.altText":"Texto alternativo (acessibilidade)","sandbox.mediaBlocks.buttonLabel":"Rótulo do botão","sandbox.mediaBlocks.calloutText":"Texto do destaque…","sandbox.mediaBlocks.calloutTitle":"Título do destaque","sandbox.mediaBlocks.destinationUrlPlaceholder":"https://url-de-destino.com","sandbox.mediaBlocks.divider":"Divisor","sandbox.mediaBlocks.fullWidth":"Largura total","sandbox.mediaBlocks.image":"Imagem","sandbox.mediaBlocks.label":"Rótulo","sandbox.mediaBlocks.normal":"Normal","sandbox.mediaBlocks.optionalDescription":"Descrição opcional","sandbox.mediaBlocks.pasteVideoUrl":"Cole uma URL do YouTube ou Vimeo para visualizar","sandbox.mediaBlocks.statValuePlaceholder":"42%","sandbox.mediaBlocks.video":"Vídeo","sandbox.mediaBlocks.videoUrlPlaceholder":"https://youtube.com/watch?v=…","sandbox.pageFormDialog.buttonCancel":"Cancelar","sandbox.pageFormDialog.labelName":"Nome","sandbox.pageFormDialog.labelPath":"Caminho","sandbox.pageFormDialog.labelTemplate":"Modelo","sandbox.pageFormDialog.pendingCreate":"Criando…","sandbox.pageFormDialog.pendingDuplicate":"Duplicando…","sandbox.pageFormDialog.pendingSave":"Salvando…","sandbox.pageFormDialog.placeholderName":"Minha página","sandbox.pageFormDialog.placeholderPath":"/exemplo","sandbox.pageFormDialog.submitCreate":"Criar","sandbox.pageFormDialog.submitDuplicate":"Duplicar","sandbox.pageFormDialog.submitSave":"Salvar","sandbox.pageFormDialog.titleCreate":"Criar nova página","sandbox.pageFormDialog.titleDuplicate":"Duplicar página","sandbox.pageFormDialog.titleRename":"Renomear página","sandbox.pathParamPickerChip.buttonTitle":"Valor para {paramLabel} — clique para escolher","sandbox.pathParamPickerChip.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está rodando?","sandbox.pathParamPickerChip.kindCategoryHeading":"Categorias","sandbox.pathParamPickerChip.kindCategoryNoun":"categoria","sandbox.pathParamPickerChip.kindProductHeading":"Produtos","sandbox.pathParamPickerChip.kindProductNoun":"produto","sandbox.pathParamPickerChip.loading":"Carregando {noun}…","sandbox.pathParamPickerChip.noResults":"Nenhum resultado.","sandbox.pathParamPickerChip.pickValueHeading":"Escolha um valor para","sandbox.pathParamPickerChip.pickValueTitle":"Escolha um valor para {paramLabel}","sandbox.pathParamPickerChip.searchPlaceholder":"Procurar {options} ou digite um valor…","sandbox.pathParamPickerChip.useRawValue":'Usar "{rawTerm}" como {paramLabel}',"sandbox.plainBlocks.bulletedLabel":"Com marcadores","sandbox.plainBlocks.codePlaceholder":"Código","sandbox.plainBlocks.headingPlaceholder":"Título","sandbox.plainBlocks.languagePlaceholder":"linguagem","sandbox.plainBlocks.listItemPlaceholder":"Item de lista","sandbox.plainBlocks.numberedLabel":"Numerada","sandbox.plainBlocks.quotePlaceholder":"Citação","sandbox.postEditor.addPropLabel":"Adicionar propriedade","sandbox.postEditor.authorsLabel":"Autores","sandbox.postEditor.categoriesLabel":"Categorias","sandbox.postEditor.contentTab":"Conteúdo","sandbox.postEditor.coverImageLabel":"Imagem de capa","sandbox.postEditor.dateLabel":"Data","sandbox.postEditor.excerptLabel":"Resumo","sandbox.postEditor.extraPropsLabel":"Propriedades extras","sandbox.postEditor.issuePlural":"problemas","sandbox.postEditor.issueSingular":"problema","sandbox.postEditor.keyPlaceholder":"chave","sandbox.postEditor.missingFieldPlural":"Campos obrigatórios faltando: {fields}","sandbox.postEditor.missingFieldSingular":"Campo obrigatório faltando: {fields}","sandbox.postEditor.noAuthorsYet":"Nenhum autor ainda — crie alguns na coleção de autores.","sandbox.postEditor.noCategoriesYet":"Nenhuma categoria ainda — crie algumas na coleção de categorias.","sandbox.postEditor.noContentYet":"Este post ainda não tem conteúdo. Use ⊕ para adicionar seu primeiro bloco.","sandbox.postEditor.postTitlePlaceholder":"Título do post","sandbox.postEditor.previewRequiresSlugAndCategory":"Defina o slug do post (e sua categoria) mais o pageSlug do aplicativo de blog para visualizar","sandbox.postEditor.previewTooltip":"Abrir visualização do post em uma nova aba","sandbox.postEditor.removePropLabel":"Remover propriedade","sandbox.postEditor.seePreview":"Ver visualização","sandbox.postEditor.selectAuthorsPlaceholder":"Selecionar autores","sandbox.postEditor.selectCategoriesPlaceholder":"Selecionar categorias","sandbox.postEditor.settingsTab":"Configurações","sandbox.postEditor.slugLabel":"Slug","sandbox.postEditor.slugPlaceholder":"meu-post","sandbox.postEditor.untitledPost":"Post sem título","sandbox.postEditor.valuePlaceholder":"valor","sandbox.postToolbar.allPosts":"Todos os posts","sandbox.postToolbar.authorLabel":"Autor","sandbox.postToolbar.categoryLabel":"Categoria","sandbox.postToolbar.clearFilter":"Limpar filtro","sandbox.postToolbar.deleteSelected":"Deletar selecionados","sandbox.postToolbar.deleteSelectedPosts":"Deletar posts selecionados","sandbox.postToolbar.deselectAll":"Desselecionar tudo","sandbox.postToolbar.deselectAllPosts":"Desselecionar todos os posts","sandbox.postToolbar.exitSelection":"Sair da seleção","sandbox.postToolbar.filterBy":"Filtrar por","sandbox.postToolbar.filterLabel":"Filtro","sandbox.postToolbar.itemsSelected":"{count} selecionados","sandbox.postToolbar.selectAll":"Selecionar tudo","sandbox.postToolbar.selectAllPosts":"Selecionar todos os posts","sandbox.postToolbar.sortAZ":"A–Z","sandbox.postToolbar.sortBy":"Ordenar por","sandbox.postToolbar.sortNewest":"Recentes","sandbox.postToolbar.sortNewestFirst":"Mais recentes primeiro","sandbox.postToolbar.sortOldest":"Antigas","sandbox.postToolbar.sortOldestFirst":"Mais antigas primeiro","sandbox.postToolbar.sortTitleAZ":"Título A–Z","sandbox.postToolbar.sortTitleZA":"Título Z–A","sandbox.postToolbar.sortZA":"Z–A","sandbox.preview.blocks":"Blocos","sandbox.preview.blocksEditor":"Editor de blocos","sandbox.preview.catchAllParamLabel":"caminho","sandbox.preview.choosePage":"Escolher página","sandbox.preview.clickElementToAsk":"Clique em qualquer elemento para perguntar à IA","sandbox.preview.copyCurrentUrl":"Copiar URL atual","sandbox.preview.createNewPage":"Criar nova página","sandbox.preview.devServerPreviewTitle":"Visualização do servidor de desenvolvimento","sandbox.preview.deviceDesktop":"Desktop","sandbox.preview.deviceMobile":"Celular (375px)","sandbox.preview.deviceTablet":"Tablet (768px)","sandbox.preview.editSeo":"Editar SEO","sandbox.preview.enterToGo":"Enter para ir","sandbox.preview.failedToCopyUrl":"Falha ao copiar URL","sandbox.preview.failedToCreatePage":"Falha ao criar página","sandbox.preview.globalComponents":"Componentes globais","sandbox.preview.hardReload":"Recarregamento forçado","sandbox.preview.invalidPageBlockKey":"Chave de bloco de página inválida","sandbox.preview.moreOptions":"Mais opções","sandbox.preview.noPagesFound":"Nenhuma página encontrada neste site.","sandbox.preview.noSearchResults":"Nenhum resultado corresponde à sua pesquisa.","sandbox.preview.noServerRunning":"Nenhum servidor em execução","sandbox.preview.openInCursor":"Abrir no Cursor","sandbox.preview.openInNewTab":"Abrir em nova aba","sandbox.preview.openInVscode":"Abrir no VSCode","sandbox.preview.pageAlreadyExists":'Uma página com o caminho "{path}" já existe.',"sandbox.preview.pageCreated":'Página "{name}" criada',"sandbox.preview.previewMetadataNotReady":"Metadados de visualização não estão prontos ainda","sandbox.preview.refresh":"Atualizar","sandbox.preview.searchPagesAndComponents":"Procurar páginas e componentes...","sandbox.preview.siteSeo":"SEO do site","sandbox.preview.startingPreview":"Iniciando seu preview","sandbox.preview.startingPreviewHint":"Você já pode fazer alterações — elas aparecem quando o preview estiver pronto.","sandbox.preview.templateNoLongerExists":"O modelo selecionado não existe mais.","sandbox.preview.urlCopiedToClipboard":"URL copiada para a área de transferência","sandbox.preview.valueForParam":"Valor de {label}","sandbox.preview.viewJson":"Visualizar JSON","sandbox.preview.visualEditor":"Editor visual","sandbox.productBlocks.addProductIdButton":"Adicionar ID do produto","sandbox.productBlocks.addProductsButton":"Adicionar produtos","sandbox.productBlocks.addProductsDescription":"Pesquise produtos VTEX ou escolha uma categoria ou cluster","sandbox.productBlocks.browseProductsButton":"Procurar produtos","sandbox.productBlocks.changeButton":"Alterar","sandbox.productBlocks.chooseProductButton":"Escolher um produto","sandbox.productBlocks.ctaLabelField":"Rótulo de CTA","sandbox.productBlocks.ctaLabelPlaceholder":"Ver produto","sandbox.productBlocks.dragToReorderLabel":"Arraste para reordenar","sandbox.productBlocks.headingH1":"H1","sandbox.productBlocks.headingH2":"H2","sandbox.productBlocks.headingH3":"H3","sandbox.productBlocks.headingNormal":"Normal","sandbox.productBlocks.idLabel":"ID {id}","sandbox.productBlocks.loadingEllipsis":"Carregando…","sandbox.productBlocks.productCardLabel":"Cartão de produto","sandbox.productBlocks.productField":"Produto","sandbox.productBlocks.productPlural":"produtos","sandbox.productBlocks.productSingular":"produto","sandbox.productBlocks.productSlugField":"Slug do produto","sandbox.productBlocks.productSlugPlaceholder":"slug-do-produto","sandbox.productBlocks.productWithId":"Produto {id}","sandbox.productBlocks.removeProductButton":"Remover produto","sandbox.productBlocks.removeProductIdButton":"Remover ID do produto","sandbox.productBlocks.removeProductLabel":"Remover produto","sandbox.productBlocks.shelfTitlePlaceholder":"Título da prateleira","sandbox.productBlocks.skuIdPlaceholder":"151331","sandbox.productBlocks.startDevServerDescription":"Inicie o servidor de desenvolvimento para procurar produtos ou adicione IDs de SKU abaixo.","sandbox.productBlocks.vtexProductIdPlaceholder":"ID de produto VTEX (ex. 151331)","sandbox.productBlocks.vtexProductIds":"IDs de produtos VTEX","sandbox.productPickerDialog.addProducts":"Adicionar produtos","sandbox.productPickerDialog.categoryLabel":"Categoria: ","sandbox.productPickerDialog.change":" — alterar","sandbox.productPickerDialog.chooseProduct":"Escolher um produto","sandbox.productPickerDialog.clusterIdPlaceholder":"ID da coleção / cluster (ex.: 2140)","sandbox.productPickerDialog.couldNotLoad":"Não foi possível carregar — o servidor de desenvolvimento está em execução?","sandbox.productPickerDialog.done":"Concluído","sandbox.productPickerDialog.enterClusterPrompt":"Digite um ID de coleção ou cluster.","sandbox.productPickerDialog.filterCategoriesPlaceholder":"Filtrar categorias…","sandbox.productPickerDialog.loadingCategories":"Carregando categorias…","sandbox.productPickerDialog.loadingProducts":"Carregando produtos…","sandbox.productPickerDialog.modeCategory":"Categoria","sandbox.productPickerDialog.modeClusterId":"ID do cluster","sandbox.productPickerDialog.modeSearch":"Busca","sandbox.productPickerDialog.noCategories":"Nenhuma categoria.","sandbox.productPickerDialog.noProductsFound":"Nenhum produto encontrado.","sandbox.productPickerDialog.noneSelected":"Nenhum selecionado","sandbox.productPickerDialog.pickCategoryPrompt":"Escolha uma categoria para ver seus produtos.","sandbox.productPickerDialog.searchProductsPlaceholder":"Buscar produtos por nome ou ID…","sandbox.productPickerDialog.selectedCount":"{count} selecionado(s)","sandbox.productPickerDialog.typeToSearchPrompt":"Digite para buscar produtos.","sandbox.recordEditor.fieldAvatar":"Avatar","sandbox.recordEditor.fieldCompany":"Empresa","sandbox.recordEditor.fieldEmail":"E-mail","sandbox.recordEditor.fieldJobTitle":"Cargo","sandbox.recordEditor.fieldName":"Nome","sandbox.recordEditor.fieldType":"Tipo","sandbox.recordEditor.optionOrganization":"Organização","sandbox.recordEditor.optionPerson":"Pessoa","sandbox.recordEditor.placeholderEmail":"autor@exemplo.com","sandbox.recordEditor.titleAuthor":"Autor","sandbox.redirectEditor.discardQueryParameters":"Descartar parâmetros de consulta","sandbox.redirectEditor.fromDescription":"O caminho de origem a corresponder. Suporta sintaxe URLPattern (ex. /produto/:slug).","sandbox.redirectEditor.fromLabel":"De","sandbox.redirectEditor.fromPlaceholder":"/caminho-antigo","sandbox.redirectEditor.title":"Redirecionamento","sandbox.redirectEditor.toDescription":"O destino — um caminho relativo ou uma URL absoluta.","sandbox.redirectEditor.toLabel":"Para","sandbox.redirectEditor.toPlaceholder":"/caminho-novo","sandbox.redirectEditor.typeLabel":"Tipo","sandbox.redirectEditor.typePermanent":"Permanente ({status})","sandbox.redirectEditor.typePlaceholder":"Tipo","sandbox.redirectEditor.typeTemporary":"Temporário ({status})","sandbox.productionUrlField.description":"Exibida no preview enquanto o servidor de desenvolvimento inicia, para você já visualizar e editar.","sandbox.productionUrlField.label":"URL de produção","sandbox.productionUrlField.placeholder":"https://exemplo.com","sandbox.repoRow.label":"Repositório","sandbox.repoRow.noRepositoryConnected":"Nenhum repositório conectado","sandbox.repoRow.tooltipContent":"O repositório GitHub conectado para este agente. Gerencie em Conexões.","sandbox.runnableBlockEditor.availableModeDescription":"{typeLabel} — edições permanecem locais até que você salve como um {singular} global. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlockEditor.backToList":"Voltar para a lista","sandbox.runnableBlockEditor.closeJsonEditor":"Fechar editor JSON","sandbox.runnableBlockEditor.closeResult":"Fechar resultado","sandbox.runnableBlockEditor.collapse":"Recolher","sandbox.runnableBlockEditor.collapseResult":"Recolher resultado","sandbox.runnableBlockEditor.editAsJson":"Editar como JSON","sandbox.runnableBlockEditor.editingBreadcrumb":"Trilha de migalhas da edição","sandbox.runnableBlockEditor.expand":"Expandir","sandbox.runnableBlockEditor.expandResult":"Expandir resultado","sandbox.runnableBlockEditor.failedToRun":"Falha ao executar {singular}","sandbox.runnableBlockEditor.freeformPropsEmptyState":"Este {singular} não publica um esquema de props. Edite suas props como JSON e execute.","sandbox.runnableBlockEditor.inferredSchemaNotice":"Este {singular} não publica um esquema de props — os campos abaixo são inferidos de seus valores salvos. Use o editor JSON para adicionar props não mostrados aqui.","sandbox.runnableBlockEditor.invalidJsonError":"JSON inválido — mudanças não são salvas até que seja analisado.","sandbox.runnableBlockEditor.noInputEmptyState":"Este {singular} não aceita entrada configurável. Execute para ver seu resultado.","sandbox.runnableBlockEditor.openInNewTabTooltip":"Abrir em nova aba (executa novamente o {singular})","sandbox.runnableBlockEditor.openResultInNewTabAriaLabel":"Abrir resultado em nova aba","sandbox.runnableBlockEditor.pressRunToInvoke":"Pressione Executar para invocar este {singular}.","sandbox.runnableBlockEditor.resultPanelTitle":"Resultado","sandbox.runnableBlockEditor.run":"Executar","sandbox.runnableBlockEditor.runAriaLabel":"Executar {singular}","sandbox.runnableBlockEditor.running":"Executando {singular}…","sandbox.runnableBlockEditor.saveAsGlobal":"Salvar como {singular} global","sandbox.runnableBlockEditor.saveAsGlobalAriaLabel":"Salvar como {singular} global","sandbox.runnableBlockEditor.savedModeDescription":"{singular} global — mudanças são salvas automaticamente. Execute para invocar contra a visualização em tempo real.","sandbox.runnableBlocksBrowser.emptyFolder":"Esta pasta está vazia.","sandbox.runnableBlocksBrowser.emptyFolderNoManifest":"Inicie o servidor de desenvolvimento de pré-visualização para que o manifest seja carregado.","sandbox.runnableBlocksBrowser.emptyFolderTitle":"Nenhum {kind} aqui","sandbox.runnableBlocksBrowser.folderBreadcrumb":"Navegação de pastas","sandbox.runnableBlocksBrowser.hideSaved":"Ocultar salvos","sandbox.runnableBlocksBrowser.noSearchResults":'Nenhum {kind} corresponde a "{query}"',"sandbox.runnableBlocksBrowser.noSearchResultsDescription":"A pesquisa abrange todas as pastas — tente um termo diferente.","sandbox.runnableBlocksBrowser.savedBlockToast":'{singular} "{blockId}" salvo(a)',"sandbox.runnableBlocksBrowser.savedCountLabel":"{count} salvo(s)","sandbox.runnableBlocksBrowser.searchAriaLabel":"Pesquisar todos os {kind}","sandbox.runnableBlocksBrowser.searchPlaceholder":"Pesquisar todos os {kind}…","sandbox.runnableBlocksBrowser.seeSaved":"Ver salvos","sandbox.runtimeFields.auto":"Automático","sandbox.runtimeFields.autoDetect":"Auto-detectar","sandbox.runtimeFields.devServerPort":"Porta do servidor de desenvolvimento","sandbox.runtimeFields.devServerPortDescription":"Deixe em branco para deixar o executor escolher.","sandbox.runtimeFields.packageManager":"Gerenciador de pacotes","sandbox.runtimeFields.packagePath":"Caminho do pacote","sandbox.runtimeFields.packagePathDescription":"Caminho (relativo à raiz do repositório) do diretório que contém package.json. Deixe em branco para a raiz do repositório.","sandbox.savedSectionEditor.closeJsonEditor":"Fechar editor JSON","sandbox.savedSectionEditor.editAsJson":"Editar como JSON","sandbox.savedSectionEditor.globalSectionDescription":"Seção global — alterações são salvas automaticamente e aplicadas em todos os locais onde é usada.","sandbox.savedSectionEditor.invalidJsonError":"JSON inválido — as alterações não serão salvas até que seja processado.","sandbox.savedSectionEditor.noEditableFields":"Nenhum campo editável para esta seção.","sandbox.sectionRenameDialog.cancel":"Cancelar","sandbox.sectionRenameDialog.description":"Atualiza o nome de exibição. A chave interna permanece a mesma para que as páginas que referem esta seção continuem funcionando.","sandbox.sectionRenameDialog.keyLabel":"Chave","sandbox.sectionRenameDialog.nameLabel":"Nome","sandbox.sectionRenameDialog.save":"Salvar","sandbox.sectionRenameDialog.saving":"Salvando…","sandbox.sectionRenameDialog.title":"Renomear seção","sandbox.sectionsRightPane.selectSectionDescription":"Escolha uma seção salva para editar, ou uma disponível para personalizar e salvar como global.","sandbox.sectionsRightPane.selectSectionTitle":"Selecione uma seção para editar","sandbox.stateCard.githubNotAuthenticatedMessage":"O repositório GitHub deste agente não está autenticado. Reconecte em Conexões e tente novamente.","sandbox.stateCard.othersThreadTitle":"Você está no chat de outra pessoa","sandbox.stateCard.othersThreadMessage":"Esta conversa ({label}) é de outro membro. Continuar aqui significa dar sequência ao trabalho dela — comece um novo chat para trabalhar no seu.","sandbox.stateCard.othersThreadContinue":"Continuar mesmo assim","sandbox.stateCard.othersThreadNewChat":"Começar novo chat","sandbox.stateCard.reconnectGithub":"Reconectar GitHub","sandbox.stateCard.resume":"Retomar","sandbox.stateCard.resumeToContinue":"Retome para continuar.","sandbox.stateCard.retry":"Tentar Novamente","sandbox.toolbar.closeTab":"Fechar {tab}","sandbox.toolbar.noScriptsFound":"Nenhum script encontrado","sandbox.toolbar.restart":"Reiniciar","sandbox.toolbar.resume":"Retomar","sandbox.toolbar.retry":"Tentar Novamente","sandbox.toolbar.run":"Executar","sandbox.toolbar.runAScript":"executar um script","sandbox.toolbar.runScript":"Executar script","sandbox.toolbar.setupTab":"sandbox","sandbox.toolbar.start":"Iniciar","sandbox.toolbar.startProcess":"Iniciar processo","sandbox.toolbar.stop":"Parar","sandbox.toolbar.stopProcess":"Parar processo","sandbox.toolbar.stopSandboxTooltip":"Parar sandbox","sandbox.toolbar.stopping":"Parando…","sandbox.variantCalendar.always":"Sempre","sandbox.variantCalendar.calendarMode":"Calendário","sandbox.variantCalendar.dateMatcherInfo":"Variantes condicionadas a um critério de data aparecem aqui.","sandbox.variantCalendar.hiddenOngoingVariants":'{count} variante(ns) em andamento oculta(s) — ative "Mostrar em andamento" para visualizar.',"sandbox.variantCalendar.next":"Próximo","sandbox.variantCalendar.noDatedVariants":"Nenhuma variante com data à vista.","sandbox.variantCalendar.noScheduledVariants":"Nenhuma variante agendada.","sandbox.variantCalendar.ongoing":"Em andamento","sandbox.variantCalendar.previous":"Anterior","sandbox.variantCalendar.showOngoing":"Mostrar em andamento ({count})","sandbox.variantCalendar.timelineMode":"Linha do tempo","sandbox.variantCalendar.today":"Hoje","sandbox.variantCalendar.todayLabel":"Hoje","sandbox.variantCalendar.variantBlock":"Variante / Bloco","sandbox.visualEditorPrompt.inputPlaceholder":"Pergunte à IA...","sandbox.visualEditorPrompt.sendButton":"Enviar"},Qce={"announcements.ptBr.title":"O Studio agora está em português","announcements.ptBr.description":"Notamos que seu navegador está em português, então mudamos o Studio para português (Brasil). Você pode voltar para o inglês quando quiser nas configurações.","announcements.ptBr.ok":"OK!","announcements.ptBr.switchBack":"Voltar para o inglês","announcements.release.ariaLabel":"Anúncio de lançamento","announcements.release.dismiss":"Dispensar anúncio de lançamento","announcements.release.learnMore":"Saiba mais","announcements.version.ariaLabel":"Atualização do Studio","announcements.version.dismiss":"Dispensar atualização do Studio","announcements.version.eyebrow":"Atualização do Studio","announcements.version.title":"Uma nova versão está pronta","announcements.version.description":"Atualize a página para carregar as novidades do Studio.","announcements.version.currentSession":"Sessão atual · {version}","announcements.version.refresh":"Atualizar agora"},Jce={"settings.title":"Perfil e preferências","settings.nav.organization":"Organização","settings.nav.general":"Geral","settings.nav.brandContext":"Contexto da marca","settings.nav.aiProviders":"Provedores de IA","settings.nav.secrets":"Segredos","settings.nav.buckets":"Buckets","settings.nav.build":"Criação","settings.nav.connections":"Conexões","settings.nav.agents":"Agentes","settings.nav.automations":"Automações","settings.nav.store":"Loja","settings.nav.manage":"Gerenciar","settings.nav.monitor":"Monitoramento","settings.nav.members":"Membros","settings.nav.roles":"Cargos","settings.nav.security":"Segurança","settings.nav.account":"Conta","settings.nav.profile":"Perfil e preferências","settings.nav.signOut":"Sair","settings.profile.avatar":"Avatar","settings.profile.displayName":"Nome de exibição","settings.profile.displayNamePlaceholder":"Seu nome","settings.profile.email":"E-mail","settings.profile.updateSuccess":"Perfil atualizado com sucesso","settings.profile.updateError":"Falha ao atualizar o perfil","settings.preferences.title":"Preferências","settings.preferences.theme":"Tema","settings.preferences.themeDescription":"Seu esquema de cores preferido.","settings.preferences.themeLight":"Tema claro","settings.preferences.themeDark":"Tema escuro","settings.preferences.themeSystem":"Tema do sistema","settings.preferences.language":"Idioma","settings.preferences.languageDescription":"O idioma da interface.","settings.preferences.notifications":"Notificações","settings.preferences.notificationsDescription":"Receba notificações do navegador para eventos importantes.","settings.preferences.notificationsDenied":"Notificações negadas. Habilite-as nas configurações do seu navegador.","settings.preferences.sounds":"Sons","settings.preferences.soundsDescription":"Reproduza sons para ações de agentes e notificações.","settings.preferences.soundsPreview":"Ouvir som de notificação","settings.preferences.toolApproval":"Aprovação de ferramentas","settings.preferences.toolApprovalDescription":"Controle como as ferramentas são aprovadas antes da execução.","settings.preferences.toolApprovalAsk":"Perguntar antes de editar","settings.preferences.toolApprovalAskShort":"Perguntar","settings.preferences.toolApprovalAskDescription":"Aprova automaticamente ferramentas somente leitura","settings.preferences.toolApprovalAuto":"Aprovar automaticamente","settings.preferences.toolApprovalAutoShort":"Auto","settings.preferences.toolApprovalAutoDescription":"Executa tudo sem aprovação","settings.automations.browseAgentsButton":"Procurar agentes","settings.automations.emptyDescription":"As automações são criadas por agente. Abra um agente e adicione uma na aba de Automações.","settings.automations.emptyTitle":"Nenhuma automação ainda","settings.automations.noResultsDescription":'Nenhuma automação corresponde a "{search}"',"settings.automations.noResultsTitle":"Nenhuma automação encontrada","settings.automations.pageTitle":"Automações","settings.automations.searchPlaceholder":"Pesquisar automações...","settings.brandFormSections.autoExtractDescription":"Digite o URL do seu site e extrairemos automaticamente as cores, fontes, logos e visão geral da sua marca.","settings.brandFormSections.autoExtractTitle":"Auto-extrair contexto da marca","settings.brandFormSections.colorPlaceholder":"#000000","settings.brandFormSections.colorRoleAccent":"Destaque","settings.brandFormSections.colorRoleBackground":"Fundo","settings.brandFormSections.colorRoleForeground":"Primeiro Plano","settings.brandFormSections.colorRolePrimary":"Primária","settings.brandFormSections.colorRoleSecondary":"Secundária","settings.brandFormSections.colorsTitle":"Cores","settings.brandFormSections.companyNameLabel":"Nome da empresa","settings.brandFormSections.companyNamePlaceholder":"Acme Corp","settings.brandFormSections.companyOverviewTitle":"Visão Geral da Empresa","settings.brandFormSections.domainInputPlaceholder":"acme.com","settings.brandFormSections.domainLabel":"Domínio","settings.brandFormSections.domainPlaceholder":"acme.com","settings.brandFormSections.extract":"Extrair","settings.brandFormSections.extracting":"Extraindo...","settings.brandFormSections.faviconLabel":"Favicon","settings.brandFormSections.fontFamilyPlaceholder":"Família de fonte para {role}","settings.brandFormSections.fontRoleBody":"Corpo","settings.brandFormSections.fontRoleCode":"Código","settings.brandFormSections.fontRoleHeading":"Títulos","settings.brandFormSections.fontsTitle":"Fontes","settings.brandFormSections.logoLabel":"Logo","settings.brandFormSections.logosImagesTitle":"Logos e Imagens","settings.brandFormSections.noImageLabel":"Sem {label}","settings.brandFormSections.ogImageLabel":"Imagem SEO / OG","settings.brandFormSections.openLink":"abrir","settings.brandFormSections.overviewLabel":"Visão Geral","settings.brandFormSections.overviewPlaceholder":"Breve descrição do que a empresa faz...","settings.brandFormSections.urlPlaceholder":"https://...","settings.buckets.accessKeyIdLabel":"ID de chave de acesso","settings.buckets.addBucket":"Adicionar bucket","settings.buckets.addBucketButton":"Adicionar bucket","settings.buckets.addS3Bucket":"Adicionar bucket S3","settings.buckets.addingButton":"Adicionando…","settings.buckets.apiKeyHelperText":"Enviado como header x-api-key em cada chamada de atualização.","settings.buckets.apiKeyLabel":"Chave API","settings.buckets.bucketAdded":'Bucket "{name}" adicionado',"settings.buckets.bucketLabel":"Bucket","settings.buckets.bucketPlaceholder":"meu-bucket","settings.buckets.bucketRemoved":'Bucket "{name}" removido',"settings.buckets.bucketsConfigured":"{count} bucket(s) configurado(s)","settings.buckets.cancelButton":"Cancelar","settings.buckets.credentialsEncryptedDescription":"As credenciais são criptografadas em repouso e nunca retornadas pela API. Para Cloudflare R2, Google Cloud Storage ou MinIO, defina um endpoint personalizado.","settings.buckets.credentialsLabel":"Credenciais","settings.buckets.deleteButton":"Deletar {name}","settings.buckets.descriptionLabel":"Descrição (opcional)","settings.buckets.descriptionPlaceholder":"Para que este bucket é usado?","settings.buckets.emptyStateDescription":"Adicione um bucket compatível com S3 (AWS S3, Cloudflare R2, Google Cloud Storage, MinIO). As chaves de acesso são criptografadas em repouso e nunca retornadas pela API.","settings.buckets.endpointHelperText":"Obrigatório para provedores que não são AWS (R2, GCS, MinIO).","settings.buckets.endpointLabel":"Endpoint (opcional)","settings.buckets.endpointPlaceholder":"https://<account>.r2.cloudflarestorage.com","settings.buckets.failedToAddBucket":"Falha ao adicionar bucket","settings.buckets.failedToLoadConfigs":"Falha ao carregar configurações de arquivo: {error}","settings.buckets.failedToLoadConfigsFallback":"Falha ao carregar configurações de arquivo","settings.buckets.failedToRemoveBucket":"Falha ao remover bucket","settings.buckets.forcePathStyleHelperText":"Obrigatório para Google Cloud Storage e a maioria das configurações do MinIO.","settings.buckets.forcePathStyleLabel":"Forçar URLs path-style","settings.buckets.managed":"Gerenciado","settings.buckets.nameHelperText":"Letras, dígitos, underscore, ponto, hífen. Único dentro da organização.","settings.buckets.nameLabel":"Nome","settings.buckets.namePlaceholder":"production-uploads","settings.buckets.noBucketsConfigured":"Nenhum bucket configurado","settings.buckets.pageTitle":"Buckets","settings.buckets.pathStyle":"path-style","settings.buckets.prefix":"prefixo: {prefix}","settings.buckets.prefixHelperText":"Todas as chaves de objeto são escritas sob este prefixo. Útil para buckets multi-tenant ou credenciais escopo de um sub-path. Uma barra à direita é adicionada automaticamente.","settings.buckets.prefixLabel":"Prefixo de chave (opcional)","settings.buckets.prefixPlaceholder":"tenants/acme/","settings.buckets.public":"público: {url}","settings.buckets.publicUrlBaseHelperText":"Host usado para construir URLs públicas retornadas pelo seletor (domínio dev do R2, CDN, host personalizado). Deixe em branco para usar o host S3 do bucket (padrão da AWS).","settings.buckets.publicUrlBaseLabel":"Base de URL pública (opcional)","settings.buckets.publicUrlBasePlaceholder":"https://pub-xxxx.r2.dev ou https://cdn.example.com","settings.buckets.refreshUrlHelperText":"Endpoint para o qual é feito POST (com a chave API abaixo) para fornecer credenciais temporárias. Deve retornar accessKeyId, secretAccessKey, sessionToken e expiration.","settings.buckets.refreshUrlLabel":"URL de atualização","settings.buckets.refreshUrlPlaceholder":"https://admin.example.com/api/acme/s3-credentials","settings.buckets.regionLabel":"Região","settings.buckets.regionPlaceholder":"us-east-1","settings.buckets.removeBucketDescription":"Isto exclui as credenciais criptografadas para {name}. O bucket em si não é afetado. Isto não pode ser desfeito.","settings.buckets.removeBucketTitle":"Remover configuração do bucket?","settings.buckets.removeButton":"Remover","settings.buckets.removingButton":"Removendo…","settings.buckets.secretAccessKeyLabel":"Chave de acesso secreta","settings.buckets.staticKeyHelperText":"Um ID de chave de acesso de longa duração e segredo, usados conforme fornecidos.","settings.buckets.staticKeyOption":"Par de chave estática (longa duração)","settings.buckets.stsSessionHelperText":"Armazena apenas um endpoint de atualização + chave API; credenciais de curta duração são buscadas sob demanda e atualizadas automaticamente.","settings.buckets.temporarySessionOption":"Sessão temporária (STS, auto-atualizada)","settings.connectForms.apiKeyField":"Chave API","settings.connectForms.baseUrlField":"URL Base","settings.connectForms.baseUrlPlaceholder":"http://localhost:4000/v1","settings.connectForms.cancel":"Cancelar","settings.connectForms.connectionSavedSuccess":"Conexão salva com sucesso","settings.connectForms.defaultKeyLabel":"Chave pessoal","settings.connectForms.failedSaveConnection":"Falha ao salvar conexão: {error}","settings.connectForms.failedSaveKey":"Falha ao salvar chave: {error}","settings.connectForms.hideApiKey":"Ocultar chave API","settings.connectForms.keySavedSuccess":"Chave salva com sucesso","settings.connectForms.labelField":"Rótulo","settings.connectForms.labelPlaceholder":"Ex: Chave pessoal","settings.connectForms.labelPlaceholderOpenAiCompatible":"Ex: Meu servidor compatível com OpenAI","settings.connectForms.labelPlaceholderPreset":"Ex: {name} prod, {name} dev","settings.connectForms.optional":"opcional","settings.connectForms.recommended":"recomendado","settings.connectForms.saveConnection":"Salvar Conexão","settings.connectForms.saveKey":"Salvar Chave","settings.connectForms.saving":"Salvando...","settings.connectForms.showApiKey":"Mostrar chave API","settings.connectProviderDialog.backButton":"Voltar","settings.connectProviderDialog.backButtonLabel":"Voltar","settings.connectProviderDialog.connectionTimedOutMessage":"Conexão expirou","settings.connectProviderDialog.defaultProviderName":"Provedor","settings.connectProviderDialog.defaultTitle":"Conectar um provedor de IA","settings.connectProviderDialog.gridDescription":"Escolha um provedor — o resto a gente resolve.","settings.connectProviderDialog.oauthFailedMessage":"Falha na conexão OAuth: {error}","settings.connectProviderDialog.oauthPendingMessage":"Autorize a conexão na janela de pop-up. Este chat será fechado quando a autorização for concluída.","settings.connectProviderDialog.oauthSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.provisionPendingMessage":"Conectando…","settings.connectProviderDialog.provisionSuccessMessage":"{provider} conectado com sucesso","settings.connectProviderDialog.retryButton":"Tentar novamente","settings.connectProviderDialog.securityCheckFailedMessage":"Falha na verificação de segurança: Token de estado não corresponde","settings.connectProviderDialog.startOAuthFailedMessage":"Falha ao iniciar OAuth: {error}","settings.connectedProvidersSection.connectButton":"Conectar provedor","settings.connectedProvidersSection.emptyState":"Traga suas próprias chaves para usar modelos específicos junto com o gateway da Deco.","settings.connectedProvidersSection.sectionTitle":"Provedores conectados","settings.decoCreditsHero.accessModels":"Acesso a 100+ modelos","settings.decoCreditsHero.add":"Adicionar","settings.decoCreditsHero.addCredits":"Adicionar créditos","settings.decoCreditsHero.amountPlaceholder":"50","settings.decoCreditsHero.availableBalance":"Saldo de crédito disponível","settings.decoCreditsHero.cancel":"Cancelar","settings.decoCreditsHero.cancelButton":"Cancelar","settings.decoCreditsHero.custom":"Personalizado","settings.decoCreditsHero.decoAiGatewayAlt":"Deco AI Gateway","settings.decoCreditsHero.disconnect":"Desconectar","settings.decoCreditsHero.disconnectButton":"Desconectar","settings.decoCreditsHero.disconnectDescription":"Isso removerá o Deco AI Gateway deste espaço de trabalho. Seu saldo de crédito é preservado e estará disponível se você se reconectar.","settings.decoCreditsHero.disconnectError":"Falha ao desconectar: {message}","settings.decoCreditsHero.disconnectSuccess":"Deco AI Gateway desconectado","settings.decoCreditsHero.disconnectTitle":"Desconectar Deco AI Gateway","settings.decoCreditsHero.refreshBalance":"Atualizar saldo","settings.decoCreditsHero.title":"Deco AI Gateway","settings.decoCreditsHero.topUpFailed":"Recarga falhou: {message}","settings.decoNudgeCard.connectDeco":"Conectar Deco","settings.decoNudgeCard.connecting":"Conectando…","settings.decoNudgeCard.decoAiGateway":"Deco AI Gateway","settings.decoNudgeCard.description":"100+ modelos, uma conexão — pague conforme usa, sem APIs para gerenciar.","settings.decoNudgeCard.recommended":"Recomendado","settings.deleteOrganizationSection.cancel":"Cancelar","settings.deleteOrganizationSection.dangerZone":"Zona de Risco","settings.deleteOrganizationSection.deleteButton":"Deletar","settings.deleteOrganizationSection.deleteOrganizationAction":"Deletar organização","settings.deleteOrganizationSection.deleteOrganizationDescription":"Delete permanentemente esta organização e todos os seus dados. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleteOrganizationQuestion":"Deletar Organização?","settings.deleteOrganizationSection.deleteOrganizationTitle":"Deletar organização","settings.deleteOrganizationSection.deleteWarning":"Isto irá deletar permanentemente todos os dados associados com {organizationName}. Esta ação não pode ser desfeita.","settings.deleteOrganizationSection.deleting":"Deletando…","settings.deleteOrganizationSection.failedToDeleteOrganization":"Falha ao deletar organização","settings.deleteOrganizationSection.irreversibleActionsDescription":"Ações irreversíveis que afetam toda a sua organização.","settings.deleteOrganizationSection.organizationDeleted":"Organização deletada","settings.deleteOrganizationSection.typeToConfirm":"Digite {organizationName} para confirmar:","settings.domainSettings.addDnsRecordInstruction":"Adicione o registro DNS abaixo e verifique.","settings.domainSettings.addDomain":"Adicionar domínio","settings.domainSettings.adding":"Adicionando…","settings.domainSettings.copied":"Copiado","settings.domainSettings.dnsInstructions":"Adicione este registro TXT no seu provedor de DNS e clique em Verificar:","settings.domainSettings.domainAdded":"Domínio adicionado","settings.domainSettings.domainPlaceholder":"acme.com","settings.domainSettings.domainRemoved":"Domínio removido","settings.domainSettings.domainVerified":"Domínio verificado","settings.domainSettings.emailDomains":"Domínios de e-mail","settings.domainSettings.emailDomainsDescription":"Permita que pessoas com um domínio de e-mail correspondente descubram e se juntem a esta organização.","settings.domainSettings.failedAddDomain":"Falha ao adicionar domínio","settings.domainSettings.failedRemove":"Falha ao remover","settings.domainSettings.failedUpdate":"Falha ao atualizar","settings.domainSettings.failedVerify":"Falha ao verificar","settings.domainSettings.joinMode":"Modo de entrada","settings.domainSettings.joinModeAuto":"Entrada automática","settings.domainSettings.joinModeHelpAuto":"Qualquer pessoa com um e-mail @{domain} verificado entra automaticamente.","settings.domainSettings.joinModeHelpOff":"Não detectável — ninguém pode encontrar ou se juntar através deste domínio.","settings.domainSettings.joinModeHelpRequest":"Pessoas com um e-mail @{domain} verificado podem solicitar entrada; um administrador aprova.","settings.domainSettings.joinModeOff":"Desativado","settings.domainSettings.joinModeRequest":"Requer aprovação","settings.domainSettings.joinModeUpdated":"Modo de entrada atualizado","settings.domainSettings.pending":"Pendente","settings.domainSettings.remove":"Remover","settings.domainSettings.txt":"TXT","settings.domainSettings.txtRecordNotFound":"Registro TXT não encontrado ainda — o DNS pode levar alguns minutos.","settings.domainSettings.value":"valor","settings.domainSettings.verified":"Verificado","settings.domainSettings.verify":"Verificar","settings.editProviderDialog.apiKey":"Chave de API","settings.editProviderDialog.apiKeyRequiredForBaseUrlChange":"Informe a chave de API novamente para confirmar a mudança da URL base","settings.editProviderDialog.baseUrl":"URL base","settings.editProviderDialog.baseUrlPlaceholder":"http://localhost:4000/v1","settings.editProviderDialog.cancel":"Cancelar","settings.editProviderDialog.editTitle":"Editar {name}","settings.editProviderDialog.failedToUpdate":"Falha ao atualizar: {error}","settings.editProviderDialog.hideApiKey":"Ocultar chave de API","settings.editProviderDialog.label":"Rótulo","settings.editProviderDialog.labelPlaceholder":"p.ex. Chave pessoal","settings.editProviderDialog.labelRequired":"Rótulo é obrigatório","settings.editProviderDialog.leaveBlankHint":"deixe em branco para manter atual","settings.editProviderDialog.providerUpdated":"Provedor atualizado","settings.editProviderDialog.save":"Salvar","settings.editProviderDialog.saving":"Salvando...","settings.editProviderDialog.showApiKey":"Mostrar chave de API","settings.joinRequestsSection.approve":"Aprovar","settings.joinRequestsSection.deny":"Recusar","settings.joinRequestsSection.description":"Pessoas que solicitaram entrada por um domínio em modo de aprovação.","settings.joinRequestsSection.title":"Solicitações de entrada","settings.orgBrandContext.addBrand":"Adicionar Marca","settings.orgBrandContext.addYourFirstBrand":"Adicionar sua primeira marca","settings.orgBrandContext.brandContext":"Contexto de Marca","settings.orgBrandContext.brandContextDescription":"Defina seus perfis de marca. Cada marca está disponível como um prompt MCP para clientes de IA.","settings.orgBrandContext.brandContextUpdated":"Contexto de marca atualizado com sucesso","settings.orgBrandContext.brandCreated":"Marca criada","settings.orgBrandContext.brandDeleted":"Marca excluída","settings.orgBrandContext.brandExtractedSuccessfully":"Marca extraída com sucesso","settings.orgBrandContext.cancel":"Cancelar","settings.orgBrandContext.delete":"Excluir","settings.orgBrandContext.deleteBrand":"Excluir marca","settings.orgBrandContext.deleteBrandTitle":"Excluir marca?","settings.orgBrandContext.deleteConfirmMessage":"Isso excluirá permanentemente {name}. Esta ação não pode ser desfeita.","settings.orgBrandContext.deleteDefaultBrandWarning":"esta é a marca padrão da sua organização. Excluí-la deixará sua organização sem uma marca padrão até que você defina outra.","settings.orgBrandContext.deleting":"Excluindo...","settings.orgBrandContext.failedCreateBrand":"Falha ao criar marca","settings.orgBrandContext.failedDeleteBrand":"Falha ao excluir marca","settings.orgBrandContext.failedExtractBrand":"Falha ao extrair marca","settings.orgBrandContext.failedSaveBrandContext":"Falha ao salvar contexto de marca","settings.orgBrandContext.failedUpdateDefaultBrand":"Falha ao atualizar marca padrão","settings.orgBrandContext.headsUp":"Atenção","settings.orgBrandContext.noBrandsConfigured":"Nenhuma marca configurada ainda.","settings.orgBrandContext.removedAsDefaultBrand":"Removido como marca padrão","settings.orgBrandContext.setAsDefault":"Definir como padrão","settings.orgBrandContext.setAsDefaultBrand":"Definir como marca padrão","settings.orgBrandContext.thisBrand":"esta marca","settings.orgBrandContext.unsetAsDefault":"Remover como padrão","settings.orgBrandContext.untitledBrand":"Marca Sem Título","settings.orgGeneral.organization":"Organização","settings.orgRoleDetail.addMember":"Adicionar Membro","settings.orgRoleDetail.addMembersToGrantPermissions":"Adicione membros para conceder as permissões configuradas.","settings.orgRoleDetail.addMembersToRole":"Adicionar Membros ao Papel","settings.orgRoleDetail.addWithCount":"Adicionar ({count})","settings.orgRoleDetail.added":"Adicionado","settings.orgRoleDetail.allModels":"Todos os modelos","settings.orgRoleDetail.allOrgPermissions":"Todas as permissões da organização","settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged":"Permissões de papel integrado não podem ser alteradas","settings.orgRoleDetail.cancel":"Cancelar","settings.orgRoleDetail.createRole":"Criar Papel","settings.orgRoleDetail.enabledCount":"{enabledCount}/{total} ativados","settings.orgRoleDetail.failedToSaveRole":"Falha ao salvar papel","settings.orgRoleDetail.general":"Geral","settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow":"Conceder acesso completo a todos os recursos abaixo","settings.orgRoleDetail.loadingModels":"Carregando modelos...","settings.orgRoleDetail.mcpPermissions":"Permissões MCP","settings.orgRoleDetail.members":"Membros","settings.orgRoleDetail.membersUpdatedSuccessfully":"Membros atualizados com sucesso!","settings.orgRoleDetail.models":"Modelos","settings.orgRoleDetail.noLlmConnectionsConfigured":"Nenhuma conexão LLM configurada","settings.orgRoleDetail.noMembers":"Sem membros","settings.orgRoleDetail.noMembersAvailable":"Nenhum membro disponível","settings.orgRoleDetail.noMembersFound":"Nenhum membro encontrado","settings.orgRoleDetail.noMembersMatch":'Nenhum membro corresponde a "{searchQuery}"',"settings.orgRoleDetail.noPermissionsMatch":'Nenhuma permissão corresponde a "{searchQuery}"',"settings.orgRoleDetail.organizationPermissions":"Permissões da Organização","settings.orgRoleDetail.owner":"Proprietário","settings.orgRoleDetail.ownerMembershipCannotBeChanged":"A associação de proprietário não pode ser alterada","settings.orgRoleDetail.removeMember":"Remover {name} do papel","settings.orgRoleDetail.roleCreatedSuccessfully":"Papel criado com sucesso!","settings.orgRoleDetail.roleName":"Nome do papel","settings.orgRoleDetail.roleNameIsRequired":"Nome do papel é obrigatório","settings.orgRoleDetail.roleUpdatedSuccessfully":"Papel atualizado com sucesso!","settings.orgRoleDetail.saveChanges":"Salvar Alterações","settings.orgRoleDetail.saving":"Salvando...","settings.orgRoleDetail.searchMcpServers":"Procurar servidores MCP...","settings.orgRoleDetail.searchMembers":"Procurar membros...","settings.orgRoleDetail.searchModels":"Procurar modelos...","settings.orgRoleDetail.searchPermissions":"Procurar permissões...","settings.orgRoleDetail.selectMembersToAddToThisRole":"Selecione membros para adicionar a este papel.","settings.orgRoleDetail.showMore":"Mostrar mais ({remaining} restantes)","settings.orgRoleDetail.somethingWentWrong":"Algo deu errado","settings.orgRoleDetail.unknown":"Desconhecido","settings.orgRoleDetail.userIsDefaultRoleMessage":"Usuário é o papel padrão — membros não podem ser removidos dele; atribua outro papel para alterar seu acesso","settings.orgSso.cancelButton":"Cancelar","settings.orgSso.clientIdLabel":"ID do Cliente","settings.orgSso.clientIdPlaceholder":"seu-id-cliente","settings.orgSso.clientSecretEditDescription":"Deixe em branco para manter atual","settings.orgSso.clientSecretLabel":"Senha do Cliente","settings.orgSso.clientSecretPlaceholder":"sua-senha-cliente","settings.orgSso.clientSecretRequiredError":"Senha do Cliente é obrigatória para a configuração inicial","settings.orgSso.configurationRemovedSuccess":"Configuração SSO removida","settings.orgSso.configurationSavedSuccess":"Configuração SSO salva","settings.orgSso.configureSsoButton":"Configurar SSO","settings.orgSso.discoveryEndpointDescription":"Opcional — detectado automaticamente do issuer se omitido.","settings.orgSso.discoveryEndpointLabel":"Endpoint de Descoberta","settings.orgSso.discoveryEndpointPlaceholder":"Detectado automaticamente do issuer","settings.orgSso.domainLabel":"Domínio","settings.orgSso.editConfigButton":"Editar configuração","settings.orgSso.emailDomainDescription":"O domínio de e-mail que este provedor SSO cobre.","settings.orgSso.emailDomainLabel":"Domínio de E-mail","settings.orgSso.emailDomainPlaceholder":"empresa.com","settings.orgSso.enforceSsoDescription":"Exigir que todos os membros se autentiquem via SSO","settings.orgSso.enforceSsoLabel":"Forçar SSO","settings.orgSso.enforcementDisabledSuccess":"Aplicação de SSO desativada","settings.orgSso.enforcementEnabledSuccess":"Aplicação de SSO ativada","settings.orgSso.issuerUrlDescription":"A URL do issuer OIDC do seu provedor de identidade.","settings.orgSso.issuerUrlLabel":"URL do Issuer","settings.orgSso.issuerUrlPlaceholder":"https://login.microsoftonline.com/{tenant}/v2.0","settings.orgSso.loading":"Carregando...","settings.orgSso.providerLabel":"Provedor","settings.orgSso.removeButton":"Remover","settings.orgSso.removeConfirmation":"Tem certeza de que deseja remover a configuração SSO?","settings.orgSso.removeSsoConfigError":"Falha ao remover configuração SSO","settings.orgSso.requiredFieldsError":"Issuer, ID do Cliente e Domínio são obrigatórios","settings.orgSso.saveSsoConfigError":"Falha ao salvar configuração SSO","settings.orgSso.savingButton":"Salvando...","settings.orgSso.scopesLabel":"Escopos","settings.orgSso.scopesPlaceholder":"openid email profile","settings.orgSso.sectionTitle":"Single Sign-On","settings.orgSso.securityTitle":"Segurança","settings.orgSso.testSsoButton":"Testar SSO","settings.orgSso.toggleEnforcementError":"Falha ao alternar aplicação de SSO","settings.orgSso.updateButton":"Atualizar","settings.orgStore.addRegistry":"Adicionar Registro","settings.orgStore.adding":"Adicionando...","settings.orgStore.authTokenLabel":"Token de Autenticação","settings.orgStore.authTokenPlaceholder":"Token Bearer...","settings.orgStore.cancel":"Cancelar","settings.orgStore.communityRegistryDescription":"Registro MCP da comunidade com milhares de MCPs úteis","settings.orgStore.communityRegistryNotAdded":"Registro MCP da comunidade — ainda não adicionado","settings.orgStore.communitySection":"Comunidade","settings.orgStore.connectionNotFound":"Conexão não encontrada — será criada automaticamente.","settings.orgStore.decoStoreDescription":"Registro MCP deco oficial com integrações selecionadas","settings.orgStore.decoStoreName":"Loja Deco","settings.orgStore.decoStoreSection":"Loja Deco","settings.orgStore.failedAddRegistry":"Falha ao adicionar registro: {error}","settings.orgStore.failedLoadStoreSettings":"Falha ao carregar configurações da loja:","settings.orgStore.mcpRegistry":"Registro MCP","settings.orgStore.nameLabel":"Nome","settings.orgStore.namePlaceholder":"p.ex. Registro Acme Corp","settings.orgStore.optional":"Opcional","settings.orgStore.pageTitle":"Loja","settings.orgStore.privateMcpRegistry":"Registro MCP privado","settings.orgStore.privateRegistriesSection":"Registros Privados","settings.orgStore.privateRegistry":"Registro Privado","settings.orgStore.privateRegistryAdded":"Registro privado adicionado","settings.orgStore.privateRegistryDescription":"Registro MCP privado da sua organização","settings.orgStore.registryUrlLabel":"URL do Registro","settings.orgStore.registryUrlPlaceholder":"https://registry.exemplo.com/mcp","settings.orgStore.remove":"Remover","settings.orgStore.removeRegistry":"Remover este registro?","settings.organizationForm.failedToReadImage":"Falha ao ler imagem","settings.organizationForm.failedToUpdateOrg":"Falha ao atualizar organização","settings.organizationForm.imageTooLarge":"Imagem deve ser menor que 2MB","settings.organizationForm.logoDescription":"Tamanho recomendado é 256x256px","settings.organizationForm.logoTitle":"Logo","settings.organizationForm.namePlaceholder":"Nome da organização","settings.organizationForm.nameTitle":"Nome","settings.organizationForm.slugPlaceholder":"minha-organizacao","settings.organizationForm.updateSuccess":"Organização atualizada com sucesso","settings.organizationForm.uploadLogoLabel":"Enviar logo da organização","settings.organizationForm.urlTitle":"URL","settings.providerKeyRow.cancel":"Cancelar","settings.providerKeyRow.delete":"Excluir","settings.providerKeyRow.deleteApiKey":"Excluir chave de API","settings.providerKeyRow.deleteProviderKey":"Excluir chave do provedor","settings.providerKeyRow.editProviderKey":"Editar chave do provedor","settings.providerKeyRow.failedToDeleteKey":"Falha ao excluir chave: {error}","settings.providerKeyRow.keyDeleted":"Chave excluída","settings.roles.allConnections":"Todas as conexões","settings.roles.basicAccess":"Acesso básico","settings.roles.builtIn":"Integrada","settings.roles.cancel":"Cancelar","settings.roles.columnMembers":"Membros","settings.roles.columnPermissions":"Permissões","settings.roles.columnRole":"Função","settings.roles.columnType":"Tipo","settings.roles.connectionCount":"{count} conexão(ões)","settings.roles.createRole":"Criar Função","settings.roles.createRoleGetStarted":"Crie uma função para começar.","settings.roles.custom":"Personalizada","settings.roles.delete":"Excluir","settings.roles.deleteRoleConfirm":'Tem certeza que deseja excluir a função "{role}"? Esta ação não pode ser desfeita.',"settings.roles.deleteRoleTitle":"Excluir Função","settings.roles.deletedSuccessfully":"Função excluída com sucesso!","settings.roles.failedToLoad":"Falha ao carregar funções","settings.roles.fullAccess":"Acesso completo","settings.roles.fullOrgAccess":"Acesso completo da organização","settings.roles.noPermissions":"Sem permissões","settings.roles.noRoles":"Sem funções","settings.roles.noRolesFound":"Nenhuma função encontrada","settings.roles.noRolesMatchSearch":'Nenhuma função corresponde a "{search}"',"settings.roles.orgPermsCount":"{count} permissão(ões) da org","settings.roles.pageTitle":"Funções","settings.roles.roleAdmin":"Administrador","settings.roles.roleOwner":"Proprietário","settings.roles.roleUser":"Usuário","settings.roles.searchPlaceholder":"Pesquisar funções...","settings.secrets.cancelButton":"Cancelar","settings.secrets.createButton":"Criar segredo","settings.secrets.creatingButton":"Criando…","settings.secrets.descriptionLabel":"Descrição (opcional)","settings.secrets.descriptionPlaceholder":"Para que é usado este segredo?","settings.secrets.emptyDescription":"Armazene chaves de API, tokens e outros valores sensíveis. Os valores são criptografados em repouso e nunca retornados pela API.","settings.secrets.emptyTitle":"Nenhum segredo ainda","settings.secrets.failedToCreateSecret":"Falha ao criar segredo","settings.secrets.failedToLoadError":"Falha ao carregar segredos: {error}","settings.secrets.nameHelp":"Letras, dígitos, sublinhado, ponto, hífen. Sem distinção entre maiúsculas e minúsculas dentro do seu escopo.","settings.secrets.nameLabel":"Nome","settings.secrets.namePlaceholder":"STRIPE_API_KEY","settings.secrets.newSecret":"Novo segredo","settings.secrets.newSecretDescription":"Armazenado criptografado no cofre de credenciais. Escolha quem pode lê-lo.","settings.secrets.newSecretTitle":"Novo segredo","settings.secrets.scopeLabel":"Escopo","settings.secrets.scopeOrganization":"Organização","settings.secrets.scopeOrganizationDescription":"Organização — visível para todos os membros","settings.secrets.scopePrivate":"Privado","settings.secrets.scopePrivateDescription":"Privado — visível apenas para mim","settings.secrets.secretCreated":'Segredo "{name}" criado',"settings.secrets.secretsCount":"{count} segredo{plural} armazenado","settings.secrets.sectionOrganization":"Organização","settings.secrets.sectionPrivate":"Privado para mim","settings.secrets.valueLabel":"Valor","settings.simpleModeSection.defaultModels":"Modelos padrão","settings.simpleModeSection.failedToSave":"Falha ao salvar: {error}","settings.simpleModeSection.modelsPowerDescription":"Estes modelos alimentam chat, automações e ferramentas em toda a sua organização.","settings.simpleModeSection.notAvailableWithCurrentProvider":"Não disponível com o provedor atual","settings.simpleModeSection.pickModel":"Escolher modelo","settings.simpleModeSection.saved":"Salvo","settings.simpleModeSection.saving":"Salvando…","settings.simpleModeSection.tierDeepResearch":"Pesquisa aprofundada","settings.simpleModeSection.tierDeepResearchDesc":"Relatórios de pesquisa aprofundados e multi-fonte","settings.simpleModeSection.tierFast":"Rápido","settings.simpleModeSection.tierFastDesc":"Respostas mais rápidas, ideal para tarefas rápidas","settings.simpleModeSection.tierImage":"Imagem","settings.simpleModeSection.tierImageDesc":"Geração de imagens","settings.simpleModeSection.tierSmart":"Inteligente","settings.simpleModeSection.tierSmartDesc":"Equilíbrio entre velocidade e capacidade","settings.simpleModeSection.tierThinking":"Reflexivo","settings.simpleModeSection.tierThinkingDesc":"Mais capaz, ideal para tarefas complexas","settings.simpleModeSection.tierWebSearch":"Busca na web","settings.simpleModeSection.tierWebSearchDesc":"Respostas rápidas e atualizadas da web","settings.aiProviders.recommended":"Recomendado — 100+ modelos, pague conforme usa","settings.aiProviders.customOpenAiCompatible":"OpenAI-compatível personalizado","settings.aiProviders.customOpenAiDescription":"Traga seu próprio servidor de modelos (avançado)","settings.aiProviders.moreProviders":"{count} provedor{plural} adicional"},Xce={...yce,...Sce,..._ce,...wce,...Cce,...xce,...Ece,...Tce,...Pce,...Rce,...Ace,...kce,...Dce,...Oce,...Ice,...Mce,...Lce,...Nce,...Fce,...Bce,...zce,...jce,...Uce,...$ce,...qce,...Vce,...Hce,...Gce,...Kce,...Wce,...Yce,...Zce,...Jce,...Qce},eue={en:vce,"pt-BR":Xce};function Fm(){const e=ro.c(2),[t]=EB(),o=eue[t.language];let n;return e[0]!==o?(n=(r,i)=>bce(o[r],i),e[0]=o,e[1]=n):n=e[1],n}const Bm=new Oz({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});fle(Bm);hle(Bm);ile(Bm);sle(Bm);function tue(e){const t=ro.c(2),{children:o}=e,n=Fm();bj({itemCreatedSuccessfully:n("collections.mutations.itemCreatedSuccessfully"),itemUpdatedSuccessfully:n("collections.mutations.itemUpdatedSuccessfully"),itemDeletedSuccessfully:n("collections.mutations.itemDeletedSuccessfully"),createItemFailed:n("collections.mutations.createItemFailed"),updateItemFailed:n("collections.mutations.updateItemFailed"),deleteItemFailed:n("collections.mutations.deleteItemFailed")});let r;return t[0]!==o?(r=R.jsx(R.Fragment,{children:o}),t[0]=o,t[1]=r):r=t[1],r}function oue(e){const t=ro.c(4),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx(vj,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=R.jsx(Lx,{}),t[1]=r):r=t[1];let i;return t[2]!==o?(i=R.jsxs(Iz,{client:Bm,children:[n,R.jsx(D.Suspense,{fallback:r,children:R.jsx(Nle,{children:R.jsx(WH,{children:R.jsx(Yae,{children:R.jsx(Ple,{children:R.jsx(tue,{children:o})})})})})})]}),t[2]=o,t[3]=i):i=t[3],i}function Nx(){const e=ro.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=R.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 h-full w-full flex items-center justify-center",children:R.jsx(Mx,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function nue(...e){return PL(TC(e))}const rue=QL("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function pm(e){const t=ro.c(14);let o,n,r,i,l;t[0]!==e?({className:o,variant:l,size:r,asChild:i,...n}=e,t[0]=e,t[1]=o,t[2]=n,t[3]=r,t[4]=i,t[5]=l):(o=t[1],n=t[2],r=t[3],i=t[4],l=t[5]);const d=(i===void 0?!1:i)?FC:"button";let m;t[6]!==o||t[7]!==r||t[8]!==l?(m=nue(rue({variant:l,size:r,className:o})),t[6]=o,t[7]=r,t[8]=l,t[9]=m):m=t[9];let h;return t[10]!==d||t[11]!==n||t[12]!==m?(h=R.jsx(d,{"data-slot":"button",className:m,...n}),t[10]=d,t[11]=n,t[12]=m,t[13]=h):h=t[13],h}const aue=["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 iue(e){const t=ro.c(3),{children:o}=e;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=R.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:aue}}),t[0]=n):n=t[0];let r;return t[1]!==o?(r=R.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[n,R.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:o})]}),t[1]=o,t[2]=r):r=t[2],r}function TB(e){const t=ro.c(20),{orgName:o}=e,n=Fm(),r=sue;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=R.jsx("div",{className:"bg-muted p-3 rounded-full",children:R.jsx(SB,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=i):i=t[0];let l;t[1]!==n?(l=n("common.archivedOrgScreen.orgUnavailable"),t[1]=n,t[2]=l):l=t[2];let c;t[3]!==l?(c=R.jsx("h3",{className:"text-lg font-medium",children:l}),t[3]=l,t[4]=c):c=t[4];let d;t[5]!==o||t[6]!==n?(d=o?n("common.archivedOrgScreen.deletedWithName",{orgName:o}):n("common.archivedOrgScreen.deletedGeneric"),t[5]=o,t[6]=n,t[7]=d):d=t[7];let m;t[8]!==d?(m=R.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=m):m=t[9];let h;t[10]!==c||t[11]!==m?(h=R.jsxs("div",{className:"space-y-2",children:[c,m]}),t[10]=c,t[11]=m,t[12]=h):h=t[12];let f;t[13]!==n?(f=n("common.archivedOrgScreen.goHome"),t[13]=n,t[14]=f):f=t[14];let g;t[15]!==f?(g=R.jsx(pm,{onClick:r,children:f}),t[15]=f,t[16]=g):g=t[16];let v;return t[17]!==h||t[18]!==g?(v=R.jsxs(iue,{children:[i,h,g]}),t[17]=h,t[18]=g,t[19]=v):v=t[19],v}function sue(){window.location.href="/"}function lue(){const e=ro.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:o}=nv(t);let n;return e[1]!==o?(n=R.jsx(pm,{variant:"outline",size:"sm",asChild:!0,children:R.jsx(xm,{to:"/$org/settings/profile",params:{org:o},children:"Go to your profile"})}),e[1]=o,e[2]=n):n=e[2],n}function cue(e){const t=ro.c(13),{area:o,description:n,action:r}=e,i=o?`No access to ${o}`:"No access",l=n??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=R.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:R.jsx(_B,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==i?(d=R.jsx("h3",{className:"text-lg font-medium",children:i}),t[1]=i,t[2]=d):d=t[2];let m;t[3]!==l?(m=R.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:l}),t[3]=l,t[4]=m):m=t[4];let h;t[5]!==d||t[6]!==m?(h=R.jsxs("div",{className:"space-y-1",children:[d,m]}),t[5]=d,t[6]=m,t[7]=h):h=t[7];let f;t[8]!==r?(f=r??R.jsx(lue,{}),t[8]=r,t[9]=f):f=t[9];let g;return t[10]!==h||t[11]!==f?(g=R.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,h,f]}),t[10]=h,t[11]=f,t[12]=g):g=t[12],g}const cI="__mesh_chunk_reload_ts";function PB(e){return e?.message==="Organization is archived"}function uue(e){return!!e?.message?.includes("Access denied")}function uI(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class due extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o),yB(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t,t:o}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:PB(this.state.error)?R.jsx(TB,{}):uue(this.state.error)?R.jsx(cue,{}):R.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(Ix,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:o("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||o("common.errorBoundary.unexpectedError")})]}),R.jsx(pm,{variant:"outline",onClick:this.resetError,children:o("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kme(e){const t=ro.c(3),o=Fm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(due,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}class mue extends D.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,o){console.error("Uncaught error:",t,o);const n=uI(t);if(yB(t,{boundary:"chunk_root",is_chunk_load_error:n,error_name:t.name,error_message:t.message,component_stack:o.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!n)return;const r=sessionStorage.getItem(cI),i=Date.now();(!r||i-Number(r)>1e4)&&(sessionStorage.setItem(cI,String(i)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&uI(this.state.error)?R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:R.jsx(wB,{className:"h-6 w-6 text-primary"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),R.jsx(pm,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?PB(this.state.error)?R.jsx(TB,{}):R.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[R.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:R.jsx(Ix,{className:"h-6 w-6 text-destructive"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),R.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),R.jsx(pm,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function fue(e){const t=ro.c(3),o=Fm();let n;return t[0]!==e||t[1]!==o?(n=R.jsx(mue,{...e,t:o}),t[0]=e,t[1]=o,t[2]=n):n=t[2],n}function RB(e){try{localStorage.setItem(uu.lastLocation(),JSON.stringify(e))}catch{}}function hue(){try{const e=localStorage.getItem(uu.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Wme(){try{localStorage.removeItem(uu.lastLocation())}catch{}}let ui=null,dI=!1;const Ow=new Set;function Fg(){for(const e of Ow)e()}function pue(){dI||typeof window>"u"||(dI=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ui=e,Fg()}),window.addEventListener("appinstalled",()=>{ui=null,Fg()}))}function Yme(){ui!==null&&(ui=null,Fg())}function gue(e){return Ow.add(e),()=>{Ow.delete(e)}}function vue(){return ui}function bue(){return null}function yue(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&["(display-mode: standalone)","(display-mode: window-controls-overlay)"].some(o=>window.matchMedia(o).matches),t=navigator.standalone===!0;return e||t}function Sue(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function Zme(){const e=ro.c(5),t=D.useSyncExternalStore(gue,vue,bue);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=yue(),e[0]=o):o=e[0];const n=o,r=t!==null&&!n;let i,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=Sue(),l=_ue,e[1]=i,e[2]=l):(i=e[1],l=e[2]);let c;return e[3]!==r?(c={canPrompt:r,installed:n,ios:i,promptInstall:l},e[3]=r,e[4]=c):c=e[4],c}async function _ue(){if(!ui)return"unavailable";await ui.prompt();const e=await ui.userChoice;return ui=null,Fg(),e.outcome}const Hr=EK({component:()=>R.jsx(fue,{children:R.jsx(D.Suspense,{fallback:R.jsx(Lx,{}),children:R.jsx(X2,{})})})}),wue=rt({getParentRoute:()=>Hr,path:"/login",component:ct(()=>lt(()=>import("./login-C929fldw.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),validateSearch:pi(()=>ye({next:F().optional(),client_id:F().optional(),redirect_uri:F().optional(),response_type:F().optional(),state:F().optional(),scope:F().optional(),code_challenge:F().optional(),code_challenge_method:F().optional()}))}),Cue=rt({getParentRoute:()=>Hr,path:"/cli/auth-success",component:ct(()=>lt(()=>import("./cli-auth-success-Ch8zkWtV.js"),__vite__mapDeps([7,6])))}),xue=rt({getParentRoute:()=>Hr,path:"/reset-password",component:ct(()=>lt(()=>import("./reset-password-DJnS3b-u.js"),__vite__mapDeps([8,2]))),validateSearch:pi(()=>ye({token:F().optional(),error:F().optional()}))}),Eue=rt({getParentRoute:()=>Hr,path:"/auth/$pathname",component:ct(()=>lt(()=>import("./auth-catchall-CIJLNjKn.js"),[]))}),Tue=rt({getParentRoute:()=>Hr,path:"/oauth/callback",component:ct(()=>lt(()=>import("./oauth-callback-DM1hf3Rc.js"),__vite__mapDeps([9,10,11])))}),Pue=rt({getParentRoute:()=>Hr,path:"/oauth/callback/ai-provider",component:ct(()=>lt(()=>import("./oauth-callback-ai-provider-D5HmkK_Y.js"),[]))}),Ev=rt({getParentRoute:()=>Hr,path:"/_admin",component:ct(()=>lt(()=>import("./layout-BZ_ovybY.js"),__vite__mapDeps([12,13,14,15])))}),Rue=rt({getParentRoute:()=>Ev,path:"/",beforeLoad:()=>{throw is({to:"/_admin/users"})}}),Aue=rt({getParentRoute:()=>Ev,path:"/users",component:ct(()=>lt(()=>import("./users-Bf2yKNFZ.js"),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))}),kue=rt({getParentRoute:()=>Ev,path:"/orgs",component:ct(()=>lt(()=>import("./orgs-BZsPV632.js"),__vite__mapDeps([37,17,18,19,20,21,22,23,24,25,26,27,28,2,38,32,39,40,41,42,43,33,34,35])))}),Due=Ev.addChildren([Rue,Aue,kue]),Fx=rt({getParentRoute:()=>Hr,id:"shell",component:ct(()=>lt(()=>import("./shell-layout-DBSbYFzz.js").then(e=>e.s),__vite__mapDeps([44,29,30,45,46,47,48,49,50,51,39,21,14,52,53,11,54,55,4,5,56,57,58,59])))}),Oue=rt({getParentRoute:()=>Fx,path:"/",beforeLoad:async()=>{const e=hue();if(e)throw is({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(uu.lastOrgSlug());if(t)throw is({to:"/$org",params:{org:t}});const{data:o}=await dL();if(!o)return;const n=o[0];throw is(n?{to:"/$org",params:{org:n.slug}}:{to:"/onboarding"})}}),Iue=rt({getParentRoute:()=>Hr,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await dL();if(e&&e.length>0)throw is({to:"/"})},component:ct(()=>lt(()=>import("./onboarding--J1xSpja.js"),__vite__mapDeps([60,14,6,61,29,30,2,38,62,45,49,63,64,65])))}),Mue=rt({getParentRoute:()=>Hr,path:"/commerce-onboarding",component:ct(()=>lt(()=>import("./commerce-onboarding-VHXN5xvW.js"),__vite__mapDeps([66,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,21,51,39,22,100,101,102,103,38,2,32,104,105,106,10,1,3,4,5,6,61,29,107]))),validateSearch:pi(()=>ye({org:F().optional(),siteUrl:F().optional()}))}),Lue=rt({getParentRoute:()=>Hr,path:"/report/$domain",component:ct(()=>lt(()=>import("./reports-lvJHbLR6.js"),__vite__mapDeps([108,1,2,3,4,5,71,25,74,76,49,83,89,93,46,96,97,51,109]))),validateSearch:pi(()=>ye({key:F().optional()}))}),Tv=rt({getParentRoute:()=>Fx,path:"/$org",beforeLoad:({params:e})=>{RB({org:e.org})},component:ct(()=>lt(()=>import("./org-layout-i_HmFw9d.js"),[]))}),zm=rt({getParentRoute:()=>Tv,id:"org-shell",component:ct(()=>lt(()=>import("./index-DZqUyA8a.js"),__vite__mapDeps([110,18,19,20,21,22,67,53,11,68,69,70,71,72,25,73,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,39,100,101,102,103,38,2,32,104,105,106,10,56,111,112,113,114,115,52,54,55,4,5,58,116,117,118,57,119,120,121,122,123,124,125,126,127,44,29,14,59,128,129,130,131,132,3,133,134,40,135,136,137,31,138,15,139,140,141,142,143,144,145,146,147,148,149,150,34,35,151])))}),AB=rt({getParentRoute:()=>zm,id:"agent-shell",pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-DkimfYpY.js").then(e=>e.b4),__vite__mapDeps([152,25,115,52,54,53,11,55,4,5,58,112,116,117,56,118,57,153,40,22,41,42,43,131,132,125,134,18,19,20,21,24,26,154,141,150,71,49,80,70,72,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,98,65,30,99,48,51,155,138,29,34,35,143,156,39,157,158,159,160,44,14,59,68,126,127,161,103,38,2,120,124,162,36,113,121,122,102,106,10,101,107,147,148,100,163,146,128,129,130,3,133,135,136,137,31,145,164,165,111,166,167,168,114,151,32,169,170,171,172,119,173,174,175,17,27,62,123,104,176,105,177,178,179])))}),Nue=ye({virtualmcpid:F().optional(),tab:F().optional(),sidepanel:oo([Ge("chat"),Ge(0)]).optional(),main:oo([F(),Ge(0)]).optional(),preview:F().optional(),id:F().optional(),toolName:F().optional(),tasks:ft().optional(),mainOpen:ft().optional(),autosend:F().optional(),runLocally:F().optional(),connect:zM().optional(),siteUrl:F().optional()}),Fue=rt({getParentRoute:()=>AB,path:"/$taskId",validateSearch:Nue,beforeLoad:({params:e,search:t})=>{RB({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Bue=ye({main:F().optional(),connect:zM().optional(),siteUrl:F().optional()}),zue=rt({getParentRoute:()=>zm,path:"/",validateSearch:Bue,pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-CE-cjLFS.js"),__vite__mapDeps([180,53,11,54,55,4,5,127])))}),jue=ye({path:F().optional(),preview:F().optional(),skill:F().optional()}),Uue=rt({getParentRoute:()=>zm,path:"/files",validateSearch:jue,pendingComponent:Nx,component:ct(()=>lt(()=>import("./index-COmjF1Qy.js").then(e=>e.Y),__vite__mapDeps([168,83,64,95,46,65,48,51,20,114,39,21,2,156,41,81,82,78,56,151,93,32,117,111,135,42,43,113,22,88,90,158,87,107,79,80,19,97,98])))}),$ue=ye({task:F().optional()}),que=rt({getParentRoute:()=>zm,path:"/board",validateSearch:$ue,component:ct(()=>lt(()=>import("./index-DbXbrbEI.js").then(e=>e.n),__vite__mapDeps([162,36,29,30,70,71,72,25,73,69,74,75,76,77,78,45,49,41,42,79,43,80,47,81,82,83,50,84,63,85,86,87,88,19,89,90,91,92,93,64,94,95,46,28,96,97,98,65,99,48,21,51,113,53,11,121,122,39,125,102,106,10,101,154,141,58,55,4,118,34,35,107,160,143,147,148,120,44,14,52,54,5,56,57,59,100])))}),Po=rt({getParentRoute:()=>Tv,path:"/settings",component:ct(()=>lt(()=>import("./settings-layout-ZcIrVRxe.js"),__vite__mapDeps([181,13,18,19,20,21,22,17,77,45,86,88,90,96,30,51,172,182,58,170,169,118,55,4,151,149,119])))}),Vue=rt({getParentRoute:()=>Tv,path:"/install",component:ct(()=>lt(()=>import("./org-install-BYsWWZdx.js"),[]))}),Hue=rt({getParentRoute:()=>Po,path:"/",component:ct(()=>lt(()=>import("./index-redirect-BGBtFYCr.js"),__vite__mapDeps([183,172,184])))}),Gue=rt({getParentRoute:()=>Po,path:"/connections",component:ct(()=>lt(()=>import("./connections-DDau_Efs.js"),__vite__mapDeps([185,101,53,11,186,107,41,79,80,25,85,22,187,31,27,28,137,129,130,125,57,58,131,132,3,4,5,133,134,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,86,87,88,19,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,21,51,26,17,18,20,188,114,172,189,39,120,103,38,2,40,135,112,136,106,10,165]))),validateSearch:pi(()=>ye({action:no(["create"]).optional(),tab:no(["all","connected"]).optional()}))}),Kue=rt({getParentRoute:()=>Po,path:"/connections/$appSlug",component:ct(()=>lt(()=>import("./connection-detail-CoJ5YHPu.js"),__vite__mapDeps([190,101,53,11,26,136,2,95,98,191,17,18,19,20,21,22,122,78,88,125,130,57,58,40,41,42,43,159,174,31,83,84,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,50,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,65,30,99,48,51,10,148,113,112,192,126,54,55,4,5,127,154,141,29,161,68,103,38,188,114,193,163,133,124,134,107]))),validateSearch:pi(()=>ye({tab:F().optional()}))}),Wue=rt({getParentRoute:()=>Po,path:"/connections/$appSlug/$collectionName/$itemId",component:ct(()=>lt(()=>import("./collection-detail-D2DuDgeo.js"),__vite__mapDeps([194,26,53,11,103,38,2,135,191,17,18,19,20,21,22,122,78,88,125,101,130,57,58,95,40,41,42,43,159,174,31,83,84,70,71,72,25,73,69,74,75,76,77,45,49,79,80,47,81,82,50,63,85,86,87,89,90,91,92,93,64,94,46,28,96,97,98,65,30,99,48,51,10,148,113,112,192,126,54,55,4,5,127,195,133,157,158,115,52,116,117,56,118,68,44,29,39,14,59]))),validateSearch:pi(()=>ye({replayId:F().optional()}))}),Yue=rt({getParentRoute:()=>Po,path:"/monitor",component:ct(()=>lt(()=>import("./index-DaoCgGAd.js"),__vite__mapDeps([196,27,28,17,18,19,20,21,22,26,197,172,198,184,153,40,41,42,43,131,132,125,53,11,112,134,24,154,141,150,71,49,80,70,72,25,73,69,74,75,76,77,78,45,79,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,96,97,98,65,30,99,48,51,155,58,138,29,34,35,143,156,39,56,54,55,4,5,115,52,116,117,118,57,157,158,159,160,44,14,59,68,126,127,161,103,38,2,133,31,113,199,165,147,148,135,137,62,195,193]))),validateSearch:pi(()=>ye({tab:no(["overview","audit","dashboards","threads","automations"]).default("overview"),from:F().default("now-30m"),to:F().default("now"),connectionId:Ee(F()).optional().default([]),virtualMcpId:Ee(F()).optional().default([]),tool:F().default(""),status:no(["all","success","errors"]).default("all"),search:F().default(""),page:ft().optional(),streaming:It().default(!0),propertyFilters:F().default(""),hideSystem:It().default(!1)}))}),Zue=rt({getParentRoute:()=>Po,path:"/general",component:ct(()=>lt(()=>import("./general-CEAxgAOj.js"),__vite__mapDeps([200,17,18,19,20,21,22,195,74,90,48,141,175,29,30,2,167,134,75,201,58,31,40,41,42,43,114,197,172,198,184])))}),Que=rt({getParentRoute:()=>Po,path:"/connect",component:ct(()=>lt(()=>import("./connect-BlhIFrvJ.js"),__vite__mapDeps([202,195,134,163,143,41,81,88,90,98,17,18,19,20,21,22,167,75,144,53,11])))}),Jue=rt({getParentRoute:()=>Po,path:"/brand-context",component:ct(()=>lt(()=>import("./brand-context-DQGpm1NH.js"),__vite__mapDeps([203,42,79,95,84,98,114,17,18,19,20,21,22,58,175,90,51,2,135,197,172,198,184])))}),Xue=rt({getParentRoute:()=>Po,path:"/ai-providers",component:ct(()=>lt(()=>import("./ai-providers-CV1PJ_Qj.js"),__vite__mapDeps([204,71,17,18,19,20,21,22,111,167,134,75,116,58,49,115,52,54,53,11,55,4,5,112,117,56,118,57,164,39,120,165,41,2,40,42,43,73,72,88,28,166,91,79,29,30,83,145,81,87,97,175,146,114,95,173,35,98,197,172,198,184])))}),ede=rt({getParentRoute:()=>Po,path:"/secrets",component:ct(()=>lt(()=>import("./secrets-DG-xpLY_.js"),__vite__mapDeps([205,71,95,30,99,39,21,2,38,40,22,41,42,43,111,135,17,18,19,20,167,134,75,176,58,197,172,198,184])))}),tde=rt({getParentRoute:()=>Po,path:"/files",component:ct(()=>lt(()=>import("./files-BhFsr4CC.js"),[]))}),ode=rt({getParentRoute:()=>Po,path:"/buckets",component:ct(()=>lt(()=>import("./buckets-lrdRycSt.js"),__vite__mapDeps([206,71,86,95,98,114,39,21,2,38,40,22,41,42,43,62,111,135,17,18,19,20,167,134,75,177,58,197,172,198,184])))}),nde=rt({getParentRoute:()=>Po,path:"/members",component:ct(()=>lt(()=>import("./members-eXVLXZBO.js"),__vite__mapDeps([207,186,107,41,79,80,25,85,22,187,31,27,28,17,18,19,20,21,23,24,26,140,39,103,38,40,42,43,135,141,142,167,134,75,182,172,58,29,30,34,35,36,154,208,114,88,96,98,48,165,147,148,113,95,197,198,184])))}),rde=rt({getParentRoute:()=>Po,path:"/roles",component:ct(()=>lt(()=>import("./roles-DwN-XzRx.js"),__vite__mapDeps([209,142,141,208,31,114,107,41,79,80,95,98,23,24,25,17,18,19,20,21,22,26,27,28,166,68,69,70,71,72,73,74,75,76,77,78,45,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,51,132,165,138,53,11,124,154,36,125,116,58,29,62,167,134,172,198,184]))),validateSearch:pi(()=>ye({role:F().optional()}))}),ade=rt({getParentRoute:()=>Po,path:"/sso",component:ct(()=>lt(()=>import("./sso-CNYomtYE.js"),__vite__mapDeps([210,201,58,167,134,75,31,2,40,22,41,42,43,17,18,19,20,21,114,62,59,98,197,172,198,184])))}),ide=rt({getParentRoute:()=>Po,path:"/profile",component:ct(()=>lt(()=>import("./profile-BGD57DXN.js"),__vite__mapDeps([211,17,18,19,20,21,22,29,30,62,40,41,42,43,146,2,91,92,94,175,169,139,167,134,75])))}),sde=rt({getParentRoute:()=>Po,path:"/store",component:ct(()=>lt(()=>import("./store-ZDzIE0aK.js"),__vite__mapDeps([212,71,79,95,98,2,62,111,29,30,113,125,53,11,17,18,19,20,21,22,130,57,58,167,134,75,197,172,198,184])))}),lde=rt({getParentRoute:()=>Po,path:"/registry",component:ct(()=>lt(()=>import("./registry-CMP1xDc-.js"),__vite__mapDeps([213,197,172,198,184])))}),cde=rt({getParentRoute:()=>Po,path:"/store/registry",component:ct(()=>lt(()=>import("./store-registry-Dpds3cgF.js"),__vite__mapDeps([214,197,172,198,184])))}),ude=rt({getParentRoute:()=>Po,path:"/agents",component:ct(()=>lt(()=>import("./agents-list-D7SeVi2Z.js"),__vite__mapDeps([215,107,41,79,80,45,121,53,11,122,112,17,18,19,20,21,22,73,98,173,35,70,71,72,25,69,74,75,76,77,78,49,42,43,47,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,95,46,28,96,97,65,30,99,48,51,126,54,55,4,5,127,134,172,26,192,125,123,39,124,32,106,10,101,104,102,171,114,27])))}),dde=rt({getParentRoute:()=>Po,path:"/automations",component:ct(()=>lt(()=>import("./automations-_mGzbMDf.js"),__vite__mapDeps([216,95,51,27,28,17,18,19,20,21,22,26,155,53,11,58,126,112,54,55,4,5,127,178,114,107,41,79,80,47,98,70,71,72,25,73,69,74,75,76,77,78,45,49,42,43,81,82,83,50,84,63,85,86,87,88,89,90,91,92,93,64,94,46,96,97,65,30,99,48,197,172,198,184])))}),mde=Po.addChildren([Hue,Gue,Kue,Wue,ude,dde,Yue,Zue,Que,Jue,Xue,ede,tde,ode,nde,rde,ade,ide,sde,cde,lde]),fde=AB.addChildren([Fue]),hde=zm.addChildren([zue,Uue,que,fde]),pde=Tv.addChildren([hde,mde,Vue]),gde=Fx.addChildren([Oue,pde]),vde=Hr.addChildren([gde,Due,Iue,Mue,Lue,wue,Cue,xue,Eue,Tue,Pue]);function bde(){const e=ro.c(16),t=Fm();let o;e[0]!==t?(o=t("common.index.pageNotFound"),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==o?(n=R.jsx("h3",{className:"text-lg font-medium text-foreground",children:o}),e[2]=o,e[3]=n):n=e[3];let r;e[4]!==t?(r=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=r):r=e[5];let i;e[6]!==r?(i=R.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:r}),e[6]=r,e[7]=i):i=e[7];let l;e[8]!==t?(l=t("common.index.goBack"),e[8]=t,e[9]=l):l=e[9];let c;e[10]!==l?(c=R.jsx("button",{type:"button",onClick:yde,className:"text-sm text-primary hover:underline",children:l}),e[10]=l,e[11]=c):c=e[11];let d;return e[12]!==n||e[13]!==i||e[14]!==c?(d=R.jsx("div",{className:"flex h-full items-center justify-center",children:R.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[n,i,c]})}),e[12]=n,e[13]=i,e[14]=c,e[15]=d):d=e[15],d}function yde(){return window.history.back()}const Sde=NK({routeTree:vde,defaultPendingComponent:Lx,defaultPendingMs:200,defaultNotFoundComponent:bde});pue();const _de=document.getElementById("root");ez.createRoot(_de).render(R.jsx(D.StrictMode,{children:R.jsx(oue,{children:R.jsx(zK,{router:Sde})})}));export{mme as $,Nme as A,pm as B,vme as C,pme as D,Kme as E,Vz as F,uu as G,mX as H,Ale as I,ye as J,T2 as K,xm as L,F as M,gme as N,X2 as O,Aa as P,Pde as Q,Ra as R,Lx as S,_l as T,bt as U,ws as V,lae as W,ple as X,SB as Y,Nx as Z,zz as _,rv as a,jn as a$,hI as a0,Qo as a1,Ee as a2,no as a3,Dt as a4,It as a5,cQ as a6,Hme as a7,lQ as a8,Gme as a9,wB as aA,zH as aB,ee as aC,cme as aD,Co as aE,AN as aF,yl as aG,Pm as aH,en as aI,kN as aJ,dt as aK,ds as aL,ft as aM,lt as aN,ru as aO,Bp as aP,wI as aQ,Mz as aR,Lz as aS,jz as aT,Nz as aU,Fz as aV,Yo as aW,$z as aX,ZR as aY,Bz as aZ,Cde as a_,au as aa,P2 as ab,ume as ac,hD as ad,Iw as ae,mee as af,ia as ag,am as ah,zg as ai,YC as aj,Zc as ak,vs as al,bi as am,sa as an,IN as ao,hee as ap,vee as aq,pee as ar,oee as as,AH as at,b2 as au,nme as av,dme as aw,sQ as ax,Sme as ay,FH as az,Fm as b,Vme as b$,Sr as b0,nl as b1,hme as b2,Yme as b3,Zme as b4,Gt as b5,lme as b6,rme as b7,sme as b8,zme as b9,TC as bA,QL as bB,Vre as bC,n3 as bD,a3 as bE,noe as bF,qN as bG,Aoe as bH,$ee as bI,qee as bJ,oF as bK,vi as bL,ra as bM,Rde as bN,aa as bO,wde as bP,ioe as bQ,uK as bR,DI as bS,rue as bT,Yg as bU,Qd as bV,bs as bW,iue as bX,hue as bY,Wme as bZ,CB as b_,y2 as ba,kde as bb,Ode as bc,FC as bd,Yde as be,Wq as bf,MM as bg,Gq as bh,oo as bi,Ge as bj,Vw as bk,DM as bl,Nde as bm,Qq as bn,yV as bo,Kw as bp,Hw as bq,tV as br,Fde as bs,Hde as bt,y7 as bu,Pq as bv,hl as bw,vt as bx,gH as by,PL as bz,ro as c,_me as c$,qme as c0,jme as c1,uL as c2,TB as c3,Ume as c4,Ade as c5,Mde as c6,d7 as c7,m7 as c8,rC as c9,CV as cA,YS as cB,QS as cC,ZS as cD,Xde as cE,l_ as cF,wn as cG,t_ as cH,eme as cI,ome as cJ,tme as cK,Zde as cL,foe as cM,hoe as cN,moe as cO,fX as cP,lX as cQ,hX as cR,uX as cS,pX as cT,dX as cU,eF as cV,Aee as cW,jC as cX,HN as cY,BC as cZ,kee as c_,c2 as ca,aC as cb,Wg as cc,KM as cd,T7 as ce,YM as cf,_7 as cg,M7 as ch,VV as ci,GV as cj,YV as ck,i7 as cl,w7 as cm,HV as cn,KV as co,ZV as cp,QV as cq,s7 as cr,p7 as cs,ime as ct,ame as cu,Mme as cv,w2 as cw,Qde as cx,EH as cy,Jde as cz,Cm as d,wme as d$,Dee as d0,cX as d1,mN as d2,nN as d3,UC as d4,zC as d5,rm as d6,Vj as d7,GM as d8,ZM as d9,Gde as dA,vq as dB,Ide as dC,Bde as dD,pi as dE,Gw as dF,Lde as dG,Zte as dH,Qte as dI,eoe as dJ,Jte as dK,Xte as dL,xme as dM,Eme as dN,Ame as dO,kme as dP,Dme as dQ,Ome as dR,Tme as dS,Pme as dT,Rme as dU,dQ as dV,uQ as dW,UL as dX,Dde as dY,fme as dZ,Cme as d_,XM as da,t2 as db,o2 as dc,r2 as dd,qde as de,Vde as df,Ude as dg,$de as dh,xV as di,jde as dj,QM as dk,e2 as dl,n2 as dm,Kde as dn,JM as dp,FV as dq,zde as dr,HM as ds,i9 as dt,h7 as du,Wde as dv,J7 as dw,t9 as dx,N7 as dy,L7 as dz,_p as e,Ede as e0,xde as e1,RI as e2,Im as e3,Tm as e4,bte as e5,Cte as e6,Rte as e7,yte as e8,Ste as e9,vte as ea,lF as eb,_te as ec,wte as ed,xte as ee,Ete as ef,Tte as eg,Pte as eh,Ate as ei,Dte as ej,Ote as ek,nv as f,Fme as g,Lme as h,Bme as i,R as j,Mx as k,cue as l,nue as m,AI as n,Bg as o,$me as p,Tle as q,D as r,bme as s,cs as t,CC as u,EB as v,yme as w,pl as x,_B as y,Ix as z};