@withgateway/sdk 0.2.0 → 0.2.1

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 (1188) hide show
  1. package/README.md +30 -6
  2. package/dist/cli.js +7815 -2406
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.mjs +7807 -2398
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/files/index.d.mts +2 -0
  7. package/dist/files/index.d.ts +2 -0
  8. package/dist/files/index.js +446 -0
  9. package/dist/files/index.js.map +1 -0
  10. package/dist/files/index.mjs +395 -0
  11. package/dist/files/index.mjs.map +1 -0
  12. package/dist/index-BgvvQ3BC.d.ts +170 -0
  13. package/dist/index-CLkMr6VG.d.ts +171 -0
  14. package/dist/index-CdbmO4aX.d.mts +171 -0
  15. package/dist/index-CiKWoroJ.d.mts +170 -0
  16. package/dist/index.d.mts +3 -1
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.js +2283 -116
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +2255 -116
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/traces/index.d.mts +2 -0
  23. package/dist/traces/index.d.ts +2 -0
  24. package/dist/traces/index.js +320 -0
  25. package/dist/traces/index.js.map +1 -0
  26. package/dist/traces/index.mjs +278 -0
  27. package/dist/traces/index.mjs.map +1 -0
  28. package/dist/tracing/index.js +16 -1
  29. package/dist/tracing/index.js.map +1 -1
  30. package/dist/tracing/index.mjs +16 -1
  31. package/dist/tracing/index.mjs.map +1 -1
  32. package/dist/worlds/index.d.mts +685 -1
  33. package/dist/worlds/index.d.ts +685 -1
  34. package/dist/worlds/index.js +1876 -32
  35. package/dist/worlds/index.js.map +1 -1
  36. package/dist/worlds/index.mjs +1875 -32
  37. package/dist/worlds/index.mjs.map +1 -1
  38. package/package.json +16 -1
  39. package/runtime/gatewaysdk/environment/_world.py +14 -1
  40. package/runtime/gatewaysdk/environment/schema/__init__.py +8 -0
  41. package/runtime/gatewaysdk/environment/schema/__main__.py +154 -19
  42. package/runtime/gatewaysdk/environment/schema/api.py +233 -37
  43. package/runtime/gatewaysdk/environment/schema/batch.py +38 -8
  44. package/runtime/gatewaysdk/environment/schema/compiler.py +89 -11
  45. package/runtime/gatewaysdk/environment/schema/conform.py +105 -13
  46. package/runtime/gatewaysdk/environment/schema/connector.py +442 -103
  47. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/api/handlers.py +778 -0
  48. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/connector.toml +671 -0
  49. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +3 -2
  50. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +11 -5
  51. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +1635 -100
  52. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/instruction.md +7 -0
  53. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/scenario.toml +2 -0
  54. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activities.json +24 -0
  55. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activity_devices.json +12 -0
  56. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_applecare_coverages.json +52 -0
  57. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_apps.json +35 -0
  58. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_audit_events.json +139 -0
  59. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_apps.json +12 -0
  60. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_configurations.json +20 -0
  61. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_devices.json +16 -0
  62. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_packages.json +8 -0
  63. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_user_groups.json +12 -0
  64. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_users.json +12 -0
  65. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprints.json +39 -0
  66. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_configurations.json +64 -0
  67. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_device_assignments.json +20 -0
  68. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_device_details.json +55 -0
  69. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_devices.json +33 -0
  70. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_servers.json +56 -0
  71. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_org_devices.json +178 -0
  72. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_unit_memberships.json +16 -0
  73. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_units.json +24 -0
  74. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_packages.json +20 -0
  75. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_group_memberships.json +16 -0
  76. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_groups.json +30 -0
  77. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_users.json +115 -0
  78. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +49 -22
  79. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/tests/tools.json +48 -0
  80. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +1180 -194
  81. package/runtime/gatewaysdk/environment/schema/connectors/asana/api/handlers.py +1026 -0
  82. package/runtime/gatewaysdk/environment/schema/connectors/asana/connector.toml +511 -0
  83. package/runtime/gatewaysdk/environment/schema/connectors/asana/fidelity.json +89 -0
  84. package/runtime/gatewaysdk/environment/schema/connectors/asana/handlers.py +40 -0
  85. package/runtime/gatewaysdk/environment/schema/connectors/asana/provenance.json +101 -0
  86. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/scenario.toml +2 -0
  87. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/account_settings.json +12 -0
  88. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_field_settings.json +60 -0
  89. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_fields.json +43 -0
  90. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/enum_options.json +52 -0
  91. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/notifications.json +103 -0
  92. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_favorites.json +12 -0
  93. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_memberships.json +144 -0
  94. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/projects.json +120 -0
  95. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/recent_projects.json +19 -0
  96. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/sections.json +102 -0
  97. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/stories.json +852 -0
  98. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_custom_fields.json +508 -0
  99. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_followers.json +368 -0
  100. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_memberships.json +184 -0
  101. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/tasks.json +1921 -0
  102. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/teams.json +22 -0
  103. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_list_sections.json +32 -0
  104. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_lists.json +11 -0
  105. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/users.json +60 -0
  106. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspace_memberships.json +76 -0
  107. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspaces.json +13 -0
  108. package/runtime/gatewaysdk/environment/schema/connectors/asana/scope.toml +156 -0
  109. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/routes.json +298 -0
  110. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/tools.json +152 -0
  111. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-DTTTJ6a4.css +1 -0
  112. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-WS8dLEjv.js +67 -0
  113. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/index.html +40 -0
  114. package/runtime/gatewaysdk/environment/schema/connectors/asana/world.json +1911 -0
  115. package/runtime/gatewaysdk/environment/schema/connectors/confluence/api/handlers.py +847 -0
  116. package/runtime/gatewaysdk/environment/schema/connectors/confluence/connector.toml +457 -0
  117. package/runtime/gatewaysdk/environment/schema/connectors/confluence/handlers.py +176 -0
  118. package/runtime/gatewaysdk/environment/schema/connectors/confluence/provenance.json +187 -0
  119. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/instruction.md +39 -0
  120. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/scenario.toml +3 -0
  121. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_favourites.json +29 -0
  122. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_footer_comments.json +984 -0
  123. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_inline_comments.json +355 -0
  124. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_labels.json +99 -0
  125. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_notifications.json +40 -0
  126. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_labels.json +209 -0
  127. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_versions.json +828 -0
  128. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_pages.json +949 -0
  129. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_recently_viewed_pages.json +59 -0
  130. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_sites.json +12 -0
  131. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_spaces.json +128 -0
  132. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_users.json +100 -0
  133. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_watches.json +96 -0
  134. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/routes.json +212 -0
  135. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/tools.json +140 -0
  136. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/writes.json +201 -0
  137. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-BWaOVdpn.js +70 -0
  138. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-CKyfi3i5.css +1 -0
  139. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-01.svg +1 -0
  140. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-02.svg +1 -0
  141. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-03.svg +1 -0
  142. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-04.svg +1 -0
  143. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-05.svg +1 -0
  144. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-06.svg +1 -0
  145. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-DES.svg +1 -0
  146. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ENG.svg +1 -0
  147. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-OPS.svg +1 -0
  148. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ORB.svg +1 -0
  149. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-PN.svg +1 -0
  150. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianMono-latin.woff2 +0 -0
  151. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSans-latin.woff2 +0 -0
  152. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSansItalic-latin.woff2 +0 -0
  153. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/index.html +47 -0
  154. package/runtime/gatewaysdk/environment/schema/connectors/confluence/world.json +1346 -0
  155. package/runtime/gatewaysdk/environment/schema/connectors/custom/provenance.json +35 -0
  156. package/runtime/gatewaysdk/environment/schema/connectors/custom/tests/tools.json +123 -0
  157. package/runtime/gatewaysdk/environment/schema/connectors/custom/world.json +112 -24
  158. package/runtime/gatewaysdk/environment/schema/connectors/github/api/handlers.py +2923 -0
  159. package/runtime/gatewaysdk/environment/schema/connectors/github/connector.toml +2091 -0
  160. package/runtime/gatewaysdk/environment/schema/connectors/github/provenance.json +109 -81
  161. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/instruction.md +18 -0
  162. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/scenario.toml +2 -0
  163. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_apps.json +49 -0
  164. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_artifacts.json +26 -0
  165. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_branches.json +443 -0
  166. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_runs.json +220 -0
  167. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_suites.json +404 -0
  168. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_code_scanning_alerts.json +126 -0
  169. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_collaborators.json +100 -0
  170. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_comments.json +43 -0
  171. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_statuses.json +80 -0
  172. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commits.json +461 -0
  173. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_dependabot_alerts.json +168 -0
  174. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployment_statuses.json +86 -0
  175. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployments.json +94 -0
  176. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_environments.json +31 -0
  177. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gist_comments.json +38 -0
  178. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gists.json +118 -0
  179. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_git_refs.json +59 -0
  180. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_installations.json +54 -0
  181. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_comments.json +151 -0
  182. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_events.json +606 -0
  183. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_types.json +26 -0
  184. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issues.json +758 -0
  185. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_labels.json +64 -0
  186. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_licenses.json +54 -0
  187. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_milestones.json +130 -0
  188. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organization_memberships.json +139 -0
  189. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organizations.json +38 -0
  190. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_pull_requests.json +874 -0
  191. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_release_assets.json +45 -0
  192. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_releases.json +92 -0
  193. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repositories.json +797 -0
  194. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repository_invitations.json +184 -0
  195. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_review_comments.json +66 -0
  196. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_reviews.json +138 -0
  197. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_secret_scanning_alerts.json +50 -0
  198. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_stargazers.json +88 -0
  199. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_tags.json +28 -0
  200. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_memberships.json +25 -0
  201. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_repositories.json +258 -0
  202. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_teams.json +130 -0
  203. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_users.json +174 -0
  204. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_webhooks.json +31 -0
  205. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_jobs.json +115 -0
  206. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_runs.json +1021 -0
  207. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflows.json +30 -0
  208. package/runtime/gatewaysdk/environment/schema/connectors/github/scope.toml +501 -62
  209. package/runtime/gatewaysdk/environment/schema/connectors/github/tests/tools.json +79 -0
  210. package/runtime/gatewaysdk/environment/schema/connectors/github/vendor-openapi.json +1 -0
  211. package/runtime/gatewaysdk/environment/schema/connectors/github/world.json +14340 -4447
  212. package/runtime/gatewaysdk/environment/schema/connectors/gmail/api/handlers.py +1413 -0
  213. package/runtime/gatewaysdk/environment/schema/connectors/gmail/connector.toml +630 -0
  214. package/runtime/gatewaysdk/environment/schema/connectors/gmail/handlers.py +136 -0
  215. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/scenario.toml +1 -0
  216. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/10-gmail_profiles.json +10 -0
  217. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/20-gmail_labels.json +205 -0
  218. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/30-gmail_contacts.json +234 -0
  219. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/40-gmail_threads.json +374 -0
  220. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/50-gmail_messages.json +1015 -0
  221. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/60-gmail_message_parts.json +3039 -0
  222. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/70-gmail_attachments.json +28 -0
  223. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/80-gmail_drafts.json +39 -0
  224. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/90-gmail_client_settings.json +103 -0
  225. package/runtime/gatewaysdk/environment/schema/connectors/gmail/world.json +784 -0
  226. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/api/handlers.py +454 -0
  227. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/connector.toml +519 -0
  228. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/provenance.json +229 -0
  229. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/instruction.md +25 -0
  230. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/scenario.toml +1 -0
  231. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/10-calendar_calendars.json +75 -0
  232. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/20-calendar_calendar_list_entries.json +115 -0
  233. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/30-calendar_acl_rules.json +124 -0
  234. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/40-calendar_events.json +810 -0
  235. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/50-calendar_settings.json +76 -0
  236. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/60-calendar_channels.json +26 -0
  237. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/70-calendar_colors.json +48 -0
  238. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scope.toml +105 -0
  239. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/tests/tools.json +53 -0
  240. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/vendor-openapi.json +4185 -0
  241. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/world.json +1255 -80
  242. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/api/handlers.py +782 -0
  243. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/connector.toml +373 -0
  244. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/google-docs-types.json +4939 -0
  245. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/handlers.py +197 -0
  246. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/provenance.json +191 -0
  247. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/instruction.md +29 -0
  248. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/scenario.toml +2 -0
  249. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_comments.json +50 -0
  250. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_documents.json +8096 -0
  251. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_files.json +1187 -0
  252. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_permissions.json +543 -0
  253. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_replies.json +22 -0
  254. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_revisions.json +643 -0
  255. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_users.json +32 -0
  256. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scope.toml +148 -0
  257. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/api.json +319 -0
  258. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/tools.json +262 -0
  259. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-BH9fmZSS.css +1 -0
  260. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-CU4Fk9dX.js +67 -0
  261. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/README.md +20 -0
  262. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/google-sans-variable.woff2 +0 -0
  263. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-italic-variable-latin.woff2 +0 -0
  264. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin-ext.woff2 +0 -0
  265. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin.woff2 +0 -0
  266. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/icons/material_common_sprite1038_gm3_grey_medium.svg +1 -0
  267. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/index.html +13 -0
  268. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/world.json +4489 -0
  269. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/api/handlers.py +466 -0
  270. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/connector.toml +626 -0
  271. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/handlers.py +42 -5
  272. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/provenance.json +342 -0
  273. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/instruction.md +11 -0
  274. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/scenario.toml +2 -0
  275. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_access_proposals.json +31 -0
  276. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_approvals.json +145 -0
  277. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_apps.json +81 -0
  278. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_comments.json +70 -0
  279. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_drives.json +71 -0
  280. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_files.json +700 -0
  281. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_labels.json +75 -0
  282. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_permissions.json +93 -0
  283. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_replies.json +66 -0
  284. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_revisions.json +82 -0
  285. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scope.toml +126 -0
  286. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/tests/tools.json +101 -0
  287. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/vendor-openapi.json +6193 -0
  288. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/world.json +1972 -108
  289. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/api/handlers.py +1645 -0
  290. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/connector.toml +414 -0
  291. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/handlers.py +200 -0
  292. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/scenario.toml +2 -0
  293. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_cells.json +10252 -0
  294. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_charts.json +103 -0
  295. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_conditional_formats.json +138 -0
  296. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_dimensions.json +256 -0
  297. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_named_ranges.json +16 -0
  298. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_permissions.json +31 -0
  299. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_sheets.json +95 -0
  300. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_spreadsheets.json +14 -0
  301. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_view_states.json +26 -0
  302. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/page.json +311 -0
  303. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/vendor.json +843 -0
  304. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-CUpfKgm_.js +40 -0
  305. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-D3VhwBIC.css +1 -0
  306. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-400.woff2 +0 -0
  307. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-500.woff2 +0 -0
  308. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-700.woff2 +0 -0
  309. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-400.woff2 +0 -0
  310. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-500.woff2 +0 -0
  311. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-700.woff2 +0 -0
  312. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-400.woff2 +0 -0
  313. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-500.woff2 +0 -0
  314. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-700.woff2 +0 -0
  315. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/index.html +26 -0
  316. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/world.json +4029 -0
  317. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/api/handlers.py +800 -0
  318. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/connector.toml +776 -0
  319. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/handlers.py +226 -0
  320. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/instruction.md +11 -0
  321. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/scenario.toml +2 -0
  322. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_accounts.json +17 -0
  323. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_associations.json +1478 -0
  324. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_calls.json +147 -0
  325. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_companies.json +144 -0
  326. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_contacts.json +284 -0
  327. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_deals.json +204 -0
  328. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_emails.json +160 -0
  329. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_meetings.json +147 -0
  330. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_nav_items.json +204 -0
  331. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notes.json +160 -0
  332. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notifications.json +25 -0
  333. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_object_views.json +334 -0
  334. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_owners.json +76 -0
  335. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipeline_stages.json +109 -0
  336. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipelines.json +13 -0
  337. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_properties.json +1220 -0
  338. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tasks.json +394 -0
  339. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tickets.json +34 -0
  340. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-hdb5vB78.css +1 -0
  341. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-xhg5ASqE.js +68 -0
  342. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-300.ttf +0 -0
  343. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-400.ttf +0 -0
  344. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-500.ttf +0 -0
  345. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-600.ttf +0 -0
  346. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-700.ttf +0 -0
  347. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-latin.woff2 +0 -0
  348. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/add.svg +1 -0
  349. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/avatar.svg +1 -0
  350. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/bell.svg +3 -0
  351. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/breeze.svg +4 -0
  352. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/call.svg +1 -0
  353. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/chevron-up.svg +3 -0
  354. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/companies.svg +1 -0
  355. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contact.svg +1 -0
  356. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contacts.svg +1 -0
  357. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/date.svg +1 -0
  358. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/deals.svg +1 -0
  359. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/duplicate.svg +1 -0
  360. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/export.svg +3 -0
  361. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/external-link.svg +1 -0
  362. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/filter-lines.svg +3 -0
  363. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/frame-expand.svg +3 -0
  364. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/funnel.svg +3 -0
  365. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/help.svg +1 -0
  366. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hierarchy.svg +4 -0
  367. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/home.svg +1 -0
  368. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hubspot-logo.svg +1 -0
  369. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/info.svg +1 -0
  370. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/kanban.svg +1 -0
  371. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketing-email.svg +1 -0
  372. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketplace.svg +1 -0
  373. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/meetings.svg +1 -0
  374. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/more.svg +1 -0
  375. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pencil.svg +3 -0
  376. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pin.svg +3 -0
  377. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/prospecting.svg +1 -0
  378. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/refresh.svg +1 -0
  379. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/search.svg +1 -0
  380. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/settings.svg +1 -0
  381. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sidebar-collapse.svg +3 -0
  382. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sort.svg +3 -0
  383. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/table.svg +1 -0
  384. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/tasks.svg +1 -0
  385. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-down.svg +1 -0
  386. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-up.svg +1 -0
  387. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/undo.svg +3 -0
  388. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/upgrade-arrow.svg +1 -0
  389. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/vertical-dots.svg +5 -0
  390. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/workflows.svg +1 -0
  391. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/index.html +37 -0
  392. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/world.json +1347 -0
  393. package/runtime/gatewaysdk/environment/schema/connectors/jamf/api/handlers.py +987 -0
  394. package/runtime/gatewaysdk/environment/schema/connectors/jamf/connector.toml +3057 -0
  395. package/runtime/gatewaysdk/environment/schema/connectors/jamf/provenance.json +9443 -129
  396. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/scenario.toml +4 -0
  397. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_account_groups.json +64 -0
  398. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_accounts.json +58 -0
  399. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_computer_searches.json +139 -0
  400. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_mobile_device_searches.json +61 -0
  401. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_content_searches.json +61 -0
  402. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_searches.json +124 -0
  403. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_integrations.json +37 -0
  404. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_roles.json +25 -0
  405. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_app_request_form_input_fields.json +22 -0
  406. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_buildings.json +34 -0
  407. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_byo_profiles.json +46 -0
  408. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_categories.json +19 -0
  409. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_classes.json +217 -0
  410. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_cloud_idps.json +19 -0
  411. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_group_members.json +16 -0
  412. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_groups.json +38 -0
  413. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_invitations.json +82 -0
  414. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_prestages.json +274 -0
  415. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computers.json +1537 -0
  416. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_configuration_profiles.json +649 -0
  417. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_departments.json +16 -0
  418. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollment_devices.json +70 -0
  419. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollments.json +46 -0
  420. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_directory_bindings.json +34 -0
  421. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_disk_encryption_configurations.json +22 -0
  422. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_distribution_points.json +91 -0
  423. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_dock_items.json +25 -0
  424. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ebooks.json +43 -0
  425. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_enrollment_customizations.json +43 -0
  426. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_extension_attributes.json +52 -0
  427. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ibeacons.json +25 -0
  428. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_inventory_preload_records.json +100 -0
  429. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ios_branding_configurations.json +31 -0
  430. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ldap_servers.json +16 -0
  431. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_licensed_software_records.json +244 -0
  432. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mac_applications.json +610 -0
  433. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_macos_branding_configurations.json +34 -0
  434. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_managed_software_update_plans.json +67 -0
  435. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mdm_commands.json +58 -0
  436. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_applications.json +700 -0
  437. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_configuration_profiles.json +652 -0
  438. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_enrollment_profiles.json +160 -0
  439. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_extension_attributes.json +43 -0
  440. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_group_members.json +16 -0
  441. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_groups.json +38 -0
  442. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_prestages.json +280 -0
  443. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_provisioning_profiles.json +31 -0
  444. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_devices.json +1558 -0
  445. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_network_segments.json +46 -0
  446. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_packages.json +118 -0
  447. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_patch_software_title_configurations.json +88 -0
  448. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_policies.json +1054 -0
  449. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_printers.json +52 -0
  450. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_removable_mac_addresses.json +16 -0
  451. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_restricted_software_titles.json +289 -0
  452. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_return_to_service_configurations.json +19 -0
  453. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_scripts.json +61 -0
  454. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_sites.json +19 -0
  455. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_software_update_servers.json +25 -0
  456. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_supervision_identities.json +22 -0
  457. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_extension_attributes.json +31 -0
  458. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_groups.json +112 -0
  459. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_users.json +37 -0
  460. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_locations.json +106 -0
  461. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_subscriptions.json +76 -0
  462. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_webhooks.json +70 -0
  463. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scope.toml +839 -67
  464. package/runtime/gatewaysdk/environment/schema/connectors/jamf/tests/tools.json +95 -0
  465. package/runtime/gatewaysdk/environment/schema/connectors/jamf/vendor-openapi.json +1 -0
  466. package/runtime/gatewaysdk/environment/schema/connectors/jamf/world.json +10835 -1494
  467. package/runtime/gatewaysdk/environment/schema/connectors/jira/api/handlers.py +1056 -0
  468. package/runtime/gatewaysdk/environment/schema/connectors/jira/connector.toml +955 -0
  469. package/runtime/gatewaysdk/environment/schema/connectors/jira/handlers.py +73 -14
  470. package/runtime/gatewaysdk/environment/schema/connectors/jira/parity.json +27 -0
  471. package/runtime/gatewaysdk/environment/schema/connectors/jira/provenance.json +166 -0
  472. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/instruction.md +22 -0
  473. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/scenario.toml +3 -0
  474. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_boards.json +61 -0
  475. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_changelogs.json +136 -0
  476. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_comments.json +205 -0
  477. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_components.json +78 -0
  478. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_fields.json +498 -0
  479. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_link_types.json +25 -0
  480. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_links.json +190 -0
  481. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_types.json +44 -0
  482. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issues.json +1448 -0
  483. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_priorities.json +40 -0
  484. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_project_categories.json +16 -0
  485. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_projects.json +111 -0
  486. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_resolutions.json +22 -0
  487. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprint_issues.json +20 -0
  488. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprints.json +39 -0
  489. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_status_categories.json +25 -0
  490. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_statuses.json +60 -0
  491. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_transitions.json +179 -0
  492. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_users.json +83 -0
  493. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_versions.json +30 -0
  494. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_worklogs.json +96 -0
  495. package/runtime/gatewaysdk/environment/schema/connectors/jira/scope.toml +255 -0
  496. package/runtime/gatewaysdk/environment/schema/connectors/jira/tests/tools.json +151 -0
  497. package/runtime/gatewaysdk/environment/schema/connectors/jira/vendor-openapi.json +13562 -0
  498. package/runtime/gatewaysdk/environment/schema/connectors/jira/world.json +3381 -183
  499. package/runtime/gatewaysdk/environment/schema/connectors/kandji/api/handlers.py +406 -0
  500. package/runtime/gatewaysdk/environment/schema/connectors/kandji/connector.toml +531 -0
  501. package/runtime/gatewaysdk/environment/schema/connectors/kandji/provenance.json +229 -46
  502. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/scenario.toml +2 -0
  503. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_items.json +22 -0
  504. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_template_categories.json +14 -0
  505. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_templates.json +38 -0
  506. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprints.json +52 -0
  507. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_apps.json +45 -0
  508. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_profiles.json +32 -0
  509. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_scripts.json +27 -0
  510. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_activities.json +43 -0
  511. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_apps.json +52 -0
  512. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_commands.json +41 -0
  513. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_notes.json +20 -0
  514. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_parameters.json +28 -0
  515. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_tags.json +16 -0
  516. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_devices.json +122 -0
  517. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_in_house_apps.json +33 -0
  518. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_activities.json +33 -0
  519. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_statuses.json +98 -0
  520. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_items.json +24 -0
  521. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_self_service_categories.json +12 -0
  522. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_tags.json +16 -0
  523. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_users.json +61 -0
  524. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scope.toml +118 -39
  525. package/runtime/gatewaysdk/environment/schema/connectors/kandji/tests/tools.json +64 -0
  526. package/runtime/gatewaysdk/environment/schema/connectors/kandji/vendor-openapi.json +5463 -0
  527. package/runtime/gatewaysdk/environment/schema/connectors/kandji/world.json +1257 -205
  528. package/runtime/gatewaysdk/environment/schema/connectors/linear/api/handlers.py +139 -0
  529. package/runtime/gatewaysdk/environment/schema/connectors/linear/connector.toml +1574 -0
  530. package/runtime/gatewaysdk/environment/schema/connectors/linear/handlers.py +8 -5
  531. package/runtime/gatewaysdk/environment/schema/connectors/linear/provenance.json +142 -0
  532. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/scenario.toml +2 -0
  533. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/attachments.json +21 -0
  534. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/comments.json +79 -0
  535. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_needs.json +21 -0
  536. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_statuses.json +26 -0
  537. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_tiers.json +26 -0
  538. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customers.json +48 -0
  539. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/cycles.json +86 -0
  540. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/documents.json +27 -0
  541. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_projects.json +13 -0
  542. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_updates.json +23 -0
  543. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiatives.json +41 -0
  544. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_labels.json +16 -0
  545. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_relations.json +13 -0
  546. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issues.json +264 -0
  547. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/labels.json +52 -0
  548. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/organizations.json +53 -0
  549. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_labels.json +34 -0
  550. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_members.json +16 -0
  551. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_milestones.json +30 -0
  552. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_relations.json +18 -0
  553. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_statuses.json +76 -0
  554. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_updates.json +42 -0
  555. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/projects.json +110 -0
  556. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/reactions.json +28 -0
  557. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmap_projects.json +13 -0
  558. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmaps.json +19 -0
  559. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/team_memberships.json +34 -0
  560. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/teams.json +114 -0
  561. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/templates.json +27 -0
  562. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/users.json +106 -0
  563. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/webhooks.json +21 -0
  564. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/workflow_states.json +108 -0
  565. package/runtime/gatewaysdk/environment/schema/connectors/linear/scope.toml +87 -0
  566. package/runtime/gatewaysdk/environment/schema/connectors/linear/tests/tools.json +52 -0
  567. package/runtime/gatewaysdk/environment/schema/connectors/linear/world.json +5957 -172
  568. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/api/handlers.py +1218 -0
  569. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/connector.toml +1246 -0
  570. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +49 -19
  571. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +785 -4
  572. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/instruction.md +12 -0
  573. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/scenario.toml +2 -0
  574. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_async_operations.json +47 -0
  575. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_hosted_contents.json +12 -0
  576. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_members.json +88 -0
  577. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_messages.json +313 -0
  578. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_replies.json +128 -0
  579. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channels.json +319 -0
  580. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_hosted_contents.json +18 -0
  581. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_members.json +155 -0
  582. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_messages.json +265 -0
  583. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_views.json +37 -0
  584. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chats.json +167 -0
  585. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_incoming_channels.json +25 -0
  586. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_pinned_messages.json +9 -0
  587. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_reply_hosted_contents.json +13 -0
  588. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_shared_channel_teams.json +32 -0
  589. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tag_members.json +31 -0
  590. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tags.json +32 -0
  591. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_team_members.json +117 -0
  592. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_teams.json +193 -0
  593. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +76 -4
  594. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +29 -0
  595. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/tests/routes.json +101 -0
  596. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/vendor-openapi.json +11280 -0
  597. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +74 -6
  598. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/api/handlers.py +571 -0
  599. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/connector.toml +1484 -0
  600. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/parity.json +28 -1
  601. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +215 -49
  602. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/instruction.md +11 -0
  603. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/scenario.toml +2 -0
  604. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounting_periods.json +107 -0
  605. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounts.json +514 -0
  606. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_classifications.json +64 -0
  607. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_contacts.json +90 -0
  608. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_credit_memos.json +112 -0
  609. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_currencies.json +37 -0
  610. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customer_payments.json +108 -0
  611. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customers.json +232 -0
  612. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_departments.json +80 -0
  613. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_employees.json +124 -0
  614. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_invoices.json +229 -0
  615. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_item_fulfillments.json +85 -0
  616. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_items.json +237 -0
  617. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_journal_entries.json +217 -0
  618. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_locations.json +62 -0
  619. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_price_levels.json +28 -0
  620. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_purchase_orders.json +152 -0
  621. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_order_lines.json +235 -0
  622. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_orders.json +219 -0
  623. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_subsidiaries.json +85 -0
  624. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_terms.json +48 -0
  625. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendor_bills.json +170 -0
  626. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendors.json +140 -0
  627. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scope.toml +251 -33
  628. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/tests/tools.json +82 -0
  629. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +31065 -8232
  630. package/runtime/gatewaysdk/environment/schema/connectors/notion/api/handlers.py +1330 -0
  631. package/runtime/gatewaysdk/environment/schema/connectors/notion/connector.toml +386 -0
  632. package/runtime/gatewaysdk/environment/schema/connectors/notion/handlers.py +54 -0
  633. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/scenario.toml +2 -0
  634. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/blocks.json +4197 -0
  635. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/calendar_events.json +18 -0
  636. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/collection_views.json +175 -0
  637. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/comments.json +109 -0
  638. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/databases.json +417 -0
  639. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/favorites.json +3 -0
  640. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/notifications.json +49 -0
  641. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/pages.json +3758 -0
  642. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/spaces.json +28 -0
  643. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/teamspaces.json +3 -0
  644. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/users.json +92 -0
  645. package/runtime/gatewaysdk/environment/schema/connectors/notion/tests/01-reads.json +165 -0
  646. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DQ36W7RG.css +1 -0
  647. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DythuuUy.js +67 -0
  648. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000002.svg +1 -0
  649. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000003.svg +1 -0
  650. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000004.svg +1 -0
  651. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000005.svg +1 -0
  652. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000006.svg +1 -0
  653. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000007.svg +1 -0
  654. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000008.svg +1 -0
  655. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/dusk-harbor.png +0 -0
  656. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/ember-coast.png +0 -0
  657. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/green-ridge.png +0 -0
  658. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f30a.svg +1 -0
  659. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f331.svg +1 -0
  660. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f373.svg +1 -0
  661. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a7.svg +1 -0
  662. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a8.svg +1 -0
  663. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3ac.svg +1 -0
  664. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3af.svg +1 -0
  665. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3c4.svg +1 -0
  666. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3d6.svg +1 -0
  667. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3e0.svg +1 -0
  668. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f44b.svg +1 -0
  669. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4a1.svg +1 -0
  670. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4b0.svg +1 -0
  671. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4bc.svg +1 -0
  672. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c5.svg +1 -0
  673. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c8.svg +1 -0
  674. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4cb.svg +1 -0
  675. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ce.svg +1 -0
  676. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d1.svg +1 -0
  677. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d3.svg +1 -0
  678. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d6.svg +1 -0
  679. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4da.svg +1 -0
  680. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4dd.svg +1 -0
  681. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ec.svg +1 -0
  682. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4f7.svg +1 -0
  683. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f527.svg +1 -0
  684. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f55b.svg +1 -0
  685. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5c2.svg +1 -0
  686. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5d3.svg +1 -0
  687. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f680.svg +1 -0
  688. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f6a2.svg +1 -0
  689. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ca.svg +1 -0
  690. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9e0.svg +1 -0
  691. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ea.svg +1 -0
  692. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ed.svg +1 -0
  693. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9f0.svg +1 -0
  694. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1fab6.svg +1 -0
  695. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2600.svg +1 -0
  696. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2693.svg +1 -0
  697. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2705.svg +1 -0
  698. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2708.svg +1 -0
  699. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/270f.svg +1 -0
  700. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2b50.svg +1 -0
  701. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/favicon.svg +1 -0
  702. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/fonts/SourceSerif4-latin.woff2 +0 -0
  703. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/index.html +31 -0
  704. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/content-blocks.png +0 -0
  705. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/databases.png +0 -0
  706. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/sharing.png +0 -0
  707. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/style-content.png +0 -0
  708. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/home-icon.png +0 -0
  709. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/viewer.png +0 -0
  710. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/workspace.png +0 -0
  711. package/runtime/gatewaysdk/environment/schema/connectors/notion/world.json +2796 -0
  712. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_admin_role_assignments.json +44 -0
  713. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_assignments.json +40 -0
  714. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_group_assignments.json +59 -0
  715. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_applications.json +265 -0
  716. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_console_dashboards.json +91 -0
  717. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_device_users.json +32 -0
  718. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_devices.json +89 -0
  719. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_group_memberships.json +156 -0
  720. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_groups.json +100 -0
  721. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_orgs.json +20 -0
  722. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_policies.json +84 -0
  723. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_system_log_events.json +9656 -0
  724. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_users.json +744 -0
  725. package/runtime/gatewaysdk/environment/schema/connectors/outlook/api/handlers.py +624 -0
  726. package/runtime/gatewaysdk/environment/schema/connectors/outlook/connector.toml +381 -0
  727. package/runtime/gatewaysdk/environment/schema/connectors/outlook/handlers.py +54 -0
  728. package/runtime/gatewaysdk/environment/schema/connectors/outlook/provenance.json +408 -0
  729. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/instruction.md +22 -0
  730. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/scenario.toml +2 -0
  731. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_attachments.json +44 -0
  732. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_calendars.json +52 -0
  733. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_contacts.json +326 -0
  734. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_events.json +3050 -0
  735. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mail_folders.json +84 -0
  736. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailbox_settings.json +35 -0
  737. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailboxes.json +14 -0
  738. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_messages.json +1400 -0
  739. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_system_senders.json +44 -0
  740. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_users.json +256 -0
  741. package/runtime/gatewaysdk/environment/schema/connectors/outlook/tests/routes.json +333 -0
  742. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-DRVA5ahH.js +67 -0
  743. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-kOnvVBhA.css +1 -0
  744. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Filled.woff2 +0 -0
  745. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Regular.woff2 +0 -0
  746. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
  747. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/controlIcons.woff +0 -0
  748. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-bold.woff2 +0 -0
  749. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-light.woff2 +0 -0
  750. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-regular.woff2 +0 -0
  751. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semibold.woff2 +0 -0
  752. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semilight.woff2 +0 -0
  753. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/bookings.svg +1 -0
  754. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/calendar.svg +35 -0
  755. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/copilot.png +0 -0
  756. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/excel.svg +1 -0
  757. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/mail.svg +32 -0
  758. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/my-day.svg +1 -0
  759. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/newsletters.svg +37 -0
  760. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected-dark.svg +1 -0
  761. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected.svg +1 -0
  762. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onedrive.svg +1 -0
  763. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onenote.svg +1 -0
  764. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/org-explorer.png +0 -0
  765. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/outlook.svg +1 -0
  766. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/people.svg +34 -0
  767. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/powerpoint.svg +1 -0
  768. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/ribbon-layout.svg +1 -0
  769. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/sharepoint.svg +1 -0
  770. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams-chat.svg +1 -0
  771. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams.svg +1 -0
  772. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/to-do.png +0 -0
  773. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/viva.svg +1 -0
  774. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/word.svg +1 -0
  775. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/index.html +34 -0
  776. package/runtime/gatewaysdk/environment/schema/connectors/outlook/world.json +686 -0
  777. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/api/handlers.py +447 -0
  778. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/connector.toml +3478 -0
  779. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/handlers.py +695 -616
  780. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +4254 -111
  781. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/instruction.md +8 -0
  782. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/scenario.toml +2 -0
  783. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_relations.json +20 -0
  784. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_roles.json +16 -0
  785. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_partners.json +18 -0
  786. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_team_members.json +16 -0
  787. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_accounts.json +38 -0
  788. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_assets.json +35 -0
  789. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_attachments.json +16 -0
  790. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_business_hours.json +16 -0
  791. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_member_statuses.json +16 -0
  792. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_members.json +38 -0
  793. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaigns.json +35 -0
  794. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_comments.json +14 -0
  795. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_histories.json +18 -0
  796. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_milestones.json +18 -0
  797. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_statuses.json +16 -0
  798. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_members.json +14 -0
  799. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_roles.json +12 -0
  800. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_cases.json +42 -0
  801. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_group_members.json +16 -0
  802. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_groups.json +16 -0
  803. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_addresses.json +14 -0
  804. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_emails.json +14 -0
  805. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_phones.json +14 -0
  806. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contacts.json +34 -0
  807. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_document_links.json +14 -0
  808. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_documents.json +18 -0
  809. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_folders.json +13 -0
  810. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_notes.json +12 -0
  811. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_versions.json +24 -0
  812. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_workspaces.json +16 -0
  813. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_contact_roles.json +16 -0
  814. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_line_items.json +32 -0
  815. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contracts.json +40 -0
  816. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_dashboards.json +20 -0
  817. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_documents.json +22 -0
  818. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_message_relations.json +14 -0
  819. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_messages.json +21 -0
  820. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_templates.json +24 -0
  821. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_entitlements.json +32 -0
  822. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_events.json +26 -0
  823. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_comments.json +19 -0
  824. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_items.json +24 -0
  825. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_fiscal_year_settings.json +20 -0
  826. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_folders.json +18 -0
  827. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_group_members.json +12 -0
  828. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_groups.json +20 -0
  829. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_holidays.json +16 -0
  830. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_individuals.json +21 -0
  831. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_lead_statuses.json +14 -0
  832. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_leads.json +45 -0
  833. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_list_views.json +16 -0
  834. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_login_histories.json +18 -0
  835. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_milestone_types.json +14 -0
  836. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_notes.json +16 -0
  837. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_object_territory_associations.json +14 -0
  838. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunities.json +48 -0
  839. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_competitors.json +12 -0
  840. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_contact_roles.json +16 -0
  841. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_field_histories.json +18 -0
  842. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_histories.json +20 -0
  843. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_line_items.json +32 -0
  844. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_partners.json +16 -0
  845. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_stages.json +22 -0
  846. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_team_members.json +18 -0
  847. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_order_items.json +33 -0
  848. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_orders.json +44 -0
  849. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_organizations.json +18 -0
  850. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_partners.json +18 -0
  851. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_periods.json +18 -0
  852. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_set_assignments.json +16 -0
  853. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_sets.json +18 -0
  854. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebook_entries.json +22 -0
  855. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebooks.json +16 -0
  856. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_products.json +20 -0
  857. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_profiles.json +14 -0
  858. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_queue_sobjects.json +12 -0
  859. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quote_line_items.json +43 -0
  860. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quotes.json +40 -0
  861. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_actions.json +16 -0
  862. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_types.json +18 -0
  863. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_reports.json +18 -0
  864. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_service_contracts.json +32 -0
  865. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_sla_processes.json +18 -0
  866. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_solutions.json +18 -0
  867. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_priorities.json +14 -0
  868. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_relations.json +14 -0
  869. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_statuses.json +16 -0
  870. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_tasks.json +26 -0
  871. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territories.json +20 -0
  872. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_models.json +16 -0
  873. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_types.json +18 -0
  874. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topic_assignments.json +12 -0
  875. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topics.json +14 -0
  876. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_roles.json +16 -0
  877. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_territory_associations.json +16 -0
  878. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_users.json +57 -0
  879. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_web_links.json +26 -0
  880. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_order_line_items.json +42 -0
  881. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_orders.json +46 -0
  882. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scope.toml +624 -104
  883. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/tests/tools.json +69 -0
  884. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +19222 -2654
  885. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/api/handlers.py +630 -0
  886. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/connector.toml +266 -0
  887. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/handlers.py +3 -0
  888. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/provenance.json +245 -0
  889. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/instruction.md +15 -0
  890. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/scenario.toml +1 -0
  891. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/10-snow_users.json +268 -0
  892. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/11-snow_user_groups.json +40 -0
  893. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/20-snow_configuration_items.json +684 -0
  894. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/30-snow_catalog_categories.json +52 -0
  895. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/31-snow_catalog_items.json +334 -0
  896. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/40-snow_incidents.json +3086 -0
  897. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/41-snow_incident_tasks.json +54 -0
  898. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/42-snow_task_slas.json +64 -0
  899. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/43-snow_problems.json +148 -0
  900. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/44-snow_change_requests.json +364 -0
  901. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/45-snow_knowledge_articles.json +214 -0
  902. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/46-snow_journal_entries.json +1612 -0
  903. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/60-snow_ui_current_users.json +19 -0
  904. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/61-snow_ui_navigation_applications.json +187 -0
  905. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/62-snow_ui_home_widgets.json +91 -0
  906. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/63-snow_ui_notifications.json +3 -0
  907. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/64-snow_ui_employee_center_pages.json +74 -0
  908. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/65-snow_ui_list_layouts.json +54 -0
  909. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/66-snow_ui_search_facets.json +29 -0
  910. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/67-snow_ui_activity_entries.json +1076 -0
  911. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/68-snow_ui_instances.json +9 -0
  912. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scope.toml +166 -0
  913. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/tests/routes.json +272 -0
  914. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-5QHcQLCI.css +1 -0
  915. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-BzeVnzFt.js +67 -0
  916. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700-italic.woff2 +0 -0
  917. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700.woff2 +0 -0
  918. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-0-lato-v17-latin-ext_latin-100.woff2 +0 -0
  919. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-1-lato-v17-latin-ext_latin-100.woff +0 -0
  920. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-10-lato-v17-latin-ext_latin-italic.woff2 +0 -0
  921. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-11-lato-v17-latin-ext_latin-italic.woff +0 -0
  922. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-12-lato-v17-latin-ext_latin-700.woff2 +0 -0
  923. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-13-lato-v17-latin-ext_latin-700.woff +0 -0
  924. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-14-lato-v17-latin-ext_latin-700italic.woff2 +0 -0
  925. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-15-lato-v17-latin-ext_latin-700italic.woff +0 -0
  926. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-16-source-sans-pro-v11-latin-300.woff2 +0 -0
  927. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-17-source-sans-pro-v11-latin-300.woff +0 -0
  928. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-18-source-sans-pro-v11-latin-regular.woff2 +0 -0
  929. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-19-source-sans-pro-v11-latin-regular.woff +0 -0
  930. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-2-lato-v17-latin-ext_latin-100italic.woff2 +0 -0
  931. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-20-source-sans-pro-v11-latin-600.woff2 +0 -0
  932. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-21-source-sans-pro-v11-latin-600.woff +0 -0
  933. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-22-source-sans-pro-v11-latin-700.woff2 +0 -0
  934. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-23-source-sans-pro-v11-latin-700.woff +0 -0
  935. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-3-lato-v17-latin-ext_latin-100italic.woff +0 -0
  936. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-4-lato-v17-latin-ext_latin-300.woff2 +0 -0
  937. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-5-lato-v17-latin-ext_latin-300.woff +0 -0
  938. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-6-lato-v17-latin-ext_latin-300italic.woff2 +0 -0
  939. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-7-lato-v17-latin-ext_latin-300italic.woff +0 -0
  940. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-8-lato-v17-latin-ext_latin-regular.woff2 +0 -0
  941. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-9-lato-v17-latin-ext_latin-regular.woff +0 -0
  942. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/index.json +122 -0
  943. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-300.woff2 +0 -0
  944. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600-italic.woff2 +0 -0
  945. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600.woff2 +0 -0
  946. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold-italic.woff2 +0 -0
  947. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold.woff2 +0 -0
  948. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal-italic.woff2 +0 -0
  949. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal.woff2 +0 -0
  950. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/appsee-outline.svg +1 -0
  951. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/arrow-up-outline.svg +1 -0
  952. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/available.svg +1 -0
  953. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/bell-outline.svg +1 -0
  954. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/caret-down-fill.svg +1 -0
  955. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/check-fill.svg +1 -0
  956. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/chevron-right-outline.svg +1 -0
  957. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-close-outline.svg +1 -0
  958. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-info-outline.svg +1 -0
  959. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-question-outline.svg +1 -0
  960. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circleinfooutline.svg +1 -0
  961. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ellipsis-v-outline.svg +1 -0
  962. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/eye-outline.svg +1 -0
  963. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-bell-fill.svg +1 -0
  964. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-caret-down-fill.svg +1 -0
  965. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-check-square.svg +1 -0
  966. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-chevron-right.svg +1 -0
  967. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-clock-outline.svg +1 -0
  968. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-comment-chat.svg +1 -0
  969. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-external-link.svg +1 -0
  970. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-facebook.svg +1 -0
  971. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-fill.svg +1 -0
  972. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-outline.svg +1 -0
  973. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill-teal.svg +1 -0
  974. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill.svg +1 -0
  975. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-linkedin.svg +1 -0
  976. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-list-alt-fill.svg +1 -0
  977. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-pencil-square.svg +1 -0
  978. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-question-circle-fill.svg +1 -0
  979. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-times.svg +1 -0
  980. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-twitter.svg +1 -0
  981. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/filter-outline.svg +1 -0
  982. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/gear-outline.svg +1 -0
  983. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/globe-outline.svg +1 -0
  984. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/home-outline.svg +1 -0
  985. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-2.svg +17 -0
  986. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-3.svg +1 -0
  987. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-4.svg +1 -0
  988. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon.svg +45 -0
  989. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/keyboard-outline.svg +1 -0
  990. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-adoption-blueprints.svg +1 -0
  991. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-applications.svg +1 -0
  992. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/list-fill.svg +1 -0
  993. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading-2.svg +1 -0
  994. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading.svg +1 -0
  995. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/magnifying-glass-outline.svg +1 -0
  996. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ongoing-outline.svg +1 -0
  997. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-fill.svg +1 -0
  998. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-outline.svg +1 -0
  999. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/pencil-page-outline.svg +1 -0
  1000. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/plus-fill.svg +1 -0
  1001. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/serverbox-outline.svg +1 -0
  1002. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/servicenow-wordmark.svg +20 -0
  1003. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/signal-live-outline.svg +1 -0
  1004. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/square-arrow-left-outline.svg +1 -0
  1005. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/star-outline.svg +1 -0
  1006. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/sync-outline.svg +1 -0
  1007. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/task-slas-related-list.svg +24 -0
  1008. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/thumbtack-outline.svg +1 -0
  1009. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-downward.svg +1 -0
  1010. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-neutral.svg +1 -0
  1011. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-all-menu.svg +1 -0
  1012. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-favorites-menu.svg +1 -0
  1013. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-history-menu.svg +1 -0
  1014. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/user-outline.svg +1 -0
  1015. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/adoption-blueprints.svg +40 -0
  1016. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/avatar-admin.jpg +0 -0
  1017. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/now-assist-admin.svg +17 -0
  1018. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-desk.jpg +0 -0
  1019. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-password.jpg +0 -0
  1020. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-status.jpg +0 -0
  1021. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-accessories.svg +1 -0
  1022. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-computers.svg +1 -0
  1023. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-developer.svg +1 -0
  1024. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-email.svg +1 -0
  1025. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-phone.svg +1 -0
  1026. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software-catalog.svg +1 -0
  1027. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software.svg +1 -0
  1028. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-technology.svg +1 -0
  1029. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/index.html +36 -0
  1030. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/world.json +2004 -0
  1031. package/runtime/gatewaysdk/environment/schema/connectors/slack/MODEL.md +28 -0
  1032. package/runtime/gatewaysdk/environment/schema/connectors/slack/api/handlers.py +1880 -0
  1033. package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +19 -2
  1034. package/runtime/gatewaysdk/environment/schema/connectors/slack/connector.toml +892 -0
  1035. package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +65 -10
  1036. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/scenario.toml +1 -0
  1037. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_apps.json +22 -0
  1038. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bookmarks.json +22 -0
  1039. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bots.json +19 -0
  1040. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_channels.json +206 -0
  1041. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_conversation_states.json +50 -0
  1042. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_emojis.json +19 -0
  1043. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_files.json +12 -0
  1044. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_threads.json +11 -0
  1045. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_messages.json +16 -0
  1046. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_channel_observations.json +16 -0
  1047. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_summaries.json +10 -0
  1048. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_users.json +10 -0
  1049. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_shares.json +29 -0
  1050. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_user_states.json +10 -0
  1051. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_files.json +64 -0
  1052. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_memberships.json +79 -0
  1053. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_files.json +18 -0
  1054. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_threads.json +10 -0
  1055. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_user_states.json +14 -0
  1056. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_messages.json +127 -0
  1057. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_pins.json +11 -0
  1058. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_presence.json +35 -0
  1059. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_summaries.json +25 -0
  1060. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_users.json +32 -0
  1061. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_message_threads.json +10 -0
  1062. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_messages.json +15 -0
  1063. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_unavailable_message_files.json +14 -0
  1064. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_user_profile_fields.json +28 -0
  1065. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_channels.json +10 -0
  1066. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_memberships.json +14 -0
  1067. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroups.json +33 -0
  1068. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_users.json +228 -0
  1069. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_view_state_entries.json +22 -0
  1070. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_views.json +53 -0
  1071. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_workspaces.json +37 -0
  1072. package/runtime/gatewaysdk/environment/schema/connectors/slack/scope.toml +6 -2
  1073. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/api.json +177 -0
  1074. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/test_threads.py +49 -0
  1075. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/tools.json +92 -0
  1076. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-BSqGskph.css +1 -0
  1077. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-CKQh1igo.js +81 -0
  1078. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/README.md +15 -0
  1079. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-black.woff2 +0 -0
  1080. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-bold.woff2 +0 -0
  1081. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-black.woff2 +0 -0
  1082. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-bold.woff2 +0 -0
  1083. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-light.woff2 +0 -0
  1084. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic.woff2 +0 -0
  1085. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-light.woff2 +0 -0
  1086. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-regular.woff2 +0 -0
  1087. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/slack-icons-v2.woff2 +0 -0
  1088. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/index.html +35 -0
  1089. package/runtime/gatewaysdk/environment/schema/connectors/slack/vendor-openapi.json +12515 -0
  1090. package/runtime/gatewaysdk/environment/schema/connectors/slack/world.json +396 -8
  1091. package/runtime/gatewaysdk/environment/schema/connectors/workday/api/handlers.py +175 -0
  1092. package/runtime/gatewaysdk/environment/schema/connectors/workday/connector.toml +610 -0
  1093. package/runtime/gatewaysdk/environment/schema/connectors/workday/parity.json +39 -6
  1094. package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +253 -25
  1095. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/instruction.md +10 -0
  1096. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/scenario.toml +2 -0
  1097. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_compensations.json +219 -0
  1098. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_job_profiles.json +76 -0
  1099. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_locations.json +142 -0
  1100. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_organizations.json +124 -0
  1101. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_positions.json +280 -0
  1102. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_absence_leaves.json +66 -0
  1103. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_business_title_changes.json +44 -0
  1104. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_in_topics.json +48 -0
  1105. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_ins.json +46 -0
  1106. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_countries.json +28 -0
  1107. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_currencies.json +25 -0
  1108. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_change_reasons.json +28 -0
  1109. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_families.json +40 -0
  1110. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_profiles.json +202 -0
  1111. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_jobs.json +120 -0
  1112. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organization_types.json +19 -0
  1113. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organizations.json +24 -0
  1114. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_persons.json +100 -0
  1115. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecard_results.json +57 -0
  1116. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecards.json +68 -0
  1117. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_supervisory_organizations.json +64 -0
  1118. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_details.json +112 -0
  1119. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_entries.json +91 -0
  1120. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_worker_history_events.json +58 -0
  1121. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_workers.json +90 -0
  1122. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_time_off_requests.json +181 -0
  1123. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_workers.json +492 -0
  1124. package/runtime/gatewaysdk/environment/schema/connectors/workday/scope.toml +178 -14
  1125. package/runtime/gatewaysdk/environment/schema/connectors/workday/tests/tools.json +81 -0
  1126. package/runtime/gatewaysdk/environment/schema/connectors/workday/vendor-openapi.json +10646 -0
  1127. package/runtime/gatewaysdk/environment/schema/connectors/workday/world.json +3787 -407
  1128. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/api/handlers.py +1183 -0
  1129. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/connector.toml +645 -0
  1130. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/handlers.py +377 -0
  1131. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/instruction.md +22 -0
  1132. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/scenario.toml +3 -0
  1133. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_brands.json +25 -0
  1134. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_group_memberships.json +49 -0
  1135. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_groups.json +37 -0
  1136. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_macros.json +154 -0
  1137. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_organizations.json +65 -0
  1138. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_audits.json +3328 -0
  1139. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_comments.json +2642 -0
  1140. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_tickets.json +1439 -0
  1141. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_users.json +624 -0
  1142. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_views.json +510 -0
  1143. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_workspace_tabs.json +10 -0
  1144. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-JWq7XNO5.css +1 -0
  1145. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-bn8ezNTi.js +67 -0
  1146. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/index.html +22 -0
  1147. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/world.json +1707 -0
  1148. package/runtime/gatewaysdk/environment/schema/data.py +349 -35
  1149. package/runtime/gatewaysdk/environment/schema/dependencies.py +235 -0
  1150. package/runtime/gatewaysdk/environment/schema/extract.py +6 -6
  1151. package/runtime/gatewaysdk/environment/schema/host.py +226 -62
  1152. package/runtime/gatewaysdk/environment/schema/host_surfaces.py +62 -17
  1153. package/runtime/gatewaysdk/environment/schema/ingest.py +528 -0
  1154. package/runtime/gatewaysdk/environment/schema/local.py +536 -0
  1155. package/runtime/gatewaysdk/environment/schema/mapping.py +944 -0
  1156. package/runtime/gatewaysdk/environment/schema/platform.py +678 -202
  1157. package/runtime/gatewaysdk/environment/schema/reconcile.py +202 -0
  1158. package/runtime/gatewaysdk/environment/schema/redaction.py +378 -0
  1159. package/runtime/gatewaysdk/environment/schema/scaffold.py +68 -7
  1160. package/runtime/gatewaysdk/environment/schema/skill.py +1 -0
  1161. package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +391 -0
  1162. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +64 -31
  1163. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +86 -36
  1164. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +20 -0
  1165. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +178 -11
  1166. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +184 -74
  1167. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1168. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +18 -0
  1169. package/runtime/gatewaysdk/environment/schema/store.py +103 -3
  1170. package/runtime/gatewaysdk/environment/schema/tasks.py +8 -3
  1171. package/runtime/gatewaysdk/environment/schema/tools_world.py +424 -57
  1172. package/runtime/gatewaysdk/environment/schema/transform.py +200 -0
  1173. package/runtime/gatewaysdk/environment/schema/transforms.py +103 -0
  1174. package/runtime/gatewaysdk/environment/schema/ui.py +455 -0
  1175. package/runtime/gatewaysdk/environment/schema/ui_static/app.js +581 -0
  1176. package/runtime/gatewaysdk/environment/schema/ui_static/index.html +72 -0
  1177. package/runtime/gatewaysdk/environment/schema/validation.py +59 -12
  1178. package/runtime/gatewaysdk/environment/schema/world_tests.py +245 -51
  1179. package/skills/benchmarks-getting-started/SKILL.md +391 -0
  1180. package/skills/connector-schema-authoring/CONNECTORS.md +64 -31
  1181. package/skills/connector-schema-authoring/SKILL.md +86 -36
  1182. package/skills/connector-schema-authoring/connector-worlds.md +355 -0
  1183. package/skills/connector-schema-authoring/world-schema.md +620 -0
  1184. package/skills/world-data-ingestion/ROWS.md +20 -0
  1185. package/skills/world-data-ingestion/SKILL.md +178 -11
  1186. package/skills/worlds-getting-started/SKILL.md +184 -74
  1187. package/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1188. package/skills/worlds-getting-started/references/ui-map.md +18 -0
@@ -0,0 +1,81 @@
1
+ function mf(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(s,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>s[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"]'))s(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"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(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 s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S_={exports:{}},$i={},C_={exports:{}},ve={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var pr=Symbol.for("react.element"),ff=Symbol.for("react.portal"),gf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),bf=Symbol.for("react.profiler"),xf=Symbol.for("react.provider"),yf=Symbol.for("react.context"),jf=Symbol.for("react.forward_ref"),wf=Symbol.for("react.suspense"),kf=Symbol.for("react.memo"),Nf=Symbol.for("react.lazy"),Sd=Symbol.iterator;function Sf(e){return e===null||typeof e!="object"?null:(e=Sd&&e[Sd]||e["@@iterator"],typeof e=="function"?e:null)}var q_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E_=Object.assign,M_={};function ss(e,t,n){this.props=e,this.context=t,this.refs=M_,this.updater=n||q_}ss.prototype.isReactComponent={};ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z_(){}z_.prototype=ss.prototype;function _c(e,t,n){this.props=e,this.context=t,this.refs=M_,this.updater=n||q_}var pc=_c.prototype=new z_;pc.constructor=_c;E_(pc,ss.prototype);pc.isPureReactComponent=!0;var Cd=Array.isArray,T_=Object.prototype.hasOwnProperty,mc={current:null},A_={key:!0,ref:!0,__self:!0,__source:!0};function L_(e,t,n){var s,r={},i=null,l=null;if(t!=null)for(s in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)T_.call(t,s)&&!A_.hasOwnProperty(s)&&(r[s]=t[s]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];r.children=c}if(e&&e.defaultProps)for(s in o=e.defaultProps,o)r[s]===void 0&&(r[s]=o[s]);return{$$typeof:pr,type:e,key:i,ref:l,props:r,_owner:mc.current}}function Cf(e,t){return{$$typeof:pr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function hc(e){return typeof e=="object"&&e!==null&&e.$$typeof===pr}function qf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qd=/\/+/g;function ul(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qf(""+e.key):t.toString(36)}function Kr(e,t,n,s,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case pr:case ff:l=!0}}if(l)return l=e,r=r(l),e=s===""?"."+ul(l,0):s,Cd(r)?(n="",e!=null&&(n=e.replace(qd,"$&/")+"/"),Kr(r,t,n,"",function(u){return u})):r!=null&&(hc(r)&&(r=Cf(r,n+(!r.key||l&&l.key===r.key?"":(""+r.key).replace(qd,"$&/")+"/")+e)),t.push(r)),1;if(l=0,s=s===""?".":s+":",Cd(e))for(var o=0;o<e.length;o++){i=e[o];var c=s+ul(i,o);l+=Kr(i,t,n,c,r)}else if(c=Sf(e),typeof c=="function")for(e=c.call(e),o=0;!(i=e.next()).done;)i=i.value,c=s+ul(i,o++),l+=Kr(i,t,n,c,r);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function jr(e,t,n){if(e==null)return e;var s=[],r=0;return Kr(e,s,"","",function(i){return t.call(n,i,r++)}),s}function Ef(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},Qr={transition:null},Mf={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:Qr,ReactCurrentOwner:mc};function D_(){throw Error("act(...) is not supported in production builds of React.")}ve.Children={map:jr,forEach:function(e,t,n){jr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jr(e,function(){t++}),t},toArray:function(e){return jr(e,function(t){return t})||[]},only:function(e){if(!hc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Component=ss;ve.Fragment=gf;ve.Profiler=bf;ve.PureComponent=_c;ve.StrictMode=vf;ve.Suspense=wf;ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mf;ve.act=D_;ve.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=E_({},e.props),r=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=mc.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)T_.call(t,c)&&!A_.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){o=Array(c);for(var u=0;u<c;u++)o[u]=arguments[u+2];s.children=o}return{$$typeof:pr,type:e.type,key:r,ref:i,props:s,_owner:l}};ve.createContext=function(e){return e={$$typeof:yf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:xf,_context:e},e.Consumer=e};ve.createElement=L_;ve.createFactory=function(e){var t=L_.bind(null,e);return t.type=e,t};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:jf,render:e}};ve.isValidElement=hc;ve.lazy=function(e){return{$$typeof:Nf,_payload:{_status:-1,_result:e},_init:Ef}};ve.memo=function(e,t){return{$$typeof:kf,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=Qr.transition;Qr.transition={};try{e()}finally{Qr.transition=t}};ve.unstable_act=D_;ve.useCallback=function(e,t){return dt.current.useCallback(e,t)};ve.useContext=function(e){return dt.current.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};ve.useEffect=function(e,t){return dt.current.useEffect(e,t)};ve.useId=function(){return dt.current.useId()};ve.useImperativeHandle=function(e,t,n){return dt.current.useImperativeHandle(e,t,n)};ve.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return dt.current.useMemo(e,t)};ve.useReducer=function(e,t,n){return dt.current.useReducer(e,t,n)};ve.useRef=function(e){return dt.current.useRef(e)};ve.useState=function(e){return dt.current.useState(e)};ve.useSyncExternalStore=function(e,t,n){return dt.current.useSyncExternalStore(e,t,n)};ve.useTransition=function(){return dt.current.useTransition()};ve.version="18.3.1";C_.exports=ve;var _=C_.exports;const P_=hf(_),zf=mf({__proto__:null,default:P_},[_]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Tf=_,Af=Symbol.for("react.element"),Lf=Symbol.for("react.fragment"),Df=Object.prototype.hasOwnProperty,Pf=Tf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$f={key:!0,ref:!0,__self:!0,__source:!0};function $_(e,t,n){var s,r={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(s in t)Df.call(t,s)&&!$f.hasOwnProperty(s)&&(r[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)r[s]===void 0&&(r[s]=t[s]);return{$$typeof:Af,type:e,key:i,ref:l,props:r,_owner:Pf.current}}$i.Fragment=Lf;$i.jsx=$_;$i.jsxs=$_;S_.exports=$i;var a=S_.exports,eo={},F_={exports:{}},Ct={},R_={exports:{}},I_={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(j,F){var M=j.length;j.push(F);e:for(;0<M;){var X=M-1>>>1,oe=j[X];if(0<r(oe,F))j[X]=F,j[M]=oe,M=X;else break e}}function n(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var F=j[0],M=j.pop();if(M!==F){j[0]=M;e:for(var X=0,oe=j.length,E=oe>>>1;X<E;){var O=2*(X+1)-1,D=j[O],W=O+1,Y=j[W];if(0>r(D,M))W<oe&&0>r(Y,D)?(j[X]=Y,j[W]=M,X=W):(j[X]=D,j[O]=M,X=O);else if(W<oe&&0>r(Y,M))j[X]=Y,j[W]=M,X=W;else break e}}return F}function r(j,F){var M=j.sortIndex-F.sortIndex;return M!==0?M:j.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],u=[],m=1,h=null,p=3,g=!1,y=!1,k=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(j){for(var F=n(u);F!==null;){if(F.callback===null)s(u);else if(F.startTime<=j)s(u),F.sortIndex=F.expirationTime,t(c,F);else break;F=n(u)}}function x(j){if(k=!1,b(j),!y)if(n(c)!==null)y=!0,L(w);else{var F=n(u);F!==null&&B(x,F.startTime-j)}}function w(j,F){y=!1,k&&(k=!1,f(I),I=-1),g=!0;var M=p;try{for(b(F),h=n(c);h!==null&&(!(h.expirationTime>F)||j&&!ae());){var X=h.callback;if(typeof X=="function"){h.callback=null,p=h.priorityLevel;var oe=X(h.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?h.callback=oe:h===n(c)&&s(c),b(F)}else s(c);h=n(c)}if(h!==null)var E=!0;else{var O=n(u);O!==null&&B(x,O.startTime-F),E=!1}return E}finally{h=null,p=M,g=!1}}var S=!1,A=null,I=-1,Q=5,z=-1;function ae(){return!(e.unstable_now()-z<Q)}function ce(){if(A!==null){var j=e.unstable_now();z=j;var F=!0;try{F=A(!0,j)}finally{F?ie():(S=!1,A=null)}}else S=!1}var ie;if(typeof v=="function")ie=function(){v(ce)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,K=P.port2;P.port1.onmessage=ce,ie=function(){K.postMessage(null)}}else ie=function(){C(ce,0)};function L(j){A=j,S||(S=!0,ie())}function B(j,F){I=C(function(){j(e.unstable_now())},F)}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(j){j.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,L(w))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(j){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var M=p;p=F;try{return j()}finally{p=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,F){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var M=p;p=j;try{return F()}finally{p=M}},e.unstable_scheduleCallback=function(j,F,M){var X=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?X+M:X):M=X,j){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=M+oe,j={id:m++,callback:F,priorityLevel:j,startTime:M,expirationTime:oe,sortIndex:-1},M>X?(j.sortIndex=M,t(u,j),n(c)===null&&j===n(u)&&(k?(f(I),I=-1):k=!0,B(x,M-X))):(j.sortIndex=oe,t(c,j),y||g||(y=!0,L(w))),j},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(j){var F=p;return function(){var M=p;p=F;try{return j.apply(this,arguments)}finally{p=M}}}})(I_);R_.exports=I_;var Ff=R_.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Rf=_,Nt=Ff;function G(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O_=new Set,Os={};function gn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Os[e]=t,e=0;e<t.length;e++)O_.add(t[e])}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),to=Object.prototype.hasOwnProperty,If=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ed={},Md={};function Of(e){return to.call(Md,e)?!0:to.call(Ed,e)?!1:If.test(e)?Md[e]=!0:(Ed[e]=!0,!1)}function Bf(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hf(e,t,n,s){if(t===null||typeof t>"u"||Bf(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,s,r,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var fc=/[\-:]([a-z])/g;function gc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fc,gc);Je[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fc,gc);Je[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fc,gc);Je[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function vc(e,t,n,s){var r=Je.hasOwnProperty(t)?Je[t]:null;(r!==null?r.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Hf(t,n,r,s)&&(n=null),s||r===null?Of(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,s=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var xa=Rf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wr=Symbol.for("react.element"),Sn=Symbol.for("react.portal"),Cn=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),ao=Symbol.for("react.profiler"),B_=Symbol.for("react.provider"),H_=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),no=Symbol.for("react.suspense"),so=Symbol.for("react.suspense_list"),yc=Symbol.for("react.memo"),qa=Symbol.for("react.lazy"),U_=Symbol.for("react.offscreen"),zd=Symbol.iterator;function us(e){return e===null||typeof e!="object"?null:(e=zd&&e[zd]||e["@@iterator"],typeof e=="function"?e:null)}var De=Object.assign,_l;function ks(e){if(_l===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||""}return`
34
+ `+_l+e}var pl=!1;function ml(e,t){if(!e||pl)return"";pl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var r=u.stack.split(`
35
+ `),i=s.stack.split(`
36
+ `),l=r.length-1,o=i.length-1;1<=l&&0<=o&&r[l]!==i[o];)o--;for(;1<=l&&0<=o;l--,o--)if(r[l]!==i[o]){if(l!==1||o!==1)do if(l--,o--,0>o||r[l]!==i[o]){var c=`
37
+ `+r[l].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=l&&0<=o);break}}}finally{pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ks(e):""}function Uf(e){switch(e.tag){case 5:return ks(e.type);case 16:return ks("Lazy");case 13:return ks("Suspense");case 19:return ks("SuspenseList");case 0:case 2:case 15:return e=ml(e.type,!1),e;case 11:return e=ml(e.type.render,!1),e;case 1:return e=ml(e.type,!0),e;default:return""}}function ro(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case ao:return"Profiler";case bc:return"StrictMode";case no:return"Suspense";case so:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case H_:return(e.displayName||"Context")+".Consumer";case B_:return(e._context.displayName||"Context")+".Provider";case xc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yc:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case qa:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function Vf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(t);case 8:return t===bc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ua(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function V_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wf(e){var t=V_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){s=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(l){s=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kr(e){e._valueTracker||(e._valueTracker=Wf(e))}function W_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=V_(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function io(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Td(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Ua(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function K_(e,t){t=t.checked,t!=null&&vc(e,"checked",t,!1)}function lo(e,t){K_(e,t);var n=Ua(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oo(e,t.type,n):t.hasOwnProperty("defaultValue")&&oo(e,t.type,Ua(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ad(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oo(e,t,n){(t!=="number"||oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ns=Array.isArray;function Rn(e,t,n,s){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Ua(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,s&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function co(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(G(91));return De({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ld(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(G(92));if(Ns(n)){if(1<n.length)throw Error(G(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ua(n)}}function Q_(e,t){var n=Ua(t.value),s=Ua(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Dd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function G_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?G_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Nr,Y_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Nr=Nr||document.createElement("div"),Nr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Es={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kf=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){Kf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function Z_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function J_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,r=Z_(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,r):e[n]=r}}var Qf=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _o(e,t){if(t){if(Qf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(G(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(G(61))}if(t.style!=null&&typeof t.style!="object")throw Error(G(62))}}function po(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mo=null;function jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ho=null,In=null,On=null;function Pd(e){if(e=fr(e)){if(typeof ho!="function")throw Error(G(280));var t=e.stateNode;t&&(t=Bi(t),ho(e.stateNode,e.type,t))}}function X_(e){In?On?On.push(e):On=[e]:In=e}function ep(){if(In){var e=In,t=On;if(On=In=null,Pd(e),t)for(e=0;e<t.length;e++)Pd(t[e])}}function tp(e,t){return e(t)}function ap(){}var hl=!1;function np(e,t,n){if(hl)return e(t,n);hl=!0;try{return tp(e,t,n)}finally{hl=!1,(In!==null||On!==null)&&(ap(),ep())}}function Hs(e,t){var n=e.stateNode;if(n===null)return null;var s=Bi(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(G(231,t,typeof n));return n}var fo=!1;if(ha)try{var _s={};Object.defineProperty(_s,"passive",{get:function(){fo=!0}}),window.addEventListener("test",_s,_s),window.removeEventListener("test",_s,_s)}catch{fo=!1}function Gf(e,t,n,s,r,i,l,o,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var Ms=!1,ci=null,di=!1,go=null,Yf={onError:function(e){Ms=!0,ci=e}};function Zf(e,t,n,s,r,i,l,o,c){Ms=!1,ci=null,Gf.apply(Yf,arguments)}function Jf(e,t,n,s,r,i,l,o,c){if(Zf.apply(this,arguments),Ms){if(Ms){var u=ci;Ms=!1,ci=null}else throw Error(G(198));di||(di=!0,go=u)}}function vn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $d(e){if(vn(e)!==e)throw Error(G(188))}function Xf(e){var t=e.alternate;if(!t){if(t=vn(e),t===null)throw Error(G(188));return t!==e?null:e}for(var n=e,s=t;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(s=r.return,s!==null){n=s;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return $d(r),e;if(i===s)return $d(r),t;i=i.sibling}throw Error(G(188))}if(n.return!==s.return)n=r,s=i;else{for(var l=!1,o=r.child;o;){if(o===n){l=!0,n=r,s=i;break}if(o===s){l=!0,s=r,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,s=r;break}if(o===s){l=!0,s=i,n=r;break}o=o.sibling}if(!l)throw Error(G(189))}}if(n.alternate!==s)throw Error(G(190))}if(n.tag!==3)throw Error(G(188));return n.stateNode.current===n?e:t}function rp(e){return e=Xf(e),e!==null?ip(e):null}function ip(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ip(e);if(t!==null)return t;e=e.sibling}return null}var lp=Nt.unstable_scheduleCallback,Fd=Nt.unstable_cancelCallback,e1=Nt.unstable_shouldYield,t1=Nt.unstable_requestPaint,Fe=Nt.unstable_now,a1=Nt.unstable_getCurrentPriorityLevel,wc=Nt.unstable_ImmediatePriority,op=Nt.unstable_UserBlockingPriority,ui=Nt.unstable_NormalPriority,n1=Nt.unstable_LowPriority,cp=Nt.unstable_IdlePriority,Fi=null,ea=null;function s1(e){if(ea&&typeof ea.onCommitFiberRoot=="function")try{ea.onCommitFiberRoot(Fi,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:l1,r1=Math.log,i1=Math.LN2;function l1(e){return e>>>=0,e===0?32:31-(r1(e)/i1|0)|0}var Sr=64,Cr=4194304;function Ss(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _i(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,r=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var o=l&~r;o!==0?s=Ss(o):(i&=l,i!==0&&(s=Ss(i)))}else l=n&~r,l!==0?s=Ss(l):i!==0&&(s=Ss(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&r)&&(r=s&-s,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Kt(t),r=1<<n,s|=e[n],t&=~r;return s}function o1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function c1(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Kt(i),o=1<<l,c=r[l];c===-1?(!(o&n)||o&s)&&(r[l]=o1(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}}function vo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dp(){var e=Sr;return Sr<<=1,!(Sr&4194240)&&(Sr=64),e}function fl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function d1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-Kt(n),i=1<<r;t[r]=0,s[r]=-1,e[r]=-1,n&=~i}}function kc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Kt(n),r=1<<s;r&t|e[s]&t&&(e[s]|=t),n&=~r}}var Ne=0;function up(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _p,Nc,pp,mp,hp,bo=!1,qr=[],Da=null,Pa=null,$a=null,Us=new Map,Vs=new Map,Ma=[],u1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rd(e,t){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":$a=null;break;case"pointerover":case"pointerout":Us.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(t.pointerId)}}function ps(e,t,n,s,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[r]},t!==null&&(t=fr(t),t!==null&&Nc(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function _1(e,t,n,s,r){switch(t){case"focusin":return Da=ps(Da,e,t,n,s,r),!0;case"dragenter":return Pa=ps(Pa,e,t,n,s,r),!0;case"mouseover":return $a=ps($a,e,t,n,s,r),!0;case"pointerover":var i=r.pointerId;return Us.set(i,ps(Us.get(i)||null,e,t,n,s,r)),!0;case"gotpointercapture":return i=r.pointerId,Vs.set(i,ps(Vs.get(i)||null,e,t,n,s,r)),!0}return!1}function fp(e){var t=nn(e.target);if(t!==null){var n=vn(t);if(n!==null){if(t=n.tag,t===13){if(t=sp(n),t!==null){e.blockedOn=t,hp(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);mo=s,n.target.dispatchEvent(s),mo=null}else return t=fr(n),t!==null&&Nc(t),e.blockedOn=n,!1;t.shift()}return!0}function Id(e,t,n){Gr(e)&&n.delete(t)}function p1(){bo=!1,Da!==null&&Gr(Da)&&(Da=null),Pa!==null&&Gr(Pa)&&(Pa=null),$a!==null&&Gr($a)&&($a=null),Us.forEach(Id),Vs.forEach(Id)}function ms(e,t){e.blockedOn===t&&(e.blockedOn=null,bo||(bo=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,p1)))}function Ws(e){function t(r){return ms(r,e)}if(0<qr.length){ms(qr[0],e);for(var n=1;n<qr.length;n++){var s=qr[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Da!==null&&ms(Da,e),Pa!==null&&ms(Pa,e),$a!==null&&ms($a,e),Us.forEach(t),Vs.forEach(t),n=0;n<Ma.length;n++)s=Ma[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Ma.length&&(n=Ma[0],n.blockedOn===null);)fp(n),n.blockedOn===null&&Ma.shift()}var Bn=xa.ReactCurrentBatchConfig,pi=!0;function m1(e,t,n,s){var r=Ne,i=Bn.transition;Bn.transition=null;try{Ne=1,Sc(e,t,n,s)}finally{Ne=r,Bn.transition=i}}function h1(e,t,n,s){var r=Ne,i=Bn.transition;Bn.transition=null;try{Ne=4,Sc(e,t,n,s)}finally{Ne=r,Bn.transition=i}}function Sc(e,t,n,s){if(pi){var r=xo(e,t,n,s);if(r===null)Sl(e,t,s,mi,n),Rd(e,s);else if(_1(r,e,t,n,s))s.stopPropagation();else if(Rd(e,s),t&4&&-1<u1.indexOf(e)){for(;r!==null;){var i=fr(r);if(i!==null&&_p(i),i=xo(e,t,n,s),i===null&&Sl(e,t,s,mi,n),i===r)break;r=i}r!==null&&s.stopPropagation()}else Sl(e,t,s,null,n)}}var mi=null;function xo(e,t,n,s){if(mi=null,e=jc(s),e=nn(e),e!==null)if(t=vn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mi=e,null}function gp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(a1()){case wc:return 1;case op:return 4;case ui:case n1:return 16;case cp:return 536870912;default:return 16}default:return 16}}var Ta=null,Cc=null,Yr=null;function vp(){if(Yr)return Yr;var e,t=Cc,n=t.length,s,r="value"in Ta?Ta.value:Ta.textContent,i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var l=n-e;for(s=1;s<=l&&t[n-s]===r[i-s];s++);return Yr=r.slice(e,1<s?1-s:void 0)}function Zr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Er(){return!0}function Od(){return!1}function qt(e){function t(n,s,r,i,l){this._reactName=n,this._targetInst=r,this.type=s,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Er:Od,this.isPropagationStopped=Od,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Er)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Er)},persist:function(){},isPersistent:Er}),t}var rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qc=qt(rs),hr=De({},rs,{view:0,detail:0}),f1=qt(hr),gl,vl,hs,Ri=De({},hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hs&&(hs&&e.type==="mousemove"?(gl=e.screenX-hs.screenX,vl=e.screenY-hs.screenY):vl=gl=0,hs=e),gl)},movementY:function(e){return"movementY"in e?e.movementY:vl}}),Bd=qt(Ri),g1=De({},Ri,{dataTransfer:0}),v1=qt(g1),b1=De({},hr,{relatedTarget:0}),bl=qt(b1),x1=De({},rs,{animationName:0,elapsedTime:0,pseudoElement:0}),y1=qt(x1),j1=De({},rs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w1=qt(j1),k1=De({},rs,{data:0}),Hd=qt(k1),N1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},C1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C1[e])?!!t[e]:!1}function Ec(){return q1}var E1=De({},hr,{key:function(e){if(e.key){var t=N1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?Zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M1=qt(E1),z1=De({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=qt(z1),T1=De({},hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),A1=qt(T1),L1=De({},rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),D1=qt(L1),P1=De({},Ri,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$1=qt(P1),F1=[9,13,27,32],Mc=ha&&"CompositionEvent"in window,zs=null;ha&&"documentMode"in document&&(zs=document.documentMode);var R1=ha&&"TextEvent"in window&&!zs,bp=ha&&(!Mc||zs&&8<zs&&11>=zs),Vd=" ",Wd=!1;function xp(e,t){switch(e){case"keyup":return F1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function I1(e,t){switch(e){case"compositionend":return yp(t);case"keypress":return t.which!==32?null:(Wd=!0,Vd);case"textInput":return e=t.data,e===Vd&&Wd?null:e;default:return null}}function O1(e,t){if(qn)return e==="compositionend"||!Mc&&xp(e,t)?(e=vp(),Yr=Cc=Ta=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bp&&t.locale!=="ko"?null:t.data;default:return null}}var B1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B1[e.type]:t==="textarea"}function jp(e,t,n,s){X_(s),t=hi(t,"onChange"),0<t.length&&(n=new qc("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Ts=null,Ks=null;function H1(e){Ap(e,0)}function Ii(e){var t=zn(e);if(W_(t))return e}function U1(e,t){if(e==="change")return t}var wp=!1;if(ha){var xl;if(ha){var yl="oninput"in document;if(!yl){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),yl=typeof Qd.oninput=="function"}xl=yl}else xl=!1;wp=xl&&(!document.documentMode||9<document.documentMode)}function Gd(){Ts&&(Ts.detachEvent("onpropertychange",kp),Ks=Ts=null)}function kp(e){if(e.propertyName==="value"&&Ii(Ks)){var t=[];jp(t,Ks,e,jc(e)),np(H1,t)}}function V1(e,t,n){e==="focusin"?(Gd(),Ts=t,Ks=n,Ts.attachEvent("onpropertychange",kp)):e==="focusout"&&Gd()}function W1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ii(Ks)}function K1(e,t){if(e==="click")return Ii(t)}function Q1(e,t){if(e==="input"||e==="change")return Ii(t)}function G1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:G1;function Qs(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var r=n[s];if(!to.call(t,r)||!Gt(e[r],t[r]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Yd(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yd(n)}}function Np(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Np(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sp(){for(var e=window,t=oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oi(e.document)}return t}function zc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Y1(e){var t=Sp(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Np(n.ownerDocument.documentElement,n)){if(s!==null&&zc(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(s.start,r);s=s.end===void 0?i:Math.min(s.end,r),!e.extend&&i>s&&(r=s,s=i,i=r),r=Zd(n,i);var l=Zd(n,s);r&&l&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Z1=ha&&"documentMode"in document&&11>=document.documentMode,En=null,yo=null,As=null,jo=!1;function Jd(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jo||En==null||En!==oi(s)||(s=En,"selectionStart"in s&&zc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),As&&Qs(As,s)||(As=s,s=hi(yo,"onSelect"),0<s.length&&(t=new qc("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=En)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mn={animationend:Mr("Animation","AnimationEnd"),animationiteration:Mr("Animation","AnimationIteration"),animationstart:Mr("Animation","AnimationStart"),transitionend:Mr("Transition","TransitionEnd")},jl={},Cp={};ha&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete Mn.animationend.animation,delete Mn.animationiteration.animation,delete Mn.animationstart.animation),"TransitionEvent"in window||delete Mn.transitionend.transition);function Oi(e){if(jl[e])return jl[e];if(!Mn[e])return e;var t=Mn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cp)return jl[e]=t[n];return e}var qp=Oi("animationend"),Ep=Oi("animationiteration"),Mp=Oi("animationstart"),zp=Oi("transitionend"),Tp=new Map,Xd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qa(e,t){Tp.set(e,t),gn(t,[e])}for(var wl=0;wl<Xd.length;wl++){var kl=Xd[wl],J1=kl.toLowerCase(),X1=kl[0].toUpperCase()+kl.slice(1);Qa(J1,"on"+X1)}Qa(qp,"onAnimationEnd");Qa(Ep,"onAnimationIteration");Qa(Mp,"onAnimationStart");Qa("dblclick","onDoubleClick");Qa("focusin","onFocus");Qa("focusout","onBlur");Qa(zp,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cs));function eu(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Jf(s,t,void 0,e),e.currentTarget=null}function Ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],r=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var l=s.length-1;0<=l;l--){var o=s[l],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==i&&r.isPropagationStopped())break e;eu(r,o,u),i=c}else for(l=0;l<s.length;l++){if(o=s[l],c=o.instance,u=o.currentTarget,o=o.listener,c!==i&&r.isPropagationStopped())break e;eu(r,o,u),i=c}}}if(di)throw e=go,di=!1,go=null,e}function Ee(e,t){var n=t[Co];n===void 0&&(n=t[Co]=new Set);var s=e+"__bubble";n.has(s)||(Lp(t,e,2,!1),n.add(s))}function Nl(e,t,n){var s=0;t&&(s|=4),Lp(n,e,s,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Gs(e){if(!e[zr]){e[zr]=!0,O_.forEach(function(n){n!=="selectionchange"&&(e0.has(n)||Nl(n,!1,e),Nl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,Nl("selectionchange",!1,t))}}function Lp(e,t,n,s){switch(gp(t)){case 1:var r=m1;break;case 4:r=h1;break;default:r=Sc}n=r.bind(null,t,n,e),r=void 0,!fo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),s?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Sl(e,t,n,s,r){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var l=s.tag;if(l===3||l===4){var o=s.stateNode.containerInfo;if(o===r||o.nodeType===8&&o.parentNode===r)break;if(l===4)for(l=s.return;l!==null;){var c=l.tag;if((c===3||c===4)&&(c=l.stateNode.containerInfo,c===r||c.nodeType===8&&c.parentNode===r))return;l=l.return}for(;o!==null;){if(l=nn(o),l===null)return;if(c=l.tag,c===5||c===6){s=i=l;continue e}o=o.parentNode}}s=s.return}np(function(){var u=i,m=jc(n),h=[];e:{var p=Tp.get(e);if(p!==void 0){var g=qc,y=e;switch(e){case"keypress":if(Zr(n)===0)break e;case"keydown":case"keyup":g=M1;break;case"focusin":y="focus",g=bl;break;case"focusout":y="blur",g=bl;break;case"beforeblur":case"afterblur":g=bl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=v1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=A1;break;case qp:case Ep:case Mp:g=y1;break;case zp:g=D1;break;case"scroll":g=f1;break;case"wheel":g=$1;break;case"copy":case"cut":case"paste":g=w1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ud}var k=(t&4)!==0,C=!k&&e==="scroll",f=k?p!==null?p+"Capture":null:p;k=[];for(var v=u,b;v!==null;){b=v;var x=b.stateNode;if(b.tag===5&&x!==null&&(b=x,f!==null&&(x=Hs(v,f),x!=null&&k.push(Ys(v,x,b)))),C)break;v=v.return}0<k.length&&(p=new g(p,y,null,n,m),h.push({event:p,listeners:k}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==mo&&(y=n.relatedTarget||n.fromElement)&&(nn(y)||y[fa]))break e;if((g||p)&&(p=m.window===m?m:(p=m.ownerDocument)?p.defaultView||p.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?nn(y):null,y!==null&&(C=vn(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(k=Bd,x="onMouseLeave",f="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(k=Ud,x="onPointerLeave",f="onPointerEnter",v="pointer"),C=g==null?p:zn(g),b=y==null?p:zn(y),p=new k(x,v+"leave",g,n,m),p.target=C,p.relatedTarget=b,x=null,nn(m)===u&&(k=new k(f,v+"enter",y,n,m),k.target=b,k.relatedTarget=C,x=k),C=x,g&&y)t:{for(k=g,f=y,v=0,b=k;b;b=yn(b))v++;for(b=0,x=f;x;x=yn(x))b++;for(;0<v-b;)k=yn(k),v--;for(;0<b-v;)f=yn(f),b--;for(;v--;){if(k===f||f!==null&&k===f.alternate)break t;k=yn(k),f=yn(f)}k=null}else k=null;g!==null&&tu(h,p,g,k,!1),y!==null&&C!==null&&tu(h,C,y,k,!0)}}e:{if(p=u?zn(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var w=U1;else if(Kd(p))if(wp)w=Q1;else{w=W1;var S=V1}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=K1);if(w&&(w=w(e,u))){jp(h,w,n,m);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&oo(p,"number",p.value)}switch(S=u?zn(u):window,e){case"focusin":(Kd(S)||S.contentEditable==="true")&&(En=S,yo=u,As=null);break;case"focusout":As=yo=En=null;break;case"mousedown":jo=!0;break;case"contextmenu":case"mouseup":case"dragend":jo=!1,Jd(h,n,m);break;case"selectionchange":if(Z1)break;case"keydown":case"keyup":Jd(h,n,m)}var A;if(Mc)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else qn?xp(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(bp&&n.locale!=="ko"&&(qn||I!=="onCompositionStart"?I==="onCompositionEnd"&&qn&&(A=vp()):(Ta=m,Cc="value"in Ta?Ta.value:Ta.textContent,qn=!0)),S=hi(u,I),0<S.length&&(I=new Hd(I,e,null,n,m),h.push({event:I,listeners:S}),A?I.data=A:(A=yp(n),A!==null&&(I.data=A)))),(A=R1?I1(e,n):O1(e,n))&&(u=hi(u,"onBeforeInput"),0<u.length&&(m=new Hd("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:u}),m.data=A))}Ap(h,t)})}function Ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hi(e,t){for(var n=t+"Capture",s=[];e!==null;){var r=e,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Hs(e,n),i!=null&&s.unshift(Ys(e,i,r)),i=Hs(e,t),i!=null&&s.push(Ys(e,i,r))),e=e.return}return s}function yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tu(e,t,n,s,r){for(var i=t._reactName,l=[];n!==null&&n!==s;){var o=n,c=o.alternate,u=o.stateNode;if(c!==null&&c===s)break;o.tag===5&&u!==null&&(o=u,r?(c=Hs(n,i),c!=null&&l.unshift(Ys(n,c,o))):r||(c=Hs(n,i),c!=null&&l.push(Ys(n,c,o)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var t0=/\r\n?/g,a0=/\u0000|\uFFFD/g;function au(e){return(typeof e=="string"?e:""+e).replace(t0,`
38
+ `).replace(a0,"")}function Tr(e,t,n){if(t=au(t),au(e)!==t&&n)throw Error(G(425))}function fi(){}var wo=null,ko=null;function No(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var So=typeof setTimeout=="function"?setTimeout:void 0,n0=typeof clearTimeout=="function"?clearTimeout:void 0,nu=typeof Promise=="function"?Promise:void 0,s0=typeof queueMicrotask=="function"?queueMicrotask:typeof nu<"u"?function(e){return nu.resolve(null).then(e).catch(r0)}:So;function r0(e){setTimeout(function(){throw e})}function Cl(e,t){var n=t,s=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(s===0){e.removeChild(r),Ws(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=r}while(n);Ws(t)}function Fa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function su(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var is=Math.random().toString(36).slice(2),Xt="__reactFiber$"+is,Zs="__reactProps$"+is,fa="__reactContainer$"+is,Co="__reactEvents$"+is,i0="__reactListeners$"+is,l0="__reactHandles$"+is;function nn(e){var t=e[Xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[Xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=su(e);e!==null;){if(n=e[Xt])return n;e=su(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[Xt]||e[fa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(G(33))}function Bi(e){return e[Zs]||null}var qo=[],Tn=-1;function Ga(e){return{current:e}}function Me(e){0>Tn||(e.current=qo[Tn],qo[Tn]=null,Tn--)}function qe(e,t){Tn++,qo[Tn]=e.current,e.current=t}var Va={},st=Ga(Va),ft=Ga(!1),un=Va;function Gn(e,t){var n=e.type.contextTypes;if(!n)return Va;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function gt(e){return e=e.childContextTypes,e!=null}function gi(){Me(ft),Me(st)}function ru(e,t,n){if(st.current!==Va)throw Error(G(168));qe(st,t),qe(ft,n)}function Dp(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var r in s)if(!(r in t))throw Error(G(108,Vf(e)||"Unknown",r));return De({},n,s)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Va,un=st.current,qe(st,e),qe(ft,ft.current),!0}function iu(e,t,n){var s=e.stateNode;if(!s)throw Error(G(169));n?(e=Dp(e,t,un),s.__reactInternalMemoizedMergedChildContext=e,Me(ft),Me(st),qe(st,e)):Me(ft),qe(ft,n)}var ia=null,Hi=!1,ql=!1;function Pp(e){ia===null?ia=[e]:ia.push(e)}function o0(e){Hi=!0,Pp(e)}function Ya(){if(!ql&&ia!==null){ql=!0;var e=0,t=Ne;try{var n=ia;for(Ne=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}ia=null,Hi=!1}catch(r){throw ia!==null&&(ia=ia.slice(e+1)),lp(wc,Ya),r}finally{Ne=t,ql=!1}}return null}var An=[],Ln=0,bi=null,xi=0,Tt=[],At=0,_n=null,oa=1,ca="";function tn(e,t){An[Ln++]=xi,An[Ln++]=bi,bi=e,xi=t}function $p(e,t,n){Tt[At++]=oa,Tt[At++]=ca,Tt[At++]=_n,_n=e;var s=oa;e=ca;var r=32-Kt(s)-1;s&=~(1<<r),n+=1;var i=32-Kt(t)+r;if(30<i){var l=r-r%5;i=(s&(1<<l)-1).toString(32),s>>=l,r-=l,oa=1<<32-Kt(t)+r|n<<r|s,ca=i+e}else oa=1<<i|n<<r|s,ca=e}function Tc(e){e.return!==null&&(tn(e,1),$p(e,1,0))}function Ac(e){for(;e===bi;)bi=An[--Ln],An[Ln]=null,xi=An[--Ln],An[Ln]=null;for(;e===_n;)_n=Tt[--At],Tt[At]=null,ca=Tt[--At],Tt[At]=null,oa=Tt[--At],Tt[At]=null}var kt=null,wt=null,ze=!1,Vt=null;function Fp(e,t){var n=Dt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function lu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kt=e,wt=Fa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=_n!==null?{id:oa,overflow:ca}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Dt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,kt=e,wt=null,!0):!1;default:return!1}}function Eo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mo(e){if(ze){var t=wt;if(t){var n=t;if(!lu(e,t)){if(Eo(e))throw Error(G(418));t=Fa(n.nextSibling);var s=kt;t&&lu(e,t)?Fp(s,n):(e.flags=e.flags&-4097|2,ze=!1,kt=e)}}else{if(Eo(e))throw Error(G(418));e.flags=e.flags&-4097|2,ze=!1,kt=e}}}function ou(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kt=e}function Ar(e){if(e!==kt)return!1;if(!ze)return ou(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!No(e.type,e.memoizedProps)),t&&(t=wt)){if(Eo(e))throw Rp(),Error(G(418));for(;t;)Fp(e,t),t=Fa(t.nextSibling)}if(ou(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(G(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=Fa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=kt?Fa(e.stateNode.nextSibling):null;return!0}function Rp(){for(var e=wt;e;)e=Fa(e.nextSibling)}function Yn(){wt=kt=null,ze=!1}function Lc(e){Vt===null?Vt=[e]:Vt.push(e)}var c0=xa.ReactCurrentBatchConfig;function fs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(G(309));var s=n.stateNode}if(!s)throw Error(G(147,e));var r=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var o=r.refs;l===null?delete o[i]:o[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(G(284));if(!n._owner)throw Error(G(290,e))}return e}function Lr(e,t){throw e=Object.prototype.toString.call(t),Error(G(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cu(e){var t=e._init;return t(e._payload)}function Ip(e){function t(f,v){if(e){var b=f.deletions;b===null?(f.deletions=[v],f.flags|=16):b.push(v)}}function n(f,v){if(!e)return null;for(;v!==null;)t(f,v),v=v.sibling;return null}function s(f,v){for(f=new Map;v!==null;)v.key!==null?f.set(v.key,v):f.set(v.index,v),v=v.sibling;return f}function r(f,v){return f=Ba(f,v),f.index=0,f.sibling=null,f}function i(f,v,b){return f.index=b,e?(b=f.alternate,b!==null?(b=b.index,b<v?(f.flags|=2,v):b):(f.flags|=2,v)):(f.flags|=1048576,v)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function o(f,v,b,x){return v===null||v.tag!==6?(v=Dl(b,f.mode,x),v.return=f,v):(v=r(v,b),v.return=f,v)}function c(f,v,b,x){var w=b.type;return w===Cn?m(f,v,b.props.children,x,b.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===qa&&cu(w)===v.type)?(x=r(v,b.props),x.ref=fs(f,v,b),x.return=f,x):(x=si(b.type,b.key,b.props,null,f.mode,x),x.ref=fs(f,v,b),x.return=f,x)}function u(f,v,b,x){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=Pl(b,f.mode,x),v.return=f,v):(v=r(v,b.children||[]),v.return=f,v)}function m(f,v,b,x,w){return v===null||v.tag!==7?(v=cn(b,f.mode,x,w),v.return=f,v):(v=r(v,b),v.return=f,v)}function h(f,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Dl(""+v,f.mode,b),v.return=f,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case wr:return b=si(v.type,v.key,v.props,null,f.mode,b),b.ref=fs(f,null,v),b.return=f,b;case Sn:return v=Pl(v,f.mode,b),v.return=f,v;case qa:var x=v._init;return h(f,x(v._payload),b)}if(Ns(v)||us(v))return v=cn(v,f.mode,b,null),v.return=f,v;Lr(f,v)}return null}function p(f,v,b,x){var w=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:o(f,v,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case wr:return b.key===w?c(f,v,b,x):null;case Sn:return b.key===w?u(f,v,b,x):null;case qa:return w=b._init,p(f,v,w(b._payload),x)}if(Ns(b)||us(b))return w!==null?null:m(f,v,b,x,null);Lr(f,b)}return null}function g(f,v,b,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return f=f.get(b)||null,o(v,f,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case wr:return f=f.get(x.key===null?b:x.key)||null,c(v,f,x,w);case Sn:return f=f.get(x.key===null?b:x.key)||null,u(v,f,x,w);case qa:var S=x._init;return g(f,v,b,S(x._payload),w)}if(Ns(x)||us(x))return f=f.get(b)||null,m(v,f,x,w,null);Lr(v,x)}return null}function y(f,v,b,x){for(var w=null,S=null,A=v,I=v=0,Q=null;A!==null&&I<b.length;I++){A.index>I?(Q=A,A=null):Q=A.sibling;var z=p(f,A,b[I],x);if(z===null){A===null&&(A=Q);break}e&&A&&z.alternate===null&&t(f,A),v=i(z,v,I),S===null?w=z:S.sibling=z,S=z,A=Q}if(I===b.length)return n(f,A),ze&&tn(f,I),w;if(A===null){for(;I<b.length;I++)A=h(f,b[I],x),A!==null&&(v=i(A,v,I),S===null?w=A:S.sibling=A,S=A);return ze&&tn(f,I),w}for(A=s(f,A);I<b.length;I++)Q=g(A,f,I,b[I],x),Q!==null&&(e&&Q.alternate!==null&&A.delete(Q.key===null?I:Q.key),v=i(Q,v,I),S===null?w=Q:S.sibling=Q,S=Q);return e&&A.forEach(function(ae){return t(f,ae)}),ze&&tn(f,I),w}function k(f,v,b,x){var w=us(b);if(typeof w!="function")throw Error(G(150));if(b=w.call(b),b==null)throw Error(G(151));for(var S=w=null,A=v,I=v=0,Q=null,z=b.next();A!==null&&!z.done;I++,z=b.next()){A.index>I?(Q=A,A=null):Q=A.sibling;var ae=p(f,A,z.value,x);if(ae===null){A===null&&(A=Q);break}e&&A&&ae.alternate===null&&t(f,A),v=i(ae,v,I),S===null?w=ae:S.sibling=ae,S=ae,A=Q}if(z.done)return n(f,A),ze&&tn(f,I),w;if(A===null){for(;!z.done;I++,z=b.next())z=h(f,z.value,x),z!==null&&(v=i(z,v,I),S===null?w=z:S.sibling=z,S=z);return ze&&tn(f,I),w}for(A=s(f,A);!z.done;I++,z=b.next())z=g(A,f,I,z.value,x),z!==null&&(e&&z.alternate!==null&&A.delete(z.key===null?I:z.key),v=i(z,v,I),S===null?w=z:S.sibling=z,S=z);return e&&A.forEach(function(ce){return t(f,ce)}),ze&&tn(f,I),w}function C(f,v,b,x){if(typeof b=="object"&&b!==null&&b.type===Cn&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case wr:e:{for(var w=b.key,S=v;S!==null;){if(S.key===w){if(w=b.type,w===Cn){if(S.tag===7){n(f,S.sibling),v=r(S,b.props.children),v.return=f,f=v;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===qa&&cu(w)===S.type){n(f,S.sibling),v=r(S,b.props),v.ref=fs(f,S,b),v.return=f,f=v;break e}n(f,S);break}else t(f,S);S=S.sibling}b.type===Cn?(v=cn(b.props.children,f.mode,x,b.key),v.return=f,f=v):(x=si(b.type,b.key,b.props,null,f.mode,x),x.ref=fs(f,v,b),x.return=f,f=x)}return l(f);case Sn:e:{for(S=b.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(f,v.sibling),v=r(v,b.children||[]),v.return=f,f=v;break e}else{n(f,v);break}else t(f,v);v=v.sibling}v=Pl(b,f.mode,x),v.return=f,f=v}return l(f);case qa:return S=b._init,C(f,v,S(b._payload),x)}if(Ns(b))return y(f,v,b,x);if(us(b))return k(f,v,b,x);Lr(f,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(f,v.sibling),v=r(v,b),v.return=f,f=v):(n(f,v),v=Dl(b,f.mode,x),v.return=f,f=v),l(f)):n(f,v)}return C}var Zn=Ip(!0),Op=Ip(!1),yi=Ga(null),ji=null,Dn=null,Dc=null;function Pc(){Dc=Dn=ji=null}function $c(e){var t=yi.current;Me(yi),e._currentValue=t}function zo(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){ji=e,Dc=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(Dc!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ji===null)throw Error(G(308));Dn=e,ji.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var sn=null;function Fc(e){sn===null?sn=[e]:sn.push(e)}function Bp(e,t,n,s){var r=t.interleaved;return r===null?(n.next=n,Fc(t)):(n.next=r.next,r.next=n),t.interleaved=n,ga(e,s)}function ga(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ea=!1;function Rc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _a(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,ye&2){var r=s.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),s.pending=t,ga(e,n)}return r=s.interleaved,r===null?(t.next=t,Fc(s)):(t.next=r.next,r.next=t),s.interleaved=t,ga(e,n)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,kc(e,n)}}function du(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wi(e,t,n,s){var r=e.updateQueue;Ea=!1;var i=r.firstBaseUpdate,l=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var c=o,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var m=e.alternate;m!==null&&(m=m.updateQueue,o=m.lastBaseUpdate,o!==l&&(o===null?m.firstBaseUpdate=u:o.next=u,m.lastBaseUpdate=c))}if(i!==null){var h=r.baseState;l=0,m=u=c=null,o=i;do{var p=o.lane,g=o.eventTime;if((s&p)===p){m!==null&&(m=m.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,k=o;switch(p=t,g=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){h=y.call(g,h,p);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,p=typeof y=="function"?y.call(g,h,p):y,p==null)break e;h=De({},h,p);break e;case 2:Ea=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=r.effects,p===null?r.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(u=m=g,c=h):m=m.next=g,l|=p;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;p=o,o=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);if(m===null&&(c=h),r.baseState=c,r.firstBaseUpdate=u,r.lastBaseUpdate=m,t=r.shared.interleaved,t!==null){r=t;do l|=r.lane,r=r.next;while(r!==t)}else i===null&&(r.shared.lanes=0);mn|=l,e.lanes=l,e.memoizedState=h}}function uu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],r=s.callback;if(r!==null){if(s.callback=null,s=n,typeof r!="function")throw Error(G(191,r));r.call(s)}}}var gr={},ta=Ga(gr),Js=Ga(gr),Xs=Ga(gr);function rn(e){if(e===gr)throw Error(G(174));return e}function Ic(e,t){switch(qe(Xs,t),qe(Js,e),qe(ta,gr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uo(t,e)}Me(ta),qe(ta,t)}function Jn(){Me(ta),Me(Js),Me(Xs)}function Up(e){rn(Xs.current);var t=rn(ta.current),n=uo(t,e.type);t!==n&&(qe(Js,e),qe(ta,n))}function Oc(e){Js.current===e&&(Me(ta),Me(Js))}var Te=Ga(0);function ki(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var El=[];function Bc(){for(var e=0;e<El.length;e++)El[e]._workInProgressVersionPrimary=null;El.length=0}var Xr=xa.ReactCurrentDispatcher,Ml=xa.ReactCurrentBatchConfig,pn=0,Le=null,Ue=null,Qe=null,Ni=!1,Ls=!1,er=0,d0=0;function et(){throw Error(G(321))}function Hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Uc(e,t,n,s,r,i){if(pn=i,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xr.current=e===null||e.memoizedState===null?m0:h0,e=n(s,r),Ls){i=0;do{if(Ls=!1,er=0,25<=i)throw Error(G(301));i+=1,Qe=Ue=null,t.updateQueue=null,Xr.current=f0,e=n(s,r)}while(Ls)}if(Xr.current=Si,t=Ue!==null&&Ue.next!==null,pn=0,Qe=Ue=Le=null,Ni=!1,t)throw Error(G(300));return e}function Vc(){var e=er!==0;return er=0,e}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Le.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Rt(){if(Ue===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Qe===null?Le.memoizedState:Qe.next;if(t!==null)Qe=t,Ue=e;else{if(e===null)throw Error(G(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Qe===null?Le.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function tr(e,t){return typeof t=="function"?t(e):t}function zl(e){var t=Rt(),n=t.queue;if(n===null)throw Error(G(311));n.lastRenderedReducer=e;var s=Ue,r=s.baseQueue,i=n.pending;if(i!==null){if(r!==null){var l=r.next;r.next=i.next,i.next=l}s.baseQueue=r=i,n.pending=null}if(r!==null){i=r.next,s=s.baseState;var o=l=null,c=null,u=i;do{var m=u.lane;if((pn&m)===m)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var h={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(o=c=h,l=s):c=c.next=h,Le.lanes|=m,mn|=m}u=u.next}while(u!==null&&u!==i);c===null?l=s:c.next=o,Gt(s,t.memoizedState)||(ht=!0),t.memoizedState=s,t.baseState=l,t.baseQueue=c,n.lastRenderedState=s}if(e=n.interleaved,e!==null){r=e;do i=r.lane,Le.lanes|=i,mn|=i,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Tl(e){var t=Rt(),n=t.queue;if(n===null)throw Error(G(311));n.lastRenderedReducer=e;var s=n.dispatch,r=n.pending,i=t.memoizedState;if(r!==null){n.pending=null;var l=r=r.next;do i=e(i,l.action),l=l.next;while(l!==r);Gt(i,t.memoizedState)||(ht=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function Vp(){}function Wp(e,t){var n=Le,s=Rt(),r=t(),i=!Gt(s.memoizedState,r);if(i&&(s.memoizedState=r,ht=!0),s=s.queue,Wc(Gp.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||Qe!==null&&Qe.memoizedState.tag&1){if(n.flags|=2048,ar(9,Qp.bind(null,n,s,r,t),void 0,null),Ge===null)throw Error(G(349));pn&30||Kp(n,t,r)}return r}function Kp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qp(e,t,n,s){t.value=n,t.getSnapshot=s,Yp(t)&&Zp(e)}function Gp(e,t,n){return n(function(){Yp(t)&&Zp(e)})}function Yp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function Zp(e){var t=ga(e,1);t!==null&&Qt(t,e,1,-1)}function _u(e){var t=Jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:tr,lastRenderedState:e},t.queue=e,e=e.dispatch=p0.bind(null,Le,e),[t.memoizedState,e]}function ar(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Jp(){return Rt().memoizedState}function ei(e,t,n,s){var r=Jt();Le.flags|=e,r.memoizedState=ar(1|t,n,void 0,s===void 0?null:s)}function Ui(e,t,n,s){var r=Rt();s=s===void 0?null:s;var i=void 0;if(Ue!==null){var l=Ue.memoizedState;if(i=l.destroy,s!==null&&Hc(s,l.deps)){r.memoizedState=ar(t,n,i,s);return}}Le.flags|=e,r.memoizedState=ar(1|t,n,i,s)}function pu(e,t){return ei(8390656,8,e,t)}function Wc(e,t){return Ui(2048,8,e,t)}function Xp(e,t){return Ui(4,2,e,t)}function em(e,t){return Ui(4,4,e,t)}function tm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function am(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,tm.bind(null,t,e),n)}function Kc(){}function nm(e,t){var n=Rt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Hc(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function sm(e,t){var n=Rt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Hc(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function rm(e,t,n){return pn&21?(Gt(n,t)||(n=dp(),Le.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function u0(e,t){var n=Ne;Ne=n!==0&&4>n?n:4,e(!0);var s=Ml.transition;Ml.transition={};try{e(!1),t()}finally{Ne=n,Ml.transition=s}}function im(){return Rt().memoizedState}function _0(e,t,n){var s=Oa(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},lm(e))om(t,n);else if(n=Bp(e,t,n,s),n!==null){var r=ct();Qt(n,e,s,r),cm(n,t,s)}}function p0(e,t,n){var s=Oa(e),r={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(lm(e))om(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(r.hasEagerState=!0,r.eagerState=o,Gt(o,l)){var c=t.interleaved;c===null?(r.next=r,Fc(t)):(r.next=c.next,c.next=r),t.interleaved=r;return}}catch{}finally{}n=Bp(e,t,r,s),n!==null&&(r=ct(),Qt(n,e,s,r),cm(n,t,s))}}function lm(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function om(e,t){Ls=Ni=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cm(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,kc(e,n)}}var Si={readContext:Ft,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},m0={readContext:Ft,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:pu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ei(4194308,4,tm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return ei(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Jt();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=_0.bind(null,Le,e),[s.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:_u,useDebugValue:Kc,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=_u(!1),t=e[0];return e=u0.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Le,r=Jt();if(ze){if(n===void 0)throw Error(G(407));n=n()}else{if(n=t(),Ge===null)throw Error(G(349));pn&30||Kp(s,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,pu(Gp.bind(null,s,i,e),[e]),s.flags|=2048,ar(9,Qp.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Ge.identifierPrefix;if(ze){var n=ca,s=oa;n=(s&~(1<<32-Kt(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=d0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},h0={readContext:Ft,useCallback:nm,useContext:Ft,useEffect:Wc,useImperativeHandle:am,useInsertionEffect:Xp,useLayoutEffect:em,useMemo:sm,useReducer:zl,useRef:Jp,useState:function(){return zl(tr)},useDebugValue:Kc,useDeferredValue:function(e){var t=Rt();return rm(t,Ue.memoizedState,e)},useTransition:function(){var e=zl(tr)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Vp,useSyncExternalStore:Wp,useId:im,unstable_isNewReconciler:!1},f0={readContext:Ft,useCallback:nm,useContext:Ft,useEffect:Wc,useImperativeHandle:am,useInsertionEffect:Xp,useLayoutEffect:em,useMemo:sm,useReducer:Tl,useRef:Jp,useState:function(){return Tl(tr)},useDebugValue:Kc,useDeferredValue:function(e){var t=Rt();return Ue===null?t.memoizedState=e:rm(t,Ue.memoizedState,e)},useTransition:function(){var e=Tl(tr)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:Vp,useSyncExternalStore:Wp,useId:im,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=De({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function To(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:De({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return(e=e._reactInternals)?vn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ct(),r=Oa(e),i=_a(s,r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(Qt(t,e,r,s),Jr(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ct(),r=Oa(e),i=_a(s,r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(Qt(t,e,r,s),Jr(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ct(),s=Oa(e),r=_a(n,s);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,s),t!==null&&(Qt(t,e,s,n),Jr(t,e,s))}};function mu(e,t,n,s,r,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,l):t.prototype&&t.prototype.isPureReactComponent?!Qs(n,s)||!Qs(r,i):!0}function dm(e,t,n){var s=!1,r=Va,i=t.contextType;return typeof i=="object"&&i!==null?i=Ft(i):(r=gt(t)?un:st.current,s=t.contextTypes,i=(s=s!=null)?Gn(e,r):Va),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function hu(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function Ao(e,t,n,s){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},Rc(e);var i=t.contextType;typeof i=="object"&&i!==null?r.context=Ft(i):(i=gt(t)?un:st.current,r.context=Gn(e,i)),r.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(To(e,t,i,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Vi.enqueueReplaceState(r,r.state,null),wi(e,n,r,s),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function Xn(e,t){try{var n="",s=t;do n+=Uf(s),s=s.return;while(s);var r=n}catch(i){r=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:r,digest:null}}function Al(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Lo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var g0=typeof WeakMap=="function"?WeakMap:Map;function um(e,t,n){n=_a(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qi||(qi=!0,Uo=s),Lo(e,t)},n}function _m(e,t,n){n=_a(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var r=t.value;n.payload=function(){return s(r)},n.callback=function(){Lo(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Lo(e,t),typeof s!="function"&&(Ia===null?Ia=new Set([this]):Ia.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function fu(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new g0;var r=new Set;s.set(t,r)}else r=s.get(t),r===void 0&&(r=new Set,s.set(t,r));r.has(n)||(r.add(n),e=z0.bind(null,e,t,n),t.then(e,e))}function gu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vu(e,t,n,s,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_a(-1,1),t.tag=2,Ra(n,t,1))),n.lanes|=1),e)}var v0=xa.ReactCurrentOwner,ht=!1;function ot(e,t,n,s){t.child=e===null?Op(t,null,n,s):Zn(t,e.child,n,s)}function bu(e,t,n,s,r){n=n.render;var i=t.ref;return Hn(t,r),s=Uc(e,t,n,s,i,r),n=Vc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,va(e,t,r)):(ze&&n&&Tc(t),t.flags|=1,ot(e,t,s,r),t.child)}function xu(e,t,n,s,r){if(e===null){var i=n.type;return typeof i=="function"&&!td(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pm(e,t,i,s,r)):(e=si(n.type,null,s,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&r)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Qs,n(l,s)&&e.ref===t.ref)return va(e,t,r)}return t.flags|=1,e=Ba(i,s),e.ref=t.ref,e.return=t,t.child=e}function pm(e,t,n,s,r){if(e!==null){var i=e.memoizedProps;if(Qs(i,s)&&e.ref===t.ref)if(ht=!1,t.pendingProps=s=i,(e.lanes&r)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,va(e,t,r)}return Do(e,t,n,s,r)}function mm(e,t,n){var s=t.pendingProps,r=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe($n,jt),jt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,qe($n,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,qe($n,jt),jt|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,qe($n,jt),jt|=s;return ot(e,t,r,n),t.child}function hm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Do(e,t,n,s,r){var i=gt(n)?un:st.current;return i=Gn(t,i),Hn(t,r),n=Uc(e,t,n,s,i,r),s=Vc(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,va(e,t,r)):(ze&&s&&Tc(t),t.flags|=1,ot(e,t,n,r),t.child)}function yu(e,t,n,s,r){if(gt(n)){var i=!0;vi(t)}else i=!1;if(Hn(t,r),t.stateNode===null)ti(e,t),dm(t,n,s),Ao(t,n,s,r),s=!0;else if(e===null){var l=t.stateNode,o=t.memoizedProps;l.props=o;var c=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ft(u):(u=gt(n)?un:st.current,u=Gn(t,u));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==s||c!==u)&&hu(t,l,s,u),Ea=!1;var p=t.memoizedState;l.state=p,wi(t,s,l,r),c=t.memoizedState,o!==s||p!==c||ft.current||Ea?(typeof m=="function"&&(To(t,n,m,s),c=t.memoizedState),(o=Ea||mu(t,n,o,s,p,c,u))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),l.props=s,l.state=c,l.context=u,s=o):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{l=t.stateNode,Hp(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:Ht(t.type,o),l.props=u,h=t.pendingProps,p=l.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ft(c):(c=gt(n)?un:st.current,c=Gn(t,c));var g=n.getDerivedStateFromProps;(m=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(o!==h||p!==c)&&hu(t,l,s,c),Ea=!1,p=t.memoizedState,l.state=p,wi(t,s,l,r);var y=t.memoizedState;o!==h||p!==y||ft.current||Ea?(typeof g=="function"&&(To(t,n,g,s),y=t.memoizedState),(u=Ea||mu(t,n,u,s,p,y,c)||!1)?(m||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(s,y,c),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(s,y,c)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=y),l.props=s,l.state=y,l.context=c,s=u):(typeof l.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),s=!1)}return Po(e,t,n,s,i,r)}function Po(e,t,n,s,r,i){hm(e,t);var l=(t.flags&128)!==0;if(!s&&!l)return r&&iu(t,n,!1),va(e,t,i);s=t.stateNode,v0.current=t;var o=l&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&l?(t.child=Zn(t,e.child,null,i),t.child=Zn(t,null,o,i)):ot(e,t,o,i),t.memoizedState=s.state,r&&iu(t,n,!0),t.child}function fm(e){var t=e.stateNode;t.pendingContext?ru(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ru(e,t.context,!1),Ic(e,t.containerInfo)}function ju(e,t,n,s,r){return Yn(),Lc(r),t.flags|=256,ot(e,t,n,s),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0};function Fo(e){return{baseLanes:e,cachePool:null,transitions:null}}function gm(e,t,n){var s=t.pendingProps,r=Te.current,i=!1,l=(t.flags&128)!==0,o;if((o=l)||(o=e!==null&&e.memoizedState===null?!1:(r&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),qe(Te,r&1),e===null)return Mo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=s.children,e=s.fallback,i?(s=t.mode,i=t.child,l={mode:"hidden",children:l},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Qi(l,s,0,null),e=cn(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fo(n),t.memoizedState=$o,e):Qc(t,l));if(r=e.memoizedState,r!==null&&(o=r.dehydrated,o!==null))return b0(e,t,l,s,o,r,n);if(i){i=s.fallback,l=t.mode,r=e.child,o=r.sibling;var c={mode:"hidden",children:s.children};return!(l&1)&&t.child!==r?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=Ba(r,c),s.subtreeFlags=r.subtreeFlags&14680064),o!==null?i=Ba(o,i):(i=cn(i,l,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,l=e.child.memoizedState,l=l===null?Fo(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=$o,s}return i=e.child,e=i.sibling,s=Ba(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Qc(e,t){return t=Qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Dr(e,t,n,s){return s!==null&&Lc(s),Zn(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function b0(e,t,n,s,r,i,l){if(n)return t.flags&256?(t.flags&=-257,s=Al(Error(G(422))),Dr(e,t,l,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,r=t.mode,s=Qi({mode:"visible",children:s.children},r,0,null),i=cn(i,r,l,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&Zn(t,e.child,null,l),t.child.memoizedState=Fo(l),t.memoizedState=$o,i);if(!(t.mode&1))return Dr(e,t,l,null);if(r.data==="$!"){if(s=r.nextSibling&&r.nextSibling.dataset,s)var o=s.dgst;return s=o,i=Error(G(419)),s=Al(i,s,void 0),Dr(e,t,l,s)}if(o=(l&e.childLanes)!==0,ht||o){if(s=Ge,s!==null){switch(l&-l){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(s.suspendedLanes|l)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,ga(e,r),Qt(s,e,r,-1))}return ed(),s=Al(Error(G(421))),Dr(e,t,l,s)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=T0.bind(null,e),r._reactRetry=t,null):(e=i.treeContext,wt=Fa(r.nextSibling),kt=t,ze=!0,Vt=null,e!==null&&(Tt[At++]=oa,Tt[At++]=ca,Tt[At++]=_n,oa=e.id,ca=e.overflow,_n=t),t=Qc(t,s.children),t.flags|=4096,t)}function wu(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),zo(e.return,t,n)}function Ll(e,t,n,s,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=r)}function vm(e,t,n){var s=t.pendingProps,r=s.revealOrder,i=s.tail;if(ot(e,t,s.children,n),s=Te.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wu(e,n,t);else if(e.tag===19)wu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(qe(Te,s),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ki(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ll(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ki(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ll(t,!0,n,null,i);break;case"together":Ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ti(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function va(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(G(153));if(t.child!==null){for(e=t.child,n=Ba(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ba(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function x0(e,t,n){switch(t.tag){case 3:fm(t),Yn();break;case 5:Up(t);break;case 1:gt(t.type)&&vi(t);break;case 4:Ic(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,r=t.memoizedProps.value;qe(yi,s._currentValue),s._currentValue=r;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(qe(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?gm(e,t,n):(qe(Te,Te.current&1),e=va(e,t,n),e!==null?e.sibling:null);qe(Te,Te.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return vm(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),qe(Te,Te.current),s)break;return null;case 22:case 23:return t.lanes=0,mm(e,t,n)}return va(e,t,n)}var bm,Ro,xm,ym;bm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ro=function(){};xm=function(e,t,n,s){var r=e.memoizedProps;if(r!==s){e=t.stateNode,rn(ta.current);var i=null;switch(n){case"input":r=io(e,r),s=io(e,s),i=[];break;case"select":r=De({},r,{value:void 0}),s=De({},s,{value:void 0}),i=[];break;case"textarea":r=co(e,r),s=co(e,s),i=[];break;default:typeof r.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=fi)}_o(n,s);var l;n=null;for(u in r)if(!s.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var o=r[u];for(l in o)o.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Os.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in s){var c=s[u];if(o=r!=null?r[u]:void 0,s.hasOwnProperty(u)&&c!==o&&(c!=null||o!=null))if(u==="style")if(o){for(l in o)!o.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&o[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Os.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Ee("scroll",e),i||o===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};ym=function(e,t,n,s){n!==s&&(t.flags|=4)};function gs(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags&14680064,s|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function y0(e,t,n){var s=t.pendingProps;switch(Ac(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return gt(t.type)&&gi(),tt(t),null;case 3:return s=t.stateNode,Jn(),Me(ft),Me(st),Bc(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Ko(Vt),Vt=null))),Ro(e,t),tt(t),null;case 5:Oc(t);var r=rn(Xs.current);if(n=t.type,e!==null&&t.stateNode!=null)xm(e,t,n,s,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(G(166));return tt(t),null}if(e=rn(ta.current),Ar(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Xt]=t,s[Zs]=i,e=(t.mode&1)!==0,n){case"dialog":Ee("cancel",s),Ee("close",s);break;case"iframe":case"object":case"embed":Ee("load",s);break;case"video":case"audio":for(r=0;r<Cs.length;r++)Ee(Cs[r],s);break;case"source":Ee("error",s);break;case"img":case"image":case"link":Ee("error",s),Ee("load",s);break;case"details":Ee("toggle",s);break;case"input":Td(s,i),Ee("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},Ee("invalid",s);break;case"textarea":Ld(s,i),Ee("invalid",s)}_o(n,i),r=null;for(var l in i)if(i.hasOwnProperty(l)){var o=i[l];l==="children"?typeof o=="string"?s.textContent!==o&&(i.suppressHydrationWarning!==!0&&Tr(s.textContent,o,e),r=["children",o]):typeof o=="number"&&s.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Tr(s.textContent,o,e),r=["children",""+o]):Os.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&Ee("scroll",s)}switch(n){case"input":kr(s),Ad(s,i,!0);break;case"textarea":kr(s),Dd(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=fi)}s=r,t.updateQueue=s,s!==null&&(t.flags|=4)}else{l=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=G_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=l.createElement(n,{is:s.is}):(e=l.createElement(n),n==="select"&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,n),e[Xt]=t,e[Zs]=s,bm(e,t,!1,!1),t.stateNode=e;e:{switch(l=po(n,s),n){case"dialog":Ee("cancel",e),Ee("close",e),r=s;break;case"iframe":case"object":case"embed":Ee("load",e),r=s;break;case"video":case"audio":for(r=0;r<Cs.length;r++)Ee(Cs[r],e);r=s;break;case"source":Ee("error",e),r=s;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),r=s;break;case"details":Ee("toggle",e),r=s;break;case"input":Td(e,s),r=io(e,s),Ee("invalid",e);break;case"option":r=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},r=De({},s,{value:void 0}),Ee("invalid",e);break;case"textarea":Ld(e,s),r=co(e,s),Ee("invalid",e);break;default:r=s}_o(n,r),o=r;for(i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="style"?J_(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Y_(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Bs(e,c):typeof c=="number"&&Bs(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Os.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Ee("scroll",e):c!=null&&vc(e,i,c,l))}switch(n){case"input":kr(e),Ad(e,s,!1);break;case"textarea":kr(e),Dd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Ua(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Rn(e,!!s.multiple,i,!1):s.defaultValue!=null&&Rn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=fi)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return tt(t),null;case 6:if(e&&t.stateNode!=null)ym(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(G(166));if(n=rn(Xs.current),rn(ta.current),Ar(t)){if(s=t.stateNode,n=t.memoizedProps,s[Xt]=t,(i=s.nodeValue!==n)&&(e=kt,e!==null))switch(e.tag){case 3:Tr(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tr(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Xt]=t,t.stateNode=s}return tt(t),null;case 13:if(Me(Te),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&wt!==null&&t.mode&1&&!(t.flags&128))Rp(),Yn(),t.flags|=98560,i=!1;else if(i=Ar(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(G(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(G(317));i[Xt]=t}else Yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),i=!1}else Vt!==null&&(Ko(Vt),Vt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||Te.current&1?Ve===0&&(Ve=3):ed())),t.updateQueue!==null&&(t.flags|=4),tt(t),null);case 4:return Jn(),Ro(e,t),e===null&&Gs(t.stateNode.containerInfo),tt(t),null;case 10:return $c(t.type._context),tt(t),null;case 17:return gt(t.type)&&gi(),tt(t),null;case 19:if(Me(Te),i=t.memoizedState,i===null)return tt(t),null;if(s=(t.flags&128)!==0,l=i.rendering,l===null)if(s)gs(i,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ki(e),l!==null){for(t.flags|=128,gs(i,!1),s=l.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return qe(Te,Te.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fe()>es&&(t.flags|=128,s=!0,gs(i,!1),t.lanes=4194304)}else{if(!s)if(e=ki(l),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ze)return tt(t),null}else 2*Fe()-i.renderingStartTime>es&&n!==1073741824&&(t.flags|=128,s=!0,gs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fe(),t.sibling=null,n=Te.current,qe(Te,s?n&1|2:n&1),t):(tt(t),null);case 22:case 23:return Xc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?jt&1073741824&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),null;case 24:return null;case 25:return null}throw Error(G(156,t.tag))}function j0(e,t){switch(Ac(t),t.tag){case 1:return gt(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jn(),Me(ft),Me(st),Bc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oc(t),null;case 13:if(Me(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(G(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(Te),null;case 4:return Jn(),null;case 10:return $c(t.type._context),null;case 22:case 23:return Xc(),null;case 24:return null;default:return null}}var Pr=!1,at=!1,w0=typeof WeakSet=="function"?WeakSet:Set,ne=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Pe(e,t,s)}else n.current=null}function Io(e,t,n){try{n()}catch(s){Pe(e,t,s)}}var ku=!1;function k0(e,t){if(wo=pi,e=Sp(),zc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var r=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,c=-1,u=0,m=0,h=e,p=null;t:for(;;){for(var g;h!==n||r!==0&&h.nodeType!==3||(o=l+r),h!==i||s!==0&&h.nodeType!==3||(c=l+s),h.nodeType===3&&(l+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++u===r&&(o=l),p===i&&++m===s&&(c=l),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ko={focusedElem:e,selectionRange:n},pi=!1,ne=t;ne!==null;)if(t=ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ne=e;else for(;ne!==null;){t=ne;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,C=y.memoizedState,f=t.stateNode,v=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Ht(t.type,k),C);f.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(x){Pe(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,ne=e;break}ne=t.return}return y=ku,ku=!1,y}function Ds(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var r=s=s.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&Io(t,n,i)}r=r.next}while(r!==s)}}function Wi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Oo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function jm(e){var t=e.alternate;t!==null&&(e.alternate=null,jm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xt],delete t[Zs],delete t[Co],delete t[i0],delete t[l0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wm(e){return e.tag===5||e.tag===3||e.tag===4}function Nu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bo(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(s!==4&&(e=e.child,e!==null))for(Bo(e,t,n),e=e.sibling;e!==null;)Bo(e,t,n),e=e.sibling}function Ho(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Ho(e,t,n),e=e.sibling;e!==null;)Ho(e,t,n),e=e.sibling}var Ye=null,Ut=!1;function Na(e,t,n){for(n=n.child;n!==null;)km(e,t,n),n=n.sibling}function km(e,t,n){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(Fi,n)}catch{}switch(n.tag){case 5:at||Pn(n,t);case 6:var s=Ye,r=Ut;Ye=null,Na(e,t,n),Ye=s,Ut=r,Ye!==null&&(Ut?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(Ut?(e=Ye,n=n.stateNode,e.nodeType===8?Cl(e.parentNode,n):e.nodeType===1&&Cl(e,n),Ws(e)):Cl(Ye,n.stateNode));break;case 4:s=Ye,r=Ut,Ye=n.stateNode.containerInfo,Ut=!0,Na(e,t,n),Ye=s,Ut=r;break;case 0:case 11:case 14:case 15:if(!at&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){r=s=s.next;do{var i=r,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Io(n,t,l),r=r.next}while(r!==s)}Na(e,t,n);break;case 1:if(!at&&(Pn(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(o){Pe(n,t,o)}Na(e,t,n);break;case 21:Na(e,t,n);break;case 22:n.mode&1?(at=(s=at)||n.memoizedState!==null,Na(e,t,n),at=s):Na(e,t,n);break;default:Na(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new w0),t.forEach(function(s){var r=A0.bind(null,e,s);n.has(s)||(n.add(s),s.then(r,r))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var r=n[s];try{var i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 5:Ye=o.stateNode,Ut=!1;break e;case 3:Ye=o.stateNode.containerInfo,Ut=!0;break e;case 4:Ye=o.stateNode.containerInfo,Ut=!0;break e}o=o.return}if(Ye===null)throw Error(G(160));km(i,l,r),Ye=null,Ut=!1;var c=r.alternate;c!==null&&(c.return=null),r.return=null}catch(u){Pe(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nm(t,e),t=t.sibling}function Nm(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bt(t,e),Zt(e),s&4){try{Ds(3,e,e.return),Wi(3,e)}catch(k){Pe(e,e.return,k)}try{Ds(5,e,e.return)}catch(k){Pe(e,e.return,k)}}break;case 1:Bt(t,e),Zt(e),s&512&&n!==null&&Pn(n,n.return);break;case 5:if(Bt(t,e),Zt(e),s&512&&n!==null&&Pn(n,n.return),e.flags&32){var r=e.stateNode;try{Bs(r,"")}catch(k){Pe(e,e.return,k)}}if(s&4&&(r=e.stateNode,r!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&K_(r,i),po(o,l);var u=po(o,i);for(l=0;l<c.length;l+=2){var m=c[l],h=c[l+1];m==="style"?J_(r,h):m==="dangerouslySetInnerHTML"?Y_(r,h):m==="children"?Bs(r,h):vc(r,m,h,u)}switch(o){case"input":lo(r,i);break;case"textarea":Q_(r,i);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Rn(r,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?Rn(r,!!i.multiple,i.defaultValue,!0):Rn(r,!!i.multiple,i.multiple?[]:"",!1))}r[Zs]=i}catch(k){Pe(e,e.return,k)}}break;case 6:if(Bt(t,e),Zt(e),s&4){if(e.stateNode===null)throw Error(G(162));r=e.stateNode,i=e.memoizedProps;try{r.nodeValue=i}catch(k){Pe(e,e.return,k)}}break;case 3:if(Bt(t,e),Zt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ws(t.containerInfo)}catch(k){Pe(e,e.return,k)}break;case 4:Bt(t,e),Zt(e);break;case 13:Bt(t,e),Zt(e),r=e.child,r.flags&8192&&(i=r.memoizedState!==null,r.stateNode.isHidden=i,!i||r.alternate!==null&&r.alternate.memoizedState!==null||(Zc=Fe())),s&4&&Su(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(at=(u=at)||m,Bt(t,e),at=u):Bt(t,e),Zt(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(ne=e,m=e.child;m!==null;){for(h=ne=m;ne!==null;){switch(p=ne,g=p.child,p.tag){case 0:case 11:case 14:case 15:Ds(4,p,p.return);break;case 1:Pn(p,p.return);var y=p.stateNode;if(typeof y.componentWillUnmount=="function"){s=p,n=p.return;try{t=s,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){Pe(s,n,k)}}break;case 5:Pn(p,p.return);break;case 22:if(p.memoizedState!==null){qu(h);continue}}g!==null?(g.return=p,ne=g):qu(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{r=h.stateNode,u?(i=r.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=h.stateNode,c=h.memoizedProps.style,l=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=Z_("display",l))}catch(k){Pe(e,e.return,k)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(k){Pe(e,e.return,k)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Bt(t,e),Zt(e),s&4&&Su(e);break;case 21:break;default:Bt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wm(n)){var s=n;break e}n=n.return}throw Error(G(160))}switch(s.tag){case 5:var r=s.stateNode;s.flags&32&&(Bs(r,""),s.flags&=-33);var i=Nu(e);Ho(e,i,r);break;case 3:case 4:var l=s.stateNode.containerInfo,o=Nu(e);Bo(e,o,l);break;default:throw Error(G(161))}}catch(c){Pe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function N0(e,t,n){ne=e,Sm(e)}function Sm(e,t,n){for(var s=(e.mode&1)!==0;ne!==null;){var r=ne,i=r.child;if(r.tag===22&&s){var l=r.memoizedState!==null||Pr;if(!l){var o=r.alternate,c=o!==null&&o.memoizedState!==null||at;o=Pr;var u=at;if(Pr=l,(at=c)&&!u)for(ne=r;ne!==null;)l=ne,c=l.child,l.tag===22&&l.memoizedState!==null?Eu(r):c!==null?(c.return=l,ne=c):Eu(r);for(;i!==null;)ne=i,Sm(i),i=i.sibling;ne=r,Pr=o,at=u}Cu(e)}else r.subtreeFlags&8772&&i!==null?(i.return=r,ne=i):Cu(e)}}function Cu(e){for(;ne!==null;){var t=ne;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:at||Wi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!at)if(n===null)s.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:Ht(t.type,n.memoizedProps);s.componentDidUpdate(r,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&uu(t,i,s);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uu(t,l,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Ws(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(G(163))}at||t.flags&512&&Oo(t)}catch(p){Pe(t,t.return,p)}}if(t===e){ne=null;break}if(n=t.sibling,n!==null){n.return=t.return,ne=n;break}ne=t.return}}function qu(e){for(;ne!==null;){var t=ne;if(t===e){ne=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ne=n;break}ne=t.return}}function Eu(e){for(;ne!==null;){var t=ne;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wi(4,t)}catch(c){Pe(t,n,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var r=t.return;try{s.componentDidMount()}catch(c){Pe(t,r,c)}}var i=t.return;try{Oo(t)}catch(c){Pe(t,i,c)}break;case 5:var l=t.return;try{Oo(t)}catch(c){Pe(t,l,c)}}}catch(c){Pe(t,t.return,c)}if(t===e){ne=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ne=o;break}ne=t.return}}var S0=Math.ceil,Ci=xa.ReactCurrentDispatcher,Gc=xa.ReactCurrentOwner,Pt=xa.ReactCurrentBatchConfig,ye=0,Ge=null,He=null,Ze=0,jt=0,$n=Ga(0),Ve=0,nr=null,mn=0,Ki=0,Yc=0,Ps=null,mt=null,Zc=0,es=1/0,ra=null,qi=!1,Uo=null,Ia=null,$r=!1,Aa=null,Ei=0,$s=0,Vo=null,ai=-1,ni=0;function ct(){return ye&6?Fe():ai!==-1?ai:ai=Fe()}function Oa(e){return e.mode&1?ye&2&&Ze!==0?Ze&-Ze:c0.transition!==null?(ni===0&&(ni=dp()),ni):(e=Ne,e!==0||(e=window.event,e=e===void 0?16:gp(e.type)),e):1}function Qt(e,t,n,s){if(50<$s)throw $s=0,Vo=null,Error(G(185));mr(e,n,s),(!(ye&2)||e!==Ge)&&(e===Ge&&(!(ye&2)&&(Ki|=n),Ve===4&&za(e,Ze)),vt(e,s),n===1&&ye===0&&!(t.mode&1)&&(es=Fe()+500,Hi&&Ya()))}function vt(e,t){var n=e.callbackNode;c1(e,t);var s=_i(e,e===Ge?Ze:0);if(s===0)n!==null&&Fd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Fd(n),t===1)e.tag===0?o0(Mu.bind(null,e)):Pp(Mu.bind(null,e)),s0(function(){!(ye&6)&&Ya()}),n=null;else{switch(up(s)){case 1:n=wc;break;case 4:n=op;break;case 16:n=ui;break;case 536870912:n=cp;break;default:n=ui}n=Lm(n,Cm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cm(e,t){if(ai=-1,ni=0,ye&6)throw Error(G(327));var n=e.callbackNode;if(Un()&&e.callbackNode!==n)return null;var s=_i(e,e===Ge?Ze:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Mi(e,s);else{t=s;var r=ye;ye|=2;var i=Em();(Ge!==e||Ze!==t)&&(ra=null,es=Fe()+500,on(e,t));do try{E0();break}catch(o){qm(e,o)}while(!0);Pc(),Ci.current=i,ye=r,He!==null?t=0:(Ge=null,Ze=0,t=Ve)}if(t!==0){if(t===2&&(r=vo(e),r!==0&&(s=r,t=Wo(e,r))),t===1)throw n=nr,on(e,0),za(e,s),vt(e,Fe()),n;if(t===6)za(e,s);else{if(r=e.current.alternate,!(s&30)&&!C0(r)&&(t=Mi(e,s),t===2&&(i=vo(e),i!==0&&(s=i,t=Wo(e,i))),t===1))throw n=nr,on(e,0),za(e,s),vt(e,Fe()),n;switch(e.finishedWork=r,e.finishedLanes=s,t){case 0:case 1:throw Error(G(345));case 2:an(e,mt,ra);break;case 3:if(za(e,s),(s&130023424)===s&&(t=Zc+500-Fe(),10<t)){if(_i(e,0)!==0)break;if(r=e.suspendedLanes,(r&s)!==s){ct(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=So(an.bind(null,e,mt,ra),t);break}an(e,mt,ra);break;case 4:if(za(e,s),(s&4194240)===s)break;for(t=e.eventTimes,r=-1;0<s;){var l=31-Kt(s);i=1<<l,l=t[l],l>r&&(r=l),s&=~i}if(s=r,s=Fe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*S0(s/1960))-s,10<s){e.timeoutHandle=So(an.bind(null,e,mt,ra),s);break}an(e,mt,ra);break;case 5:an(e,mt,ra);break;default:throw Error(G(329))}}}return vt(e,Fe()),e.callbackNode===n?Cm.bind(null,e):null}function Wo(e,t){var n=Ps;return e.current.memoizedState.isDehydrated&&(on(e,t).flags|=256),e=Mi(e,t),e!==2&&(t=mt,mt=n,t!==null&&Ko(t)),e}function Ko(e){mt===null?mt=e:mt.push.apply(mt,e)}function C0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var r=n[s],i=r.getSnapshot;r=r.value;try{if(!Gt(i(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function za(e,t){for(t&=~Yc,t&=~Ki,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),s=1<<n;e[n]=-1,t&=~s}}function Mu(e){if(ye&6)throw Error(G(327));Un();var t=_i(e,0);if(!(t&1))return vt(e,Fe()),null;var n=Mi(e,t);if(e.tag!==0&&n===2){var s=vo(e);s!==0&&(t=s,n=Wo(e,s))}if(n===1)throw n=nr,on(e,0),za(e,t),vt(e,Fe()),n;if(n===6)throw Error(G(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,mt,ra),vt(e,Fe()),null}function Jc(e,t){var n=ye;ye|=1;try{return e(t)}finally{ye=n,ye===0&&(es=Fe()+500,Hi&&Ya())}}function hn(e){Aa!==null&&Aa.tag===0&&!(ye&6)&&Un();var t=ye;ye|=1;var n=Pt.transition,s=Ne;try{if(Pt.transition=null,Ne=1,e)return e()}finally{Ne=s,Pt.transition=n,ye=t,!(ye&6)&&Ya()}}function Xc(){jt=$n.current,Me($n)}function on(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,n0(n)),He!==null)for(n=He.return;n!==null;){var s=n;switch(Ac(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&gi();break;case 3:Jn(),Me(ft),Me(st),Bc();break;case 5:Oc(s);break;case 4:Jn();break;case 13:Me(Te);break;case 19:Me(Te);break;case 10:$c(s.type._context);break;case 22:case 23:Xc()}n=n.return}if(Ge=e,He=e=Ba(e.current,null),Ze=jt=t,Ve=0,nr=null,Yc=Ki=mn=0,mt=Ps=null,sn!==null){for(t=0;t<sn.length;t++)if(n=sn[t],s=n.interleaved,s!==null){n.interleaved=null;var r=s.next,i=n.pending;if(i!==null){var l=i.next;i.next=r,s.next=l}n.pending=s}sn=null}return e}function qm(e,t){do{var n=He;try{if(Pc(),Xr.current=Si,Ni){for(var s=Le.memoizedState;s!==null;){var r=s.queue;r!==null&&(r.pending=null),s=s.next}Ni=!1}if(pn=0,Qe=Ue=Le=null,Ls=!1,er=0,Gc.current=null,n===null||n.return===null){Ve=1,nr=t,He=null;break}e:{var i=e,l=n.return,o=n,c=t;if(t=Ze,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,m=o,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var p=m.alternate;p?(m.updateQueue=p.updateQueue,m.memoizedState=p.memoizedState,m.lanes=p.lanes):(m.updateQueue=null,m.memoizedState=null)}var g=gu(l);if(g!==null){g.flags&=-257,vu(g,l,o,i,t),g.mode&1&&fu(i,u,t),t=g,c=u;var y=t.updateQueue;if(y===null){var k=new Set;k.add(c),t.updateQueue=k}else y.add(c);break e}else{if(!(t&1)){fu(i,u,t),ed();break e}c=Error(G(426))}}else if(ze&&o.mode&1){var C=gu(l);if(C!==null){!(C.flags&65536)&&(C.flags|=256),vu(C,l,o,i,t),Lc(Xn(c,o));break e}}i=c=Xn(c,o),Ve!==4&&(Ve=2),Ps===null?Ps=[i]:Ps.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=um(i,c,t);du(i,f);break e;case 1:o=c;var v=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ia===null||!Ia.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=_m(i,o,t);du(i,x);break e}}i=i.return}while(i!==null)}zm(n)}catch(w){t=w,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function Em(){var e=Ci.current;return Ci.current=Si,e===null?Si:e}function ed(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ge===null||!(mn&268435455)&&!(Ki&268435455)||za(Ge,Ze)}function Mi(e,t){var n=ye;ye|=2;var s=Em();(Ge!==e||Ze!==t)&&(ra=null,on(e,t));do try{q0();break}catch(r){qm(e,r)}while(!0);if(Pc(),ye=n,Ci.current=s,He!==null)throw Error(G(261));return Ge=null,Ze=0,Ve}function q0(){for(;He!==null;)Mm(He)}function E0(){for(;He!==null&&!e1();)Mm(He)}function Mm(e){var t=Am(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?zm(e):He=t,Gc.current=null}function zm(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=j0(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,He=null;return}}else if(n=y0(n,t,jt),n!==null){He=n;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Ve===0&&(Ve=5)}function an(e,t,n){var s=Ne,r=Pt.transition;try{Pt.transition=null,Ne=1,M0(e,t,n,s)}finally{Pt.transition=r,Ne=s}return null}function M0(e,t,n,s){do Un();while(Aa!==null);if(ye&6)throw Error(G(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(G(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(d1(e,i),e===Ge&&(He=Ge=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$r||($r=!0,Lm(ui,function(){return Un(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Pt.transition,Pt.transition=null;var l=Ne;Ne=1;var o=ye;ye|=4,Gc.current=null,k0(e,n),Nm(n,e),Y1(ko),pi=!!wo,ko=wo=null,e.current=n,N0(n),t1(),ye=o,Ne=l,Pt.transition=i}else e.current=n;if($r&&($r=!1,Aa=e,Ei=r),i=e.pendingLanes,i===0&&(Ia=null),s1(n.stateNode),vt(e,Fe()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],s(r.value,{componentStack:r.stack,digest:r.digest});if(qi)throw qi=!1,e=Uo,Uo=null,e;return Ei&1&&e.tag!==0&&Un(),i=e.pendingLanes,i&1?e===Vo?$s++:($s=0,Vo=e):$s=0,Ya(),null}function Un(){if(Aa!==null){var e=up(Ei),t=Pt.transition,n=Ne;try{if(Pt.transition=null,Ne=16>e?16:e,Aa===null)var s=!1;else{if(e=Aa,Aa=null,Ei=0,ye&6)throw Error(G(331));var r=ye;for(ye|=4,ne=e.current;ne!==null;){var i=ne,l=i.child;if(ne.flags&16){var o=i.deletions;if(o!==null){for(var c=0;c<o.length;c++){var u=o[c];for(ne=u;ne!==null;){var m=ne;switch(m.tag){case 0:case 11:case 15:Ds(8,m,i)}var h=m.child;if(h!==null)h.return=m,ne=h;else for(;ne!==null;){m=ne;var p=m.sibling,g=m.return;if(jm(m),m===u){ne=null;break}if(p!==null){p.return=g,ne=p;break}ne=g}}}var y=i.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var C=k.sibling;k.sibling=null,k=C}while(k!==null)}}ne=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,ne=l;else e:for(;ne!==null;){if(i=ne,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ds(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,ne=f;break e}ne=i.return}}var v=e.current;for(ne=v;ne!==null;){l=ne;var b=l.child;if(l.subtreeFlags&2064&&b!==null)b.return=l,ne=b;else e:for(l=v;ne!==null;){if(o=ne,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Wi(9,o)}}catch(w){Pe(o,o.return,w)}if(o===l){ne=null;break e}var x=o.sibling;if(x!==null){x.return=o.return,ne=x;break e}ne=o.return}}if(ye=r,Ya(),ea&&typeof ea.onPostCommitFiberRoot=="function")try{ea.onPostCommitFiberRoot(Fi,e)}catch{}s=!0}return s}finally{Ne=n,Pt.transition=t}}return!1}function zu(e,t,n){t=Xn(n,t),t=um(e,t,1),e=Ra(e,t,1),t=ct(),e!==null&&(mr(e,1,t),vt(e,t))}function Pe(e,t,n){if(e.tag===3)zu(e,e,n);else for(;t!==null;){if(t.tag===3){zu(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ia===null||!Ia.has(s))){e=Xn(n,e),e=_m(t,e,1),t=Ra(t,e,1),e=ct(),t!==null&&(mr(t,1,e),vt(t,e));break}}t=t.return}}function z0(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=ct(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(Ze&n)===n&&(Ve===4||Ve===3&&(Ze&130023424)===Ze&&500>Fe()-Zc?on(e,0):Yc|=n),vt(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):t=1);var n=ct();e=ga(e,t),e!==null&&(mr(e,t,n),vt(e,n))}function T0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function A0(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(G(314))}s!==null&&s.delete(t),Tm(e,n)}var Am;Am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,x0(e,t,n);ht=!!(e.flags&131072)}else ht=!1,ze&&t.flags&1048576&&$p(t,xi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ti(e,t),e=t.pendingProps;var r=Gn(t,st.current);Hn(t,n),r=Uc(null,t,s,e,r,n);var i=Vc();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(s)?(i=!0,vi(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Rc(t),r.updater=Vi,t.stateNode=r,r._reactInternals=t,Ao(t,s,e,n),t=Po(null,t,s,!0,i,n)):(t.tag=0,ze&&i&&Tc(t),ot(null,t,r,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ti(e,t),e=t.pendingProps,r=s._init,s=r(s._payload),t.type=s,r=t.tag=D0(s),e=Ht(s,e),r){case 0:t=Do(null,t,s,e,n);break e;case 1:t=yu(null,t,s,e,n);break e;case 11:t=bu(null,t,s,e,n);break e;case 14:t=xu(null,t,s,Ht(s.type,e),n);break e}throw Error(G(306,s,""))}return t;case 0:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:Ht(s,r),Do(e,t,s,r,n);case 1:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:Ht(s,r),yu(e,t,s,r,n);case 3:e:{if(fm(t),e===null)throw Error(G(387));s=t.pendingProps,i=t.memoizedState,r=i.element,Hp(e,t),wi(t,s,null,n);var l=t.memoizedState;if(s=l.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=Xn(Error(G(423)),t),t=ju(e,t,s,n,r);break e}else if(s!==r){r=Xn(Error(G(424)),t),t=ju(e,t,s,n,r);break e}else for(wt=Fa(t.stateNode.containerInfo.firstChild),kt=t,ze=!0,Vt=null,n=Op(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),s===r){t=va(e,t,n);break e}ot(e,t,s,n)}t=t.child}return t;case 5:return Up(t),e===null&&Mo(t),s=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,l=r.children,No(s,r)?l=null:i!==null&&No(s,i)&&(t.flags|=32),hm(e,t),ot(e,t,l,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return gm(e,t,n);case 4:return Ic(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Zn(t,null,s,n):ot(e,t,s,n),t.child;case 11:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:Ht(s,r),bu(e,t,s,r,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,r=t.pendingProps,i=t.memoizedProps,l=r.value,qe(yi,s._currentValue),s._currentValue=l,i!==null)if(Gt(i.value,l)){if(i.children===r.children&&!ft.current){t=va(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){l=i.child;for(var c=o.firstContext;c!==null;){if(c.context===s){if(i.tag===1){c=_a(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?c.next=c:(c.next=m.next,m.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),zo(i.return,n,t),o.lanes|=n;break}c=c.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(G(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),zo(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ot(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,s=t.pendingProps.children,Hn(t,n),r=Ft(r),s=s(r),t.flags|=1,ot(e,t,s,n),t.child;case 14:return s=t.type,r=Ht(s,t.pendingProps),r=Ht(s.type,r),xu(e,t,s,r,n);case 15:return pm(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,r=t.pendingProps,r=t.elementType===s?r:Ht(s,r),ti(e,t),t.tag=1,gt(s)?(e=!0,vi(t)):e=!1,Hn(t,n),dm(t,s,r),Ao(t,s,r,n),Po(null,t,s,!0,e,n);case 19:return vm(e,t,n);case 22:return mm(e,t,n)}throw Error(G(156,t.tag))};function Lm(e,t){return lp(e,t)}function L0(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,s){return new L0(e,t,n,s)}function td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function D0(e){if(typeof e=="function")return td(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xc)return 11;if(e===yc)return 14}return 2}function Ba(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function si(e,t,n,s,r,i){var l=2;if(s=e,typeof e=="function")td(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Cn:return cn(n.children,r,i,t);case bc:l=8,r|=8;break;case ao:return e=Dt(12,n,t,r|2),e.elementType=ao,e.lanes=i,e;case no:return e=Dt(13,n,t,r),e.elementType=no,e.lanes=i,e;case so:return e=Dt(19,n,t,r),e.elementType=so,e.lanes=i,e;case U_:return Qi(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B_:l=10;break e;case H_:l=9;break e;case xc:l=11;break e;case yc:l=14;break e;case qa:l=16,s=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return t=Dt(l,n,t,r),t.elementType=e,t.type=s,t.lanes=i,t}function cn(e,t,n,s){return e=Dt(7,e,s,t),e.lanes=n,e}function Qi(e,t,n,s){return e=Dt(22,e,s,t),e.elementType=U_,e.lanes=n,e.stateNode={isHidden:!1},e}function Dl(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Pl(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P0(e,t,n,s,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fl(0),this.expirationTimes=fl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fl(0),this.identifierPrefix=s,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ad(e,t,n,s,r,i,l,o,c){return e=new P0(e,t,n,o,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rc(i),e}function $0(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Sn,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Dm(e){if(!e)return Va;e=e._reactInternals;e:{if(vn(e)!==e||e.tag!==1)throw Error(G(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(G(171))}if(e.tag===1){var n=e.type;if(gt(n))return Dp(e,n,t)}return t}function Pm(e,t,n,s,r,i,l,o,c){return e=ad(n,s,!0,e,r,i,l,o,c),e.context=Dm(null),n=e.current,s=ct(),r=Oa(n),i=_a(s,r),i.callback=t??null,Ra(n,i,r),e.current.lanes=r,mr(e,r,s),vt(e,s),e}function Gi(e,t,n,s){var r=t.current,i=ct(),l=Oa(r);return n=Dm(n),t.context===null?t.context=n:t.pendingContext=n,t=_a(i,l),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ra(r,t,l),e!==null&&(Qt(e,r,l,i),Jr(e,r,l)),l}function zi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function nd(e,t){Tu(e,t),(e=e.alternate)&&Tu(e,t)}function F0(){return null}var $m=typeof reportError=="function"?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}Yi.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(G(409));Gi(e,t,null,null)};Yi.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Gi(null,e,null,null)}),t[fa]=null}};function Yi(e){this._internalRoot=e}Yi.prototype.unstable_scheduleHydration=function(e){if(e){var t=mp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ma.length&&t!==0&&t<Ma[n].priority;n++);Ma.splice(n,0,e),n===0&&fp(e)}};function rd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Au(){}function R0(e,t,n,s,r){if(r){if(typeof s=="function"){var i=s;s=function(){var u=zi(l);i.call(u)}}var l=Pm(t,s,e,0,null,!1,!1,"",Au);return e._reactRootContainer=l,e[fa]=l.current,Gs(e.nodeType===8?e.parentNode:e),hn(),l}for(;r=e.lastChild;)e.removeChild(r);if(typeof s=="function"){var o=s;s=function(){var u=zi(c);o.call(u)}}var c=ad(e,0,!1,null,null,!1,!1,"",Au);return e._reactRootContainer=c,e[fa]=c.current,Gs(e.nodeType===8?e.parentNode:e),hn(function(){Gi(t,c,n,s)}),c}function Ji(e,t,n,s,r){var i=n._reactRootContainer;if(i){var l=i;if(typeof r=="function"){var o=r;r=function(){var c=zi(l);o.call(c)}}Gi(t,l,e,r)}else l=R0(n,t,e,r,s);return zi(l)}_p=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(kc(t,n|1),vt(t,Fe()),!(ye&6)&&(es=Fe()+500,Ya()))}break;case 13:hn(function(){var s=ga(e,1);if(s!==null){var r=ct();Qt(s,e,1,r)}}),nd(e,1)}};Nc=function(e){if(e.tag===13){var t=ga(e,134217728);if(t!==null){var n=ct();Qt(t,e,134217728,n)}nd(e,134217728)}};pp=function(e){if(e.tag===13){var t=Oa(e),n=ga(e,t);if(n!==null){var s=ct();Qt(n,e,t,s)}nd(e,t)}};mp=function(){return Ne};hp=function(e,t){var n=Ne;try{return Ne=e,t()}finally{Ne=n}};ho=function(e,t,n){switch(t){case"input":if(lo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var r=Bi(s);if(!r)throw Error(G(90));W_(s),lo(s,r)}}}break;case"textarea":Q_(e,n);break;case"select":t=n.value,t!=null&&Rn(e,!!n.multiple,t,!1)}};tp=Jc;ap=hn;var I0={usingClientEntryPoint:!1,Events:[fr,zn,Bi,X_,ep,Jc]},vs={findFiberByHostInstance:nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O0={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rp(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||F0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fr.isDisabled&&Fr.supportsFiber)try{Fi=Fr.inject(O0),ea=Fr}catch{}}Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I0;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rd(t))throw Error(G(200));return $0(e,t,null,n)};Ct.createRoot=function(e,t){if(!rd(e))throw Error(G(299));var n=!1,s="",r=$m;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=ad(e,1,!1,null,null,n,!1,s,r),e[fa]=t.current,Gs(e.nodeType===8?e.parentNode:e),new sd(t)};Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(G(188)):(e=Object.keys(e).join(","),Error(G(268,e)));return e=rp(t),e=e===null?null:e.stateNode,e};Ct.flushSync=function(e){return hn(e)};Ct.hydrate=function(e,t,n){if(!Zi(t))throw Error(G(200));return Ji(null,e,t,!0,n)};Ct.hydrateRoot=function(e,t,n){if(!rd(e))throw Error(G(405));var s=n!=null&&n.hydratedSources||null,r=!1,i="",l=$m;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Pm(t,null,e,1,n??null,r,!1,i,l),e[fa]=t.current,Gs(e),s)for(e=0;e<s.length;e++)n=s[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Yi(t)};Ct.render=function(e,t,n){if(!Zi(t))throw Error(G(200));return Ji(null,e,t,!1,n)};Ct.unmountComponentAtNode=function(e){if(!Zi(e))throw Error(G(40));return e._reactRootContainer?(hn(function(){Ji(null,null,e,!1,function(){e._reactRootContainer=null,e[fa]=null})}),!0):!1};Ct.unstable_batchedUpdates=Jc;Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Zi(n))throw Error(G(200));if(e==null||e._reactInternals===void 0)throw Error(G(38));return Ji(e,t,n,!1,s)};Ct.version="18.3.1-next-f1338f8080-20240426";function Fm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fm)}catch(e){console.error(e)}}Fm(),F_.exports=Ct;var $t=F_.exports,Rm,Lu=$t;Rm=eo.createRoot=Lu.createRoot,eo.hydrateRoot=Lu.hydrateRoot;/**
41
+ * @remix-run/router v1.23.4
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},sr.apply(null,arguments)}var La;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(La||(La={}));const Du="popstate";function B0(e){e===void 0&&(e={});function t(s,r){let{pathname:i,search:l,hash:o}=s.location;return Qo("",{pathname:i,search:l,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(s,r){return typeof r=="string"?r:Ti(r)}return U0(t,n,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Im(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function H0(){return Math.random().toString(36).substr(2,8)}function Pu(e,t){return{usr:e.state,key:e.key,idx:t}}function Qo(e,t,n,s){return n===void 0&&(n=null),sr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ls(t):t,{state:n,key:t&&t.key||s||H0()})}function Ti(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function ls(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function U0(e,t,n,s){s===void 0&&(s={});let{window:r=document.defaultView,v5Compat:i=!1}=s,l=r.history,o=La.Pop,c=null,u=m();u==null&&(u=0,l.replaceState(sr({},l.state,{idx:u}),""));function m(){return(l.state||{idx:null}).idx}function h(){o=La.Pop;let C=m(),f=C==null?null:C-u;u=C,c&&c({action:o,location:k.location,delta:f})}function p(C,f){o=La.Push;let v=Qo(k.location,C,f);u=m()+1;let b=Pu(v,u),x=k.createHref(v);try{l.pushState(b,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;r.location.assign(x)}i&&c&&c({action:o,location:k.location,delta:1})}function g(C,f){o=La.Replace;let v=Qo(k.location,C,f);u=m();let b=Pu(v,u),x=k.createHref(v);l.replaceState(b,"",x),i&&c&&c({action:o,location:k.location,delta:0})}function y(C){let f=r.location.origin!=="null"?r.location.origin:r.location.href,v=typeof C=="string"?C:Ti(C);return v=v.replace(/ $/,"%20"),Re(f,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,f)}let k={get action(){return o},get location(){return e(r,l)},listen(C){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(Du,h),c=C,()=>{r.removeEventListener(Du,h),c=null}},createHref(C){return t(r,C)},createURL:y,encodeLocation(C){let f=y(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:p,replace:g,go(C){return l.go(C)}};return k}var $u;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($u||($u={}));function V0(e,t,n){return n===void 0&&(n="/"),W0(e,t,n)}function W0(e,t,n,s){let r=typeof t=="string"?ls(t):t,i=id(r.pathname||"/",n);if(i==null)return null;let l=Om(e);K0(l);let o=null,c=rg(i);for(let u=0;o==null&&u<l.length;++u)o=ag(l[u],c);return o}function Om(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let r=(i,l,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(Re(c.relativePath.startsWith(s),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(s.length));let u=Ha([s,c.relativePath]),m=n.concat(c);i.children&&i.children.length>0&&(Re(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Om(i.children,t,m,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:eg(u,i.index),routesMeta:m})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,l);else for(let c of Bm(i.path))r(i,l,c)}),t}function Bm(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return r?[i,""]:[i];let l=Bm(s.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),r&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function K0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tg(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const Q0=/^:[\w-]+$/,G0=3,Y0=2,Z0=1,J0=10,X0=-2,Fu=e=>e==="*";function eg(e,t){let n=e.split("/"),s=n.length;return n.some(Fu)&&(s+=X0),t&&(s+=Y0),n.filter(r=>!Fu(r)).reduce((r,i)=>r+(Q0.test(i)?G0:i===""?Z0:J0),s)}function tg(e,t){return e.length===t.length&&e.slice(0,-1).every((s,r)=>s===t[r])?e[e.length-1]-t[t.length-1]:0}function ag(e,t,n){let{routesMeta:s}=e,r={},i="/",l=[];for(let o=0;o<s.length;++o){let c=s[o],u=o===s.length-1,m=i==="/"?t:t.slice(i.length)||"/",h=ng({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},m),p=c.route;if(!h)return null;Object.assign(r,h.params),l.push({params:r,pathname:Ha([i,h.pathname]),pathnameBase:og(Ha([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=Ha([i,h.pathnameBase]))}return l}function ng(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=sg(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],l=i.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:s.reduce((u,m,h)=>{let{paramName:p,isOptional:g}=m;if(p==="*"){let k=o[h]||"";l=i.slice(0,i.length-k.length).replace(/(.)\/+$/,"$1")}const y=o[h];return g&&!y?u[p]=void 0:u[p]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function sg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Im(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c)=>(s.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),s]}function rg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Im(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function id(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function ig(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:r=""}=typeof e=="string"?ls(e):e,i;return n?(n=Hm(n),n.startsWith("/")?i=Ru(n.substring(1),"/"):i=Ru(n,t)):i=t,{pathname:i,search:cg(s),hash:dg(r)}}function Ru(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function $l(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ld(e,t){let n=lg(e);return t?n.map((s,r)=>r===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function od(e,t,n,s){s===void 0&&(s=!1);let r;typeof e=="string"?r=ls(e):(r=sr({},e),Re(!r.pathname||!r.pathname.includes("?"),$l("?","pathname","search",r)),Re(!r.pathname||!r.pathname.includes("#"),$l("#","pathname","hash",r)),Re(!r.search||!r.search.includes("#"),$l("#","search","hash",r)));let i=e===""||r.pathname==="",l=i?"/":r.pathname,o;if(l==null)o=n;else{let h=t.length-1;if(!s&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),h-=1;r.pathname=p.join("/")}o=h>=0?t[h]:"/"}let c=ig(r,o),u=l&&l!=="/"&&l.endsWith("/"),m=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||m)&&(c.pathname+="/"),c}const Hm=e=>e.replace(/\/\/+/g,"/"),Ha=e=>Hm(e.join("/")),og=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ug(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Um=["post","put","patch","delete"];new Set(Um);const _g=["get",...Um];new Set(_g);/**
50
+ * React Router v6.30.6
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},rr.apply(null,arguments)}const cd=_.createContext(null),pg=_.createContext(null),Za=_.createContext(null),Xi=_.createContext(null),ya=_.createContext({outlet:null,matches:[],isDataRoute:!1}),Vm=_.createContext(null);function mg(e,t){let{relative:n}=t===void 0?{}:t;os()||Re(!1);let{basename:s,navigator:r}=_.useContext(Za),{hash:i,pathname:l,search:o}=Km(e,{relative:n}),c=l;return s!=="/"&&(c=l==="/"?s:Ha([s,l])),r.createHref({pathname:c,search:o,hash:i})}function os(){return _.useContext(Xi)!=null}function Ja(){return os()||Re(!1),_.useContext(Xi).location}function Wm(e){_.useContext(Za).static||_.useLayoutEffect(e)}function Xa(){let{isDataRoute:e}=_.useContext(ya);return e?Cg():hg()}function hg(){os()||Re(!1);let e=_.useContext(cd),{basename:t,future:n,navigator:s}=_.useContext(Za),{matches:r}=_.useContext(ya),{pathname:i}=Ja(),l=JSON.stringify(ld(r,n.v7_relativeSplatPath)),o=_.useRef(!1);return Wm(()=>{o.current=!0}),_.useCallback(function(u,m){if(m===void 0&&(m={}),!o.current)return;if(typeof u=="number"){s.go(u);return}let h=od(u,JSON.parse(l),i,m.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ha([t,h.pathname])),(m.replace?s.replace:s.push)(h,m.state,m)},[t,s,l,i,e])}function el(){let{matches:e}=_.useContext(ya),t=e[e.length-1];return t?t.params:{}}function Km(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=_.useContext(Za),{matches:r}=_.useContext(ya),{pathname:i}=Ja(),l=JSON.stringify(ld(r,s.v7_relativeSplatPath));return _.useMemo(()=>od(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function fg(e,t){return gg(e,t)}function gg(e,t,n,s){os()||Re(!1);let{navigator:r}=_.useContext(Za),{matches:i}=_.useContext(ya),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let u=Ja(),m;if(t){var h;let C=typeof t=="string"?ls(t):t;c==="/"||(h=C.pathname)!=null&&h.startsWith(c)||Re(!1),m=C}else m=u;let p=m.pathname||"/",g=p;if(c!=="/"){let C=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=V0(e,{pathname:g}),k=jg(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},o,C.params),pathname:Ha([c,r.encodeLocation?r.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?c:Ha([c,r.encodeLocation?r.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,s);return t&&k?_.createElement(Xi.Provider,{value:{location:rr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:La.Pop}},k):k}function vg(){let e=Sg(),t=ug(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:r},n):null,null)}const bg=_.createElement(vg,null);class xg extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?_.createElement(ya.Provider,{value:this.props.routeContext},_.createElement(Vm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yg(e){let{routeContext:t,match:n,children:s}=e,r=_.useContext(cd);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(ya.Provider,{value:t},s)}function jg(e,t,n,s){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let m=l.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);m>=0||Re(!1),l=l.slice(0,Math.min(l.length,m+1))}let c=!1,u=-1;if(n&&s&&s.v7_partialHydration)for(let m=0;m<l.length;m++){let h=l[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=m),h.route.id){let{loaderData:p,errors:g}=n,y=h.route.loader&&p[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||y){c=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((m,h,p)=>{let g,y=!1,k=null,C=null;n&&(g=o&&h.route.id?o[h.route.id]:void 0,k=h.route.errorElement||bg,c&&(u<0&&p===0?(qg("route-fallback"),y=!0,C=null):u===p&&(y=!0,C=h.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,p+1)),v=()=>{let b;return g?b=k:y?b=C:h.route.Component?b=_.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=m,_.createElement(yg,{match:h,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?_.createElement(xg,{location:n.location,revalidation:n.revalidation,component:k,error:g,children:v(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):v()},null)}var Qm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Qm||{}),Gm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Gm||{});function wg(e){let t=_.useContext(cd);return t||Re(!1),t}function kg(e){let t=_.useContext(pg);return t||Re(!1),t}function Ng(e){let t=_.useContext(ya);return t||Re(!1),t}function Ym(e){let t=Ng(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function Sg(){var e;let t=_.useContext(Vm),n=kg(),s=Ym();return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function Cg(){let{router:e}=wg(Qm.UseNavigateStable),t=Ym(Gm.UseNavigateStable),n=_.useRef(!1);return Wm(()=>{n.current=!0}),_.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,rr({fromRouteId:t},i)))},[e,t])}const Iu={};function qg(e,t,n){Iu[e]||(Iu[e]=!0)}function Eg(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ou(e){let{to:t,replace:n,state:s,relative:r}=e;os()||Re(!1);let{future:i,static:l}=_.useContext(Za),{matches:o}=_.useContext(ya),{pathname:c}=Ja(),u=Xa(),m=od(t,ld(o,i.v7_relativeSplatPath),c,r==="path"),h=JSON.stringify(m);return _.useEffect(()=>u(JSON.parse(h),{replace:n,state:s,relative:r}),[u,h,r,n,s]),null}function wn(e){Re(!1)}function Mg(e){let{basename:t="/",children:n=null,location:s,navigationType:r=La.Pop,navigator:i,static:l=!1,future:o}=e;os()&&Re(!1);let c=t.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:c,navigator:i,static:l,future:rr({v7_relativeSplatPath:!1},o)}),[c,o,i,l]);typeof s=="string"&&(s=ls(s));let{pathname:m="/",search:h="",hash:p="",state:g=null,key:y="default"}=s,k=_.useMemo(()=>{let C=id(m,c);return C==null?null:{location:{pathname:C,search:h,hash:p,state:g,key:y},navigationType:r}},[c,m,h,p,g,y,r]);return k==null?null:_.createElement(Za.Provider,{value:u},_.createElement(Xi.Provider,{children:n,value:k}))}function zg(e){let{children:t,location:n}=e;return fg(Go(t),n)}new Promise(()=>{});function Go(e,t){t===void 0&&(t=[]);let n=[];return _.Children.forEach(e,(s,r)=>{if(!_.isValidElement(s))return;let i=[...t,r];if(s.type===_.Fragment){n.push.apply(n,Go(s.props.children,i));return}s.type!==wn&&Re(!1),!s.props.index||!s.props.children||Re(!1);let l={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(l.children=Go(s.props.children,i)),n.push(l)}),n}/**
59
+ * React Router DOM v6.30.6
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Yo.apply(null,arguments)}function Tg(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;n[s]=e[s]}return n}function Ag(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Lg(e,t){return e.button===0&&(!t||t==="_self")&&!Ag(e)}function Zo(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let s=e[n];return t.concat(Array.isArray(s)?s.map(r=>[n,r]):[[n,s]])},[]))}function Dg(e,t){let n=Zo(e);return t&&t.forEach((s,r)=>{n.has(r)||t.getAll(r).forEach(i=>{n.append(r,i)})}),n}const Pg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$g="6";try{window.__reactRouterVersion=$g}catch{}const Fg="startTransition",Bu=zf[Fg];function Rg(e){let{basename:t,children:n,future:s,window:r}=e,i=_.useRef();i.current==null&&(i.current=B0({window:r,v5Compat:!0}));let l=i.current,[o,c]=_.useState({action:l.action,location:l.location}),{v7_startTransition:u}=s||{},m=_.useCallback(h=>{u&&Bu?Bu(()=>c(h)):c(h)},[c,u]);return _.useLayoutEffect(()=>l.listen(m),[l,m]),_.useEffect(()=>Eg(s),[s]),_.createElement(Mg,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:s})}const Ig=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bg=_.forwardRef(function(t,n){let{onClick:s,relative:r,reloadDocument:i,replace:l,state:o,target:c,to:u,preventScrollReset:m,viewTransition:h}=t,p=Tg(t,Pg),{basename:g}=_.useContext(Za),y,k=!1;if(typeof u=="string"&&Og.test(u)&&(y=u,Ig))try{let b=new URL(window.location.href),x=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=id(x.pathname,g);x.origin===b.origin&&w!=null?u=w+x.search+x.hash:k=!0}catch{}let C=mg(u,{relative:r}),f=Hg(u,{replace:l,state:o,target:c,preventScrollReset:m,relative:r,viewTransition:h});function v(b){s&&s(b),b.defaultPrevented||f(b)}return _.createElement("a",Yo({},p,{href:y||C,onClick:k||i?s:v,ref:n,target:c}))});var Hu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hu||(Hu={}));var Uu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Uu||(Uu={}));function Hg(e,t){let{target:n,replace:s,state:r,preventScrollReset:i,relative:l,viewTransition:o}=t===void 0?{}:t,c=Xa(),u=Ja(),m=Km(e,{relative:l});return _.useCallback(h=>{if(Lg(h,n)){h.preventDefault();let p=s!==void 0?s:Ti(u)===Ti(m);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:o})}},[u,c,m,s,r,n,e,i,l,o])}function Ug(e){let t=_.useRef(Zo(e)),n=_.useRef(!1),s=Ja(),r=_.useMemo(()=>Dg(s.search,n.current?null:t.current),[s.search]),i=Xa(),l=_.useCallback((o,c)=>{const u=Zo(typeof o=="function"?o(r):o);n.current=!0,i("?"+u,c)},[i,r]);return[r,l]}const tl="/__world-api";class ri extends Error{constructor(t,n,s=0){super(t),this.code=t,this.status=n,this.retryAfterMs=s}}class Vn extends Error{}function Vg(e){const t=new URLSearchParams;for(const[n,s]of Object.entries(e))s==null||s===""||t.set(n,typeof s=="object"?JSON.stringify(s):String(s));return t}const Wg=1e4,Kg=1e3;function Qg(e,t){return Math.max(e,Kg*2**t)}async function we(e,t={},{retries:n=1/0,budgetMs:s=Wg}={}){let r=0,i=0;for(;;){let l;try{l=await fetch(`${tl}/api/${e}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8",Authorization:"Bearer xoxp-twin"},body:Vg(t)})}catch(h){throw new Vn(h instanceof Error?h.message:"network")}const o=await l.text();let c;try{c=o?JSON.parse(o):{}}catch{throw new Vn(`bad response (${l.status})`)}if(c.ok)return c;if(l.status>=500&&!c.error)throw new Vn(`upstream ${l.status}`);const u=c.error??`http_${l.status}`,m=Number(l.headers.get("Retry-After")??1)*1e3;if(u==="ratelimited"&&r<n){const h=Qg(m,r);if(i+h<=s){r+=1,i+=h,await new Promise(p=>setTimeout(p,h));continue}}throw new ri(u,l.status,m)}}const ge={authTest:()=>we("auth.test"),teamInfo:()=>we("team.info"),teamInfoById:e=>we("team.info",{team:e}),usersList:()=>we("users.list",{limit:500}),usersInfo:e=>we("users.info",{user:e}),setPresence:e=>we("users.setPresence",{presence:e}),conversationsList:e=>we("conversations.list",{types:"public_channel,private_channel,im,mpim",limit:200,cursor:e}),conversationsInfo:e=>we("conversations.info",{channel:e}),history:(e,t={})=>we("conversations.history",{channel:e,limit:100,...t}),replies:(e,t)=>we("conversations.replies",{channel:e,ts:t,limit:200}),members:e=>we("conversations.members",{channel:e,limit:500}),mark:(e,t)=>we("conversations.mark",{channel:e,ts:t},{retries:0}),join:e=>we("conversations.join",{channel:e}),leave:e=>we("conversations.leave",{channel:e}),typing:e=>we("conversations.typing",{channel:e},{retries:0}),starAdd:e=>we("stars.add",{channel:e}),starRemove:e=>we("stars.remove",{channel:e}),prefsGet:()=>we("users.prefs.get"),setMutedChannels:e=>we("users.prefs.set",{name:"muted_channels",value:e.join(",")}),create:(e,t)=>we("conversations.create",{name:e,is_private:t}),open:e=>we("conversations.open",{users:e.join(",")}),postMessage:e=>we("chat.postMessage",e),update:(e,t,n)=>we("chat.update",{channel:e,ts:t,text:n}),remove:(e,t)=>we("chat.delete",{channel:e,ts:t}),reactionAdd:(e,t,n)=>we("reactions.add",{channel:e,timestamp:t,name:n}),reactionRemove:(e,t,n)=>we("reactions.remove",{channel:e,timestamp:t,name:n}),pinAdd:(e,t)=>we("pins.add",{channel:e,timestamp:t}),pinRemove:(e,t)=>we("pins.remove",{channel:e,timestamp:t}),pinsList:e=>we("pins.list",{channel:e}),search:(e,t=50)=>we("search.messages",{query:e,count:t}),emojiList:()=>we("emoji.list"),filesList:e=>we("files.list",{channel:e,count:100}),health:async()=>{try{return(await fetch(`${tl}/healthz`,{cache:"no-store"})).ok}catch{return!1}}};function nt(e){return e?/^https?:/.test(e)?e:tl+e:""}const fn={logo:0,skeleton:330,chrome:490,sidebar:1530,content:2340},Gg=fn.skeleton,Yg=200,Zg=250,Jg=80,Xg=6e3,Zm=1e4,ev=0,tv=730,Vu=1e3,Jm=300,av=300,ir=300,nv=450,sv=5e3,rv=3e3,iv=200,lv=200,ov=250,Xm="twin.saved";function cv(){try{const e=typeof localStorage<"u"?localStorage.getItem(Xm):null;return e?JSON.parse(e):{}}catch{return{}}}const dv={phase:"logo",me:"",team:{id:"",name:"Gateway",domain:"gateway"},users:{},channels:{},messages:{},pending:{},loaded:{},threadsLoaded:{},emoji:{standard:{},custom:{}},typing:{},connectivity:"online",activeChannel:null,theme:typeof localStorage<"u"&&localStorage.getItem("twin.theme")||"light",lastEvent:0,broadcast:{},saved:cv()},uv=(e,t)=>Number(e.ts)-Number(t.ts);function lr(e){return!e.thread_ts||e.thread_ts===e.ts}function _v(e,t,n){return lr(e)&&Number(e.ts)>Number(t??0)&&e.user!==n&&e.subtype!=="channel_join"}function eh(e,t,n){if(t.is_im||t.is_mpim)return!0;const s=e.text??"";return s.includes(`<@${n}>`)||/<!(channel|here|everyone)>/.test(s)}function pv(e,t,n,s){const r=t.filter(l=>_v(l,n,s)),i=r.filter(l=>eh(l,e,s)).length;return{...e,last_read:n,unread_count:r.length,unread_count_display:r.length,mention_count:i,mention_count_display:i}}function Rr(e,t){const n=e.findIndex(r=>r.ts===t.ts);if(n===-1)return[...e,t].sort(uv);const s=e.slice();return s[n]={...s[n],...t},s}function mv(e,t){switch(t.type){case"phase":return{...e,phase:t.phase,error:t.error};case"bootstrap":{const n=Object.fromEntries(t.users.map(r=>[r.id,r])),s=Object.fromEntries(t.channels.map(r=>[r.id,r]));return{...e,me:t.me,team:t.team,users:n,channels:s,emoji:t.emoji}}case"channels":return{...e,channels:{...e.channels,...Object.fromEntries(t.channels.map(n=>[n.id,n]))}};case"channel":return{...e,channels:{...e.channels,[t.channel.id]:{...e.channels[t.channel.id],...t.channel}}};case"loading":return{...e,loaded:{...e.loaded,[t.channel]:t.state}};case"history":{const n=t.replace?[]:e.messages[t.channel]??[],s=t.messages.reduce(Rr,n);return{...e,messages:{...e.messages,[t.channel]:s},loaded:{...e.loaded,[t.channel]:"done"}}}case"thread":{const n=t.messages.reduce(Rr,e.messages[t.channel]??[]);return{...e,messages:{...e.messages,[t.channel]:n},threadsLoaded:{...e.threadsLoaded,[`${t.channel}:${t.ts}`]:!0}}}case"message":{const{channel:n,message:s}=t;let r=Rr(e.messages[n]??[],s);lr(s)||(r=r.map(p=>{if(p.ts!==s.thread_ts)return p;const g=p.reply_users??[],y=r.filter(k=>k.thread_ts===p.ts&&k.ts!==p.ts);return{...p,thread_ts:p.ts,reply_count:Math.max(p.reply_count??0,y.length),latest_reply:s.ts,reply_users:s.user&&!g.includes(s.user)?[...g,s.user]:g}}));const i=(e.pending[n]??[]).filter(p=>!s.client_msg_id||p.client_msg_id!==s.client_msg_id),l=e.channels[n],o=s.user===e.me,c=e.activeChannel===n,u=lr(s)&&!o&&!c&&s.subtype!=="channel_join",m=u&&l?eh(s,l,e.me):!1,h=l?{...e.channels,[n]:{...l,latest:{ts:s.ts,text:s.text,user:s.user},unread_count:(l.unread_count??0)+(u?1:0),unread_count_display:(l.unread_count_display??0)+(u?1:0),mention_count:(l.mention_count??0)+(m?1:0),mention_count_display:(l.mention_count_display??0)+(m?1:0),last_read:o?s.ts:l.last_read}}:e.channels;return{...e,messages:{...e.messages,[n]:r},pending:{...e.pending,[n]:i},channels:h}}case"message_changed":return{...e,messages:{...e.messages,[t.channel]:Rr(e.messages[t.channel]??[],t.message)}};case"message_deleted":{const n=(e.messages[t.channel]??[]).filter(s=>s.ts!==t.ts&&s.thread_ts!==t.ts);return{...e,messages:{...e.messages,[t.channel]:n}}}case"reaction":{const n=(e.messages[t.channel]??[]).map(s=>{if(s.ts!==t.ts)return s;const r=(s.reactions??[]).map(o=>({...o,users:o.users.slice()}));let i=r.find(o=>o.name===t.name);t.added?(i||(i={name:t.name,users:[],count:0},r.push(i)),i.users.includes(t.user)||i.users.push(t.user)):i&&(i.users=i.users.filter(o=>o!==t.user));const l=r.map(o=>({...o,count:o.users.length})).filter(o=>o.count>0);return{...s,reactions:l.length?l:void 0}});return{...e,messages:{...e.messages,[t.channel]:n}}}case"pending":return{...e,pending:{...e.pending,[t.channel]:[...e.pending[t.channel]??[],t.message]}};case"pending_done":{const n=(e.pending[t.channel]??[]).flatMap(s=>s.client_msg_id!==t.clientId?[s]:t.error?[{...s,_status:"failed",_error:t.error}]:[]);return{...e,pending:{...e.pending,[t.channel]:n}}}case"typing":return{...e,typing:{...e.typing,[t.channel]:{...e.typing[t.channel],[t.user]:t.until}}};case"typing_sweep":{const n={};let s=!1;for(const[r,i]of Object.entries(e.typing)){const l=Object.fromEntries(Object.entries(i).filter(([,o])=>o>t.now));Object.keys(l).length!==Object.keys(i).length&&(s=!0),Object.keys(l).length&&(n[r]=l)}return s?{...e,typing:n}:e}case"presence":{const n=e.users[t.user];return n?{...e,users:{...e.users,[t.user]:{...n,presence:t.presence}}}:e}case"marked":{const n=e.channels[t.channel];if(!n)return e;const s=pv(n,e.messages[t.channel]??[],t.ts,e.me);return t.unread_count!==void 0&&(s.unread_count=t.unread_count,s.unread_count_display=t.unread_count),t.mention_count!==void 0&&(s.mention_count=t.mention_count,s.mention_count_display=t.mention_count),{...e,channels:{...e.channels,[t.channel]:s}}}case"starred":{const n=e.channels[t.channel];return!n||!!n.is_starred===t.starred?e:{...e,channels:{...e.channels,[t.channel]:{...n,is_starred:t.starred}}}}case"muted":{const n=new Set(t.channels),s=Object.fromEntries(Object.entries(e.channels).map(([r,i])=>[r,!!i.is_muted===n.has(r)?i:{...i,is_muted:n.has(r)}]));return{...e,channels:s}}case"connectivity":return e.connectivity===t.connectivity?e:{...e,connectivity:t.connectivity};case"active":return{...e,activeChannel:t.channel};case"theme":return{...e,theme:t.theme};case"event_seq":return{...e,lastEvent:Math.max(e.lastEvent,t.seq)};case"broadcast":{const n=`${t.channel}:${t.ts}`;if(!!e.broadcast[n]===t.on)return e;const{[n]:s,...r}=e.broadcast;return{...e,broadcast:t.on?{...r,[n]:!0}:r}}case"saved":{const n=`${t.channel}:${t.ts}`;if(!!e.saved[n]===t.on)return e;const{[n]:s,...r}=e.saved;return{...e,saved:t.on?{...r,[n]:!0}:r}}default:return e}}const th=_.createContext(null);let Wu=0;const hv=new Set(["not_in_channel","is_archived","restricted_action","channel_not_found"]),fv=5e3;function gv({children:e}){const[t,n]=_.useReducer(mv,dv),s=_.useRef(t);s.current=t;const r=_.useRef(null),i=_.useCallback(async E=>{try{const O=await E();return s.current.connectivity!=="online"&&n({type:"connectivity",connectivity:"online"}),O}catch(O){throw O instanceof Vn&&(n({type:"connectivity",connectivity:"offline"}),l()),O}},[]),l=_.useCallback((E=Vu)=>{if(r.current!==null){if(E>0)return;window.clearTimeout(r.current)}const O=async()=>{if(await ge.health()){r.current=null,n({type:"connectivity",connectivity:"online"}),window.setTimeout(()=>void u(),tv);return}r.current=window.setTimeout(O,Vu)};r.current=window.setTimeout(O,E)},[]);_.useEffect(()=>{const E=()=>{n({type:"connectivity",connectivity:"offline"}),l()},O=()=>{s.current.connectivity!=="online"&&l(0)};return window.addEventListener("offline",E),window.addEventListener("online",O),()=>{window.removeEventListener("offline",E),window.removeEventListener("online",O)}},[l]);const o=_.useCallback(async()=>{var D;const E=[];let O;do{const W=await ge.conversationsList(O);E.push(...W.channels),O=((D=W.response_metadata)==null?void 0:D.next_cursor)||void 0}while(O);return E},[]),c=_.useCallback(async()=>{try{const[E,O,D,W,Y]=await Promise.all([ge.authTest(),ge.teamInfo(),ge.usersList(),o(),ge.emojiList()]);n({type:"bootstrap",me:E.user_id,team:O.team,users:D.members,channels:W,emoji:{standard:Y.standard??{},custom:Y.emoji??{}}}),n({type:"connectivity",connectivity:"online"});const T=Math.max(0,fn.sidebar-performance.now());window.setTimeout(()=>n({type:"phase",phase:"ready"}),T)}catch(E){if(E instanceof Vn){n({type:"connectivity",connectivity:"offline"}),window.setTimeout(c,2e3);return}n({type:"phase",phase:"error",error:E instanceof Error?E.message:String(E)})}},[o]);_.useEffect(()=>{const E=window.setTimeout(()=>{s.current.phase==="logo"&&n({type:"phase",phase:"skeleton"})},Math.max(0,Gg-performance.now()));return c(),()=>window.clearTimeout(E)},[c]),_.useEffect(()=>{document.documentElement.setAttribute("data-theme",t.theme);try{localStorage.setItem("twin.theme",t.theme)}catch{}},[t.theme]),_.useEffect(()=>{const E=window.setInterval(()=>n({type:"typing_sweep",now:Date.now()}),1e3);return()=>window.clearInterval(E)},[]),_.useEffect(()=>{try{localStorage.setItem(Xm,JSON.stringify(t.saved))}catch{}},[t.saved]);const u=_.useCallback(async()=>{try{const E=await o();n({type:"channels",channels:E});const O=s.current.activeChannel;if(O){const D=await ge.history(O);n({type:"history",channel:O,messages:D.messages,replace:!0})}}catch{}},[o]),m=t.connectivity==="offline";_.useEffect(()=>{if(t.phase==="error"||m)return;let E=null,O=!1,D=!1;return(()=>{if(O)return;E=new EventSource(`${tl}/events?since=${s.current.lastEvent}`),E.onopen=()=>{D&&u(),D=!1,n({type:"connectivity",connectivity:"online"})},E.onerror=()=>{D=!0,s.current.connectivity==="online"&&n({type:"connectivity",connectivity:"reconnecting"})};const Y=($,Z)=>{E==null||E.addEventListener($,N=>{const H=N,J=Number(H.lastEventId||0);n({type:"event_seq",seq:J}),Z(JSON.parse(H.data),J)})};Y("message",$=>{const Z=$.channel;if($.subtype==="message_changed")n({type:"message_changed",channel:Z,message:$.message});else if($.subtype==="message_deleted")n({type:"message_deleted",channel:Z,ts:$.deleted_ts});else{const{channel:N,channel_type:H,event_ts:J,...re}=$;n({type:"message",channel:Z,message:re})}});const T=$=>Z=>{const N=Z.item;n({type:"reaction",channel:N.channel,ts:N.ts,name:Z.reaction,user:Z.user,added:$})};Y("reaction_added",T(!0)),Y("reaction_removed",T(!1)),Y("user_typing",$=>{$.user!==s.current.me&&n({type:"typing",channel:$.channel,user:$.user,until:Date.now()+sv})}),Y("presence_change",$=>n({type:"presence",user:$.user,presence:$.presence})),Y("channel_marked",$=>n({type:"marked",channel:$.channel,ts:$.ts,unread_count:typeof $.unread_count=="number"?$.unread_count:void 0,mention_count:typeof $.mention_count=="number"?$.mention_count:void 0})),Y("channel_created",$=>n({type:"channel",channel:$.channel})),Y("im_created",$=>n({type:"channel",channel:$.channel})),Y("group_open",$=>n({type:"channel",channel:$.channel})),Y("member_joined_channel",()=>void u()),Y("member_left_channel",()=>void u());const q=$=>Z=>{const N=Z.channel,H=s.current.channels[N];H&&n({type:"channel",channel:{...H,is_archived:$}})};Y("channel_archive",q(!0)),Y("channel_unarchive",q(!1));const U=$=>Z=>{const N=Z.item;(N==null?void 0:N.type)==="channel"&&N.channel&&n({type:"starred",channel:N.channel,starred:$})};Y("star_added",U(!0)),Y("star_removed",U(!1)),Y("pref_change",$=>{$.name==="muted_channels"&&n({type:"muted",channels:String($.value??"").split(",").filter(Boolean)})}),Y("pin_added",$=>{const Z=$.item;n({type:"message_changed",channel:Z.channel,message:{...Z.message,pinned_to:[Z.channel]}})}),Y("pin_removed",$=>{var H;const Z=$.item,N=(H=s.current.messages[Z.channel])==null?void 0:H.find(J=>J.ts===Z.ts);N&&n({type:"message_changed",channel:Z.channel,message:{...N,pinned_to:void 0}})})})(),()=>{O=!0,E==null||E.close()}},[t.phase,m,u]);const h=_.useCallback(async E=>{if(!(s.current.loaded[E]==="done"||s.current.loaded[E]==="loading")){n({type:"loading",channel:E,state:"loading"});try{const O=await i(()=>ge.history(E));n({type:"history",channel:E,messages:O.messages,replace:!0})}catch{n({type:"loading",channel:E,state:"error"})}}},[i]),p=_.useCallback(async(E,O)=>{const D=await i(()=>ge.replies(E,O));n({type:"thread",channel:E,ts:O,messages:D.messages})},[i]),g=_.useRef({}),y=_.useCallback(E=>{const O=s.current,D=(O.messages[E]??[]).filter(lr),W=D[D.length-1];if(!W)return;const Y=O.channels[E];Y&&Y.last_read===W.ts&&!Y.unread_count||(n({type:"marked",channel:E,ts:W.ts}),window.clearTimeout(g.current[E]),g.current[E]=window.setTimeout(()=>{ge.mark(E,W.ts).catch(()=>{})},300))},[]),k=_.useCallback((E,O)=>{const D=(s.current.messages[E]??[]).filter(lr),W=D.findIndex(T=>T.ts===O);if(W===-1)return;const Y=W>0?D[W-1].ts:"0000000000.000000";n({type:"marked",channel:E,ts:Y}),window.clearTimeout(g.current[E]),ge.mark(E,Y).catch(()=>{})},[]),C=_.useCallback(()=>{var O;const E=s.current;for(const D of Object.values(E.channels)){if(!D.is_member||!(D.unread_count??0))continue;const W=(O=D.latest)==null?void 0:O.ts;W&&(n({type:"marked",channel:D.id,ts:W,unread_count:0,mention_count:0}),ge.mark(D.id,W).catch(()=>{}))}},[]),f=_.useCallback((E,O,D)=>n({type:"broadcast",channel:E,ts:O,on:D}),[]),v=_.useRef({}),b=_.useCallback(E=>{const O=Date.now();O-(v.current[E]??0)<rv||s.current.connectivity==="online"&&(v.current[E]=O,ge.typing(E).catch(()=>{}))},[]),x=_.useCallback(async E=>{await i(()=>ge.leave(E));const O=s.current.channels[E];O&&n({type:"channel",channel:{...O,is_member:!1,unread_count:0,unread_count_display:0,mention_count:0,mention_count_display:0}})},[i]),w=_.useCallback(async E=>{var D;const O=!!((D=s.current.channels[E])!=null&&D.is_starred);n({type:"starred",channel:E,starred:!O});try{await i(()=>O?ge.starRemove(E):ge.starAdd(E))}catch(W){W instanceof ri&&(W.code==="already_starred"||W.code==="not_starred")||n({type:"starred",channel:E,starred:O})}},[i]),S=_.useCallback(async E=>{const O=Object.values(s.current.channels).filter(W=>W.is_muted).map(W=>W.id),D=O.includes(E)?O.filter(W=>W!==E):[...O,E];n({type:"muted",channels:D});try{await i(()=>ge.setMutedChannels(D))}catch{n({type:"muted",channels:O})}},[i]),A=_.useCallback(async(E,O,D,W)=>{const Y=`twin-${Date.now()}-${Wu+=1}`,T=!!D&&((W==null?void 0:W.broadcast)??!!s.current.broadcast[`${E}:${D}`]),q={type:"message",ts:`pending.${Wu}`,user:s.current.me,text:O,thread_ts:D,client_msg_id:Y,_status:"pending"};n({type:"pending",channel:E,message:q});try{const U=await i(()=>ge.postMessage({channel:E,text:O,thread_ts:D,client_msg_id:Y,...T?{reply_broadcast:!0}:{}}));n({type:"message",channel:E,message:{...U.message,client_msg_id:Y}}),n({type:"pending_done",channel:E,clientId:Y}),T&&D&&n({type:"broadcast",channel:E,ts:D,on:!1})}catch(U){const $=U instanceof ri?U.code:U instanceof Vn?"offline":"unknown_error";throw n({type:"pending_done",channel:E,clientId:Y,error:$}),hv.has($)&&ge.conversationsInfo(E).then(Z=>n({type:"channel",channel:Z.channel})).catch(()=>{var Z;return n({type:"channel",channel:{id:E,name:((Z=s.current.channels[E])==null?void 0:Z.name)??null,is_member:!1}})}),U}},[i]),I=_.useRef(null);_.useEffect(()=>{const E=t.me;if(E)for(const[O,D]of Object.entries(t.messages)){const W=D[D.length-1];W&&W.user===E&&W.client_msg_id&&(!I.current||Number(W.ts)>Number(I.current.ts))&&(I.current={channel:O,ts:W.ts,text:W.text,at:Date.now()})}},[t.messages,t.me]);const Q=_.useCallback(async E=>{const O=I.current;return!O||O.channel!==E||Date.now()-O.at>fv?null:(I.current=null,await i(()=>ge.remove(E,O.ts)),n({type:"message_deleted",channel:E,ts:O.ts}),O.text)},[i]),z=_.useCallback(async(E,O)=>{var W;const D=(W=s.current.pending[E])==null?void 0:W.find(Y=>Y.client_msg_id===O);D&&(n({type:"pending_done",channel:E,clientId:O}),await A(E,D.text,D.thread_ts))},[A]),ae=_.useCallback(async(E,O,D)=>{const W=await i(()=>ge.update(E,O,D));n({type:"message_changed",channel:E,message:W.message})},[i]),ce=_.useCallback(async(E,O)=>{await i(()=>ge.remove(E,O)),n({type:"message_deleted",channel:E,ts:O})},[i]),ie=_.useCallback(async(E,O,D)=>{var q,U;const W=s.current.me,Y=(q=s.current.messages[E])==null?void 0:q.find($=>$.ts===O),T=((U=Y==null?void 0:Y.reactions)==null?void 0:U.some($=>$.name===D&&$.users.includes(W)))??!1;n({type:"reaction",channel:E,ts:O,name:D,user:W,added:!T});try{await i(()=>T?ge.reactionRemove(E,O,D):ge.reactionAdd(E,O,D))}catch($){$ instanceof ri&&($.code==="already_reacted"||$.code==="no_reaction")||n({type:"reaction",channel:E,ts:O,name:D,user:W,added:T})}},[i]),P=_.useCallback(async(E,O)=>{var Y,T;const D=(Y=s.current.messages[E])==null?void 0:Y.find(q=>q.ts===O),W=!!((T=D==null?void 0:D.pinned_to)!=null&&T.length);await i(()=>W?ge.pinRemove(E,O):ge.pinAdd(E,O)),D&&n({type:"message_changed",channel:E,message:{...D,pinned_to:W?void 0:[E]}})},[i]),K=_.useCallback((E,O)=>{n({type:"saved",channel:E,ts:O,on:!s.current.saved[`${E}:${O}`]})},[]),L=_.useCallback(async E=>{const O=await i(()=>ge.join(E));n({type:"channel",channel:O.channel}),n({type:"loading",channel:E,state:"loading"});const D=await i(()=>ge.history(E));n({type:"history",channel:E,messages:D.messages,replace:!0})},[i]),B=_.useCallback(async(E,O)=>{const D=await i(()=>ge.create(E,O));return n({type:"channel",channel:D.channel}),D.channel},[i]),j=_.useCallback(async E=>{const O=await i(()=>ge.open(E));return n({type:"channel",channel:{...O.channel,is_open:!0}}),O.channel},[i]),F=_.useCallback(E=>n({type:"active",channel:E}),[]),M=_.useCallback(async E=>{await i(()=>ge.setPresence(E))},[i]),X=_.useCallback(()=>n({type:"theme",theme:s.current.theme==="dark"?"light":"dark"}),[]),oe=_.useMemo(()=>({...t,openChannel:h,loadThread:p,send:A,setBroadcast:f,retry:z,edit:ae,remove:ce,toggleReaction:ie,togglePin:P,toggleSaved:K,markRead:y,markUnread:k,markAllRead:C,sendTyping:b,unsend:Q,leave:x,toggleStar:w,toggleMute:S,join:L,createChannel:B,openDm:j,setActive:F,setPresence:M,toggleTheme:X,refresh:u}),[t,h,p,A,f,z,ae,ce,ie,P,K,y,k,C,b,Q,x,w,S,L,B,j,F,M,X,u]);return a.jsx(th.Provider,{value:oe,children:e})}function me(){const e=_.useContext(th);if(!e)throw new Error("useWorld outside WorldProvider");return e}function Be(){const{users:e,channels:t,emoji:n,me:s}=me();return _.useMemo(()=>{const r=u=>{var m,h,p,g;return((h=(m=e[u])==null?void 0:m.profile)==null?void 0:h.display_name)||((p=e[u])==null?void 0:p.real_name)||((g=e[u])==null?void 0:g.name)||u},i=u=>{var m,h;return((m=e[u])==null?void 0:m.real_name)||((h=e[u])==null?void 0:h.name)||u};return{userName:r,realName:i,channelName:u=>{const m=t[u];return m?m.is_im?m.user?i(m.user):"Direct message":m.is_mpim?(m.name??"").replace(/^mpdm-/,"").replace(/-\d+$/,"").split("--").map(h=>{var p,g;return((g=(p=e[Object.keys(e).find(y=>e[y].name===h)??""])==null?void 0:p.real_name)==null?void 0:g.split(" ")[0])??h}).join(", "):m.name??u:null},emoji:u=>n.standard[u]??null,customEmojiUrl:u=>n.custom[u]??null,selfId:s}},[e,t,n,s])}const ah="twin.prefs",ts=[{id:"aubergine",name:"Aubergine",group:"slack",column_bg:"#3F0E40",menu_bg:"#350d36",active_item:"#1264A3",active_item_text:"#FFFFFF",hover_item:"#350D36",text_color:"#FFFFFF",active_presence:"#2BAC76",badge:"#CD2553"},{id:"clementine",name:"Clementine",group:"slack",column_bg:"#B6421B",menu_bg:"#9C3714",active_item:"#F2C94C",active_item_text:"#1D1C1D",hover_item:"#A33A16",text_color:"#FFFFFF",active_presence:"#8BE38B",badge:"#F2C94C"},{id:"banana",name:"Banana",group:"slack",column_bg:"#E5B02F",menu_bg:"#D39F22",active_item:"#3F0E40",active_item_text:"#FFFFFF",hover_item:"#D8A526",text_color:"#1D1C1D",active_presence:"#007A5A",badge:"#3F0E40",light:!0},{id:"jade",name:"Jade",group:"slack",column_bg:"#1E5B47",menu_bg:"#174B3A",active_item:"#F7D26B",active_item_text:"#1D1C1D",hover_item:"#19503E",text_color:"#FFFFFF",active_presence:"#9BE8B5",badge:"#F7D26B"},{id:"lagoon",name:"Lagoon",group:"slack",column_bg:"#1F5C7C",menu_bg:"#184A65",active_item:"#F5A25D",active_item_text:"#1D1C1D",hover_item:"#1B506C",text_color:"#FFFFFF",active_presence:"#8FE3CF",badge:"#F5A25D"},{id:"lavender",name:"Lavender",group:"slack",column_bg:"#5B4B8A",menu_bg:"#4B3D74",active_item:"#F2B8C6",active_item_text:"#1D1C1D",hover_item:"#50427C",text_color:"#FFFFFF",active_presence:"#B4E5A2",badge:"#F2B8C6"},{id:"horizon",name:"Horizon",group:"slack",column_bg:"#7A3B6B",menu_bg:"#652F58",active_item:"#F6B26B",active_item_text:"#1D1C1D",hover_item:"#6C3460",text_color:"#FFFFFF",active_presence:"#8DE3B0",badge:"#F6B26B"},{id:"barbie",name:"Barbie",group:"slack",column_bg:"#D8368E",menu_bg:"#C02C7C",active_item:"#FFF3B0",active_item_text:"#1D1C1D",hover_item:"#C93084",text_color:"#FFFFFF",active_presence:"#A4F0D6",badge:"#FFF3B0"},{id:"aubergine_classic",name:"Aubergine Classic",group:"classic",column_bg:"#4D394B",menu_bg:"#3E313C",active_item:"#4C9689",active_item_text:"#FFFFFF",hover_item:"#3E313C",text_color:"#FFFFFF",active_presence:"#38978D",badge:"#EB4D5C"},{id:"hoth",name:"Hoth",group:"classic",column_bg:"#F8F8FA",menu_bg:"#F8F8FA",active_item:"#2D9EE0",active_item_text:"#FFFFFF",hover_item:"#FFFFFF",text_color:"#383F45",active_presence:"#60D156",badge:"#DC5960",light:!0},{id:"monument",name:"Monument",group:"classic",column_bg:"#0D7E83",menu_bg:"#076570",active_item:"#F79F66",active_item_text:"#FFFFFF",hover_item:"#D37C71",text_color:"#FFFFFF",active_presence:"#F79F66",badge:"#F15340"},{id:"chocolate",name:"Chocolate",group:"classic",column_bg:"#544538",menu_bg:"#42362B",active_item:"#5DB09D",active_item_text:"#FFFFFF",hover_item:"#4A3C30",text_color:"#FFFFFF",active_presence:"#FFFFFF",badge:"#5DB09D"},{id:"ocean",name:"Ocean",group:"classic",column_bg:"#303E4D",menu_bg:"#2C3849",active_item:"#6698C8",active_item_text:"#FFFFFF",hover_item:"#4A5664",text_color:"#FFFFFF",active_presence:"#94E864",badge:"#78AF8F"},{id:"workhard",name:"Work Hard",group:"classic",column_bg:"#4D5250",menu_bg:"#444A47",active_item:"#D39B46",active_item_text:"#FFFFFF",hover_item:"#434745",text_color:"#FFFFFF",active_presence:"#99D04A",badge:"#DB6668"},{id:"solanum",name:"Solanum",group:"classic",column_bg:"#4F2F4C",menu_bg:"#452842",active_item:"#8C5888",active_item_text:"#FFFFFF",hover_item:"#1C0B1A",text_color:"#FFFFFF",active_presence:"#D0FF00",badge:"#889100"},{id:"brinjal",name:"Brinjal",group:"classic",column_bg:"#4F2F4C",menu_bg:"#452842",active_item:"#8C5888",active_item_text:"#FFFFFF",hover_item:"#1C0B1A",text_color:"#FFFFFF",active_presence:"#00FFB7",badge:"#DE4C0D"},{id:"cotton",name:"Cotton Candy",group:"classic",column_bg:"#BB6A76",menu_bg:"#AD5B67",active_item:"#62B791",active_item_text:"#FFFFFF",hover_item:"#A5516A",text_color:"#FFFFFF",active_presence:"#68F798",badge:"#694464"},{id:"eco",name:"Eco",group:"classic",column_bg:"#86A34E",menu_bg:"#94AF63",active_item:"#FFFFFF",active_item_text:"#6D8B42",hover_item:"#94AF63",text_color:"#FFFFFF",active_presence:"#FFB10A",badge:"#DFA044"},{id:"tritanopia",name:"Tritanopia",group:"vision",column_bg:"#1F2A44",menu_bg:"#182238",active_item:"#E85D75",active_item_text:"#FFFFFF",hover_item:"#1B2540",text_color:"#FFFFFF",active_presence:"#63C5EA",badge:"#E85D75"},{id:"protanopia",name:"Protanopia & Deuteranopia",group:"vision",column_bg:"#23395B",menu_bg:"#1B2C48",active_item:"#F6B53C",active_item_text:"#1D1C1D",hover_item:"#1F3352",text_color:"#FFFFFF",active_presence:"#5BC0EB",badge:"#F6B53C"}];function nh(e){return ts.find(t=>t.id===e)??ts[0]}const bs={notifyDesktop:!0,notifyMobile:!0,notifyAbout:"mentions",notifyThreadReplies:!0,notifyVip:!1,notifyHuddleStarts:!0,activityAllNewPosts:!0,activityReminders:!0,keywords:"",scheduleDays:"weekdays",focusStatus:!0,afterHoursStatus:!0,scheduleStart:"9:00 AM",scheduleEnd:"5:00 PM",reminderTime:"9:00 AM",notificationPreview:!0,muteSounds:!1,soundMessages:"Ding",soundHuddles:"Here you go",soundDmSend:"Whoosh",soundDmReceive:"Knock Brush",badgeOnIcon:!0,flashWindow:"when_idle",emailWhenAway:"15m",tabs:{slackbot:!0,home:!0,dms:!0,activity:!0,files:!0,agents:!0,admin:!0,later:!0,canvases:!1,automations:!1,templates:!1,external:!1},railLabels:"icons_and_text",showAiAgentsInTopBar:!0,sidebarAlways:{slackbot:!1,unreads:!1,huddles:!0,threads:!0,drafts:!0,directories:!0},sidebarShow:"active",channelRecommendations:!0,homeUnreadDot:!0,sidebarSort:"alphabetical",sidebarProfilePhotos:!0,sidebarSeparatePrivate:!1,sidebarShowMuted:!1,colorMode:typeof localStorage<"u"&&localStorage.getItem("twin.theme")||"light",theme:"aubergine",darkerSidebars:!1,windowGradient:!0,messageDisplay:"clean",namesDisplay:"full",emojiStyle:"slack",skinTone:0,jumbomoji:!0,oneClickReactions:!0,oneClickEmoji:["white_check_mark","eyes","raised_hands"],convertEmoticons:!0,showTyping:!0,time24h:!1,colorSwatches:!0,inlineImages:!0,inlineLargeImages:!1,textPreviews:!0,emailPreviews:!0,language:"English (US)",timezoneAuto:!0,timezone:"(UTC-08:00) Pacific Time (US and Canada)",spellcheck:!0,keyboardLayout:"US (QWERTY)",zoom:"100%",animations:!0,tabPreviews:!0,underlineLinks:!1,upArrowEdits:!0,announceMessages:"all",announceHuddles:!0,markAsRead:"left_off",confirmMarkAll:!0,microphone:"Default - MacBook Pro Microphone (Built-in)",speaker:"Default - MacBook Pro Speakers (Built-in)",camera:"FaceTime HD Camera",huddleStatus:!0,huddleJoinMuted:!0,huddleCaptions:!1,huddleWarnLarge:!0,huddleBlur:!1,huddlePreview:!0,huddleReactions:!0,huddleMusic:!0,huddleLeaveOnLock:!1,contactSharing:"anyone",connectDiscoverability:"email",codeBlockEnter:!0,markupFormatting:!1,enterSends:!0,searchExclude:"",cmdFSearch:!1,searchSuggestions:!0,warnDownloads:!0,confirmChannelMentions:!0,confirmLargeHuddles:!0,threadAlsoSend:!1,extra:{}};let ii=vv();const Jo=new Set;function vv(){try{const e=typeof localStorage<"u"?localStorage.getItem(ah):null;if(!e)return bs;const t=JSON.parse(e);return{...bs,...t,tabs:{...bs.tabs,...t.tabs},sidebarAlways:{...bs.sidebarAlways,...t.sidebarAlways}}}catch{return bs}}function da(){return ii}function St(e){ii={...ii,...e};try{localStorage.setItem(ah,JSON.stringify(ii))}catch{}Jo.forEach(t=>t())}function bv(e){return Jo.add(e),()=>Jo.delete(e)}function bt(){return _.useSyncExternalStore(bv,da,da)}function Ku(e){return bt()[e]}function xv(e){return e!=="system"?e:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ir(e){const t=parseInt(e.replace("#",""),16);return[t>>16&255,t>>8&255,t&255]}function yv([e,t,n]){const s=e/255,r=t/255,i=n/255,l=Math.max(s,r,i),o=Math.min(s,r,i),c=(l+o)/2;if(l===o)return[0,0,c];const u=l-o,m=c>.5?u/(2-l-o):u/(l+o);let h=0;return l===s?h=(r-i)/u+(r<i?6:0):l===r?h=(i-s)/u+2:h=(s-r)/u+4,[h/6,m,c]}function jv([e,t,n]){if(t===0)return[n*255,n*255,n*255].map(Math.round);const s=n<.5?n*(1+t):n+t-n*t,r=2*n-s,i=l=>{let o=l;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?r+(s-r)*6*o:o<1/2?s:o<2/3?r+(s-r)*(2/3-o)*6:r};return[i(e+1/3),i(e),i(e-1/3)].map(l=>Math.round(l*255))}const wv={0:.965,5:.94,10:.928,20:.863,30:.79,40:.72,50:.641,60:.5,70:.38,80:.267,90:.19,100:.125,110:.08};function kv(e){if(e==="aubergine")return{};const t=nh(e),[n,s]=yv(Ir(t.column_bg)),r=Math.max(.25,Math.min(.85,s)),i={};for(const[p,g]of Object.entries(wv)){const y=jv([n,r,t.light?1-g:g]);i[`--dt_color-plt-aubergine-${p}`]=y.join(",")}const[l,o,c]=Ir(t.column_bg),[u,m,h]=Ir(t.menu_bg);return i["--tw_client_bg_light"]=`rgb(${l}, ${o}, ${c})`,i["--tw_client_bg_dark"]=`rgb(${u}, ${m}, ${h})`,i["--p-team_sidebar__badge"]=t.badge,i["--p-team_sidebar__badge-text-color"]=t.badge==="#FFFFFF"?t.column_bg:"#FFFFFF",t.light&&(i["--dt_color-theme-content-inv-pry"]=`rgba(${Ir(t.text_color).join(", ")}, 1)`,i["--tw_top_nav_content"]=t.text_color),i}function ue(e,t,n){return function({size:r=n,...i}){return a.jsx("svg",{viewBox:e,width:r,height:r,"aria-hidden":"true",fill:"currentColor",...i,dangerouslySetInnerHTML:{__html:t}})}}const sh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4 1a.75.75 0 0 1 .75.75v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5a.75.75 0 0 1-1.5 0v-1.5h-1.5a.75.75 0 0 1 0-1.5h1.5v-1.5A.75.75 0 0 1 4 1m5.25.5a.75.75 0 0 0 0 1.5h5.5A2.25 2.25 0 0 1 17 5.25v5.5h-4.75a1.5 1.5 0 0 0-1.5 1.5V17h-5.5A2.25 2.25 0 0 1 3 14.75v-5.5a.75.75 0 0 0-1.5 0v5.5a3.75 3.75 0 0 0 3.75 3.75h5.736c.729 0 1.428-.29 1.944-.805l4.765-4.765a2.75 2.75 0 0 0 .805-1.944V5.25a3.75 3.75 0 0 0-3.75-3.75zm3 14.753 4.003-4.003H12.25z" clip-rule="evenodd"></path>',16),Xo=ue("0 0 20 20",'<path class="c-reaction_add__bg" fill="currentColor" d="M10.28 4.117a7 7 0 1 0 5.604 5.604A2.5 2.5 0 0 1 13 7.25v-.251h-.251a2.5 2.5 0 0 1-2.47-2.883Z"></path><path class="c-reaction_add__fg" fill="currentColor" fill-rule="evenodd" d="M15.5 1a.75.75 0 0 1 .75.75v2h2a.75.75 0 0 1 0 1.5h-2v2a.75.75 0 0 1-1.5 0v-2h-2a.75.75 0 0 1 0-1.5h2v-2A.75.75 0 0 1 15.5 1Zm-13 10a6.5 6.5 0 0 1 7.166-6.466.75.75 0 0 0 .152-1.493 8 8 0 1 0 7.14 7.139.75.75 0 0 0-1.492.152A6.525 6.525 0 0 1 15.5 11a6.5 6.5 0 1 1-13 0Zm4.25-.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm4.5 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM9 15c1.277 0 2.553-.724 3.06-2.173.148-.426-.209-.827-.66-.827H6.6c-.452 0-.808.4-.66.827C6.448 14.276 7.724 15 9 15Z" clip-rule="evenodd"></path>',18),dd=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M14.548 1.686a.332.332 0 0 0-.596 0l-.86 1.714-.103.189c-.258.43-.639.774-1.088 1l-1.716.861-.08.054a.333.333 0 0 0 .08.54l1.716.861.19.103c.43.258.774.638 1 1.087l.861 1.715a.332.332 0 0 0 .596 0l.86-1.715c.254-.518.678-.93 1.19-1.19l1.317-.66.25-.498v.001l-.248.495.397-.198a.33.33 0 0 0 .081-.54l-.08-.055-1.716-.86a2.65 2.65 0 0 1-1.19-1.19zm-1.649 4.06a4.14 4.14 0 0 0 1.352-1.35A4.14 4.14 0 0 0 15.6 5.748a4.15 4.15 0 0 0-1.352 1.35 4.14 4.14 0 0 0-1.349-1.352M4.875 4a1.875 1.875 0 1 1 0 3.75 1.875 1.875 0 0 1 0-3.75m0 5.25a3.375 3.375 0 1 0 0-6.75 3.375 3.375 0 0 0 0 6.75m1.875 5.875a1.875 1.875 0 1 0-3.75 0 1.875 1.875 0 0 0 3.75 0m1.5 0a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0m6.125-1.875a1.875 1.875 0 1 1 0 3.75 1.875 1.875 0 0 1 0-3.75m0 5.25a3.375 3.375 0 1 0 0-6.75 3.375 3.375 0 0 0 0 6.75" clip-rule="evenodd"></path>',20),as=ue("0 0 20 20",'<path fill="currentColor" d="m14.974 7.543 3.633 1.822c.524.262.524 1.01 0 1.26l-3.633 1.821c-1.086.55-1.984 1.422-2.521 2.52l-1.823 3.63c-.262.525-1.01.525-1.26 0l-1.823-3.63a5.6 5.6 0 0 0-2.521-2.52l-3.633-1.821c-.524-.262-.524-1.01 0-1.26l3.633-1.822a5.6 5.6 0 0 0 2.521-2.52l1.823-3.63c.262-.524 1.01-.524 1.26 0l1.823 3.63a5.6 5.6 0 0 0 2.521 2.52"></path>',2),Nv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9.768 5.293a.75.75 0 0 0-1.036-1.086l-5.5 5.25a.75.75 0 0 0 0 1.085l5.5 5.25a.75.75 0 1 0 1.036-1.085L5.622 10.75H16.25a.75.75 0 0 0 0-1.5H5.622z" clip-rule="evenodd"></path>',20),rh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M11.268 15.793a.75.75 0 0 1-1.036-1.085l4.146-3.958H3.75a.75.75 0 0 1 0-1.5h10.628l-4.146-3.957a.75.75 0 0 1 1.036-1.086l5.5 5.25a.75.75 0 0 1 0 1.085z" clip-rule="evenodd"></path>',20),Sv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4 2.75A.75.75 0 0 1 4.75 2h6.343a3.91 3.91 0 0 1 3.88 3.449A2 2 0 0 1 15 5.84l.001.067a3.9 3.9 0 0 1-1.551 3.118A4.627 4.627 0 0 1 11.875 18H4.75a.75.75 0 0 1-.75-.75V9.5a.8.8 0 0 1 .032-.218A.8.8 0 0 1 4 9.065zm2.5 5.565h3.593a2.157 2.157 0 1 0 0-4.315H6.5zm4.25 1.935H6.5v5.5h4.25a2.75 2.75 0 1 0 0-5.5" clip-rule="evenodd"></path>',18),ih=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M1 4.75A3.75 3.75 0 0 1 4.75 1h5.5A3.75 3.75 0 0 1 14 4.75v2.5h1.25A3.75 3.75 0 0 1 19 11v6.25A1.75 1.75 0 0 1 17.25 19H2.75A1.75 1.75 0 0 1 1 17.25zM14 17.5V8.75h1.25A2.25 2.25 0 0 1 17.5 11v6.25a.25.25 0 0 1-.25.25zm-9.25-15A2.25 2.25 0 0 0 2.5 4.75v12.5c0 .138.112.25.25.25H4.5v-1.75c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v1.75h2V4.75a2.25 2.25 0 0 0-2.25-2.25zM9 17.5v-1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25v1.75zm-2-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2m4-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-4 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"></path>',16),Cv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10A.75.75 0 0 1 7 3m.75 6.25a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5zm0 7a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5zM3 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"></path>',18),or=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4.836 3A1.836 1.836 0 0 0 3 4.836v7.328c0 .9.646 1.647 1.5 1.805V7.836A3.336 3.336 0 0 1 7.836 4.5h6.133A1.84 1.84 0 0 0 12.164 3zM1.5 12.164a3.337 3.337 0 0 0 3.015 3.32A3.337 3.337 0 0 0 7.836 18.5h3.968c.73 0 1.43-.29 1.945-.805l3.946-3.946a2.75 2.75 0 0 0 .805-1.945V7.836a3.337 3.337 0 0 0-3.015-3.32A3.337 3.337 0 0 0 12.164 1.5H4.836A3.336 3.336 0 0 0 1.5 4.836zM7.836 6A1.836 1.836 0 0 0 6 7.836v7.328C6 16.178 6.822 17 7.836 17H11.5v-4a1.5 1.5 0 0 1 1.5-1.5h4V7.836A1.836 1.836 0 0 0 15.164 6zm8.486 7H13v3.322z" clip-rule="evenodd"></path>',20),Ie=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M5.72 7.47a.75.75 0 0 1 1.06 0L10 10.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0L5.72 8.53a.75.75 0 0 1 0-1.06" clip-rule="evenodd"></path>',20),ud=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M7.72 5.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1 0 1.06l-3.75 3.75a.75.75 0 0 1-1.06-1.06L10.94 10 7.72 6.78a.75.75 0 0 1 0-1.06" clip-rule="evenodd"></path>',18),_d=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9.984 3.176a1 1 0 0 0-1.968-.352L7.448 6H4a1 1 0 0 0 0 2h3.091l-.803 4.5H3a1 1 0 1 0 0 2h2.93l-.414 2.324a1 1 0 0 0 1.968.352l.478-2.676h2.719l-.415 2.324a1 1 0 1 0 1.968.352l.478-2.676H16a1 1 0 1 0 0-2h-2.93l.803-4.5H17a1 1 0 1 0 0-2h-2.77l.504-2.824a1 1 0 1 0-1.968-.352L12.198 6H9.48zm1.054 9.324L11.84 8H9.123l-.804 4.5z" clip-rule="evenodd"></path>',18),qv=ue("0 0 20 20",'<path fill="currentColor" d="M14.5 1.75a3.75 3.75 0 0 1 3.75 3.75v9a3.75 3.75 0 0 1-3.75 3.75h-9a3.75 3.75 0 0 1-3.75-3.75v-9A3.75 3.75 0 0 1 5.5 1.75zm-9 1.5A2.25 2.25 0 0 0 3.25 5.5v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25zm3.152 2.215a.751.751 0 0 1 1.478.256l-.268 1.556h1.365l.313-1.81a.75.75 0 0 1 1.478.256l-.269 1.554h1.658a.751.751 0 0 1 0 1.5h-1.915l-.475 2.753H13.8a.75.75 0 0 1 0 1.5h-2.042l-.26 1.503a.75.75 0 0 1-1.478-.255l.215-1.248H8.869l-.26 1.501a.75.75 0 0 1-1.478-.255l.215-1.246H5.593a.75.75 0 0 1 .001-1.5h2.012l.475-2.753H6.2a.75.75 0 0 1 0-1.5h2.14zm.476 6.065h1.366l.474-2.753H9.603z"></path>',16),Ev=ue("0 0 20 20",'<path fill="currentColor" d="M13.22 9.423a.75.75 0 0 1 .001 1.151l-4.49 3.755a.75.75 0 0 1-1.231-.575V6.25a.75.75 0 0 1 1.23-.575z"></path>',15),vr=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M2.5 10a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18m.75 4.75a.75.75 0 0 0-1.5 0v4.75c0 .414.336.75.75.75h3.75a.75.75 0 0 0 0-1.5h-3z" clip-rule="evenodd"></path>',20),ja=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M16.53 3.47a.75.75 0 0 1 0 1.06L11.06 10l5.47 5.47a.75.75 0 0 1-1.06 1.06L10 11.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L8.94 10 3.47 4.53a.75.75 0 0 1 1.06-1.06L10 8.94l5.47-5.47a.75.75 0 0 1 1.06 0" clip-rule="evenodd"></path>',20),Mv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M12.058 3.212c.396.12.62.54.5.936L8.87 16.29a.75.75 0 1 1-1.435-.436l3.686-12.143a.75.75 0 0 1 .936-.5M5.472 6.24a.75.75 0 0 1 .005 1.06l-2.67 2.693 2.67 2.691a.75.75 0 1 1-1.065 1.057l-3.194-3.22a.75.75 0 0 1 0-1.056l3.194-3.22a.75.75 0 0 1 1.06-.005m9.044 1.06a.75.75 0 1 1 1.065-1.056l3.194 3.221a.75.75 0 0 1 0 1.057l-3.194 3.219a.75.75 0 0 1-1.065-1.057l2.67-2.69z" clip-rule="evenodd"></path>',18),zv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9.212 2.737a.75.75 0 1 0-1.424-.474l-2.5 7.5a.75.75 0 0 0 1.424.474zm6.038.265a.75.75 0 0 0 0 1.5h2a.25.25 0 0 1 .25.25v11.5a.25.25 0 0 1-.25.25h-13a.25.25 0 0 1-.25-.25v-3.5a.75.75 0 0 0-1.5 0v3.5c0 .966.784 1.75 1.75 1.75h13a1.75 1.75 0 0 0 1.75-1.75v-11.5a1.75 1.75 0 0 0-1.75-1.75zm-3.69.5a.75.75 0 1 0-1.12.996l1.556 1.754-1.556 1.75a.75.75 0 1 0 1.12.997l2-2.249a.75.75 0 0 0 0-.996zM3.999 9.061a.75.75 0 0 1-1.058-.062l-2-2.249a.75.75 0 0 1 0-.996l2-2.252a.75.75 0 1 1 1.12.996L2.504 6.252l1.557 1.75a.75.75 0 0 1-.062 1.059" clip-rule="evenodd"></path>',18),ec=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M16.707 3.268a1 1 0 0 0-1.414 0l-.482.482 1.439 1.44.482-.483a1 1 0 0 0 0-1.414zM15.19 6.25l-1.44-1.44-5.068 5.069-.431 1.872 1.87-.432zm-.957-4.043a2.5 2.5 0 0 1 3.536 0l.025.025a2.5 2.5 0 0 1 0 3.536l-6.763 6.763a.75.75 0 0 1-.361.2l-3.25.75a.75.75 0 0 1-.9-.9l.75-3.25a.75.75 0 0 1 .2-.361zM5.25 4A2.25 2.25 0 0 0 3 6.25v8.5A2.25 2.25 0 0 0 5.25 17h8.5A2.25 2.25 0 0 0 16 14.75v-4.5a.75.75 0 0 1 1.5 0v4.5a3.75 3.75 0 0 1-3.75 3.75h-8.5a3.75 3.75 0 0 1-3.75-3.75v-8.5A3.75 3.75 0 0 1 5.25 2.5h4.5a.75.75 0 0 1 0 1.5z" clip-rule="evenodd"></path>',20),cr=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M7.675 6.468a4.75 4.75 0 1 1 8.807 3.441.75.75 0 0 0-.067.489l.379 1.896-1.896-.38a.75.75 0 0 0-.489.068 5 5 0 0 1-.648.273.75.75 0 1 0 .478 1.422q.314-.105.611-.242l2.753.55a.75.75 0 0 0 .882-.882l-.55-2.753A6.25 6.25 0 1 0 6.23 6.064a.75.75 0 1 0 1.445.404M6.5 8.5a5 5 0 0 0-4.57 7.03l-.415 2.073a.75.75 0 0 0 .882.882l2.074-.414A5 5 0 1 0 6.5 8.5m-3.5 5a3.5 3.5 0 1 1 1.91 3.119.75.75 0 0 0-.49-.068l-1.214.243.243-1.215a.75.75 0 0 0-.068-.488A3.5 3.5 0 0 1 3 13.5" clip-rule="evenodd"></path>',20),al=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10 5.5A1.75 1.75 0 1 1 10 2a1.75 1.75 0 0 1 0 3.5m0 6.25a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5m-1.75 4.5a1.75 1.75 0 1 0 3.5 0 1.75 1.75 0 0 0-3.5 0" clip-rule="evenodd"></path>',20),lh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M2.5 10a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18M7.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M14 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-6.385 3.766a.75.75 0 1 0-1.425.468C6.796 14.08 8.428 15 10.027 15s3.23-.92 3.838-2.766a.75.75 0 1 0-1.425-.468c-.38 1.155-1.38 1.734-2.413 1.734s-2.032-.58-2.412-1.734" clip-rule="evenodd"></path>',18),oh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M2.5 10a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18M7.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M14 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-.523 4.597c-.616 1.576-2.046 2.364-3.477 2.364-1.43 0-2.86-.788-3.477-2.364-.22-.56.258-1.097.86-1.097h5.234c.602 0 1.08.537.86 1.097" clip-rule="evenodd"></path>',20),Tv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M6.941 3.952c-.459-1.378-2.414-1.363-2.853.022l-4.053 12.8a.75.75 0 0 0 1.43.452l1.101-3.476h6.06l1.163 3.487a.75.75 0 1 0 1.423-.474zm1.185 8.298L5.518 4.427 3.041 12.25zm6.198-5.537a4.74 4.74 0 0 1 3.037-.081A3.74 3.74 0 0 1 20 10.208V17a.75.75 0 0 1-1.5 0v-.745a8 8 0 0 1-2.847 1.355 3 3 0 0 1-3.15-1.143C10.848 14.192 12.473 11 15.287 11H18.5v-.792c0-.984-.641-1.853-1.581-2.143a3.24 3.24 0 0 0-2.077.056l-.242.089a2.22 2.22 0 0 0-1.34 1.382l-.048.145a.75.75 0 0 1-1.423-.474l.048-.145a3.72 3.72 0 0 1 2.244-2.315zM18.5 12.5h-3.213c-1.587 0-2.504 1.801-1.57 3.085.357.491.98.717 1.572.57a6.5 6.5 0 0 0 2.47-1.223l.741-.593z" clip-rule="evenodd"></path>',18),br=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M5.094 4.571C3.785 5.825 3 7.444 3 8.966v1.371A3.45 3.45 0 0 1 5.25 9.5h.5c1.064 0 1.75.957 1.75 1.904v5.192c0 .947-.686 1.904-1.75 1.904h-.5c-2.168 0-3.75-1.99-3.75-4.211v-.578q0-.105.005-.211H1.5V8.966c0-2.02 1.024-4.01 2.556-5.478C5.595 2.014 7.711 1 10 1s4.405 1.014 5.944 2.488C17.476 4.956 18.5 6.945 18.5 8.966V13.5h-.005q.005.105.005.211v.578c0 2.221-1.582 4.211-3.75 4.211h-.5c-1.064 0-1.75-.957-1.75-1.904v-5.192c0-.947.686-1.904 1.75-1.904h.5c.864 0 1.635.316 2.25.837V8.966c0-1.522-.785-3.141-2.094-4.395C13.602 3.322 11.844 2.5 10 2.5s-3.602.822-4.906 2.071m9.016 6.508a.5.5 0 0 0-.11.325v5.192c0 .145.05.257.11.325.057.066.109.079.14.079h.5c1.146 0 2.25-1.11 2.25-2.711v-.578C17 12.11 15.896 11 14.75 11h-.5c-.031 0-.083.013-.14.08M3 13.711C3 12.11 4.105 11 5.25 11h.5c.031 0 .083.013.14.08.06.067.11.18.11.324v5.192a.5.5 0 0 1-.11.325c-.057.066-.109.079-.14.079h-.5C4.105 17 3 15.89 3 14.289z" clip-rule="evenodd"></path>',20),ch=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15M1 10a9 9 0 1 1 18 0 9 9 0 0 1-18 0m7.883-2.648c-.23.195-.383.484-.383.898a.75.75 0 0 1-1.5 0c0-.836.333-1.547.91-2.04.563-.48 1.31-.71 2.09-.71.776 0 1.577.227 2.2.729.642.517 1.05 1.294 1.05 2.271 0 .827-.264 1.515-.807 2.001-.473.423-1.08.623-1.693.703V12h-1.5v-1c0-.709.566-1.211 1.18-1.269.507-.048.827-.18 1.013-.347.162-.145.307-.39.307-.884 0-.523-.203-.87-.492-1.104C10.951 7.148 10.502 7 10 7c-.497 0-.876.146-1.117.352M10 15a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"></path>',20),dh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="m3 7.649-.33.223a.75.75 0 0 1-.84-1.244l7.191-4.852a1.75 1.75 0 0 1 1.958 0l7.19 4.852a.75.75 0 1 1-.838 1.244L17 7.649v7.011c0 2.071-1.679 3.84-3.75 3.84h-6.5C4.679 18.5 3 16.731 3 14.66zM11 11a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1z" clip-rule="evenodd"></path>',20),Av=ue("0 0 100 100",'<circle class="c-infinite_spinner__bg" cx="50%" cy="50%" r="35"></circle><circle class="c-infinite_spinner__path" cx="50%" cy="50%" r="35"></circle>',20),Lv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M7 2.75A.75.75 0 0 1 7.75 2h7.5a.75.75 0 0 1 0 1.5H12.3l-2.6 13h2.55a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5H7.7l2.6-13H7.75A.75.75 0 0 1 7 2.75" clip-rule="evenodd"></path>',18),Dv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M12.306 3.756a2.75 2.75 0 0 1 3.889 0l.05.05a2.75 2.75 0 0 1 0 3.889l-3.18 3.18a2.75 2.75 0 0 1-3.98-.095l-.03-.034a.75.75 0 0 0-1.11 1.009l.03.034a4.25 4.25 0 0 0 6.15.146l3.18-3.18a4.25 4.25 0 0 0 0-6.01l-.05-.05a4.25 4.25 0 0 0-6.01 0L9.47 4.47a.75.75 0 1 0 1.06 1.06zm-4.611 12.49a2.75 2.75 0 0 1-3.89 0l-.05-.051a2.75 2.75 0 0 1 0-3.89l3.18-3.179a2.75 2.75 0 0 1 3.98.095l.03.034a.75.75 0 1 0 1.11-1.01l-.03-.033a4.25 4.25 0 0 0-6.15-.146l-3.18 3.18a4.25 4.25 0 0 0 0 6.01l.05.05a4.25 4.25 0 0 0 6.01 0l1.775-1.775a.75.75 0 0 0-1.06-1.06z" clip-rule="evenodd"></path>',15),uh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M2.5 10a7.5 7.5 0 1 1 15 0v.645c0 1.024-.83 1.855-1.855 1.855a1.145 1.145 0 0 1-1.145-1.145V6.75a.75.75 0 0 0-1.494-.098 4.5 4.5 0 1 0 .465 6.212A2.64 2.64 0 0 0 15.646 14 3.355 3.355 0 0 0 19 10.645V10a9 9 0 1 0-3.815 7.357.75.75 0 1 0-.865-1.225A7.5 7.5 0 0 1 2.5 10m7.5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"></path>',18),tc=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10 1.5a8.5 8.5 0 1 0 3.859 16.075l3.714.904a.75.75 0 0 0 .906-.906l-.904-3.714A8.5 8.5 0 0 0 10 1.5" clip-rule="evenodd"></path>',16),Pv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10 2a3.5 3.5 0 0 0-3.5 3.5v3a3.5 3.5 0 1 0 7 0v-3A3.5 3.5 0 0 0 10 2M8 5.5a2 2 0 1 1 4 0v3a2 2 0 1 1-4 0zM5 8.25a.75.75 0 0 0-1.5 0v.25a6.5 6.5 0 0 0 5.75 6.457V16.5h-1.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-1.5v-1.543A6.5 6.5 0 0 0 16.5 8.5v-.25a.75.75 0 0 0-1.5 0v.25a5 5 0 0 1-10 0z" clip-rule="evenodd"></path>',18),_h=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M17.328 13.154a.7.7 0 0 1-.055.196A8.03 8.03 0 0 1 10.006 18C5.598 18 2 14.404 2 9.994a7.97 7.97 0 0 1 7.703-7.993.65.65 0 0 1 .638.406c.114.26.04.562-.156.749a5.58 5.58 0 0 0-1.846 4.17 5.68 5.68 0 0 0 5.671 5.671 5.5 5.5 0 0 0 2.378-.532.67.67 0 0 1 .75.136.67.67 0 0 1 .19.552M3.5 9.994a6.47 6.47 0 0 1 4.208-6.09 7.1 7.1 0 0 0-.869 3.422 7.18 7.18 0 0 0 7.893 7.135 6.53 6.53 0 0 1-4.726 2.039c-3.58 0-6.506-2.924-6.506-6.506" clip-rule="evenodd"></path>',20),ph=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10.264 1.044c2.103 0 4.143.921 5.075 2.622V2.323a.75.75 0 0 1 1.5 0V5.5a.75.75 0 0 1-.75.75h-3.177a.75.75 0 0 1 0-1.5h1.274c-.487-1.293-1.988-2.206-3.922-2.206-2.169 0-3.787 1.177-4.02 3.049a.75.75 0 0 1-1.488-.186c.353-2.835 2.818-4.363 5.508-4.363M9.43 9.356A1.63 1.63 0 0 0 8.41 9H7.306l-4.762 4.762v2.105q0 .174.035.338zM4.177 9h1.715l-3.348 3.348v-1.715C2.544 9.73 3.275 9 4.177 9m5.812 1.21-6.887 6.886c.287.252.663.404 1.075.404H5.2l4.844-4.844v-2.023q-.001-.22-.055-.423m.055 3.86-3.43 3.43h1.797c.902 0 1.633-.731 1.633-1.633zm1.5 1.797A3.133 3.133 0 0 1 8.411 19H4.177a3.133 3.133 0 0 1-3.133-3.133v-5.234A3.133 3.133 0 0 1 4.177 7.5H8.41a3.133 3.133 0 0 1 3.133 3.133zm5.956-5.234C17.5 9.73 16.769 9 15.867 9h-.234C14.73 9 14 9.73 14 10.633v5.234c0 .902.731 1.633 1.633 1.633h.234c.902 0 1.633-.731 1.633-1.633zm1.5 5.234A3.133 3.133 0 0 1 15.867 19h-.234a3.133 3.133 0 0 1-3.133-3.133v-5.234A3.133 3.133 0 0 1 15.633 7.5h.234A3.133 3.133 0 0 1 19 10.633z" clip-rule="evenodd"></path>',24),mh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9.357 3.256c-.157.177-.31.504-.36 1.062l-.05.558-.55.11c-1.024.204-1.691.71-2.145 1.662-.485 1.016-.736 2.566-.752 4.857l-.002.307-.217.217-2.07 2.077c-.145.164-.193.293-.206.374a.3.3 0 0 0 .034.199c.069.12.304.321.804.321h4.665l.07.672c.034.327.17.668.4.915.214.232.536.413 1.036.413.486 0 .802-.178 1.013-.41.227-.247.362-.588.396-.916l.069-.674h4.663c.5 0 .735-.202.804-.321a.3.3 0 0 0 .034-.199c-.013-.08-.061-.21-.207-.374l-2.068-2.077-.216-.217-.002-.307c-.015-2.291-.265-3.841-.75-4.857-.455-.952-1.123-1.458-2.147-1.663l-.549-.11-.05-.557c-.052-.558-.204-.885-.36-1.062C10.503 3.1 10.31 3 10 3s-.505.1-.643.256m-1.124-.994C8.689 1.746 9.311 1.5 10 1.5s1.31.246 1.767.762c.331.374.54.85.65 1.383 1.21.369 2.104 1.136 2.686 2.357.604 1.266.859 2.989.894 5.185l1.866 1.874.012.012.011.013c.636.7.806 1.59.372 2.342-.406.705-1.223 1.072-2.103 1.072H12.77c-.128.39-.336.775-.638 1.104-.493.538-1.208.896-2.12.896-.917 0-1.638-.356-2.136-.893A3 3 0 0 1 7.23 16.5H3.843c-.88 0-1.697-.367-2.104-1.072-.433-.752-.263-1.642.373-2.342l.011-.013.012-.012 1.869-1.874c.035-2.196.29-3.919.894-5.185.582-1.22 1.475-1.988 2.684-2.357.112-.533.32-1.009.651-1.383" clip-rule="evenodd"></path>',20),hh=ue("0 0 20 20",'<g fill="none"><path fill="currentColor" d="M10 1.5c.688 0 1.31.246 1.766.762.332.374.54.85.65 1.384 1.21.368 2.105 1.136 2.687 2.356.604 1.266.855 2.988.89 5.182l1.87 1.878.012.011.01.013c.636.7.807 1.59.374 2.342-.407.704-1.224 1.072-2.105 1.072H12.77c-.128.39-.335.775-.637 1.105-.493.537-1.208.895-2.12.895-.917 0-1.638-.356-2.136-.893A3 3 0 0 1 7.23 16.5H3.843c-.88 0-1.698-.368-2.104-1.072-.433-.752-.264-1.643.372-2.342l.012-.013.013-.013 1.87-1.876c.035-2.194.288-3.916.891-5.182.582-1.22 1.476-1.988 2.685-2.356.111-.534.32-1.01.651-1.384C8.69 1.746 9.311 1.5 10 1.5M10 3c-.311 0-.505.1-.644.256-.156.177-.308.504-.36 1.062l-.05.558-.549.11c-1.024.204-1.691.71-2.145 1.661-.485 1.017-.736 2.567-.752 4.858l-.002.307-.217.217-2.068 2.075c-.147.164-.195.295-.208.377a.3.3 0 0 0 .034.198c.069.12.304.32.804.321h4.665l.069.672c.034.327.17.668.4.916.215.231.537.412 1.037.412.486 0 .801-.178 1.013-.41.227-.247.362-.588.396-.916l.069-.674h4.662c.5 0 .736-.202.805-.321a.3.3 0 0 0 .034-.199c-.013-.082-.063-.215-.214-.381l-2.06-2.07-.217-.217-.002-.307c-.015-2.29-.266-3.841-.751-4.858-.455-.951-1.123-1.457-2.147-1.662l-.549-.109-.05-.558c-.051-.558-.203-.885-.36-1.062C10.505 3.099 10.311 3 10 3"></path><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M16.165 4.203a8.03 8.03 0 0 1 1.754 4.094m-15.838 0a8.03 8.03 0 0 1 1.754-4.094"></path></g>',20),$v=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M3.792 2.094A.5.5 0 0 1 4 2.5V6h1a.5.5 0 1 1 0 1H2a.5.5 0 1 1 0-1h1V3.194l-.842.28a.5.5 0 0 1-.316-.948l1.5-.5a.5.5 0 0 1 .45.068M7.75 3.5a.75.75 0 0 0 0 1.5h10a.75.75 0 0 0 0-1.5zM7 10.75a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75m0 6.5a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75m-4.293-3.36a1 1 0 0 1 .793-.39c.49 0 .75.38.75.75 0 .064-.033.194-.173.409a5 5 0 0 1-.594.711c-.256.267-.552.548-.87.848l-.088.084a42 42 0 0 0-.879.845A.5.5 0 0 0 2 18h3a.5.5 0 0 0 0-1H3.242l.058-.055c.316-.298.629-.595.904-.882a6 6 0 0 0 .711-.859c.18-.277.335-.604.335-.954 0-.787-.582-1.75-1.75-1.75a2 2 0 0 0-1.81 1.147.5.5 0 1 0 .905.427 1 1 0 0 1 .112-.184" clip-rule="evenodd"></path>',18),Wa=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10.75 3.25a.75.75 0 0 0-1.5 0v6H3.251L3.25 10v-.75a.75.75 0 0 0 0 1.5V10v.75h6v6a.75.75 0 0 0 1.5 0v-6h6a.75.75 0 0 0 0-1.5h-6z" clip-rule="evenodd"></path>',20),fh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M11 3.5a1 1 0 1 0-2 0V9H3.5a1 1 0 0 0 0 2H9v5.5a1 1 0 1 0 2 0V11h5.5a1 1 0 1 0 0-2H11z" clip-rule="evenodd"></path>',20),xr=ue("0 0 20 20",'<path fill="currentColor" d="M6 7.75C6 6.784 6.784 6 7.75 6h4.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 12.25 14h-4.5A1.75 1.75 0 0 1 6 12.25z"></path>',12),pd=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M1.5 4.25a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H2.25a.75.75 0 0 1-.75-.75M10.75 12a2.75 2.75 0 1 1 5.5 0 2.75 2.75 0 0 1-5.5 0m2.75-4.25a4.25 4.25 0 1 0 2.464 7.714l1.688 1.688a.75.75 0 0 0 1.06-1.061l-1.699-1.699A4.25 4.25 0 0 0 13.5 7.75m-11.25 7a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm-.75-3a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75m.75-4.5a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"></path>',16),Fv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M3.5 2.75a.75.75 0 0 0-1.5 0v14.5a.75.75 0 0 0 1.5 0zM6.75 3a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM6 10.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H6.75a.75.75 0 0 1-.75-.75m.75 5.25a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"></path>',18),aa=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3M1.5 9a7.5 7.5 0 1 1 13.307 4.746l3.473 3.474a.75.75 0 1 1-1.06 1.06l-3.473-3.473A7.5 7.5 0 0 1 1.5 9" clip-rule="evenodd"></path>',15),gh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M1.856 1.612a.75.75 0 0 1 .73-.033l15.5 7.75a.75.75 0 0 1 0 1.342l-15.5 7.75A.75.75 0 0 1 1.5 17.75v-6.046c0-.68.302-1.29.78-1.704a2.25 2.25 0 0 1-.78-1.704V2.25a.75.75 0 0 1 .356-.638M3 3.464v4.832a.75.75 0 0 0 .727.75l6.546.204a.75.75 0 0 1 0 1.5l-6.546.204a.75.75 0 0 0-.727.75v4.833L16.073 10z" clip-rule="evenodd"></path>',16),Rv=ue("0 0 20 20",'<path fill="currentColor" d="M1.5 2.106c0-.462.498-.754.901-.528l15.7 7.714a.73.73 0 0 1 .006 1.307L2.501 18.46l-.07.017a.754.754 0 0 1-.931-.733v-4.572c0-1.22.971-2.246 2.213-2.268l6.547-.17c.27-.01.75-.243.75-.797 0-.553-.5-.795-.75-.795l-6.547-.171C2.47 8.95 1.5 7.924 1.5 6.704z"></path>',16),yr=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="m9.151 3.676.271-1.108a2.5 2.5 0 0 1 1.156 0l.271 1.108a2 2 0 0 0 3.022 1.252l.976-.592a2.5 2.5 0 0 1 .817.817l-.592.975a2 2 0 0 0 1.252 3.023l1.108.27c.09.38.09.777 0 1.157l-1.108.27a2 2 0 0 0-1.252 3.023l.592.975a2.5 2.5 0 0 1-.817.818l-.976-.592a2 2 0 0 0-3.022 1.251l-.271 1.109a2.5 2.5 0 0 1-1.156 0l-.27-1.108a2 2 0 0 0-3.023-1.252l-.975.592a2.5 2.5 0 0 1-.818-.818l.592-.975a2 2 0 0 0-1.252-3.022l-1.108-.271a2.5 2.5 0 0 1 0-1.156l1.108-.271a2 2 0 0 0 1.252-3.023l-.592-.975a2.5 2.5 0 0 1 .818-.817l.975.592A2 2 0 0 0 9.15 3.676m2.335-2.39a4 4 0 0 0-2.972 0 .75.75 0 0 0-.45.518l-.372 1.523-.004.018a.5.5 0 0 1-.758.314l-.016-.01-1.34-.813a.75.75 0 0 0-.685-.048 4 4 0 0 0-2.1 2.1.75.75 0 0 0 .047.685l.814 1.34.01.016a.5.5 0 0 1-.314.759l-.018.004-1.523.372a.75.75 0 0 0-.519.45 4 4 0 0 0 0 2.971.75.75 0 0 0 .519.45l1.523.373.018.004a.5.5 0 0 1 .314.758l-.01.016-.814 1.34a.75.75 0 0 0-.048.685 4 4 0 0 0 2.101 2.1.75.75 0 0 0 .685-.048l1.34-.813.016-.01a.5.5 0 0 1 .758.314l.004.018.372 1.523a.75.75 0 0 0 .45.518 4 4 0 0 0 2.972 0 .75.75 0 0 0 .45-.518l.372-1.523.004-.018a.5.5 0 0 1 .758-.314l.016.01 1.34.813a.75.75 0 0 0 .685.049 4 4 0 0 0 2.101-2.101.75.75 0 0 0-.048-.685l-.814-1.34-.01-.016a.5.5 0 0 1 .314-.758l.018-.004 1.523-.373a.75.75 0 0 0 .519-.45 4 4 0 0 0 0-2.97.75.75 0 0 0-.519-.45l-1.523-.373-.018-.004a.5.5 0 0 1-.314-.759l.01-.015.814-1.34a.75.75 0 0 0 .048-.685 4 4 0 0 0-2.101-2.101.75.75 0 0 0-.685.048l-1.34.814-.016.01a.5.5 0 0 1-.758-.315l-.004-.017-.372-1.524a.75.75 0 0 0-.45-.518M8 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0m2-3.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7" clip-rule="evenodd"></path>',20),Iv=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4.5 3h11A1.5 1.5 0 0 1 17 4.5v11a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 15.5v-11A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3h-11a3 3 0 0 1-3-3zm11.64 1.391a.75.75 0 0 0-1.28-.782l-5.5 9a.75.75 0 0 0 1.28.782z" clip-rule="evenodd"></path>',18),md=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M9.044 4.29c-.393.923-.676 2.105-.812 3.065a.75.75 0 0 1-.825.64l-.25-.027c-1.066-.12-2.106-.236-2.942-.202-.45.018-.773.079-.98.167-.188.08-.216.15-.227.187-.013.042-.027.148.112.37.143.229.4.497.77.788.734.579 1.755 1.128 2.66 1.54a.75.75 0 0 1 .35 1.036c-.466.87-1.022 2.125-1.32 3.239-.15.56-.223 1.04-.208 1.396.015.372.113.454.124.461l.003.001a.2.2 0 0 0 .042.006.9.9 0 0 0 .297-.06c.297-.1.678-.319 1.116-.64.87-.635 1.8-1.55 2.493-2.275a.75.75 0 0 1 1.085 0c.692.724 1.626 1.639 2.5 2.275.44.32.822.539 1.12.64a.9.9 0 0 0 .3.06q.038-.003.044-.006h.002c.011-.009.109-.09.123-.46.013-.357-.06-.836-.212-1.397-.303-1.114-.864-2.368-1.33-3.24a.75.75 0 0 1 .35-1.037c.903-.41 1.92-.96 2.652-1.54.369-.292.625-.56.768-.787.139-.223.124-.329.112-.37-.012-.038-.039-.107-.226-.186-.206-.088-.527-.149-.976-.167-.835-.034-1.874.082-2.941.201l-.246.027a.75.75 0 0 1-.825-.64c-.136-.96-.42-2.142-.813-3.064-.198-.464-.405-.82-.605-1.048-.204-.232-.319-.243-.34-.243s-.135.01-.34.243c-.2.228-.407.584-.605 1.048m-.522-2.036c.343-.39.833-.754 1.467-.754s1.125.363 1.467.754c.348.396.63.914.858 1.449.359.84.627 1.83.798 2.723.913-.1 1.884-.192 2.708-.158.521.021 1.052.094 1.503.285.47.2.902.556 1.076 1.14.177.597-.004 1.153-.279 1.592-.271.434-.676.826-1.108 1.168-.662.524-1.482 1.003-2.256 1.392.41.85.836 1.884 1.1 2.856.17.625.286 1.271.264 1.846-.021.56-.182 1.218-.749 1.623-.555.398-1.205.316-1.7.148-.51-.173-1.034-.493-1.523-.849-.754-.55-1.523-1.261-2.158-1.896-.634.634-1.4 1.346-2.15 1.895-.487.356-1.01.677-1.518.85-.495.168-1.144.25-1.699-.148-.565-.405-.727-1.062-.75-1.62-.024-.574.09-1.22.257-1.846.261-.972.684-2.007 1.093-2.858-.775-.389-1.597-.867-2.262-1.39-.433-.342-.84-.734-1.111-1.168-.276-.44-.457-.997-.28-1.595.174-.585.608-.941 1.079-1.141.45-.191.983-.264 1.505-.285.826-.033 1.799.059 2.713.159.17-.893.439-1.882.797-2.723.228-.535.51-1.053.858-1.449" clip-rule="evenodd"></path>',16),Ov=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M11.721 3.84c-.91-.334-2.028-.36-3.035-.114-1.51.407-2.379 1.861-2.164 3.15C6.718 8.051 7.939 9.5 11.5 9.5l.027.001h5.723a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5h3.66c-.76-.649-1.216-1.468-1.368-2.377-.347-2.084 1.033-4.253 3.265-4.848l.007-.002.007-.002c1.252-.307 2.68-.292 3.915.16 1.252.457 2.337 1.381 2.738 2.874a.75.75 0 0 1-1.448.39c-.25-.925-.91-1.528-1.805-1.856m2.968 9.114a.75.75 0 1 0-1.378.59c.273.64.186 1.205-.13 1.674-.333.492-.958.925-1.82 1.137-.989.243-1.991.165-3.029-.124-.93-.26-1.613-.935-1.858-1.845a.75.75 0 0 0-1.448.39c.388 1.441 1.483 2.503 2.903 2.9 1.213.338 2.486.456 3.79.135 1.14-.28 2.12-.889 2.704-1.753.6-.888.743-1.992.266-3.104" clip-rule="evenodd"></path>',18),hd=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M10 3a7 7 0 1 0 3.394 13.124.75.75 0 0 1 .542-.074l2.794.68-.68-2.794a.75.75 0 0 1 .073-.542A7 7 0 0 0 10 3m-8.5 7a8.5 8.5 0 1 1 16.075 3.859l.904 3.714a.75.75 0 0 1-.906.906l-3.714-.904A8.5 8.5 0 0 1 1.5 10M6 8.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 6 8.25M6.75 11a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"></path>',16),Bv=ue("0 0 20 20",'<path fill="currentColor" d="M17.25 17.12a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5zM14.5 1.63a.75.75 0 0 1 .75.75v8a5.25 5.25 0 1 1-10.5 0v-8a.75.75 0 0 1 1.5 0v8a3.75 3.75 0 0 0 7.5 0v-8a.75.75 0 0 1 .75-.75"></path>',18),Fs=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M7 6.673c0-1.041.352-1.824.874-2.345C8.398 3.805 9.139 3.5 10 3.5c.86 0 1.602.305 2.126.828.522.521.874 1.304.874 2.345a3.9 3.9 0 0 1-1.05 2.646c-.629.678-1.38 1.014-1.95 1.014S8.679 9.997 8.05 9.32A3.9 3.9 0 0 1 7 6.673M10 2c-1.222 0-2.356.438-3.186 1.267C5.98 4.1 5.5 5.277 5.5 6.673a5.4 5.4 0 0 0 1.951 4.14 10 10 0 0 0-1.873.658c-1.464.693-2.811 1.828-3.448 3.557-.3.811-.067 1.59.423 2.132.475.526 1.193.84 1.947.84h11c.754 0 1.472-.314 1.947-.84.49-.542.722-1.32.424-2.132-.638-1.729-1.985-2.864-3.45-3.557a10 10 0 0 0-1.872-.657q.265-.221.5-.475A5.4 5.4 0 0 0 14.5 6.673c0-1.396-.481-2.574-1.314-3.406C12.356 2.438 11.223 2 10 2M3.537 15.547c.463-1.256 1.459-2.14 2.683-2.72C7.449 12.246 8.853 12 10 12s2.552.246 3.78.827c1.224.58 2.22 1.464 2.683 2.72.083.225.034.427-.129.607a1.14 1.14 0 0 1-.834.346h-11c-.35 0-.657-.15-.834-.346-.163-.18-.212-.382-.129-.607" clip-rule="evenodd"></path>',20),vh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M4.75 1.5A1.75 1.75 0 0 0 3 3.25v.5a.75.75 0 0 0 1.5 0v-.5A.25.25 0 0 1 4.75 3h10c.69 0 1.25.56 1.25 1.25v11.5c0 .69-.56 1.25-1.25 1.25h-10a.25.25 0 0 1-.25-.25v-.5a.75.75 0 0 0-1.5 0v.5c0 .966.784 1.75 1.75 1.75h10a2.75 2.75 0 0 0 2.75-2.75V4.25a2.75 2.75 0 0 0-2.75-2.75zM2.25 6a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5zm-.75 4a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2A.75.75 0 0 1 1.5 10m.75 2.5a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5zm5.79.472.02.01q.037.016.09.018h4.7a.23.23 0 0 0 .11-.028 2.1 2.1 0 0 0-.736-.991c-.372-.271-.92-.481-1.724-.481-.805 0-1.353.21-1.724.481a2.1 2.1 0 0 0-.736.991m4.12-2.702q.117-.13.218-.268C12.784 9.437 13 8.712 13 8c0-1.624-1.287-2.5-2.5-2.5S8 6.376 8 8c0 .712.217 1.437.622 2.002q.1.139.219.268-.53.191-.949.5a3.6 3.6 0 0 0-1.285 1.755 1.42 1.42 0 0 0 .294 1.431 1.68 1.68 0 0 0 1.249.544h4.7a1.68 1.68 0 0 0 1.249-.544 1.42 1.42 0 0 0 .293-1.431 3.6 3.6 0 0 0-2.233-2.255M9.5 8c0-.65.463-1 1-1s1 .35 1 1c0 .426-.133.838-.34 1.127-.203.282-.434.398-.66.398s-.457-.116-.66-.398A2 2 0 0 1 9.5 8" clip-rule="evenodd"></path>',16),bh=ue("0 0 20 20",'<path fill="currentColor" fill-rule="evenodd" d="M3.75 4.5a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-2.59a.75.75 0 0 1 1.124-.65l3.376 1.943V6.547l-3.376 1.944A.75.75 0 0 1 13 7.84V5.25a.75.75 0 0 0-.75-.75zm-2.25.75A2.25 2.25 0 0 1 3.75 3h8.5a2.25 2.25 0 0 1 2.25 2.25v1.294l2.626-1.512A1.25 1.25 0 0 1 19 6.115v7.77a1.25 1.25 0 0 1-1.874 1.083L14.5 13.456v1.294A2.25 2.25 0 0 1 12.25 17h-8.5a2.25 2.25 0 0 1-2.25-2.25z" clip-rule="evenodd"></path>',18);function Hv({size:e=20,...t}){return a.jsxs("svg",{viewBox:"0 0 20 20",width:e,height:e,"aria-hidden":"true",...t,children:[a.jsx("defs",{children:a.jsx("clipPath",{id:"tw-sbf-clip",children:a.jsx("rect",{width:"20",height:"20",rx:"5"})})}),a.jsxs("g",{clipPath:"url(#tw-sbf-clip)",children:[a.jsx("rect",{width:"10",height:"10",fill:"#36c5f0"}),a.jsx("rect",{x:"10",width:"10",height:"10",fill:"#2eb67d"}),a.jsx("rect",{y:"10",width:"10",height:"10",fill:"#e01e5a"}),a.jsx("rect",{x:"10",y:"10",width:"10",height:"10",fill:"#ecb22e"}),a.jsx("path",{d:"M10 1.5 13.5 10 10 18.5 6.5 10z",fill:"#fff"}),a.jsx("path",{d:"M1.5 10 10 6.5 18.5 10 10 13.5z",fill:"#fff"}),a.jsx("circle",{cx:"6.9",cy:"9.2",r:"1.1",fill:"#1d1c1d"}),a.jsx("circle",{cx:"13.1",cy:"9.2",r:"1.1",fill:"#1d1c1d"}),a.jsx("path",{d:"M8 11.6q2 1.7 4 0",fill:"none",stroke:"#1d1c1d",strokeWidth:"1",strokeLinecap:"round"})]})]})}function Uv({size:e=20,...t}){return a.jsxs("svg",{viewBox:"0 0 20 20",width:e,height:e,"aria-hidden":"true",...t,children:[a.jsx("rect",{width:"20",height:"20",rx:"5",fill:"#222428"}),a.jsxs("g",{fill:"none",stroke:"#fff",strokeWidth:"2.1",strokeLinecap:"round",children:[a.jsx("path",{d:"M6.2 13.6c.9-3.6 2.2-6.4 3.6-8.1"}),a.jsx("path",{d:"M9.4 13.4c.5-2.3 1.3-4.2 2.4-5.6 1-1.2 2.1-1.6 3-1.2"})]}),a.jsx("circle",{cx:"13.6",cy:"13.3",r:"1.5",fill:"#fff"})]})}function Vv({size:e=20,away:t=!1,...n}){return a.jsxs("svg",{viewBox:"0 0 20 20",width:e,height:e,"aria-hidden":"true",...n,children:[a.jsx("circle",{cx:"10",cy:"10",r:"7",fill:"var(--tw_client_bg_dark)"}),t?a.jsx("circle",{cx:"10",cy:"10",r:"3.75",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}):a.jsx("circle",{cx:"10",cy:"10",r:"4.5",fill:"currentColor"})]})}function xh({teamName:e,searchQuery:t,onCloseSearch:n,onOpenSwitcher:s}){var C;const r=Xa(),i=Ja(),l=typeof window<"u"?Number(((C=window.history.state)==null?void 0:C.idx)??0):0,o=_.useRef(l);l>o.current&&(o.current=l),i.key;const c=l>0,u=l<o.current,m=_.useRef(null),h=_.useRef(null),p=_.useRef(null),g=li("menu"),y=li("panel"),k=li("panel");return a.jsxs("div",{className:"p-ia4_top_nav","data-qa":"top-nav",role:"toolbar","aria-orientation":"horizontal","aria-label":"History Navigation",children:[a.jsx("div",{className:"p-ia4_top_nav__native_ui_spacer"}),a.jsxs("div",{className:"p-ia4_top_nav__container_wrapper",children:[a.jsxs("div",{className:"p-ia4_top_nav__left_container",children:[a.jsx("div",{className:"p-ia4_top_nav__left_container--start"}),a.jsxs("div",{className:"p-ia4_top_nav__left_container--end",children:[a.jsxs("div",{className:"p-ia4_history_buttons",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-ia4_history_buttons__button p-ia4_history_buttons__button-back","data-qa":"history_back_button","aria-label":"Back in history","aria-disabled":!c,onClick:()=>c&&r(-1),children:a.jsx(Nv,{"data-qa":"arrow-left"})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-ia4_history_buttons__button p-ia4_history_buttons__button-forward","data-qa":"history_forward_button","aria-label":"Forward in history","aria-disabled":!u,onClick:()=>u&&r(1),children:a.jsx(rh,{"data-qa":"arrow-right"})})]}),a.jsxs("div",{className:"p-ia4_history_menu_button","data-qa":"history_menu_button",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-ia4_history_menu_button__button","data-qa":"top-nav-history-menu","aria-label":"Show history","aria-disabled":"false","aria-haspopup":"menu",onClick:()=>{g.press(),s()},ref:m,children:a.jsx(vr,{"data-qa":"clock"})}),a.jsx(Wn,{anchor:m,placement:"below-start",hidden:g.tooltipHidden,dismissKey:g.dismissKey,children:"History"})]})]})]}),a.jsx("div",{className:"p-ia4_top_nav__middle_container",children:a.jsxs("div",{className:"p-top_nav__search__container",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-top_nav__search","data-qa":"top_nav_search","aria-label":"Search","aria-disabled":"false",onClick:s,children:[a.jsx("div",{className:"p-top_nav__search__icon p-top_nav__search__icon--advanced-search",children:a.jsx(aa,{"data-qa":"search",size:15})}),a.jsx("span",{className:"p-top_nav__search__text",role:"none",children:a.jsx("span",{className:"c-truncate c-truncate--break_words",children:t!==null?`Search: ${t}`:`Search ${e}`})})]}),t!==null&&a.jsx("button",{type:"button",className:"c-button-unstyled p-top_nav__search__clear","data-qa":"top_nav_search_clear","aria-label":"Clear search",onClick:n,children:a.jsx(ja,{size:20})})]})}),a.jsxs("div",{className:"p-ia4_top_nav__right_container",children:[a.jsxs("div",{className:"p-ia4_top_nav__right_container--start",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-top_nav__slackbot_ai_button","data-qa":"slackbot-ai-button","aria-label":"Chat with Slackbot AI","aria-expanded":y.open,"aria-controls":"split",onClick:y.press,ref:h,children:a.jsx(Hv,{className:"c-base_icon c-base_icon--image p-top_nav__slackbot_ai_icon"})}),a.jsxs(Wn,{anchor:h,placement:"below-center",hidden:y.tooltipHidden,dismissKey:y.dismissKey,children:[a.jsx("span",{className:"c-tooltip__title","aria-hidden":"true",children:"Slackbot AI"}),a.jsxs("span",{className:"c-tooltip__keys",children:[a.jsx(Fl,{label:"command",children:a.jsx("span",{className:"c-tooltip__key_glyph","data-qa":"command","aria-hidden":"true"})}),a.jsx(Qu,{}),a.jsx(Fl,{label:"shift",children:"Shift"}),a.jsx(Qu,{}),a.jsx(Fl,{label:"o",children:"O"})]})]})]}),a.jsxs("div",{className:"p-ia4_top_nav__right_container--end",children:[a.jsxs("div",{className:"p-ia4_top_nav__ai_apps_menu","data-qa":"ai-apps-menu-container",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-ia4_top_nav__ai_app_button","data-qa":"unstyled-button","aria-label":"Open Alerts",children:a.jsx("div",{className:"p-ia4_top_nav__ai_app_icon",children:a.jsx(Uv,{className:"c-base_icon c-base_icon--image",role:"img"})})}),a.jsx("div",{className:"p-ia4_top_nav__ai_apps_menu__separator"}),a.jsx("button",{type:"button",className:"c-button-unstyled p-ia4_top_nav__ai_apps_menu__caret","data-qa":"unstyled-button","aria-haspopup":"menu","aria-label":"More agents",children:a.jsx("div",{children:a.jsx(Ie,{"data-qa":"caret-down"})})})]}),a.jsxs("div",{className:"p-ia4_top_nav__help",children:[a.jsx("div",{className:"p-top_nav__windows_controls_container","data-qa":"top-nav-help-button",ref:p,children:a.jsx("button",{type:"button",className:"c-button-unstyled p-top_nav__button p-top_nav__help","data-qa":"highlight-btn","aria-label":"Help","aria-expanded":k.open,"aria-controls":"split",onClick:k.press,children:a.jsx(ch,{"data-qa":"help-icon"})})}),a.jsx(Wn,{anchor:p,placement:"below-end",hidden:k.tooltipHidden,dismissKey:k.dismissKey,children:"Help"})]})]})]})]})]})}let Wv=0;function li(e){const[t,n]=_.useState(!1),[s,r]=_.useState(0),i=_.useRef(!1);return i.current=t,_.useEffect(()=>{const l=o=>{o.key!=="Escape"||!i.current||(n(!1),e==="panel"&&r(c=>c+1))};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[e]),{open:t,tooltipHidden:e==="menu"&&t,dismissKey:s,press:()=>n(l=>!l)}}function Kv(e){const t=e.getBoundingClientRect(),n=e.offsetWidth||t.width,s=e.offsetHeight||t.height;return new DOMRect(t.left+(t.width-n)/2,t.top+(t.height-s)/2,n,s)}function Wn({anchor:e,placement:t,hidden:n=!1,dismissKey:s=0,children:r}){const[i,l]=_.useState(null),[o,c]=_.useState(!1),u=_.useRef(0);_.useEffect(()=>{const y=e.current;if(!y)return;const k=()=>{u.current=s,c(!0)},C=()=>c(!1);y.addEventListener("mouseenter",k),y.addEventListener("mouseleave",C);const f=()=>y.matches(":focus-visible")&&c(!0);return y.addEventListener("focus",f),y.addEventListener("blur",C),()=>{y.removeEventListener("mouseenter",k),y.removeEventListener("mouseleave",C),y.removeEventListener("focus",f),y.removeEventListener("blur",C)}},[e,s]);const m=o&&!n&&u.current===s;_.useEffect(()=>{const y=e.current;if(!m||!y){l(null);return}const k=window.setTimeout(()=>l(Kv(y)),ir);return()=>window.clearTimeout(k)},[e,m]);const h=_.useRef(null);h.current===null&&(h.current=`sk-tooltip-${++Wv}`);const p=i!==null;if(_.useEffect(()=>{const y=e.current,k=(y==null?void 0:y.tagName)==="BUTTON"?y:(y==null?void 0:y.querySelector("button"))??y;!k||!h.current||(p?k.setAttribute("aria-describedby",h.current):k.removeAttribute("aria-describedby"))},[e,p]),!i)return null;const g=t==="right"?{left:`${i.right}px`,top:`${i.top+i.height/2}px`}:t==="below-start"?{left:`${i.left}px`,top:`${i.bottom}px`}:t==="below-end"?{left:`${i.right}px`,top:`${i.bottom}px`}:{left:`${i.left+i.width/2}px`,top:`${i.bottom+8}px`};return(t==="below-start"||t==="below-end")&&(g["--tw_tooltip_arrow_x"]=`${i.width/2}px`),$t.createPortal(a.jsx("div",{id:h.current,className:`c-tooltip__container c-tooltip__container--${t}`,"data-qa":"tooltip-popover",role:"tooltip",style:g,children:a.jsx("div",{role:"presentation",children:a.jsxs("div",{className:"c-tooltip__tip","data-qa":"tooltip-tip",children:[r,a.jsx("div",{className:"c-tooltip__tip_arrow","data-qa":"tooltip-tip-arrow"})]})})}),document.body)}function Fl({label:e,children:t}){return a.jsx("div",{className:"c-tooltip__key",role:"img","aria-hidden":"false","aria-label":e,children:t})}function Qu(){return a.jsx("span",{className:"c-tooltip__key_delimiter","data-qa":"keyboard-keys-tip-key-delimiter"})}function Qv({size:e=20,...t}){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:e,height:e,"aria-hidden":"true",...t,children:a.jsx("path",{d:"M5 4.25A2 2 0 0 1 7 2.25h6a2 2 0 0 1 2 2V17l-5-4.7L5 17z",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round"})})}function Gv({size:e=28,...t}){return a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:e,height:e,"aria-hidden":"true",...t,children:[a.jsx("rect",{width:"16",height:"16",x:"2",y:"2",fill:"#fff",rx:"4"}),a.jsx("circle",{cx:"7.5",cy:"7.5",r:"2.6",fill:"#36c4f0"}),a.jsx("circle",{cx:"12.5",cy:"7.5",r:"2.6",fill:"#2eb57d"}),a.jsx("circle",{cx:"7.5",cy:"12.5",r:"2.6",fill:"#e01e59"}),a.jsx("circle",{cx:"12.5",cy:"12.5",r:"2.6",fill:"#edb22e"})]})}const Gu=[{id:"slackbot",qa:"tab_rail_slackbot_button",domId:"slackbot",label:"Slackbot",Icon:Gv,iconQa:"slackbot-color",hint:"1"},{id:"home",qa:"tab_rail_home_button",domId:"home",label:"Home",Icon:dh,iconQa:"home-filled",hint:"2"},{id:"dms",qa:"tab_rail_dms_button",domId:"dms",slug:"all-dms",label:"DMs",Icon:cr,iconQa:"direct-messages",hint:"3"},{id:"activity",qa:"tab_rail_activity_button",domId:"activity-inbox",slug:"activity",label:"Activity",Icon:mh,iconQa:"notifications",hint:"4"},{id:"files",qa:"tab_rail_files_button",domId:"unified-files",slug:"files",label:"Files",Icon:or,iconQa:"canvas-browser",hint:"5"},{id:"later",qa:"tab_rail_later_button",domId:"later",slug:"later",label:"Later",Icon:Qv,iconQa:"bookmark",hint:"6"},{id:"agents",qa:"tabs_item",domId:"platform",slug:"agents",label:"Agents & tools",Icon:dd,iconQa:"ai-agents",hint:"7",tall:!0},{id:"admin",qa:"tabs_item",domId:"admin",label:"Admin",Icon:yr,iconQa:"settings",separatorBefore:!0}];function yh(){var b,x;const{team:e,me:t,users:n,channels:s}=me(),{pathname:r}=Ja(),i=Xa(),{teamId:l}=el(),o=`workspace-notification-summary-shortcut-hint-${_.useId().replace(/[^a-zA-Z0-9]/g,"")}`,c=r.split("/").filter(Boolean)[2],u=!!c&&Object.values(s).some(w=>{var S;return w.id===c&&w.is_im&&((S=n[w.user??""])==null?void 0:S.is_slackbot)}),m=((b=Gu.find(w=>w.slug&&w.slug===c))==null?void 0:b.id)??(u?"slackbot":"home"),[h,p]=_.useState(!1),g=n[t],y=(g==null?void 0:g.real_name)??(g==null?void 0:g.name)??"",k=(g==null?void 0:g.presence)==="active",C=Object.values(s).filter(w=>(w.is_im||w.is_mpim)&&(w.unread_count_display??0)>0).length,f=(x=Object.values(s).find(w=>{var S;return w.is_im&&((S=n[w.user??""])==null?void 0:S.is_slackbot)}))==null?void 0:x.id,v=w=>{w.id==="agents"&&i(`/client/${l??e.id}/agents`),w.id==="slackbot"&&f&&i(`/client/${l??e.id}/${f}`),w.id==="admin"&&window.open("/admin/members","_blank","noopener")};return a.jsxs("div",{className:"p-tab_rail","data-qa":"tab_rail_desktop",children:[a.jsx("div",{className:"p-peek_trigger p-tab_rail__team_switcher",children:a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-account_switcher","data-qa":"account_switcher_team_icon","aria-label":`Switch workspaces… (${e.name}) `,"aria-haspopup":"menu","aria-describedby":o,children:a.jsx("i",{className:"c-team_icon p-account_switcher__team_icon p-account_switcher__team_icon--current c-team_icon--default","data-qa":"team-icon",role:"img","aria-hidden":"true","aria-label":e.name,children:e.name.slice(0,1)})})})}),a.jsx("div",{className:"c-coachmark-anchor",children:a.jsx("div",{className:"p-tab_rail__tab_container c-tabs__tab_container--vertical","data-qa":"tabs_full_height_class",role:"none",children:a.jsx("div",{className:"p-tab_rail__tab_menu c-tabs__tab_menu c-tabs__tab_menu--vertical","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"vertical","aria-label":e.name,children:Gu.map(w=>{const S=m===w.id,A=["c-button-unstyled","p-tab_rail__button",S?"p-tab_rail__button--active":"","c-tabs__tab",S?"":"c-tabs__tab--full_width",w.tall?"p-tab_rail__button--tall":""].filter(Boolean).join(" "),I=a.jsx(w.Icon,{"data-qa":w.iconQa,size:w.id==="slackbot"?28:20});return a.jsxs(_.Fragment,{children:[w.separatorBefore&&a.jsx("hr",{className:"c-tabs__tab_menu--tab_separator"}),a.jsx("div",{className:`p-tab_rail__tab_wrapper p-tab_rail__tab_wrapper--${w.id}`,children:a.jsx("div",{className:"p-peek_trigger",role:"none",children:a.jsx("button",{type:"button",role:"tab",id:w.domId,className:A,"data-qa":w.qa,"aria-label":w.label,"aria-haspopup":"false","aria-selected":S,"aria-describedby":`tab_rail_tab_item_description_${w.domId}`,onClick:()=>v(w),children:a.jsxs("span",{className:"c-tabs__tab_content",children:[a.jsx(Zv,{tab:w,icon:I,dmUnread:C}),a.jsx(Jv,{tab:w}),w.hint&&a.jsx("div",{className:"p-tab_rail__shortcut_hint","data-qa":"tab_rail_shortcut_hint","aria-hidden":"true",children:w.hint})]})})})})]},w.id)})})})}),a.jsx(Yv,{userName:y,user:g,activePresence:k,focusMode:h,setFocusMode:p})]})}function Yv({userName:e,user:t,activePresence:n,focusMode:s,setFocusMode:r}){var p;const[i,l]=_.useState(null),o=_.useRef(null),c=_.useRef(null),u=_.useRef(null),m=li("menu");_.useLayoutEffect(()=>{l(document.querySelector(".p-client_workspace_wrapper"))},[]);const h=a.jsxs("div",{className:"p-control_strip",role:"toolbar","aria-orientation":"vertical","aria-label":"Control strip",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-control_strip__circle_button p-control_strip__create_button","data-qa":"unstyled-button","aria-label":"Create new","aria-haspopup":"menu","data-open":m.open?"true":void 0,onClick:m.press,ref:o,children:a.jsx("div",{className:"p-control_strip__create_button__icon",children:a.jsx(Wa,{"data-qa":"plus"})})}),a.jsx(Wn,{anchor:o,placement:"right",hidden:m.tooltipHidden,dismissKey:m.dismissKey,children:"Create new"}),a.jsxs("div",{className:"p-control_strip__focus_mode",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-control_strip__circle_button","data-qa":"silent-sidebar-trigger","aria-label":s?"Turn off focus mode":"Turn on focus mode","data-focus-mode":s?"on":void 0,onClick:()=>r(g=>!g),ref:c,children:[a.jsx(_h,{"data-qa":"moon"}),a.jsx("div",{className:"p-control_strip__sparkle p-control_strip__sparkle--small",children:a.jsx(as,{"data-qa":"ai-sparkle-alt-filled",size:2})}),a.jsx("div",{className:"p-control_strip__sparkle p-control_strip__sparkle--large",children:a.jsx(as,{"data-qa":"ai-sparkle-alt-filled",size:4})})]}),a.jsxs(Wn,{anchor:c,placement:"right",children:[a.jsx("div",{className:"c-tooltip__title",children:s?"Turn off focus mode":"Turn on focus mode"}),a.jsx("div",{className:"c-tooltip__body",children:"Pause notifications and reduce badging and bolding."})]})]}),a.jsxs("div",{className:"p-control_strip__user",role:"none",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-ia__nav__user__button p-top_nav__windows_controls_container","data-qa":"user-button","aria-label":`User: ${e}`,"aria-haspopup":"menu",ref:u,children:a.jsx("div",{className:"p-ia__nav__user",children:a.jsxs("span",{className:"p-ia__nav__user__avatar c-avatar",style:{"--tw_avatar_color":t!=null&&t.color?`#${t.color}`:void 0},children:[a.jsx("span",{className:"c-avatar__frame",children:(p=t==null?void 0:t.profile)!=null&&p.image_72?a.jsx("img",{className:"c-avatar__image",src:nt(t.profile.image_72),alt:"",role:"img","aria-hidden":"true",width:36,height:36}):a.jsx("span",{className:"c-avatar__initials",children:e.slice(0,1)})}),a.jsx("span",{className:"p-ia__nav__user__presence",children:a.jsx(Vv,{away:!n,className:`p-ia__nav__user__presence_icon p-ia__nav__user__presence_icon--${n?"active":"away"}`,"data-qa":"presence_indicator",role:"img","aria-hidden":"false","aria-label":n?"Active":"Away",size:20})})]})})}),a.jsx(Wn,{anchor:u,placement:"right",children:a.jsx("div",{className:"c-tooltip__user",children:a.jsxs("div",{className:"c-tooltip__user_name",children:[e,a.jsx("span",{className:"c-tooltip__user_presence",children:a.jsx(xr,{className:`p-ia__nav__user__presence_icon p-ia__nav__user__presence_icon--${n?"active":"away"}`,"data-qa":"presence_indicator",role:"img","aria-hidden":"false","aria-label":n?"Active":"Away",size:20})})]})})})]})]});return i?$t.createPortal(h,i):null}function Zv({tab:e,icon:t,dmUnread:n}){const s=e.id==="activity"?a.jsx("div",{className:"p-tab_rail__button__icon_inner","data-qa":"activity-toast-icon",children:a.jsx("div",{className:"p-activity_toast_ia2022__link__icon p-activity_toast_ia2022__link__activity","data-qa":"activity-toast-activity-icon",children:t})}):a.jsx("div",{className:"p-tab_rail__button__icon_inner",children:t}),r=a.jsxs("div",{className:"p-tab_rail__button__icon",children:[e.id==="admin"&&a.jsx("div",{className:"p-unread_dot","data-qa":"admin_tab_badge_dot"}),s,e.id==="dms"&&n>0&&a.jsx("span",{className:"c-mention_badge p-tab_rail__button__badge","data-qa":"tab_rail_badge","data-twin-unverified":"true",children:n})]});return e.id==="home"?a.jsx("div",{className:"p-tab_rail__button--home",children:r}):r}function Jv({tab:e}){return e.id==="agents"?a.jsx("div",{className:"p-tab_rail__button__label p-tab_rail__button__label--agents-tools p-tab_rail__button__label--en",children:a.jsx("div",{children:e.label})}):e.id==="files"?a.jsx("div",{className:"p-tab_rail__button__label",children:a.jsx("div",{children:e.label})}):a.jsx("div",{className:"p-tab_rail__button__label",children:e.label})}const Xv=fn.skeleton,eb=fn.chrome;function tb(){const[e,t]=_.useState("shell");return _.useEffect(()=>{const n=()=>performance.now(),s=window.setTimeout(()=>t("themed"),Math.max(0,Xv-n())),r=window.setTimeout(()=>t("chrome"),Math.max(0,eb-n()));return()=>{window.clearTimeout(s),window.clearTimeout(r)}},[]),e}function jh({phase:e,error:t,teamName:n}){const s=tb(),r=s==="chrome"||e==="error";return a.jsxs("div",{className:"p-boot_shell sk-client-theme--light-inverted-sidebar","data-qa":"loading_screen","data-phase":e,"data-boot-stage":r?"chrome":s,children:[r?a.jsx(xh,{teamName:n,searchQuery:null,onCloseSearch:()=>{},onOpenSwitcher:()=>{}}):a.jsx("div",{className:"p-boot_shell__top_nav"}),a.jsxs("div",{className:"p-boot_shell__body",children:[r?a.jsx(yh,{}):a.jsx("div",{className:"p-boot_shell__rail"}),a.jsxs("div",{className:"p-boot_shell__layout p-client_workspace_wrapper",children:[a.jsx("div",{className:"p-boot_shell__sidebar"}),a.jsx("div",{className:"p-boot_shell__pane",children:e==="error"&&a.jsxs("div",{className:"p-boot_shell__error","data-qa":"loading_error",children:[a.jsx("h2",{children:"Something went wrong"}),a.jsx("p",{children:t})]})})]})]})]})}const Yu="#ffca28",ab="#e2a610",yt="#6d4c41",sa="#f9c9a0",ac="#e0a374";function xs(e){return`<circle cx="16" cy="16" r="14" fill="${Yu}"/><circle cx="16" cy="17" r="12" fill="${Yu}" stroke="${ab}" stroke-width="0.6" opacity=".6"/>${e}`}const nb={"👍":`<path d="M6 15h5v13H6z" fill="#3f83d1"/><path d="M11 15.5c0-1 1-2 2-3 1.5-1.4 2.5-3.7 3-6.4.3-1.6 3.6-1.3 3.6 1.2 0 2-.8 4-1.6 5.7h6.2c1.5 0 2.5 1.2 2.4 2.6-.1 1-.7 1.8-1.5 2.1.7.5 1.1 1.3 1 2.2-.1.9-.7 1.6-1.4 2 .5.5.7 1.2.6 1.9-.1 1-.9 1.8-1.8 2 .3.5.4 1.1.3 1.7-.3 1.1-1.3 1.8-2.4 1.8H15.5c-1.6 0-3-.5-4.5-1.3z" fill="${sa}"/><path d="M20.2 17.3h5.6M20.8 21.4h4.6M21 25.3h3.8" stroke="${ac}" stroke-width="1" stroke-linecap="round"/>`,"🎉":'<path d="M4 28 12.5 8.5l11 11z" fill="#f4511e"/><path d="M4 28 8.5 17.6 14.4 23.5z" fill="#ffb300"/><path d="M12.5 8.5l11 11-2.6 1.1L11.4 11z" fill="#c62828"/><circle cx="24" cy="6" r="1.6" fill="#2196f3"/><circle cx="28" cy="13" r="1.4" fill="#e91e63"/><circle cx="19" cy="4" r="1.3" fill="#8bc34a"/><path d="M25 9.5c2 .5 3 2.5 3 4.5M22 3c-1.5 2-1 4 .5 5.5" stroke="#ffb300" stroke-width="1.4" fill="none" stroke-linecap="round"/><path d="M28 21l2.5-2M26.5 25.5l3 .5" stroke="#8bc34a" stroke-width="1.4" stroke-linecap="round"/><path d="M14 4.5l1.5 2.5" stroke="#e91e63" stroke-width="1.4" stroke-linecap="round"/>',"✅":'<rect x="3" y="3" width="26" height="26" rx="5" fill="#43a047"/><path d="M9 16.5l4.8 4.8L23.5 11.5" fill="none" stroke="#fff" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/>',"❤":'<path d="M16 28.5 5.2 17.6C2.4 14.7 2.6 9.9 5.7 7.3c2.8-2.3 6.9-1.9 9.3.8l1 1.1 1-1.1c2.4-2.7 6.5-3.1 9.3-.8 3.1 2.6 3.3 7.4.5 10.3z" fill="#f44336"/><path d="M8 9.5c-1.3.9-2 2.4-1.8 4" stroke="#ff8a80" stroke-width="1.5" fill="none" stroke-linecap="round"/>',"🚀":'<path d="M22 4c-6 1-11 6-13.5 12.5l7 7C22 21 27 16 28 10c.2-1.4.1-3.4-.3-5.4-2-.4-4-.5-5.7-.6z" fill="#e0e0e0"/><path d="M28 10c-.1-2-.2-3.6-.5-5.4-1.8-.3-3.6-.5-5.5-.6-2.3.4-4.4 1.3-6.3 2.5l9.8 9.8c1.2-1.9 2.1-4 2.5-6.3z" fill="#f5f5f5"/><circle cx="19.5" cy="12.5" r="2.8" fill="#29b6f6" stroke="#0277bd" stroke-width="1"/><path d="M8.5 16.5 4 18c.4 1.5 1.4 3.2 2.6 4.4l3.5-1.4zM15.5 23.5 14 28c1.5-.4 3.2-1.4 4.4-2.6l-1.4-3.5z" fill="#e53935"/><path d="M9.5 22.5 4 28c1.5-.3 3.4-1 4.4-2.1 1-1.1 1.4-2.3 1.1-3.4z" fill="#ffb300"/><path d="M5.5 26.5c.5-1.5 1.3-2.5 2.5-3" stroke="#ff7043" stroke-width="1.4" stroke-linecap="round"/>',"👀":'<ellipse cx="9.5" cy="16" rx="7" ry="9" fill="#fff" stroke="#bdbdbd" stroke-width=".8"/><ellipse cx="22.5" cy="16" rx="7" ry="9" fill="#fff" stroke="#bdbdbd" stroke-width=".8"/><circle cx="11.5" cy="17.5" r="4" fill="#5d4037"/><circle cx="24.5" cy="17.5" r="4" fill="#5d4037"/><circle cx="12.5" cy="16.5" r="1.4" fill="#212121"/><circle cx="25.5" cy="16.5" r="1.4" fill="#212121"/><circle cx="10.6" cy="15.6" r=".8" fill="#fff"/><circle cx="23.6" cy="15.6" r=".8" fill="#fff"/>',"👋":`<path d="M8.5 13.5c-1.1-1-2.6-.9-3.4.3-.8 1.1-.5 2.6.6 3.5l6 5.5c2.9 2.6 7.3 2.7 10.3.1l4.2-3.8c1.7-1.5 2.4-3.8 1.9-6.1l-1.6-6.6c-.3-1.1-1.4-1.7-2.5-1.4-1 .3-1.6 1.3-1.4 2.3l.9 3.8-1.1-.9-3.2-7c-.5-1-1.7-1.5-2.7-1-1 .5-1.4 1.6-1 2.6l2.6 6.4-1.2-.7-3.5-5.5c-.6-.9-1.8-1.2-2.7-.6-.9.6-1.2 1.8-.6 2.7l3.4 5.5-1.6-.8-3.3-3.8c-.7-.8-1.9-.9-2.7-.2-.8.7-.9 1.9-.2 2.7z" fill="${sa}"/><path d="M27 23.5c1.2-1 2-2.4 2.5-3.9M3 23c.3 1.5 1 2.8 2 3.9" stroke="#90a4ae" stroke-width="1.5" fill="none" stroke-linecap="round"/>`,"🔥":'<path d="M16 29c-6 0-10-4-10-9.5 0-4.5 3-7.5 4.5-11 .8 2.5 2 3.7 3 4.5C13.5 8 14.5 4.5 18 2c-.3 4 2 6 4 9 1.5 2.2 4 4.6 4 8.5C26 25 21.5 29 16 29z" fill="#ff7043"/><path d="M16 29c-3.3 0-5.5-2.3-5.5-5.3 0-2.6 1.6-3.8 2.5-6 .7 1.4 1.5 2 2.2 2.4.3-2.5 1.2-4.4 3.3-5.6 0 2.4 1.2 3.7 2 5.2.7 1.2 1.5 2.4 1.5 4.2 0 2.8-2.5 5.1-6 5.1z" fill="#ffca28"/>',"😂":xs(`<path d="M8 13.5c1-1.4 2.6-2 4.3-1.6M24 13.5c-1-1.4-2.6-2-4.3-1.6" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M8.5 19.5c2.5 1 5 1.5 7.5 1.5s5-.5 7.5-1.5c-.6 4-3.5 7-7.5 7s-6.9-3-7.5-7z" fill="${yt}"/><path d="M10.5 24c1.6-1 3.5-1.5 5.5-1.5s3.9.5 5.5 1.5c-1.4 1.6-3.3 2.5-5.5 2.5s-4.1-.9-5.5-2.5z" fill="#ef5350"/><path d="M5.5 15c-1.5 1.8-2.5 3.5-2.5 5.2 0 1.4 1 2.3 2.2 2.3s2.2-.9 2.2-2.3c0-1.7-.7-3.4-1.9-5.2zM26.5 15c1.5 1.8 2.5 3.5 2.5 5.2 0 1.4-1 2.3-2.2 2.3s-2.2-.9-2.2-2.3c0-1.7.7-3.4 1.9-5.2z" fill="#29b6f6"/>`),"🙌":`<path d="M4.5 28V16.5c0-1.1.9-2 2-2s2 .9 2 2V21M8.5 20.5V6.5c0-1.1.9-2 2-2s2 .9 2 2V19M12.5 19V4.5c0-1.1.9-2 2-2s2 .9 2 2V19" stroke="${sa}" stroke-width="3.6" fill="none" stroke-linecap="round"/><path d="M4.5 28c0-3 .5-5.5 1.5-7.5h10.5V28z" fill="${sa}"/><path d="M27.5 28V16.5c0-1.1-.9-2-2-2s-2 .9-2 2V21M23.5 20.5V6.5c0-1.1-.9-2-2-2s-2 .9-2 2V19M19.5 19V4.5c0-1.1-.9-2-2-2s-2 .9-2 2V19" stroke="${sa}" stroke-width="3.6" fill="none" stroke-linecap="round"/><path d="M27.5 28c0-3-.5-5.5-1.5-7.5H15.5V28z" fill="${sa}"/><path d="M14 1.5v2.5M18 1.5v2.5M16 1v2" stroke="#ffb300" stroke-width="1.3" stroke-linecap="round"/>`,"🌙":'<path d="M20 3c-6.8 2-11.5 8.3-11.5 15 0 3.6 1.3 6.9 3.5 9.5C7 26 4 21.5 4 16 4 9.4 9 4 15.5 3z" fill="#ffca28"/><path d="M20 3c-4 .8-7.5 3.3-9.5 6.8C8 13.5 8.5 19.5 12 24.5 8.5 22 6.5 18 6.5 14.5 6.5 9 12 4.2 20 3z" fill="#ffe082"/>',"🙏":`<path d="M15.5 3.5 10 12.5c-1 1.7-1.5 3.6-1.5 5.5v6c0 2 1.5 3.5 3.5 3.5s3.5-1.5 3.5-3.5V17z" fill="${sa}"/><path d="M16.5 3.5 22 12.5c1 1.7 1.5 3.6 1.5 5.5v6c0 2-1.5 3.5-3.5 3.5s-3.5-1.5-3.5-3.5V17z" fill="${ac}"/><path d="M15.5 3.5v13.5h1V3.5z" fill="#c98a5e"/><path d="M4 10l2.5 2M4.5 15.5h2.5M28 10l-2.5 2M27.5 15.5H25" stroke="#ffb300" stroke-width="1.4" stroke-linecap="round"/>`,"🌮":'<path d="M3 24c0-7 5.8-13 13-13s13 6 13 13z" fill="#ffb300"/><path d="M5 22.5c1.5-5 5.8-8.5 11-8.5s9.5 3.5 11 8.5z" fill="#8bc34a"/><path d="M6.5 22c2-3.5 5.5-5.5 9.5-5.5s7.5 2 9.5 5.5z" fill="#6d4c41"/><circle cx="10" cy="20" r="1.4" fill="#f44336"/><circle cx="16" cy="18.5" r="1.4" fill="#f44336"/><circle cx="22" cy="20" r="1.4" fill="#f44336"/><path d="M3 24h26c0 1.5-1 2.5-2.5 2.5h-21C4 26.5 3 25.5 3 24z" fill="#ff8f00"/>',"🍣":'<path d="M4 18h24v6c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2z" fill="#fff" stroke="#e0e0e0" stroke-width=".8"/><path d="M4 18c0-5 5-9 12-9s12 4 12 9z" fill="#ff7043"/><path d="M8 16c1-3 4-4.5 8-4.5s7 1.5 8 4.5" stroke="#ffab91" stroke-width="1.4" fill="none" stroke-linecap="round"/><path d="M13 18v8M19 18v8" stroke="#2e7d32" stroke-width="2.6"/>',"🍕":'<path d="M16 29 3.5 7C7.4 4.5 11.6 3.2 16 3.2S24.6 4.5 28.5 7z" fill="#ffb300"/><path d="M16 26 6.5 9.3C9.5 7.7 12.7 7 16 7s6.5.7 9.5 2.3z" fill="#f4511e"/><path d="M3.5 7C7.4 4.5 11.6 3.2 16 3.2S24.6 4.5 28.5 7l-1.3 2.3C23.7 7.3 19.9 6.2 16 6.2S8.3 7.3 4.8 9.3z" fill="#e0a010"/><circle cx="12" cy="12.5" r="2.2" fill="#c62828"/><circle cx="20.5" cy="12" r="2.2" fill="#c62828"/><circle cx="16" cy="19" r="2.2" fill="#c62828"/><circle cx="16.5" cy="10" r="1" fill="#ffe082"/><circle cx="14" cy="16.5" r="1" fill="#ffe082"/>',"☕":'<path d="M6 10h16v9c0 3.9-3.1 7-7 7h-2c-3.9 0-7-3.1-7-7z" fill="#fff" stroke="#bdbdbd" stroke-width=".8"/><path d="M22 12h2.5c2 0 3.5 1.5 3.5 3.5S26.5 19 24.5 19H22" fill="none" stroke="#bdbdbd" stroke-width="2"/><path d="M7 12h14v5H7z" fill="#6d4c41"/><path d="M4 27h20" stroke="#bdbdbd" stroke-width="2" stroke-linecap="round"/><path d="M11 3c-1 1.5.5 2.5 0 4M15 3c-1 1.5.5 2.5 0 4" stroke="#bdbdbd" stroke-width="1.2" fill="none" stroke-linecap="round"/>',"📚":'<path d="M5 10h13v18H5z" fill="#1e88e5"/><path d="M8 13h7v2H8z" fill="#fff" opacity=".8"/><path d="M12 6h13v18H12z" fill="#43a047" transform="translate(-1 0)"/><path d="M14 9h7v2h-7z" fill="#fff" opacity=".8"/><path d="M17 3l12 2.5-3.7 17.6-12-2.5z" fill="#e53935"/><path d="M19 6.5l6.5 1.4-.4 2-6.5-1.4z" fill="#fff" opacity=".85"/><path d="M5 26h13v2H5z" fill="#1565c0"/>',"🐱":'<path d="M5 6l6 5h10l6-5-1 9c1.5 2 2.5 4 2.5 6.5 0 4-5.6 7.5-12.5 7.5S3.5 25.5 3.5 21.5c0-2.5 1-4.5 2.5-6.5z" fill="#ff9800"/><path d="M6.5 8.5l4 3.3-4.5 2.5zM25.5 8.5l-4 3.3 4.5 2.5z" fill="#ffab91"/><circle cx="11.5" cy="18" r="1.6" fill="#212121"/><circle cx="20.5" cy="18" r="1.6" fill="#212121"/><path d="M14.5 21.5h3l-1.5 1.5z" fill="#ffab91"/><path d="M16 23c-1 1.5-2.5 1.5-3.5.5M16 23c1 1.5 2.5 1.5 3.5.5M4 20h5M4.5 23h4.5M28 20h-5M27.5 23H23" stroke="#212121" stroke-width=".9" fill="none" stroke-linecap="round"/>',"😅":xs(`<path d="M8 13.5c1-1.4 2.6-2 4.3-1.6M24 13.5c-1-1.4-2.6-2-4.3-1.6" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M9 20c2.5 1 4.8 1.5 7 1.5s4.5-.5 7-1.5c-.6 3.5-3.3 6-7 6s-6.4-2.5-7-6z" fill="${yt}"/><path d="M26.5 4c1.5 2.2 2.5 4 2.5 5.7 0 1.4-1 2.3-2.3 2.3s-2.3-.9-2.3-2.3c0-1.7.8-3.5 2.1-5.7z" fill="#29b6f6"/>`),"🤔":xs(`<path d="M9 12.5c1-1.2 2.5-1.6 4-1.2M19.5 10.5c1.3-.9 2.9-.9 4.2-.1" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><ellipse cx="11.5" cy="15.5" rx="1.4" ry="1.7" fill="${yt}"/><ellipse cx="21.5" cy="14.5" rx="1.4" ry="1.7" fill="${yt}"/><path d="M10 21.5c2-1 4-1.2 6-.6" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M14 30c0-2.5 1.5-5 4.5-5.5 1.5-.3 2.5.3 3 1.2.7 1.2.2 2.4-1 2.6 1 .3 1.6 1.2 1.3 2.2-.3 1.1-1.3 1.6-2.3 1.4-4-.6-5.5-.6-5.5-1.9z" fill="${sa}"/>`),"🎧":'<path d="M6 19V16c0-5.5 4.5-10 10-10s10 4.5 10 10v3" stroke="#546e7a" stroke-width="3" fill="none" stroke-linecap="round"/><rect x="3.5" y="17" width="6" height="10" rx="2" fill="#37474f"/><rect x="22.5" y="17" width="6" height="10" rx="2" fill="#37474f"/><rect x="5" y="18.5" width="3" height="7" rx="1.2" fill="#90a4ae"/><rect x="24" y="18.5" width="3" height="7" rx="1.2" fill="#90a4ae"/>',"🔭":'<path d="M6 8.5 21 3.8l2.6 7.2L8.6 15.8z" fill="#42a5f5"/><path d="M21 3.8 25.5 2.5l2.7 7.5-4.6 1z" fill="#1e88e5"/><path d="M3.5 10.5 7 9.2l1.6 4.4-3.5 1.3z" fill="#1565c0"/><path d="M11 13.5l4.5 15.5M16 15.5l6.5 13M14.5 17.5l-8 11" stroke="#8d6e63" stroke-width="1.8" stroke-linecap="round"/><circle cx="14.5" cy="16.5" r="2.2" fill="#8d6e63"/>',"🕔":'<circle cx="16" cy="16" r="13" fill="#e0e0e0"/><circle cx="16" cy="16" r="10.5" fill="#fff"/><path d="M16 9v7l4 5" stroke="#37474f" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="16" cy="16" r="1.2" fill="#37474f"/>',"😄":xs(`<path d="M9 12.5c1.2-1.4 2.6-2 4-1.5M23 12.5c-1.2-1.4-2.6-2-4-1.5" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M8 18c2.6.8 5.3 1.2 8 1.2s5.4-.4 8-1.2c-.6 4.5-3.7 7.8-8 7.8s-7.4-3.3-8-7.8z" fill="${yt}"/><path d="M10.5 22.5c1.6-.9 3.5-1.3 5.5-1.3s3.9.4 5.5 1.3c-1.4 1.6-3.3 2.5-5.5 2.5s-4.1-.9-5.5-2.5z" fill="#ef5350"/>`),"📅":'<rect x="4" y="5" width="24" height="23" rx="3" fill="#f5f5f5" stroke="#bdbdbd" stroke-width=".8"/><path d="M4 8a3 3 0 0 1 3-3h18a3 3 0 0 1 3 3v5H4z" fill="#e53935"/><path d="M10 3v5M22 3v5" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/><text x="16" y="25" font-family="Arial, sans-serif" font-weight="700" font-size="11" text-anchor="middle" fill="#37474f">17</text>',"🚌":'<rect x="3" y="6" width="26" height="19" rx="3" fill="#ffa000"/><path d="M6 9h8v7H6zM18 9h8v7h-8z" fill="#81d4fa"/><rect x="6" y="18" width="20" height="3" rx="1" fill="#ff8f00"/><circle cx="9.5" cy="26" r="2.6" fill="#37474f"/><circle cx="22.5" cy="26" r="2.6" fill="#37474f"/><circle cx="9.5" cy="26" r="1" fill="#b0bec5"/><circle cx="22.5" cy="26" r="1" fill="#b0bec5"/><rect x="3.5" y="19" width="2.5" height="2.5" fill="#fff59d"/><rect x="26" y="19" width="2.5" height="2.5" fill="#fff59d"/>',"🤒":xs(`<path d="M6 12.5c0-1.4 1.1-2.5 2.5-2.5h15c1.4 0 2.5 1.1 2.5 2.5S24.9 15 23.5 15h-15A2.5 2.5 0 0 1 6 12.5z" fill="#f5f5f5" stroke="#e0e0e0" stroke-width=".6"/><path d="M9 12.5h14" stroke="#e0e0e0" stroke-width=".6"/><ellipse cx="11.5" cy="19" rx="1.4" ry="1.7" fill="${yt}"/><ellipse cx="20.5" cy="19" rx="1.4" ry="1.7" fill="${yt}"/><path d="M12 25c1.2-1 2.6-1.4 4-1.4s2.8.4 4 1.4" stroke="${yt}" stroke-width="1.8" fill="none" stroke-linecap="round"/><path d="M15 23.5h9" stroke="#e0e0e0" stroke-width="2" stroke-linecap="round"/><path d="M19 23.5h4.5" stroke="#f44336" stroke-width="2" stroke-linecap="round"/>`),"🌴":'<path d="M15 14c-1 5-1.5 10-1 15h4c-.5-5 0-10 1-15z" fill="#8d6e63"/><path d="M16 13C11 8 6 8 3 11c4 0 7 1 10 3zM16 13c5-5 10-5 13-2-4 0-7 1-10 3zM16 13C13 7 14 3 17 2c-.5 3.5 0 7 1.5 10zM16 13c1-6 5-8 8.5-7-3 1.5-5.5 4-6.5 7.5z" fill="#43a047"/><circle cx="15" cy="14" r="1.5" fill="#6d4c41"/><circle cx="18" cy="15" r="1.5" fill="#6d4c41"/>',"🏡":'<path d="M6 15 16 6l10 9v13H6z" fill="#ffe0b2"/><path d="M3.5 16 16 4.5 28.5 16l-1.5 1.7L16 7.5 5 17.7z" fill="#e53935"/><path d="M13 20h6v8h-6z" fill="#8d6e63"/><path d="M8 18h4v4H8zM20 18h4v4h-4z" fill="#81d4fa"/><path d="M2 28h28" stroke="#66bb6a" stroke-width="3" stroke-linecap="round"/><path d="M4 25c0-1.7 1.3-3 3-3s3 1.3 3 3zM22 25c0-1.7 1.3-3 3-3s3 1.3 3 3z" fill="#43a047"/>',"💬":'<path d="M16 4C8.8 4 3 8.7 3 14.5c0 3 1.6 5.7 4.2 7.6L6 28l6.4-3.5c1.2.3 2.4.4 3.6.4 7.2 0 13-4.7 13-10.4S23.2 4 16 4z" fill="#42a5f5"/><path d="M8.5 8.5c1.5-1.5 3.5-2.5 5.5-2.9" stroke="#90caf9" stroke-width="1.5" fill="none" stroke-linecap="round"/>',"🔔":'<path d="M16 3.5c-4.5 0-8 3.5-8 8v5.5L5.5 21v1.5h21V21L24 17V11.5c0-4.5-3.5-8-8-8z" fill="#ffca28"/><path d="M13 24.5h6a3 3 0 0 1-6 0z" fill="#8d6e63"/><path d="M16 2v2.5" stroke="#8d6e63" stroke-width="2" stroke-linecap="round"/><path d="M11 12c.5-2.5 2-4 4-4.5" stroke="#ffe082" stroke-width="1.5" fill="none" stroke-linecap="round"/>'},Zu={"":[sa,ac],"🏻":["#f9ddbd","#e0b48d"],"🏼":["#e0bb95","#c39468"],"🏽":["#c48e6a","#a06a45"],"🏾":["#a56c43","#7f4d2b"],"🏿":["#70493d","#4e2f26"]};function sb(e){const[t,n]=Zu[e]??Zu[""];return`<path d="M7 15V8.5a1.8 1.8 0 0 1 3.6 0V14M10.6 14V5a1.8 1.8 0 0 1 3.6 0v9M14.2 14V4a1.8 1.8 0 0 1 3.6 0v10M17.8 14V6a1.8 1.8 0 0 1 3.6 0v10.5" stroke="${t}" stroke-width="3.6" fill="none" stroke-linecap="round"/><path d="M7 14h14.4v6c0 4.7-3.2 8.5-7.2 8.5S7 24.7 7 20z" fill="${t}"/><path d="M21.4 17.5l3.2-3.6c.9-1 2.5-.9 3.2.2.6.9.4 2.1-.3 2.8L23 22.5" fill="${t}"/><path d="M9.5 21c1 3.5 3.5 5.5 6.5 5.5" stroke="${n}" stroke-width="1" fill="none" stroke-linecap="round"/>`}function rb(e){return e.replace(/\uFE0F/g,"")}function ib(e){const t=rb(e);return t.startsWith("✋")?sb(t.slice(1)):nb[t]??null}function wh(e,t){const n=ib(e);return n?`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 32 32">${n}</svg>`:null}const lb=Xg,ob=Jg,cb=`data:image/svg+xml;utf8,${encodeURIComponent(wh("🔔",16)??"")}`;function db(){return a.jsxs(a.Fragment,{children:[a.jsx(_b,{}),a.jsx(pb,{})]})}function ub(e){return Object.values(e).reduce((t,n)=>t+n.filter(s=>s._status==="failed").length,0)}function _b(){const{connectivity:e,pending:t}=me(),[n,s]=_.useState(null),r=_.useRef(e!=="online");r.current=e!=="online";const i=ub(t),l=_.useRef(i),o=_.useRef(0),c=()=>{o.current+=1,s({id:o.current,leaving:!1})};_.useEffect(()=>{const h=p=>{var y;if(p.key!=="Enter"||p.shiftKey||!r.current)return;const g=p.target;(y=g==null?void 0:g.closest)!=null&&y.call(g,'[data-qa="message_input"]')&&c()};return window.addEventListener("keydown",h,!0),()=>window.removeEventListener("keydown",h,!0)},[]),_.useEffect(()=>{i>l.current&&r.current&&c(),l.current=i},[i]);const u=n==null?void 0:n.id,m=(n==null?void 0:n.leaving)??!1;return _.useEffect(()=>{if(u===void 0)return;const h=window.setTimeout(()=>s(p=>p&&p.id===u?m?null:{...p,leaving:!0}:p),m?ob:lb);return()=>window.clearTimeout(h)},[u,m]),n?a.jsx("div",{className:"p-toast_region","data-qa":"toast_region","data-connectivity":e,children:a.jsx("div",{className:`p-toast${n.leaving?" p-toast--leaving":""}`,role:"dialog","aria-modal":"false","data-qa":"connectivity_toast",children:a.jsxs("div",{className:"p-toast__body",children:[a.jsx("div",{className:"p-toast__icon c-icon c-icon--cloud-offline","data-qa":"cloud-offline","aria-hidden":"true"}),a.jsx("div",{className:"p-toast__text",children:a.jsxs("span",{children:[a.jsx("strong",{children:"No connection."})," You’ll be able to send messages as soon as you’re back online."]})})]})},n.id)}):null}function pb(){const[e,t]=_.useState(null),[n,s]=_.useState(!1),[r,i]=_.useState(()=>performance.now()>=fn.content);if(_.useEffect(()=>{t(document.querySelector(".p-client_workspace_wrapper"))},[]),_.useEffect(()=>{if(r)return;const o=window.setTimeout(()=>i(!0),Math.max(0,fn.content-performance.now()));return()=>window.clearTimeout(o)},[r]),n||!e||!r)return null;const l=()=>{typeof Notification<"u"&&Notification.permission==="default"&&Notification.requestPermission(),s(!0)};return $t.createPortal(a.jsx("div",{className:"p-client__banners p-ia__workspace_banner","data-qa":"workspace-banner-enable-notifications",children:a.jsxs("div",{className:"c-banner c-banner--neutral p-ia_banner p-workspace_banner__desktop-notifications","data-qa":"banner",role:"dialog","aria-label":"Information",children:[a.jsx("div",{className:"c-banner__text",children:a.jsxs("div",{children:[a.jsx("span",{className:"c-banner__emoji","data-qa":"emoji",children:a.jsx("img",{className:"c-banner__emoji_img",src:cb,alt:"","aria-label":"bell emoji",width:16,height:16})}),a.jsxs("span",{className:"c-banner__message",children:["Slack needs your permission to enable notifications."," ",a.jsx("button",{type:"button",className:"c-button-unstyled c-link c-banner__link",onClick:l,children:"Enable notifications"})]})]})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium c-banner__close","data-qa":"banner_close_btn","aria-label":"Close",onClick:()=>s(!0),children:a.jsx(ja,{"data-qa":"close"})})]})}),e)}const kh="twin.drafts";let Ka=mb();const nc=new Set;function mb(){try{const e=typeof localStorage<"u"?localStorage.getItem(kh):null;return e?JSON.parse(e):{}}catch{return{}}}function Nh(e){Ka=e;try{localStorage.setItem(kh,JSON.stringify(e))}catch{}nc.forEach(t=>t())}function hb(e,t){return t?`${e}:${t}`:e}function Ju(){return Ka}function fb(e){return Ka[e]??null}function gb(e,t,n){if(!n.trim()){Sh(e);return}const s=Ka[e];s&&s.html===t&&s.text===n||Nh({...Ka,[e]:{html:t,text:n,updated:Date.now()}})}function Sh(e){if(!(e in Ka))return;const t={...Ka};delete t[e],Nh(t)}function vb(){return Object.entries(Ka).map(([e,t])=>{const[n,s]=e.split(":");return{key:e,channel:n,threadTs:s??null,draft:t}}).sort((e,t)=>t.draft.updated-e.draft.updated)}function bb(e){return nc.add(e),()=>nc.delete(e)}function Ch(){return _.useSyncExternalStore(bb,Ju,Ju)}let xb=100;const yb=()=>`sk-tooltip-${xb+=1}`,jb="M9.74 2.878a.75.75 0 1 0-1.48-.255L7.68 6H3.75a.75.75 0 0 0 0 1.5h3.67L6.472 13H2.75a.75.75 0 0 0 0 1.5h3.463l-.452 2.623a.75.75 0 0 0 1.478.255l.496-2.878h3.228l-.452 2.623a.75.75 0 0 0 1.478.255l.496-2.878h3.765a.75.75 0 0 0 0-1.5h-3.506l.948-5.5h3.558a.75.75 0 0 0 0-1.5h-3.3l.54-3.122a.75.75 0 0 0-1.48-.255L12.43 6H9.2zM11.221 13l.948-5.5H8.942L7.994 13z",wb="M10 1.5A4.5 4.5 0 0 0 5.5 6v1.5h-.25A2.25 2.25 0 0 0 3 9.75v6.5c0 .966.784 1.75 1.75 1.75h10.5A1.75 1.75 0 0 0 17 16.25v-6.5a2.25 2.25 0 0 0-2.25-2.25h-.25V6A4.5 4.5 0 0 0 10 1.5m3 6V6a3 3 0 1 0-6 0v1.5zM4.5 9.75A.75.75 0 0 1 5.25 9h9.5a.75.75 0 0 1 .75.75v6.5a.25.25 0 0 1-.25.25H4.75a.25.25 0 0 1-.25-.25z",kb="M10 5.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9",Nb="M10 5.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9m0 1.5a3 3 0 1 1 0 6 3 3 0 0 1 0-6",xe=e=>({"--s":`${e}px`}),kn=[];function Sb(){return kn}function Cb(e){const t=kn.indexOf(e);t>=0&&kn.splice(t,1),kn.unshift(e),kn.length>20&&(kn.length=20)}function dr({kind:e,size:t=16,em:n,qa:s="sidebar-channel-icon-prefix"}){return a.jsx("svg",{viewBox:"0 0 20 20",width:t,height:t,"aria-hidden":"true","data-qa":s,"data-sidebar-channel-icon":e,style:xe(n??t),children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:e==="lock"?wb:jb})})}function fd({active:e,size:t}){return a.jsx("svg",{viewBox:"0 0 20 20",width:t,height:t,role:"img","aria-label":e?"Active":"Away","data-qa":"presence_indicator","aria-hidden":"false","data-qa-presence-active":e?"true":"false","data-qa-type":e?"status-member-filled":"status-member",style:xe(t),children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:e?kb:Nb})})}function sc(e,t){return e.is_im?e.user===t:!!e.is_mpim&&(e.num_members??0)<=1}function qb(e,t,n){const s=qh(e,t,n);return[...s.starred,...s.external,...s.channels,...s.dms].map(r=>r.id)}function qh(e,t,n){const s=Object.values(e).filter(p=>!p.is_archived),r=(p,g)=>(p.name??"").localeCompare(g.name??""),i=p=>{var g;return!!(p.is_im&&((g=t[p.user??""])!=null&&g.is_stranger))},l=p=>{var g;return!!(p.is_im&&((g=t[p.user??""])!=null&&g.is_slackbot))},o=p=>sc(p,n),c=s.filter(p=>p.is_starred&&p.is_member&&!l(p)).sort(r),u=s.filter(p=>!p.is_starred&&(p.is_ext_shared&&p.is_member||i(p))).sort((p,g)=>+!!g.is_im-+!!p.is_im||r(p,g)),m=s.filter(p=>!p.is_im&&!p.is_mpim&&!p.is_ext_shared&&!p.is_starred&&p.is_member).sort(r),h=s.filter(p=>(p.is_im||p.is_mpim)&&p.is_open!==!1&&!p.is_starred&&!i(p)&&!l(p)).sort((p,g)=>{var y,k;return Number(o(p))-Number(o(g))||Number(((y=g.latest)==null?void 0:y.ts)??0)-Number(((k=p.latest)==null?void 0:k.ts)??0)});return{starred:c,external:u,channels:m,dms:h}}const rc={stars:{title:"Starred",ariaLabel:"Starred",id:"L01STARSAAA",icon:a.jsx(md,{size:16,"data-qa":"star",style:xe(16)})},slack_connect:{title:"External connections",ariaLabel:"External connections",id:"L01CONNECTA",icon:a.jsx(ih,{size:16,"data-qa":"buildings",style:xe(16)})},channels:{title:"Channels",ariaLabel:"Channels",id:"L01CHANNELS",icon:a.jsx(qv,{size:16,"data-qa":"channel-section",style:xe(16)})},direct_messages:{title:"Direct messages",ariaLabel:"Direct Messages",id:"L01DMSAAAAA",icon:a.jsx(cr,{size:16,"data-qa":"direct-messages",style:xe(16)})},recent_apps:{title:"Agents & apps",ariaLabel:"Agents & apps",id:"L01APPSAAAA",icon:a.jsx(dd,{size:16,"data-qa":"ai-agents",style:xe(16)})}};function Eb(e){return e.kind==="channel"?e.channel.id:e.kind==="self"?`D${e.user.id}`:e.kind==="app"?`D${e.user.id}`:e.kind==="close"?"addMoreApps":e.key}function Eh(e,t,n){return e.kind!=="page"?!1:e.page?e.page===n:!!e.channelId&&e.channelId===t}function Mb(e,t,n){const s=e.map(()=>({})),r=[];e.forEach((u,m)=>{(u.kind==="page"||u.kind==="heading")&&r.push(m)}),r.forEach((u,m)=>{const h=e[u];s[u]={role:"treeitem",level:1,pos:m+1,size:r.length,current:!1},h.kind==="page"&&(s[u].disabled=!1,s[u].current=Eh(h,t,n)),h.kind==="heading"&&(s[u].expanded=h.expanded,s[u].label=rc[h.section].ariaLabel,s[u].describedby=`sectionHeading-${rc[h.section].id}-description`)});let i=-1,l=[],o=[];const c=()=>{i>=0&&(s[i].owns=o.map(u=>Eb(e[u])).join(" "),l.forEach((u,m)=>{const h=e[u],p=h.kind==="channel"&&h.channel.id===t;s[u]={role:"treeitem",level:2,pos:m+1,size:l.length,current:p}})),i=-1,l=[],o=[]};return e.forEach((u,m)=>{switch(u.kind){case"heading":c(),i=m;break;case"channel":case"self":case"app":l.push(m),o.push(m);break;case"close":o.push(m),s[m]={role:"treeitem",level:2,current:!1};break;case"divider":c(),s[m]={current:!1};break;case"empty":s[m]={role:"presentation",size:-1};break;default:c()}}),c(),s}function zb(e){return{role:e.role,"aria-setsize":e.size,"aria-expanded":e.expanded,"aria-level":e.level,"aria-label":e.label,"aria-describedby":e.describedby,"aria-current":e.current===void 0?void 0:e.current?"true":"false","aria-disabled":e.disabled,"aria-posinset":e.pos}}const Tb=10,Ab=6,Lb=48;function Db(e){const t=[];let n=Ab;return e.forEach((s,r)=>{const i=e[r-1];s.kind==="heading"&&i&&i.kind!=="divider"&&(n+=Tb),t.push(n),n+=s.height}),{offsets:t,height:n+Lb}}const Or=new Map;function Mh(e){const t=_.useMemo(()=>{const r=new Set;for(const i of Object.values(e))i.is_stranger&&i.team_id&&r.add(i.team_id);return[...r].sort().join(" ")},[e]),[n,s]=_.useState(()=>Object.fromEntries(Or));return _.useEffect(()=>{const r=t.split(" ").filter(l=>l&&!Or.has(l));if(r.length===0)return;let i=!0;return Promise.all(r.map(async l=>{var o;try{const c=await ge.teamInfoById(l);return[l,((o=c.team)==null?void 0:o.name)??""]}catch{return[l,""]}})).then(l=>{for(const[o,c]of l)Or.set(o,c);i&&s(Object.fromEntries(Or))}),()=>{i=!1}},[t]),n}function Pb({activeId:e,onSelect:t,order:n}){const{channels:s,users:r,me:i,team:l,typing:o,createChannel:c,openDm:u}=me(),{channelId:m}=el(),h=Ku("sidebarShowMuted"),p=Ku("sidebarAlways"),g=Ch(),y=Be(),[k,C]=_.useState(""),[f,v]=_.useState(!1),[b,x]=_.useState({}),w=_.useMemo(()=>qh(s,r,i),[s,r,i]);_.useEffect(()=>{e&&Cb(e)},[e]);const S=_.useMemo(()=>Object.values(s).find(N=>{var H;return N.is_im&&((H=r[N.user??""])==null?void 0:H.is_slackbot)}),[s,r]),A=_.useMemo(()=>Object.values(r).find(N=>N.is_slackbot),[r]),I=_.useMemo(()=>Object.values(r).filter(N=>N.is_bot&&!N.is_slackbot),[r]),Q=N=>!k||N.toLowerCase().includes(k.toLowerCase()),z=N=>N.unread_count_display??0,ae=N=>N.is_im||N.is_mpim?z(N):N.mention_count_display??0,ce=N=>!!N.is_muted&&!h&&ae(N)===0&&N.id!==e,ie=N=>x(H=>({...H,[N]:!H[N]})),P=_.useMemo(()=>{const N=[];p.slackbot&&(!k||Q("Slackbot"))&&N.push({kind:"page",key:"slackbot",height:28,qa:"channel_sidebar_pslackbot-ai",className:"p-channel_sidebar__link p-channel_sidebar__link--page p-channel_sidebar__link--page_pslackbot-ai",label:"Slackbot",channelId:S==null?void 0:S.id,icon:a.jsx("span",{className:"p-channel_sidebar__link__icon c-icon--inherit",children:A!=null&&A.profile.image_72?a.jsx("img",{src:nt(A.profile.image_72),alt:"",width:16,height:16}):a.jsx("span",{className:"c-base_icon__width_only_container"})})}),k||N.push({kind:"page",key:"threads",height:28,qa:"channel_sidebar_vall_threads",page:"threads",className:"p-channel_sidebar__link p-channel_sidebar__link--all-threads",label:"Threads",icon:a.jsx("span",{className:"p-channel_sidebar__link__icon c-icon--inherit","data-qa":"small-reply",children:a.jsx(hd,{size:16,"data-qa":"threads",style:xe(16)})})},{kind:"page",key:"huddles",height:28,qa:"channel_sidebar_pbrowse-huddles",page:"huddles",className:"p-channel_sidebar__link p-channel_sidebar__link--page p-channel_sidebar__link--page_pbrowse-huddles",label:"Huddles",icon:a.jsx("i",{className:"c-icon p-channel_sidebar__link__icon c-icon--headphones c-icon--inherit","data-qa":"channel-sidebar-page-link-icon","aria-hidden":"true",children:a.jsx(br,{size:16,style:xe(16)})})},{kind:"page",key:"drafts",height:28,qa:"channel_sidebar_pdrafts",page:"drafts",className:"p-channel_sidebar__link p-channel_sidebar__link--page p-channel_sidebar__link--page_pdrafts",label:"Drafts & sent",nameQa:"channel_sidebar_name_page_pdrafts",icon:a.jsx("span",{className:"p-channel_sidebar__link__icon c-icon--inherit","data-qa":"paper-plane-alt",children:a.jsx(gh,{size:16,"data-qa":"send",style:xe(16)})})},{kind:"page",key:"directories",height:28,qa:"channel_sidebar_directories_link",page:"directories",className:"p-channel_sidebar__link p-channel_sidebar__link p-channel_sidebar__link--page",label:"Directories",icon:a.jsx("span",{className:"p-channel_sidebar__link__icon c-icon--inherit","data-qa":"unified-directory",children:a.jsx(vh,{size:16,"data-qa":"user-directory",style:xe(16)})})},{kind:"divider",key:"divider",height:24});const H=(be,Xe,rt=[])=>{const It=Xe.filter(V=>!ce(V)&&Q(y.channelName(V.id)??V.name??""));N.push({kind:"heading",key:`heading-${be}`,height:28,section:be,expanded:!b[be]});const ka=b[be]?It.filter(V=>z(V)>0||V.id===e):It;for(const V of ka)N.push({kind:"channel",key:V.id,height:28,channel:V});b[be]||N.push(...rt),!b[be]&&!k&&be==="stars"&&It.length===0&&N.push({kind:"empty",key:"stars-empty",height:44,text:"Drag and drop important stuff here"})};H("stars",w.starred),w.external.length>0&&H("slack_connect",w.external),H("channels",w.channels);const J=r[i],re=w.dms.some(be=>sc(be,i)),he=J&&!re&&!b.direct_messages&&Q(J.real_name)?[{kind:"self",key:"self-dm",height:28,user:J}]:[];if(H("direct_messages",w.dms,he),N.push({kind:"heading",key:"heading-recent_apps",height:28,section:"recent_apps",expanded:!b.recent_apps}),!b.recent_apps){for(const be of I)Q(be.real_name)&&N.push({kind:"app",key:be.id,height:28,user:be});k||N.push({kind:"close",key:"connect-apps",height:28,qa:"channel_sidebar_add_more_items_app",label:"Connect apps",onClick:()=>{}})}return N},[k,w,b,e,I,S,A,y,h,p,g]),{offsets:K,height:L}=_.useMemo(()=>Db(P),[P]),B=_.useMemo(()=>Mb(P,e,m),[P,e,m]),j=Mh(r),[F,M]=_.useState(null),X=_.useRef(void 0),oe=(N,H)=>{const J=H.querySelector(".p-channel_sidebar__name");if(!J)return;const re=J.getBoundingClientRect(),he=H.getBoundingClientRect();window.clearTimeout(X.current),X.current=window.setTimeout(()=>M({id:N,anchor:yb(),x:re.left+re.width/2,y:he.top}),ir)},E=()=>{window.clearTimeout(X.current),M(null)};_.useEffect(()=>()=>window.clearTimeout(X.current),[]);const O=_.useRef(null),[D,W]=_.useState(null),Y=()=>{const N=O.current;if(!N)return;const H=N.clientHeight-8;if(N.scrollHeight<=N.clientHeight+1){W(null);return}const J=Math.max(20,Math.round(N.clientHeight/N.scrollHeight*H*100)/100),re=Math.round(N.scrollTop/(N.scrollHeight-N.clientHeight)*(H-J)*100)/100;W(he=>he&&he.top===re&&he.height===J?he:{top:re,height:J})};_.useLayoutEffect(Y,[L]),_.useEffect(()=>{const N=O.current;if(!N||typeof ResizeObserver>"u")return;const H=new ResizeObserver(()=>Y());return H.observe(N),()=>H.disconnect()},[]);const T=N=>a.jsxs("div",{className:"p-channel_sidebar__channel p-channel_sidebar__channel--show-avatars","data-qa":"channel-sidebar-channel","data-qa-channel-sidebar-channel-type":"im",onClick:()=>void u([N.id]).then(H=>t(H.id)),onMouseEnter:H=>oe(N.id,H.currentTarget),onMouseLeave:E,children:[a.jsx("div",{className:"p-channel_sidebar__user_avatar",children:a.jsx(Rl,{user:N,presence:!0})}),a.jsxs("span",{className:"p-channel_sidebar__name","data-qa":`channel_sidebar_name_${N.name}`,"aria-describedby":(F==null?void 0:F.id)===N.id?F.anchor:void 0,children:[a.jsx("span",{children:N.real_name}),a.jsx("span",{className:"p-channel_sidebar__member_label","data-qa":"channel_sidebar_name_you",children:"you"})]}),a.jsx("span",{className:"p-channel_sidebar__suffix","data-qa":"sidebar-channel-suffix"})]}),q=N=>{var Mt,xn;const H=ae(N),J=z(N)>0,re=!!((xn=(Mt=g[N.id])==null?void 0:Mt.text)!=null&&xn.trim()),he=sc(N,i),be=he?r[i]:N.is_im?r[N.user??""]:void 0,Xe=he&&be?be.real_name:y.channelName(N.id)??N.id,rt=be?be.name:N.name??N.id,It=N.id===e,ka=Object.keys(o[N.id]??{}).filter(pt=>pt!==i).length>0,V=N.is_im||he?"im":N.is_mpim?"mpim":N.is_private?"private":"channel",Se=!!be&&(be==null?void 0:be.presence)!=="active",Ot=N.is_im||N.is_mpim,Et=be!=null&&be.is_stranger?j[be.team_id]:void 0;let it;return re?it=a.jsx("div",{className:"p-channel_sidebar__channel_icon_prefix p-channel_sidebar__channel_icon_prefix--draft","data-sidebar-channel-icon":"draft","data-twin-unverified":"true",children:a.jsx(ec,{size:16,"data-qa":"sidebar-draft-icon",style:xe(16)})}):N.is_im||he?it=a.jsx("div",{className:"p-channel_sidebar__user_avatar",children:a.jsx(Rl,{user:be,presence:!0})}):N.is_mpim?it=a.jsx($b,{count:Math.max(1,(N.num_members??2)-1)}):it=a.jsx("div",{className:"p-channel_sidebar__channel_icon_prefix",children:a.jsx(dr,{kind:N.is_private||N.is_ext_shared?"lock":"channel"})}),a.jsxs("div",{className:`p-channel_sidebar__channel p-channel_sidebar__channel--show-avatars${It?" p-channel_sidebar__channel--selected":""}${J&&!N.is_muted?" p-channel_sidebar__channel--unread":""}${N.is_muted?" p-channel_sidebar__channel--muted":""}`,"data-qa":"channel-sidebar-channel","data-twin-unverified":N.is_muted?"true":void 0,"data-qa-channel-sidebar-channel-id":N.id,"data-qa-channel-sidebar-channel-type":V,onClick:()=>t(N.id),onMouseEnter:pt=>oe(N.id,pt.currentTarget),onMouseLeave:E,children:[it,a.jsxs("span",{className:`p-channel_sidebar__name${Se?" p-channel_sidebar__name--away":""}`,"data-qa":`channel_sidebar_name_${rt}`,"aria-describedby":(F==null?void 0:F.id)===N.id?F.anchor:void 0,children:[a.jsx("span",{children:Xe}),Et&&a.jsx("span",{className:"p-channel_sidebar__org_label",children:Et}),he&&a.jsx("span",{className:"p-channel_sidebar__member_label","data-qa":"channel_sidebar_name_you",children:"you"})]}),ka&&a.jsx("span",{className:"p-channel_sidebar__typing","data-qa":"sidebar_typing_indicator","aria-label":"Someone is typing",children:"..."}),a.jsx("span",{className:"p-channel_sidebar__suffix","data-qa":"sidebar-channel-suffix"}),H>0&&a.jsx("span",{className:"c-mention_badge","data-qa":"channel_sidebar_badge","data-qa-mention-badge":!0,children:H}),Ot&&H===0&&a.jsx("button",{type:"button",className:"c-button-unstyled p-channel_sidebar__close_button","data-qa":"channel_item_close","aria-hidden":"true",onClick:pt=>pt.stopPropagation(),children:a.jsx(ja,{size:16,"data-qa":"close",style:xe(16)})})]})},U=(N,H)=>{switch(N.kind){case"page":{const J=Eh(N,e,m);return a.jsxs("div",{className:`${N.className}${J?" p-channel_sidebar__link--selected":""}`,"data-qa":N.qa,onClick:()=>N.channelId&&t(N.channelId),children:[N.icon,a.jsx("span",{className:"p-channel_sidebar__name","data-qa":N.nameQa,children:N.label})]})}case"divider":return null;case"heading":{const J=rc[N.section];return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`p-channel_sidebar__section_heading${b[N.section]?" p-channel_sidebar__section_heading--collapsed":""}`,"data-qa":N.section,children:a.jsxs("div",{className:"p-channel_sidebar__section_heading_label","data-qa":`channel_sidebar__section_heading_label__${N.section}`,children:[a.jsxs("div",{className:"p-channel_sidebar__section_heading_toggle","data-qa":`section_heading_toggle_and_label__${N.section}`,role:"button","aria-hidden":"true",onClick:()=>ie(N.section),children:[a.jsxs("div",{className:"p-channel_sidebar__section_heading_icon","aria-hidden":"true",children:[J.icon,a.jsx("div",{className:"p-channel_sidebar__section_heading_collapse",children:a.jsx(Ev,{size:15,"data-qa":"channel-section-collapse",style:xe(15)})})]}),a.jsx("span",{className:"p-channel_sidebar__section_heading_text_wrap",children:a.jsx("span",{className:"p-channel_sidebar__section_heading_text",children:J.title})})]}),a.jsx("span",{className:"p-channel_sidebar__section_heading_actions",children:N.section==="channels"&&a.jsx("button",{type:"button",className:"c-button-unstyled p-channel_sidebar__section_heading_action","aria-label":"Add channels",onClick:()=>v(!0),children:a.jsx(Wa,{size:16,style:xe(16)})})})]})}),a.jsx("div",{role:"group","aria-owns":H.owns??""})]})}case"empty":return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"p-channel_sidebar__empty_section_spacer"}),a.jsx("div",{className:"p-channel_sidebar__empty_section","aria-hidden":"true",children:a.jsx("span",{className:"c-truncate",children:N.text})})]});case"channel":return q(N.channel);case"self":return T(N.user);case"app":return a.jsxs("div",{className:"p-channel_sidebar__channel p-channel_sidebar__channel--show-avatars","data-qa":"channel-sidebar-channel","data-qa-channel-sidebar-channel-type":"app",onMouseEnter:J=>oe(N.user.id,J.currentTarget),onMouseLeave:E,children:[a.jsx("div",{className:"p-channel_sidebar__user_avatar",children:a.jsx(Rl,{user:N.user})}),a.jsx("span",{className:"p-channel_sidebar__name","data-qa":`channel_sidebar_name_${N.user.name}`,"aria-describedby":(F==null?void 0:F.id)===N.user.id?F.anchor:void 0,children:a.jsx("span",{children:N.user.real_name})}),a.jsx("span",{className:"p-channel_sidebar__suffix","data-qa":"sidebar-channel-suffix"})]});case"close":return a.jsx("div",{className:"p-channel_sidebar__close_container",children:a.jsxs("div",{className:"p-channel_sidebar__link p-channel_sidebar__link--add-more-items","data-qa":N.qa,onClick:N.onClick,children:[a.jsx("i",{className:"p-channel_sidebar__channel_icon_prefix p-channel_sidebar__channel_icon_prefix--add","data-qa":"sidebar-channel-icon-prefix","data-sidebar-channel-icon":"add","aria-hidden":"true",style:xe(20),children:a.jsx(Wa,{size:16,style:xe(16)})}),a.jsx("span",{className:"p-channel_sidebar__name",children:N.label})]})})}},$=N=>{const H="p-channel_sidebar__static_list__item p-channel_sidebar__static_list__item--contain";return N.kind==="divider"?`${H} p-channel_sidebar__static_list__item--divider`:N.kind==="heading"?`${H} p-channel_sidebar__static_list__item--section_heading`:N.kind==="empty"?`${H} p-channel_sidebar__static_list__item--empty_section`:H},Z=N=>{N.kind==="channel"?t(N.channel.id):N.kind==="self"?u([N.user.id]).then(H=>t(H.id)):N.kind==="page"&&N.channelId?t(N.channelId):N.kind==="heading"&&ie(N.section)};return a.jsxs("div",{className:"p-view_contents p-view_contents--sidebar","aria-label":"Sidebar",children:[a.jsxs("div",{className:"p-ia4_channel_list",children:[a.jsxs("div",{className:"p-ia4_sidebar_header p-ia4_home_header p-ia4_home_header--with_divider",children:[a.jsx("div",{className:"p-ia4_sidebar_header__title",children:a.jsx("div",{className:"p-ia4_sidebar_header__title--inner","data-qa":"ia4_sidebar_header__title",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-ia4_home_header_menu__button","data-qa":"workspace_actions_button","aria-label":`${l.name} Actions`,"aria-haspopup":"menu",children:[a.jsx("span",{className:"p-ia4_home_header_menu__team_name",children:l.name}),a.jsx(Ie,{size:18,"data-qa":"caret-down",role:"img","aria-hidden":void 0,"aria-label":"caret-down",style:xe(18)})]})})}),a.jsxs("div",{className:"p-ia4_sidebar_header__controls",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium p-home_header_controls__composer_button","data-qa":"sweeper_button","aria-label":"Manage my sidebar","aria-haspopup":"menu",children:a.jsx(yr,{size:20,"data-qa":"settings",style:xe(20)})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium p-home_header_controls__composer_button","data-qa":"composer_button","aria-label":"New message",onClick:()=>v(!0),children:a.jsx(ec,{size:20,"data-qa":"compose",style:xe(20)})})]})]}),a.jsx("div",{className:"p-sidebar_text_filter_input_header p-home_header--no_border p-home_header",children:a.jsxs("div",{className:"c-filter_input c-filter_input--themed c-filter_input--small","data-qa":"sidebar-text-filter-input",role:"presentation",children:[a.jsx(pd,{size:16,"data-qa":"quick-switch",style:xe(16)}),a.jsx("input",{type:"text",className:"c-filter_input__input","data-qa":"sidebar-text-filter-input_input",role:"searchbox",placeholder:"Find a conversation...","aria-label":"Channel or user name",value:k,onChange:N=>C(N.target.value)}),a.jsx("span",{className:"c-filter_input__clear","aria-hidden":"true"})]})}),a.jsx("div",{className:"p-channel_sidebar","data-qa":"channel-sidebar",children:a.jsx("div",{className:"p-channel_sidebar__list",children:a.jsxs("div",{className:"c-virtual_list c-virtual_list--scrollbar p-channel_sidebar__static_list c-scrollbar",children:[a.jsx("div",{className:"c-scrollbar__hider","data-qa":"slack_kit_scrollbar",ref:O,onScroll:Y,children:a.jsx("div",{className:"c-scrollbar__child",children:a.jsx("div",{className:"c-virtual_list__scroll_container","data-qa":"slack_kit_list",role:"tree","aria-label":"Channels and direct messages","aria-describedby":"channel_sidebar_summary",style:{height:L},children:P.map((N,H)=>{const J=B[H];return a.jsx("div",{className:$(N),"data-qa":"virtual-list-item",...zb(J),tabIndex:J.role==="treeitem"?0:void 0,onKeyDown:J.role==="treeitem"?re=>{(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),Z(N))}:void 0,style:{transform:`translateY(${K[H]}px)`},children:U(N,J)},N.key)})})})}),a.jsx("div",{className:"c-scrollbar__track","aria-hidden":"true",children:D&&a.jsx("div",{className:"c-scrollbar__bar",style:{top:D.top,height:D.height}})})]})})})]}),F&&a.jsx("div",{className:"p-channel_sidebar__tooltip_anchor","data-qa":"tooltip-popover",role:"tooltip",id:F.anchor,style:{left:F.x,top:F.y}}),f&&a.jsx(Fb,{onClose:()=>v(!1),onCreate:async(N,H)=>{const J=await c(N,H);v(!1),t(J.id)}})]})}function Rl({user:e,presence:t=!1}){var i;const n=(e==null?void 0:e.presence)==="active",s=(i=e==null?void 0:e.profile)==null?void 0:i.image_72,r=e!=null&&e.color?`#${e.color}`:void 0;return a.jsxs("span",{className:`c-avatar${t?" c-avatar--presence":""}`,"data-qa":"channel-prefix-im-avatar","data-user-id":e==null?void 0:e.id,children:[t&&a.jsx("svg",{className:"c-avatar__mask","aria-hidden":"true",children:a.jsx("clipPath",{id:"tw-mask__small-member",clipPathUnits:"objectBoundingBox",children:a.jsx("path",{clipRule:"evenodd",d:"M0,0 H1 V1 H0 Z M0.95,0.34 A0.46,0.46 0 1 0 0.95,1.26 A0.46,0.46 0 1 0 0.95,0.34 Z"})})}),a.jsx("span",{className:"c-base_icon__width_only_container",style:r?{background:r}:void 0,children:s&&a.jsx("img",{className:"c-base_icon c-base_icon--image",src:nt(s),alt:"",width:16,height:16,loading:"lazy"})}),t&&a.jsx("span",{className:`c-avatar__presence c-presence ${n?"c-presence--active":"c-presence--away"}`,title:n?"Active":"Away",children:a.jsx(fd,{active:n,size:12})})]})}function $b({count:e}){return a.jsx("i",{className:"p-channel_sidebar__channel_icon_prefix p-channel_sidebar__channel_icon_prefix--mpim","data-qa":"sidebar-channel-icon-prefix","data-sidebar-channel-icon":"mpim","aria-hidden":"true",style:xe(26),children:a.jsxs("svg",{viewBox:"0 0 20 20",width:16,height:16,"aria-hidden":"true",children:[a.jsx("rect",{x:"1.75",y:"1.75",width:"16.5",height:"16.5",rx:"4",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),a.jsx("text",{x:"10",y:"14.4",textAnchor:"middle",fontSize:"12",fontWeight:"700",fontFamily:"inherit",fill:"currentColor",children:e})]})})}function Fb({onClose:e,onCreate:t}){const[n,s]=_.useState(""),[r,i]=_.useState(!1),[l,o]=_.useState(null);return a.jsx("div",{className:"p-create_channel_backdrop","data-qa":"create_channel_modal",role:"dialog","aria-modal":"true","aria-label":"Create a channel",onClick:e,children:a.jsxs("form",{className:"p-create_channel_modal",onClick:c=>c.stopPropagation(),onSubmit:c=>{c.preventDefault(),t(n.trim().toLowerCase().replace(/\s+/g,"-"),r).catch(u=>o(u instanceof Error?u.message:"failed"))},children:[a.jsx("h2",{children:"Create a channel"}),a.jsxs("label",{children:["Name",a.jsxs("div",{className:"c-input_with_prefix",children:[a.jsx(dr,{kind:r?"lock":"channel",size:14,qa:"create_channel_prefix"}),a.jsx("input",{autoFocus:!0,className:"c-input_text","data-qa":"channel_name_input",value:n,onChange:c=>s(c.target.value),placeholder:"e.g. plan-budget",maxLength:80})]})]}),a.jsxs("label",{className:"c-sk_modal__checkbox",children:[a.jsx("input",{type:"checkbox","data-qa":"channel_private_checkbox",checked:r,onChange:c=>i(c.target.checked)}),"Make private"]}),l&&a.jsx("p",{className:"c-sk_modal__error","data-qa":"create_channel_error",children:l}),a.jsxs("div",{className:"c-sk_modal__footer",children:[a.jsx("button",{type:"button",className:"c-button c-button--outline",onClick:e,"data-qa":"create_channel_cancel",children:"Cancel"}),a.jsx("button",{type:"submit",className:"c-button c-button--primary",disabled:!n.trim(),"data-qa":"create_channel_submit",children:"Create"})]})]})})}function le(e,t="0 0 20 20"){return function({size:s=20,...r}){return a.jsx("svg",{width:s,height:s,viewBox:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true","data-twin-icon":!0,...r,dangerouslySetInnerHTML:{__html:e}})}}const Rb={home:le('<path d="M3 9.5 10 3l7 6.5V17H3z"/><path d="M8 17v-5h4v5"/>'),dms:le('<path d="M3 4h14v9H8l-4 3v-3H3z"/>'),activity:le('<path d="M10 3a5 5 0 0 0-5 5v4l-1.5 2h13L15 12V8a5 5 0 0 0-5-5z"/><path d="M8.5 16a1.5 1.5 0 0 0 3 0"/>'),files:le('<path d="M5 3h7l3 3v11H5z"/><path d="M12 3v3h3"/>'),more:le('<circle cx="5" cy="10" r="1.2" fill="currentColor"/><circle cx="10" cy="10" r="1.2" fill="currentColor"/><circle cx="15" cy="10" r="1.2" fill="currentColor"/>'),search:le('<circle cx="9" cy="9" r="5.5"/><path d="m13 13 4 4"/>'),compose:le('<path d="M4 16h4l8-8-4-4-8 8z"/><path d="m11 5 4 4"/>'),"settings-gear":le('<circle cx="10" cy="10" r="2.5"/><path d="M10 3v2M10 15v2M3 10h2M15 10h2M5 5l1.5 1.5M13.5 13.5 15 15M5 15l1.5-1.5M13.5 6.5 15 5"/>'),hash:le('<path d="M7.5 3 6 17M14 3l-1.5 14M3.5 7.5h14M2.5 12.5h14"/>'),lock:le('<rect x="4.5" y="9" width="11" height="8" rx="1.5"/><path d="M7 9V6.5a3 3 0 0 1 6 0V9"/>'),"arrow-left":le('<path d="M16 10H4M9 5l-5 5 5 5"/>'),"arrow-right":le('<path d="M4 10h12M11 5l5 5-5 5"/>'),history:le('<circle cx="10" cy="10" r="6.5"/><path d="M10 6.5V10l2.5 1.5"/>'),help:le('<circle cx="10" cy="10" r="6.5"/><path d="M8 8a2 2 0 1 1 2.8 1.8c-.5.3-.8.7-.8 1.2"/><circle cx="10" cy="13.5" r=".6" fill="currentColor"/>'),bell:le('<path d="M10 3a5 5 0 0 0-5 5v4l-1.5 2h13L15 12V8a5 5 0 0 0-5-5z"/><path d="M8.5 16a1.5 1.5 0 0 0 3 0"/>'),star:le('<path d="m10 3 2.1 4.4 4.9.6-3.6 3.3 1 4.7L10 13.6 5.6 16l1-4.7L3 8l4.9-.6z"/>'),bold:le('<path d="M6 4h5a3 3 0 0 1 0 6H6zM6 10h5.5a3 3 0 0 1 0 6H6z"/>'),italic:le('<path d="M11 4h4M5 16h4M12 4 8 16"/>'),underline:le('<path d="M6 4v6a4 4 0 0 0 8 0V4M5 17h10"/>'),strikethrough:le('<path d="M4 10h12M7 6.5C7 5 8.5 4 10 4s3 1 3 2.5M13 13.5c0 1.5-1.5 2.5-3 2.5s-3-1-3-2.5"/>'),link:le('<path d="M8 12a3 3 0 0 0 4.2 0l2-2a3 3 0 0 0-4.2-4.2l-1 1"/><path d="M12 8a3 3 0 0 0-4.2 0l-2 2a3 3 0 0 0 4.2 4.2l1-1"/>'),"ordered-list":le('<path d="M8 5h9M8 10h9M8 15h9"/><path d="M3 4h1.5v3M3 7h2M3 12.5c0-.8 2-.8 2 0 0 .5-2 1.5-2 2.5h2"/>'),"bulleted-list":le('<path d="M8 5h9M8 10h9M8 15h9"/><circle cx="4" cy="5" r="1" fill="currentColor"/><circle cx="4" cy="10" r="1" fill="currentColor"/><circle cx="4" cy="15" r="1" fill="currentColor"/>'),blockquote:le('<path d="M4 4v12M8 6h9M8 10h9M8 14h6"/>'),code:le('<path d="m7 6-4 4 4 4M13 6l4 4-4 4"/>'),"code-block":le('<rect x="3" y="4" width="14" height="12" rx="1.5"/><path d="m8 8-2 2 2 2M12 8l2 2-2 2"/>'),plus:le('<path d="M10 4v12M4 10h12"/>'),"text-formatting":le('<path d="M3 16 7.5 4h1L13 16M4.8 12h6.4M13 9h4M15 9v7"/>'),emoji:le('<circle cx="10" cy="10" r="6.5"/><circle cx="7.5" cy="8.5" r=".8" fill="currentColor"/><circle cx="12.5" cy="8.5" r=".8" fill="currentColor"/><path d="M7 12a3.5 3.5 0 0 0 6 0"/>'),mention:le('<circle cx="10" cy="10" r="3"/><path d="M13 10v1.5a2 2 0 0 0 4 0V10a7 7 0 1 0-3 5.7"/>'),video:le('<rect x="3" y="6" width="10" height="8" rx="1.5"/><path d="m13 9 4-2v6l-4-2z"/>'),microphone:le('<rect x="7.5" y="3" width="5" height="9" rx="2.5"/><path d="M5 10a5 5 0 0 0 10 0M10 15v2"/>'),slash:le('<path d="m7 16 6-12"/>'),send:le('<path d="m3 10 14-6-4 12-3-5z"/><path d="m10 11 7-7"/>'),"chevron-down":le('<path d="m5 8 5 5 5-5"/>'),"chevron-right":le('<path d="m8 5 5 5-5 5"/>'),reply:le('<path d="M8 6 4 9.5 8 13"/><path d="M4 9.5h7a5 5 0 0 1 5 5v1"/>'),forward:le('<path d="m12 6 4 3.5-4 3.5"/><path d="M16 9.5H9a5 5 0 0 0-5 5v1"/>'),bookmark:le('<path d="M5 3h10v14l-5-3.5L5 17z"/>'),ellipsis:le('<circle cx="5" cy="10" r="1.2" fill="currentColor"/><circle cx="10" cy="10" r="1.2" fill="currentColor"/><circle cx="15" cy="10" r="1.2" fill="currentColor"/>'),"emoji-add":le('<path d="M16 10a6 6 0 1 1-6-6"/><path d="M15 3v4M13 5h4"/><circle cx="7.5" cy="8.5" r=".8" fill="currentColor"/><circle cx="12" cy="9.5" r=".8" fill="currentColor"/><path d="M7 12a3.5 3.5 0 0 0 6 0"/>'),close:le('<path d="m5 5 10 10M15 5 5 15"/>'),threads:le('<path d="M3 4h14v8H9l-3 3v-3H3z"/><path d="M7 7h6M7 9.5h4"/>'),huddles:le('<path d="M4 8v4M7 5v10M10 7v6M13 4v12M16 8v4"/>'),drafts:le('<path d="M4 16h4l8-8-4-4-8 8z"/><path d="m11 5 4 4M3 19h14"/>'),directories:le('<path d="M3 5h14v11H3z"/><path d="M3 8h14M7 5v11"/>'),"workspace-add":le('<rect x="3" y="3" width="14" height="14" rx="3"/><path d="M10 6.5v7M6.5 10h7"/>'),moon:le('<path d="M15.5 12.5A6.5 6.5 0 0 1 7.5 4.5a6.5 6.5 0 1 0 8 8z"/>'),sun:le('<circle cx="10" cy="10" r="3.5"/><path d="M10 2.5v2M10 15.5v2M2.5 10h2M15.5 10h2M4.7 4.7l1.4 1.4M13.9 13.9l1.4 1.4M4.7 15.3l1.4-1.4M13.9 6.1l1.4-1.4"/>'),slackbot:le('<rect x="4" y="5" width="12" height="10" rx="3"/><circle cx="8" cy="10" r="1" fill="currentColor"/><circle cx="12" cy="10" r="1" fill="currentColor"/><path d="M10 2.5V5"/>'),"arrow-up":le('<path d="M10 16V4M5 9l5-5 5 5"/>'),filter:le('<path d="M3 5h14l-5.5 6.5V16l-3-1.5v-3z"/>'),check:le('<path d="m4 10.5 4 4 8-9"/>'),pin:le('<path d="M12 3 17 8l-3 1-3 3-.5 3.5L7 12l-3.5 3.5"/><path d="m7 12 3-3 1-3z"/>'),globe:le('<circle cx="10" cy="10" r="6.5"/><path d="M3.5 10h13M10 3.5c2.5 2.5 2.5 10.5 0 13M10 3.5c-2.5 2.5-2.5 10.5 0 13"/>'),canvas:le('<rect x="4" y="3" width="12" height="14" rx="1.5"/><path d="M7 7h6M7 10h6M7 13h4"/>'),agents:le('<rect x="4" y="6" width="12" height="9" rx="2"/><circle cx="8" cy="10.5" r="1" fill="currentColor"/><circle cx="12" cy="10.5" r="1" fill="currentColor"/><path d="M10 3v3"/>'),admin:le('<path d="M10 3 4 5.5v4c0 3.5 2.5 6.5 6 7.5 3.5-1 6-4 6-7.5v-4z"/>'),later:le('<path d="M5 3h10v14l-5-3.5L5 17z"/>'),later_outline:le('<path d="M5 3h10v14l-5-3.5L5 17z"/>')};function Lt({name:e,...t}){const n=Rb[e];return a.jsx(n,{...t})}function Oe({userId:e,size:t=36,presence:n=!1,className:s=""}){var u;const{users:r}=me(),i=e?r[e]:void 0,l=(i==null?void 0:i.real_name)??(i==null?void 0:i.name)??"?",o=l.split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase(),c=(i==null?void 0:i.presence)==="active";return a.jsxs("span",{className:`c-avatar c-avatar--size_${t} ${s}`.trim(),style:{width:t,height:t,"--tw_avatar_color":i!=null&&i.color?`#${i.color}`:void 0},"data-user-id":e,children:[(u=i==null?void 0:i.profile)!=null&&u.image_72?a.jsx("img",{className:"c-avatar__image",src:nt(i.profile.image_72),alt:l,width:t,height:t,loading:"lazy"}):a.jsx("span",{className:"c-avatar__initials",children:o}),a.jsx("span",{className:"c-avatar__initials c-avatar__initials--overlay","aria-hidden":"true",children:o}),n&&a.jsx("span",{className:`c-avatar__presence c-presence ${c?"c-presence--active":"c-presence--away"}`,"data-qa":"presence_indicator",title:c?"Active":"Away"})]})}const Ib=[{id:"channel",label:"Messages",icon:a.jsx(tc,{size:16,"data-qa":"message-filled"})},{id:"channel_canvas",label:"Add canvas",icon:a.jsx(sh,{size:16,"data-qa":"add-channel-canvas"})},{id:"files",label:"Files & links",icon:a.jsx(or,{size:16,"data-qa":"canvas-browser"})}];function Xu({channel:e,onOpenThread:t}){const n=Be(),{me:s}=me(),[r,i]=_.useState("channel"),l=e.is_im&&e.user===s,o=(n.channelName(e.id)??e.id)+(l?" (you)":""),c=e.is_channel||e.is_group?`#${e.name}`:o;return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"p-view_header p-view_header--primary-background p-view_header--with-channel-tabs","data-qa":"view_header","aria-orientation":"horizontal","aria-label":"Primary view actions",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-view_header_star_action_button p-view_header_star_action_button_icon","data-qa":"entity-header-star-button","aria-label":"Move channel",children:a.jsx(md,{size:20,"data-qa":"star"})}),a.jsx("div",{className:"p-view_header__text p-view_header__text--mpdm-naming",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-view_header__big_button p-view_header__big_button--channel","data-qa":"channel_name_button","aria-label":`Channel details for ${c}`,children:a.jsxs("div",{className:"p-view_header__title","data-qa":"channel_name",children:[e.is_im?a.jsx("span",{className:"p-view_header__avatar",children:a.jsx(Oe,{userId:e.user??void 0,size:24})}):a.jsx("span",{className:"p-view_header__channel_title_icon c-inline_channel_icon c-inline_channel_icon--space",children:e.is_private?a.jsx(Lt,{name:"lock",size:18}):e.is_mpim?null:a.jsx(_d,{size:18,"data-qa":"channel-filled"})}),a.jsx("span",{className:"p-view_header__channel_title p-view_header__truncated_text",children:o}),e.is_ext_shared&&a.jsx("span",{className:"p-view_header__external","data-qa":"channel_header_external_badge",title:"Shared with an external organization",children:a.jsx(Lt,{name:"globe",size:14})})]})})}),a.jsxs("div",{className:"p-view_header__actions p-view_header__actions--gap-6px",children:[!e.is_im&&a.jsxs("button",{type:"button",className:"c-button-unstyled p-view_header__actions__avatar_stack","data-qa":"avatar_stack","aria-label":`View all ${e.num_members??0} members.`,children:[a.jsx(Fs,{size:20,"data-qa":"user"}),a.jsx("span",{children:e.num_members??0})]}),a.jsxs("div",{className:"p-huddle_channel_header_button","data-qa":"huddle_channel_header_button",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-huddle_channel_header_button__start_button","data-qa":"huddle_channel_header_button__start_button","aria-disabled":"false","aria-label":`Start huddle in ${o}`,children:a.jsx(br,{size:20,"data-qa":"headphones"})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-huddle_channel_header_button__caret","data-qa":"huddle_channel_header_button","aria-haspopup":"menu","aria-label":"More Huddles options",children:a.jsx(Ie,{size:20,"data-qa":"caret-down"})})]}),a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--small p-view_header_notifications_action_button","data-qa":"control_button","aria-haspopup":"menu","aria-label":"Edit notifications",children:a.jsx("div",{className:"p-view_header_notifications_action_button_icon",children:a.jsx(hh,{size:20,"data-qa":"notifications-all-new-posts"})})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium p-view_header_search_action_button","data-qa":"search_in_channel_button","aria-label":e.is_im||e.is_mpim?"Search in conversation":"Search in channel",children:a.jsx(aa,{size:20,"data-qa":"search"})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium p-view_header_more_action_button","data-qa":"unstyled-button","aria-haspopup":"menu","aria-label":"More channel actions",children:a.jsx(al,{size:16,"data-qa":"ellipsis-vertical-filled"})})]})]}),a.jsxs("div",{className:"p-view_header__tabs c-tabs__tab_menu c-tabs__tab_menu--horizontal",role:"tablist","aria-orientation":"horizontal","aria-label":`${c} views`,children:[Ib.map(u=>a.jsx("button",{type:"button",role:"tab","aria-selected":r===u.id,"aria-haspopup":u.id==="channel_canvas"?"true":"false",className:`c-button-unstyled c-tabs__tab${r===u.id?" c-tabs__tab--active":""}`,"data-qa":u.id,onClick:()=>i(u.id),children:a.jsxs("span",{className:"c-tabs__tab_content",children:[a.jsx("span",{className:"c-tabs__tab_icon",children:u.icon}),a.jsx("span",{className:"c-tabs__tab_label",children:u.label})]})},u.id)),a.jsx("div",{className:"c-tabs__tab_add_wrapper",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-tabs__tab_add","data-qa":"unstyled-button","aria-haspopup":"true","aria-label":"Add and Edit Channel Tabs",children:a.jsx(fh,{size:16,"data-qa":"plus-filled"})})})]}),r==="files"&&a.jsx("div",{className:"p-view_header__tab_note","data-qa":"channel_header_files_placeholder",children:"Files shared here appear in this tab."})]})}function bn(e){return new Date(Math.floor(Number(e)*1e3))}function e_(e){return Math.floor(Number(e))}const zh=["January","February","March","April","May","June","July","August","September","October","November","December"],Th=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ah(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function Ai(e){const t=bn(e);return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`}function t_(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function Lh(e,t){return Math.round((t_(e)-t_(t))/864e5)}function Ob(e,t=new Date){const n=bn(e),s=Lh(t,n);if(s===0)return"Today";if(s===1)return"Yesterday";const r=`${zh[n.getMonth()]} ${Ah(n.getDate())}`;return n.getFullYear()===t.getFullYear()?`${Th[n.getDay()]}, ${r}`:`${r}, ${n.getFullYear()}`}function pa(e,t=!1){const n=bn(e);let s=n.getHours();const r=n.getMinutes().toString().padStart(2,"0"),i=t?`:${n.getSeconds().toString().padStart(2,"0")}`:"";if(da().time24h)return`${s.toString().padStart(2,"0")}:${r}${i}`;const l=s>=12?"PM":"AM";return s=s%12||12,`${s}:${r}${i} ${l}`}function Bb(e){return pa(e).replace(/ (AM|PM)$/,"")}function a_(e){const t=bn(e);return`${Th[t.getDay()]}, ${zh[t.getMonth()]} ${Ah(t.getDate())} at ${pa(e,!0)}`}function gd(e,t=new Date){const n=Math.max(0,Math.round((t.getTime()-bn(e).getTime())/1e3));if(n<60)return"just now";const s=Math.round(n/60);if(s<60)return`${s} minute${s===1?"":"s"} ago`;const r=Math.round(s/60);if(r<24)return`${r} hour${r===1?"":"s"} ago`;const i=Math.round(r/24);if(i===1)return"yesterday";if(i<30)return`${i} days ago`;const l=Math.round(i/30);return`${l} month${l===1?"":"s"} ago`}function Dh(e,t,n=new Date){const s=bn(e),r=Lh(n,s);let i;if(r===0)i=`today at ${pa(e)}`;else if(r===1)i=`yesterday at ${pa(e)}`;else if(r<30)i=`${r} days ago`;else{const l=Math.max(1,Math.round(r/30));i=`${l} month${l===1?"":"s"} ago`}return t>1?`Last reply ${i}`:i.charAt(0).toUpperCase()+i.slice(1)}function Hb(e){const n=new Date;let s=n.getHours();const r=n.getMinutes().toString().padStart(2,"0");if(da().time24h)return`${s.toString().padStart(2,"0")}:${r} local time`;const i=s>=12?"PM":"AM";return s=s%12||12,`${s}:${r} ${i} local time`}function Ub(e,t){return Ai(e)===Ai(t)&&e_(t)-e_(e)<5*60}const d=(e,t)=>({name:e,glyph:t}),Ph=[d("white_check_mark","✅"),d("eyes","👀"),d("raised_hands","🙌"),d("pray","🙏"),d("heavy_plus_sign","➕"),d("clap","👏"),d("bulb","💡"),d("dart","🎯"),d("wave","👋"),d("+1","👍"),d("tada","🎉"),d("one","1️⃣"),d("two","2️⃣"),d("three","3️⃣"),d("mega","📣"),d("white_circle","⚪"),d("large_blue_circle","🔵"),d("red_circle","🔴"),d("cool","🆒"),d("ok","🆗"),d("sos","🆘"),d("rotating_light","🚨"),d("rocket","🚀"),d("fire","🔥"),d("heart","❤️"),d("100","💯")],$h=[d("grinning","😀"),d("smiley","😃"),d("smile","😄"),d("grin","😁"),d("laughing","😆"),d("sweat_smile","😅"),d("rolling_on_the_floor_laughing","🤣"),d("joy","😂"),d("slightly_smiling_face","🙂"),d("upside_down_face","🙃"),d("melting_face","🫠"),d("wink","😉"),d("blush","😊"),d("innocent","😇"),d("smiling_face_with_3_hearts","🥰"),d("heart_eyes","😍"),d("star-struck","🤩"),d("kissing_heart","😘"),d("kissing","😗"),d("relaxed","☺️"),d("kissing_closed_eyes","😚"),d("kissing_smiling_eyes","😙"),d("smiling_face_with_tear","🥲"),d("yum","😋"),d("stuck_out_tongue","😛"),d("stuck_out_tongue_winking_eye","😜"),d("zany_face","🤪"),d("stuck_out_tongue_closed_eyes","😝"),d("money_mouth_face","🤑"),d("hugging_face","🤗"),d("face_with_hand_over_mouth","🤭"),d("face_with_open_eyes_and_hand_over_mouth","🫢"),d("face_with_peeking_eye","🫣"),d("shushing_face","🤫"),d("thinking_face","🤔"),d("saluting_face","🫡"),d("zipper_mouth_face","🤐"),d("face_with_raised_eyebrow","🤨"),d("neutral_face","😐"),d("expressionless","😑"),d("no_mouth","😶"),d("dotted_line_face","🫥"),d("face_in_clouds","😶‍🌫️"),d("smirk","😏"),d("unamused","😒"),d("face_with_rolling_eyes","🙄"),d("grimacing","😬"),d("face_exhaling","😮‍💨"),d("lying_face","🤥"),d("shaking_face","🫨"),d("relieved","😌"),d("pensive","😔"),d("sleepy","😪"),d("drooling_face","🤤"),d("sleeping","😴"),d("mask","😷"),d("face_with_thermometer","🤒"),d("face_with_head_bandage","🤕"),d("nauseated_face","🤢"),d("face_vomiting","🤮"),d("sneezing_face","🤧"),d("hot_face","🥵"),d("cold_face","🥶"),d("woozy_face","🥴"),d("dizzy_face","😵"),d("face_with_spiral_eyes","😵‍💫"),d("exploding_head","🤯"),d("face_with_cowboy_hat","🤠"),d("partying_face","🥳"),d("disguised_face","🥸"),d("sunglasses","😎"),d("nerd_face","🤓"),d("face_with_monocle","🧐"),d("confused","😕"),d("face_with_diagonal_mouth","🫤"),d("worried","😟"),d("slightly_frowning_face","🙁"),d("white_frowning_face","☹️"),d("open_mouth","😮"),d("hushed","😯"),d("astonished","😲"),d("flushed","😳"),d("pleading_face","🥺"),d("face_holding_back_tears","🥹"),d("frowning","😦"),d("anguished","😧"),d("fearful","😨"),d("cold_sweat","😰"),d("disappointed_relieved","😥"),d("cry","😢"),d("sob","😭"),d("scream","😱"),d("confounded","😖"),d("persevere","😣"),d("disappointed","😞"),d("sweat","😓"),d("weary","😩"),d("tired_face","😫"),d("yawning_face","🥱"),d("triumph","😤"),d("rage","😡"),d("angry","😠"),d("face_with_symbols_on_mouth","🤬"),d("smiling_imp","😈"),d("imp","👿"),d("skull","💀"),d("skull_and_crossbones","☠️"),d("hankey","💩"),d("clown_face","🤡"),d("japanese_ogre","👹"),d("japanese_goblin","👺"),d("ghost","👻"),d("alien","👽"),d("space_invader","👾"),d("robot_face","🤖"),d("smiley_cat","😺"),d("smile_cat","😸"),d("joy_cat","😹"),d("heart_eyes_cat","😻"),d("smirk_cat","😼"),d("kissing_cat","😽"),d("scream_cat","🙀"),d("crying_cat_face","😿"),d("pouting_cat","😾"),d("see_no_evil","🙈"),d("hear_no_evil","🙉"),d("speak_no_evil","🙊"),d("love_letter","💌"),d("cupid","💘"),d("gift_heart","💝"),d("sparkling_heart","💖"),d("heartpulse","💗"),d("heartbeat","💓"),d("revolving_hearts","💞"),d("two_hearts","💕"),d("heart_decoration","💟"),d("heavy_heart_exclamation_mark_ornament","❣️"),d("broken_heart","💔"),d("heart_on_fire","❤️‍🔥"),d("mending_heart","❤️‍🩹"),d("heart","❤️"),d("pink_heart","🩷"),d("orange_heart","🧡"),d("yellow_heart","💛"),d("green_heart","💚"),d("blue_heart","💙"),d("light_blue_heart","🩵"),d("purple_heart","💜"),d("brown_heart","🤎"),d("black_heart","🖤"),d("grey_heart","🩶"),d("white_heart","🤍"),d("kiss","💋"),d("100","💯"),d("anger","💢"),d("boom","💥"),d("dizzy","💫"),d("sweat_drops","💦"),d("dash","💨"),d("hole","🕳️"),d("speech_balloon","💬"),d("eye-in-speech-bubble","👁️‍🗨️"),d("left_speech_bubble","🗨️"),d("right_anger_bubble","🗯️"),d("thought_balloon","💭"),d("zzz","💤"),d("wave","👋"),d("raised_back_of_hand","🤚"),d("raised_hand_with_fingers_splayed","🖐️"),d("hand","✋"),d("spock-hand","🖖"),d("rightwards_hand","🫱"),d("leftwards_hand","🫲"),d("palm_down_hand","🫳"),d("palm_up_hand","🫴"),d("leftwards_pushing_hand","🫷"),d("rightwards_pushing_hand","🫸"),d("ok_hand","👌"),d("pinched_fingers","🤌"),d("pinching_hand","🤏"),d("v","✌️"),d("crossed_fingers","🤞"),d("hand_with_index_finger_and_thumb_crossed","🫰"),d("i_love_you_hand_sign","🤟"),d("the_horns","🤘"),d("call_me_hand","🤙"),d("point_left","👈"),d("point_right","👉"),d("point_up_2","👆"),d("middle_finger","🖕"),d("point_down","👇"),d("point_up","☝️"),d("index_pointing_at_the_viewer","🫵"),d("+1","👍"),d("-1","👎"),d("fist","✊"),d("facepunch","👊"),d("left-facing_fist","🤛"),d("right-facing_fist","🤜"),d("clap","👏"),d("raised_hands","🙌"),d("heart_hands","🫶"),d("open_hands","👐"),d("palms_up_together","🤲"),d("handshake","🤝"),d("pray","🙏"),d("writing_hand","✍️"),d("nail_care","💅"),d("selfie","🤳"),d("muscle","💪"),d("mechanical_arm","🦾"),d("mechanical_leg","🦿"),d("leg","🦵"),d("foot","🦶"),d("ear","👂"),d("ear_with_hearing_aid","🦻"),d("nose","👃"),d("brain","🧠"),d("anatomical_heart","🫀"),d("lungs","🫁"),d("tooth","🦷"),d("bone","🦴"),d("eyes","👀"),d("eye","👁️"),d("tongue","👅"),d("lips","👄"),d("biting_lip","🫦"),d("baby","👶"),d("child","🧒"),d("boy","👦"),d("girl","👧"),d("adult","🧑"),d("person_with_blond_hair","👱"),d("man","👨"),d("bearded_person","🧔"),d("red_haired_man","👨‍🦰"),d("curly_haired_man","👨‍🦱"),d("white_haired_man","👨‍🦳"),d("bald_man","👨‍🦲"),d("woman","👩"),d("red_haired_woman","👩‍🦰"),d("curly_haired_woman","👩‍🦱"),d("white_haired_woman","👩‍🦳"),d("bald_woman","👩‍🦲"),d("blond-haired-woman","👱‍♀️"),d("blond-haired-man","👱‍♂️"),d("older_adult","🧓"),d("older_man","👴"),d("older_woman","👵"),d("person_frowning","🙍"),d("person_with_pouting_face","🙎"),d("no_good","🙅"),d("ok_woman","🙆"),d("information_desk_person","💁"),d("raising_hand","🙋"),d("deaf_person","🧏"),d("bow","🙇"),d("face_palm","🤦"),d("shrug","🤷"),d("health_worker","🧑‍⚕️"),d("student","🧑‍🎓"),d("teacher","🧑‍🏫"),d("judge","🧑‍⚖️"),d("farmer","🧑‍🌾"),d("cook","🧑‍🍳"),d("mechanic","🧑‍🔧"),d("factory_worker","🧑‍🏭"),d("office_worker","🧑‍💼"),d("scientist","🧑‍🔬"),d("technologist","🧑‍💻"),d("singer","🧑‍🎤"),d("artist","🧑‍🎨"),d("pilot","🧑‍✈️"),d("astronaut","🧑‍🚀"),d("firefighter","🧑‍🚒"),d("cop","👮"),d("sleuth_or_spy","🕵️"),d("guardsman","💂"),d("ninja","🥷"),d("construction_worker","👷"),d("person_with_crown","🫅"),d("prince","🤴"),d("princess","👸"),d("man_with_turban","👳"),d("man_with_gua_pi_mao","👲"),d("person_with_headscarf","🧕"),d("person_in_tuxedo","🤵"),d("bride_with_veil","👰"),d("pregnant_woman","🤰"),d("pregnant_man","🫃"),d("pregnant_person","🫄"),d("breast-feeding","🤱"),d("angel","👼"),d("santa","🎅"),d("mrs_claus","🤶"),d("superhero","🦸"),d("supervillain","🦹"),d("mage","🧙"),d("fairy","🧚"),d("vampire","🧛"),d("merperson","🧜"),d("elf","🧝"),d("genie","🧞"),d("zombie","🧟"),d("troll","🧌"),d("massage","💆"),d("haircut","💇"),d("walking","🚶"),d("standing_person","🧍"),d("kneeling_person","🧎"),d("runner","🏃"),d("dancer","💃"),d("man_dancing","🕺"),d("man_in_business_suit_levitating","🕴️"),d("dancers","👯"),d("person_in_steamy_room","🧖"),d("person_climbing","🧗"),d("fencer","🤺"),d("horse_racing","🏇"),d("skier","⛷️"),d("snowboarder","🏂"),d("golfer","🏌️"),d("surfer","🏄"),d("rowboat","🚣"),d("swimmer","🏊"),d("person_with_ball","⛹️"),d("weight_lifter","🏋️"),d("bicyclist","🚴"),d("mountain_bicyclist","🚵"),d("person_doing_cartwheel","🤸"),d("wrestlers","🤼"),d("water_polo","🤽"),d("handball","🤾"),d("juggling","🤹"),d("person_in_lotus_position","🧘"),d("bath","🛀"),d("sleeping_accommodation","🛌"),d("people_holding_hands","🧑‍🤝‍🧑"),d("two_women_holding_hands","👭"),d("couple","👫"),d("two_men_holding_hands","👬"),d("couplekiss","💏"),d("couple_with_heart","💑"),d("family","👪"),d("speaking_head_in_silhouette","🗣️"),d("bust_in_silhouette","👤"),d("busts_in_silhouette","👥"),d("people_hugging","🫂"),d("footprints","👣"),d("thread","🧵"),d("yarn","🧶")],Fh=[d("dog","🐶"),d("cat","🐱"),d("mouse","🐭"),d("rabbit","🐰"),d("fox_face","🦊"),d("bear","🐻"),d("panda_face","🐼"),d("koala","🐨"),d("tiger","🐯"),d("lion_face","🦁"),d("cow","🐮"),d("pig","🐷"),d("frog","🐸"),d("monkey_face","🐵"),d("chicken","🐔"),d("penguin","🐧"),d("bird","🐦"),d("bee","🐝"),d("bug","🐛"),d("butterfly","🦋"),d("snail","🐌"),d("turtle","🐢"),d("octopus","🐙"),d("whale","🐳"),d("dolphin","🐬"),d("unicorn_face","🦄"),d("seedling","🌱"),d("evergreen_tree","🌲"),d("palm_tree","🌴"),d("cactus","🌵"),d("four_leaf_clover","🍀"),d("sunflower","🌻"),d("rose","🌹"),d("cherry_blossom","🌸"),d("sunny","☀️"),d("moon","🌙"),d("star","⭐"),d("zap","⚡"),d("fire","🔥"),d("rainbow","🌈"),d("snowflake","❄️"),d("ocean","🌊")],Rh=[d("apple","🍎"),d("banana","🍌"),d("watermelon","🍉"),d("grapes","🍇"),d("strawberry","🍓"),d("lemon","🍋"),d("avocado","🥑"),d("corn","🌽"),d("bread","🍞"),d("cheese_wedge","🧀"),d("egg","🥚"),d("bacon","🥓"),d("pizza","🍕"),d("hamburger","🍔"),d("fries","🍟"),d("hotdog","🌭"),d("taco","🌮"),d("burrito","🌯"),d("sushi","🍣"),d("ramen","🍜"),d("spaghetti","🍝"),d("cookie","🍪"),d("cake","🍰"),d("birthday","🎂"),d("doughnut","🍩"),d("ice_cream","🍨"),d("chocolate_bar","🍫"),d("popcorn","🍿"),d("coffee","☕"),d("tea","🍵"),d("beer","🍺"),d("beers","🍻"),d("wine_glass","🍷"),d("cocktail","🍸"),d("tropical_drink","🍹"),d("champagne","🍾")],Ih=[d("car","🚗"),d("taxi","🚕"),d("bus","🚌"),d("bike","🚲"),d("rocket","🚀"),d("airplane","✈️"),d("helicopter","🚁"),d("ship","🚢"),d("sailboat","⛵"),d("train","🚆"),d("house","🏠"),d("office","🏢"),d("hospital","🏥"),d("school","🏫"),d("tent","⛺"),d("mountain","⛰️"),d("beach_with_umbrella","🏖️"),d("desert_island","🏝️"),d("cityscape","🏙️"),d("bridge_at_night","🌉"),d("statue_of_liberty","🗽"),d("earth_americas","🌎"),d("world_map","🗺️"),d("compass","🧭")],Oh=[d("soccer","⚽"),d("basketball","🏀"),d("football","🏈"),d("baseball","⚾"),d("tennis","🎾"),d("volleyball","🏐"),d("8ball","🎱"),d("ping_pong","🏓"),d("trophy","🏆"),d("medal","🏅"),d("first_place_medal","🥇"),d("dart","🎯"),d("video_game","🎮"),d("game_die","🎲"),d("jigsaw","🧩"),d("art","🎨"),d("microphone","🎤"),d("headphones","🎧"),d("guitar","🎸"),d("musical_note","🎵"),d("tada","🎉"),d("confetti_ball","🎊"),d("balloon","🎈"),d("gift","🎁"),d("ticket","🎫"),d("circus_tent","🎪")],Bh=[d("watch","⌚"),d("iphone","📱"),d("computer","💻"),d("keyboard","⌨️"),d("desktop_computer","🖥️"),d("printer","🖨️"),d("camera","📷"),d("tv","📺"),d("radio","📻"),d("telephone_receiver","📞"),d("hourglass","⌛"),d("alarm_clock","⏰"),d("bulb","💡"),d("flashlight","🔦"),d("battery","🔋"),d("electric_plug","🔌"),d("moneybag","💰"),d("credit_card","💳"),d("gem","💎"),d("wrench","🔧"),d("hammer","🔨"),d("gear","⚙️"),d("lock","🔒"),d("unlock","🔓"),d("key","🔑"),d("link","🔗"),d("paperclip","📎"),d("scissors","✂️"),d("pushpin","📌"),d("memo","📝"),d("books","📚"),d("calendar","📅"),d("chart_with_upwards_trend","📈"),d("clipboard","📋"),d("file_folder","📁"),d("mag","🔍"),d("bell","🔔"),d("mailbox","📫"),d("package","📦"),d("shopping_trolley","🛒")],Hh=[d("heart","❤️"),d("orange_heart","🧡"),d("yellow_heart","💛"),d("green_heart","💚"),d("blue_heart","💙"),d("purple_heart","💜"),d("black_heart","🖤"),d("white_heart","🤍"),d("100","💯"),d("anger","💢"),d("boom","💥"),d("sparkles","✨"),d("question","❓"),d("exclamation","❗"),d("warning","⚠️"),d("no_entry","⛔"),d("x","❌"),d("o","⭕"),d("heavy_check_mark","✔️"),d("white_check_mark","✅"),d("ballot_box_with_check","☑️"),d("arrow_up","⬆️"),d("arrow_down","⬇️"),d("arrow_left","⬅️"),d("arrow_right","➡️"),d("arrows_counterclockwise","🔄"),d("hash","#️⃣"),d("zero","0️⃣"),d("one","1️⃣"),d("two","2️⃣"),d("three","3️⃣"),d("new","🆕"),d("ok","🆗"),d("sos","🆘"),d("cool","🆒"),d("free","🆓"),d("up","🆙"),d("speech_balloon","💬"),d("thought_balloon","💭"),d("recycle","♻️"),d("infinity","♾️"),d("peace_symbol","☮️")],Uh=[d("checkered_flag","🏁"),d("triangular_flag_on_post","🚩"),d("crossed_flags","🎌"),d("black_flag","🏴"),d("white_flag","🏳️"),d("rainbow-flag","🏳️‍🌈"),d("pirate_flag","🏴‍☠️"),d("flag-us","🇺🇸"),d("flag-gb","🇬🇧"),d("flag-ca","🇨🇦"),d("flag-de","🇩🇪"),d("flag-fr","🇫🇷"),d("flag-jp","🇯🇵"),d("flag-in","🇮🇳"),d("flag-br","🇧🇷"),d("flag-au","🇦🇺")],Vb=["raised_hands","white_check_mark","eyes","+1","tada"],Il=[{id:1,glyph:"✋",label:"No skin tone"},{id:2,glyph:"✋🏻",label:"Light skin tone"},{id:3,glyph:"✋🏼",label:"Medium-light skin tone"},{id:4,glyph:"✋🏽",label:"Medium skin tone"},{id:5,glyph:"✋🏾",label:"Medium-dark skin tone"},{id:6,glyph:"✋🏿",label:"Dark skin tone"}],Li=(()=>{const e=new Set,t=[];for(const n of[...Ph,...$h,...Fh,...Rh,...Ih,...Oh,...Bh,...Hh,...Uh])e.has(n.name)||(e.add(n.name),t.push(n));return t})(),Wb=new Map(Li.map(e=>[e.name,e])),n_=new Map;function Kn(e,t=22){const n=`${t}:${e}`;let s=n_.get(n);if(!s){const r=Math.round(t*.864*100)/100,i=wh(e,t)??`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t} ${t}"><text x="${t/2}" y="${t/2}" font-size="${r}" text-anchor="middle" dominant-baseline="central">${e}</text></svg>`;s=`data:image/svg+xml;utf8,${encodeURIComponent(i)}`,n_.set(n,s)}return s}function ys({qa:e,code:t}){return a.jsx("svg",{"data-qa":e,width:20,height:20,viewBox:"0 0 20 20","aria-hidden":"true",children:a.jsx("text",{className:"p-emoji_picker__glyph_icon",x:"0",y:"17",fill:"currentColor",children:t})})}function Ol({qa:e,d:t}){return a.jsx("svg",{"data-qa":e,width:20,height:20,viewBox:"0 0 20 20","aria-hidden":"true",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("path",{d:t})})}const Kb=[{id:"search",label:"Search",icon:a.jsx(aa,{"data-qa":"search",size:20})},{id:"smileys",label:"Smileys & People",icon:a.jsx(oh,{"data-qa":"emoji-filled",size:20})},{id:"nature",label:"Animals & Nature",icon:a.jsx(ys,{qa:"emoji-nature",code:""})},{id:"food",label:"Food & Drink",icon:a.jsx(ys,{qa:"emoji-food",code:""})},{id:"travel",label:"Travel & Places",icon:a.jsx(ys,{qa:"emoji-travel",code:""})},{id:"activities",label:"Activities",icon:a.jsx(ys,{qa:"emoji-activities",code:""})},{id:"objects",label:"Objects",icon:a.jsx(ys,{qa:"emoji-objects",code:""})},{id:"symbols",label:"Symbols",icon:a.jsx(Ol,{qa:"emoji-symbols",d:"M10 2.5a7.5 7.5 0 1 0 0 15 7.5 7.5 0 0 0 0-15zm0 0v15M10 10l-5.3 5.3M10 10l5.3 5.3"})},{id:"flags",label:"Flags",icon:a.jsx(Ol,{qa:"emoji-flag",d:"M4.5 17.5v-14m0 .5h10.5l-2.5 4 2.5 4H4.5"})},{id:"custom",label:"Custom",icon:a.jsx(Ol,{qa:"slack-logo",d:"M7.5 3.5v4.5m0 4v4.5M12.5 3.5v4.5m0 4v4.5M3.5 7.5h4.5m4 0h4.5M3.5 12.5h4.5m4 0h4.5"})}],Vh=9,Qb=250,Gb=28,s_=33,r_=1,i_=27,l_=10;function Wh(e,t){const n=[];for(let s=0;s<e.length;s+=t)n.push(e.slice(s,s+t));return n}function Yb(e){const t=[],n=new Map;let s=Gb;return e.forEach((r,i)=>{const l=Wh(r.entries,Vh),o=l.map((c,u)=>`group-${i}-row-${u}`);i>0?(t.push({kind:"separator",top:s,height:r_}),s+=r_,n.set(r.id,s),t.push({kind:"header",top:s,height:i_,section:r,sectionIndex:i,rowIds:o}),s+=i_):n.set(r.id,0),l.forEach((c,u)=>{t.push({kind:"row",top:s,height:s_,section:r,sectionIndex:i,rowIndex:u,entries:c}),s+=s_})}),{items:t,height:s,sectionTop:n}}function Kh({onPick:e,onClose:t,anchor:n="up"}){var B;const{emoji:s}=me(),[r,i]=_.useState(""),[l,o]=_.useState("search"),[c,u]=_.useState(null),[m,h]=_.useState(1),[p,g]=_.useState(!1),[y,k]=_.useState(!0),[C,f]=_.useState(0),[v,b]=_.useState("down"),x=_.useRef(null),w=_.useRef(null),S=_.useMemo(()=>Object.entries(s.custom).map(([j,F])=>({name:j,glyph:"",url:nt(F)})),[s.custom]),A=_.useMemo(()=>[{id:"frequent",title:"Frequently Used",qa:"Frequently_Used_header",entries:Vb.map(F=>Wb.get(F)).filter(F=>!!F)},{id:"productivity",title:"Getting Work Done",qa:"Getting_Work_Done_header",entries:Ph,productivity:!0},{id:"smileys",title:"Smileys & People",qa:"Smileys_&_People_header",entries:$h},{id:"nature",title:"Animals & Nature",qa:"Animals_&_Nature_header",entries:Fh},{id:"food",title:"Food & Drink",qa:"Food_&_Drink_header",entries:Rh},{id:"travel",title:"Travel & Places",qa:"Travel_&_Places_header",entries:Ih},{id:"activities",title:"Activities",qa:"Activities_header",entries:Oh},{id:"objects",title:"Objects",qa:"Objects_header",entries:Bh},{id:"symbols",title:"Symbols",qa:"Symbols_header",entries:Hh},{id:"flags",title:"Flags",qa:"Flags_header",entries:Uh},{id:"custom",title:"Custom",qa:"Custom_header",entries:S}],[S]),I=_.useMemo(()=>{const j=r.trim().toLowerCase().replace(/^:|:$/g,"");return j?[{id:"results",title:"Search Results",qa:"Search_Results_header",entries:[...Li,...S].filter(M=>M.name.includes(j))}]:A},[r,A,S]),Q=_.useMemo(()=>Yb(I),[I]),z=_.useMemo(()=>{const{items:j}=Q;let F=j.findIndex(E=>E.top+E.height>C);F<0&&(F=j.length);let M=F;for(;M+1<j.length&&j[M+1].top<C+Qb;)M+=1;const X=v==="up"?Math.max(0,F-l_):F,oe=v==="down"?Math.min(j.length-1,M+l_):M;return j.slice(X,oe+1)},[Q,C,v]),ae=_.useMemo(()=>{var F;let j=((F=I[0])==null?void 0:F.title)??"";for(const M of I)(Q.sectionTop.get(M.id)??0)<=C+1&&(j=M.title);return j},[I,Q,C]),ce=Math.max(0,I.findIndex(j=>j.title===ae)),ie=Wh(((B=I[ce])==null?void 0:B.entries)??[],Vh).map((j,F)=>`group-${ce}-row-${F}`);_.useEffect(()=>{const j=F=>{F.key==="Escape"&&(F.stopPropagation(),t())};return document.addEventListener("keydown",j,!0),()=>document.removeEventListener("keydown",j,!0)},[t]);const P=j=>{const F=j.currentTarget.scrollTop;if(b(F>=C?"down":"up"),f(F),r)return;let M;for(const oe of A)(Q.sectionTop.get(oe.id)??0)<=F+1&&(M=oe);if(!M)return;const X={smileys:"smileys",nature:"nature",food:"food",travel:"travel",activities:"activities",objects:"objects",symbols:"symbols",flags:"flags",custom:"custom"};o(F<8?"search":X[M.id]??l)},K=j=>{var X,oe;o(j),i("");const F=w.current;if(!F)return;if(j==="search"){F.scrollTop=0,(oe=(X=x.current)==null?void 0:X.querySelector("input"))==null||oe.focus();return}const M=Q.sectionTop.get(j);M!==void 0&&(F.scrollTop=M)},L=Il.find(j=>j.id===m)??Il[0];return a.jsxs(a.Fragment,{children:[$t.createPortal(a.jsx("div",{className:"p-emoji_picker__backdrop",onMouseDown:t}),document.body),a.jsxs("div",{ref:x,className:`p-emoji_picker p-emoji_picker--${n}`,"data-qa":"emoji-picker",role:"dialog","aria-label":"Emoji picker",children:[a.jsxs("div",{children:[a.jsx("div",{className:"p-emoji_picker__header",role:"presentation",children:a.jsx("div",{className:"p-emoji_picker__tabs_height","data-qa":"tabs_full_height_class",role:"none",children:a.jsx("div",{className:"p-emoji_picker__tabs","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal","aria-label":"Category",children:Kb.map(j=>a.jsx("button",{type:"button",role:"tab",id:j.id==="search"?"frequently-used-emoji-tab":`emoji-tab-${j.id}`,className:"p-emoji_picker__tab","data-qa":`emoji_group_tab_${j.id==="search"?"search":j.id==="smileys"?"emoji-filled":j.id==="custom"?"slack-logo":`emoji-${j.id==="flags"?"flag":j.id}`}`,"aria-label":j.label,"aria-haspopup":"false","aria-selected":l===j.id,onClick:()=>K(j.id),children:a.jsx("span",{className:"p-emoji_picker__tab_icon",children:j.icon})},j.id))})})}),a.jsx("div",{className:"p-emoji_picker__search",children:a.jsx("input",{autoFocus:!0,className:"p-emoji_picker__input","data-qa":"emoji_picker_input",type:"text",placeholder:"Search all emoji","aria-label":"Emoji name",value:r,onChange:j=>i(j.target.value)})}),y&&!r&&a.jsx("div",{className:"p-emoji_picker__pack_cta","data-qa":"emoji_picker__pack_cta",children:a.jsxs("div",{className:"p-emoji_picker__pack_card",children:[a.jsxs("button",{type:"button",className:"p-emoji_picker__pack_body","data-qa":"unstyled-button",onClick:()=>K("custom"),children:[a.jsx("img",{className:"p-emoji_picker__pack_art",src:Kn("🏖️",40),alt:""}),a.jsxs("span",{className:"p-emoji_picker__pack_text",children:[a.jsx("b",{children:"Go full vacation mode"})," with new custom emoji. ",a.jsx("span",{className:"p-emoji_picker__pack_link",children:"Download now"})]})]}),a.jsx("button",{type:"button",className:"p-emoji_picker__pack_close","data-qa":"unstyled-button","aria-label":"Dismiss vacation emoji pack",onClick:()=>k(!1),children:a.jsx(ja,{"data-qa":"close",size:18})})]})}),a.jsxs("div",{className:"p-emoji_picker__panel",role:"tabpanel","aria-labelledby":"frequently-used-emoji-tab",children:[a.jsx("div",{children:a.jsx("div",{className:"p-emoji_picker__sticky",role:"grid","aria-readonly":"true","aria-owns":ie.join(" "),"aria-label":ae,children:a.jsx("span",{"aria-hidden":"true",children:ae})})}),a.jsx("div",{className:"p-emoji_picker__scroll_outer",children:a.jsx("div",{children:a.jsx("div",{ref:w,className:"p-emoji_picker__scroll",role:"presentation","aria-label":"","aria-readonly":"false",onScroll:P,children:a.jsxs("div",{className:"p-emoji_picker__list",role:"presentation",style:{height:Q.height},children:[Q.items.length===0&&a.jsx("div",{className:"p-emoji_picker__empty",children:"No emoji found"}),z.map(j=>j.kind==="separator"?a.jsx("div",{className:"p-emoji_picker__separator",style:{top:j.top},"aria-hidden":"true",children:a.jsx("div",{})},`sep-${j.top}`):j.kind==="header"?a.jsx("div",{className:"p-emoji_picker__section_header",style:{top:j.top},role:"grid","aria-readonly":"true","aria-owns":j.rowIds.join(" "),"aria-label":j.section.title,children:a.jsx("span",{"data-qa":j.section.qa,role:"columnheader",children:j.section.title})},`hdr-${j.section.id}`):a.jsx("div",{id:`group-${j.sectionIndex}-row-${j.rowIndex}`,className:"p-emoji_picker__row",style:{top:j.top},role:"row","aria-rowindex":j.rowIndex+1,children:j.entries.map((F,M)=>a.jsx("button",{type:"button",role:"gridcell",className:"p-emoji_picker__cell","data-qa":j.section.productivity?"emoji_list_productivity_item":"emoji_list_item","data-name":F.name,"aria-colindex":M+1,onMouseEnter:()=>u(F),onMouseLeave:()=>u(X=>X===F?null:X),onClick:()=>e(F.name),children:a.jsx(Zb,{entry:F})},`${j.section.id}-${F.name}`))},`${j.section.id}-${j.rowIndex}`))]})})})})]})]}),a.jsx("div",{className:"p-emoji_picker__footer","data-qa":"emoji_picker__footer",children:a.jsx("div",{className:"p-emoji_picker__footer_row",children:c?a.jsxs("div",{className:"p-emoji_picker__preview",children:[a.jsx("span",{className:"p-emoji_picker__preview_glyph",children:c.url?a.jsx("img",{src:c.url,alt:""}):c.glyph}),a.jsxs("span",{className:"p-emoji_picker__preview_name",children:[":",c.name,":"]})]}):a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:"p-emoji_picker__add_button","data-qa":"customize_emoji_add_button",onClick:()=>K("custom"),children:"Add Emoji"}),a.jsxs("div",{className:"p-emoji_picker__skintone_wrap",role:"presentation",children:[p&&a.jsx("div",{className:"p-emoji_picker__skintone_menu",role:"menu",children:Il.map(j=>a.jsx("button",{type:"button",role:"menuitem",className:"p-emoji_picker__cell","aria-label":j.label,onClick:()=>{h(j.id),g(!1)},children:a.jsx("img",{className:"p-emoji_picker__emoji","data-qa":"emoji",src:Kn(j.glyph),alt:"","aria-label":"hand emoji"})},j.id))}),a.jsxs("button",{type:"button",className:"p-emoji_picker__skintone","data-qa":"emoji_selected_skintone","aria-label":`Choose your default skin tone, currently selected: ${L.label}.`,onClick:()=>g(j=>!j),children:[a.jsx("div",{children:a.jsx("img",{className:"p-emoji_picker__emoji","data-qa":"emoji",src:Kn(L.glyph),alt:"","aria-label":"hand emoji"})}),a.jsx("span",{className:"p-emoji_picker__skintone_label","data-qa":"emoji_skintone_label",children:"Skin Tone"})]})]})]})})})]})]})}function Zb({entry:e}){return e.url?a.jsx("img",{className:"p-emoji_picker__emoji p-emoji_picker__emoji--custom","data-qa":"emoji",src:e.url,alt:"","aria-label":""}):a.jsx("img",{className:"p-emoji_picker__emoji","data-qa":"emoji",src:Kn(e.glyph),alt:"","aria-label":""})}function ba({glyph:e,label:t,size:n=22,className:s}){return a.jsx("img",{className:s,src:Kn(e,n),alt:"","aria-label":t,"data-qa":"emoji",draggable:!1})}const Jb=/(```[\s\S]*?```)|(`[^`\n]+`)|(<@[A-Z0-9]+(?:\|[^>]*)?>)|(<#[A-Z0-9]+(?:\|[^>]*)?>)|(<(?:https?:\/\/|mailto:)[^>|]+(?:\|[^>]*)?>)|(https?:\/\/[^\s<>]+)|(:[a-z0-9_+\-]+(?:::skin-tone-\d)?:)|(\*[^*\n]+\*)|(_[^_\n]+_)|(~[^~\n]+~)/g;let Xb=0;const lt=()=>`m${Xb+=1}`;function ln(e,t){const n=[];let s=0;for(const r of e.matchAll(Jb)){const i=r.index??0;i>s&&n.push(e.slice(s,i));const[l,o,c,u,m,h,p,g,y,k,C]=r;if(o)n.push(a.jsx("pre",{className:"c-mrkdwn__pre","data-stringify-type":"pre",children:o.slice(3,-3).replace(/^\n/,"")},lt()));else if(c)n.push(a.jsx("code",{className:"c-mrkdwn__code","data-stringify-type":"code",children:c.slice(1,-1)},lt()));else if(u){const f=u.slice(2,-1).split("|")[0],v=f===t.selfId;n.push(a.jsxs("a",{className:`c-link c-member_slug c-member_slug--light c-member_slug--link${v?" c-member_slug--mention":""}`,"data-stringify-type":"mention","data-member-id":f,href:`/team/${f}`,onClick:b=>b.preventDefault(),children:["@",t.userName(f)]},lt()))}else if(m){const[f,v]=m.slice(2,-1).split("|"),b=v||t.channelName(f)||f;n.push(a.jsxs("a",{className:"c-link c-channel_slug","data-stringify-type":"channel","data-channel-id":f,href:`/archives/${f}`,onClick:x=>{var w;x.preventDefault(),(w=t.onOpenChannel)==null||w.call(t,f)},children:["#",b]},lt()))}else if(h){const[f,v]=h.slice(1,-1).split("|");n.push(a.jsx("span",{className:"c-mrkdwn__draggable-link",children:a.jsx("a",{className:"c-link","data-stringify-type":"link",href:f,target:"_blank",rel:"noopener noreferrer",children:v||f})},lt()))}else if(p)n.push(a.jsx("span",{className:"c-mrkdwn__draggable-link",children:a.jsx("a",{className:"c-link","data-stringify-type":"link",href:p,target:"_blank",rel:"noopener noreferrer",children:p})},lt()));else if(g){const f=g.slice(1,-1).split("::")[0],v=t.emoji(f);n.push(v?a.jsx("span",{className:"c-emoji","data-stringify-type":"emoji","data-stringify-emoji":f,role:"img","aria-label":f,children:a.jsx(ba,{glyph:v,label:`${f} emoji`})},lt()):l)}else y?n.push(a.jsx("b",{"data-stringify-type":"bold",children:ln(y.slice(1,-1),t)},lt())):k?n.push(a.jsx("i",{"data-stringify-type":"italic",children:ln(k.slice(1,-1),t)},lt())):C&&n.push(a.jsx("s",{"data-stringify-type":"strike",children:ln(C.slice(1,-1),t)},lt()));s=i+l.length}return s<e.length&&n.push(e.slice(s)),n}function ex(e,t){const n=[],s=e.split(/(```[\s\S]*?```)/g);for(const r of s){if(!r)continue;if(r.startsWith("```")){n.push(...ln(r,t));continue}const i=r.split(`
68
+ `);let l=[],o=[],c=[];const u=()=>{c.length&&(n.push(a.jsx("div",{className:"p-rich_text_section",children:c},lt())),c=[])},m=()=>{l.length&&(u(),n.push(a.jsx("blockquote",{className:"c-mrkdwn__quote","data-stringify-type":"quote",children:ln(l.join(`
69
+ `),t)},lt())),l=[]),o.length&&(u(),n.push(a.jsx("ul",{className:"c-mrkdwn__ul","data-stringify-type":"unordered-list",children:o.map(h=>a.jsx("li",{children:ln(h,t)},lt()))},lt())),o=[])};i.forEach((h,p)=>{if(h.startsWith("&gt;")||h.startsWith(">")){o.length&&m(),l.push(h.replace(/^(&gt;|>)\s?/,""));return}if(/^[•\-*]\s+/.test(h)){l.length&&m(),o.push(h.replace(/^[•\-*]\s+/,""));return}m(),c.push(...ln(h,t)),p<i.length-1&&c.push(a.jsx("br",{},lt()))}),m(),u()}return a.jsx(a.Fragment,{children:n})}function tx(e,t){return e.replace(/```/g,"").replace(/<@([A-Z0-9]+)(?:\|[^>]*)?>/g,(n,s)=>"@"+t.userName(s)).replace(/<#([A-Z0-9]+)\|([^>]*)>/g,"#$2").replace(/<#([A-Z0-9]+)>/g,(n,s)=>"#"+(t.channelName(s)??s)).replace(/<([^>|]+)\|([^>]*)>/g,"$2").replace(/<([^>]+)>/g,"$1").replace(/:([a-z0-9_+\-]+):/g,(n,s)=>t.emoji(s)??n).replace(/[*_~`]/g,"")}const ax=["white_check_mark","eyes","raised_hands"];function nx(e){return e.length<=2?e.join(" and "):e.length===3?`${e[0]}, ${e[1]} and ${e[2]}`:`${e[0]}, ${e[1]} and ${e.length-2} others`}function sx({userId:e,anchor:t,visible:n}){var u;const{users:s}=me(),r=Be(),i=s[e],l=r.realName(e),o=(i==null?void 0:i.presence)==="active",c={left:t.left,bottom:Math.max(8,window.innerHeight-t.top+12)};return $t.createPortal(a.jsx("div",{className:"c-member_profile_card__layer",children:a.jsxs("div",{className:`c-member_profile_card${n?" c-member_profile_card--visible":""}`,style:c,role:"presentation","data-twin-unverified":"true",children:[a.jsxs("div",{className:"c-member_profile_card__header",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-member_profile_card__avatar_button","data-qa":"unstyled-button","aria-label":`View ${l}'s profile`,children:a.jsx("span",{className:"c-member_profile_card__avatar","data-qa":"member-entity__avatar",children:a.jsx(Oe,{userId:e,size:72})})}),a.jsxs("div",{className:"c-member_profile_card__identity",children:[a.jsx("div",{className:"c-member_profile_card__name_row",children:a.jsxs("button",{type:"button",className:"c-button-unstyled c-member_profile_card__name_button","data-qa":"unstyled-button",children:[a.jsx("span",{children:a.jsx("span",{className:"c-member_profile_card__name",children:a.jsx("strong",{"data-qa":"member_name",children:l})})}),a.jsx("span",{className:"c-member_profile_card__presence",children:a.jsx(xr,{size:20,"data-qa":"presence_indicator",role:"img","aria-label":o?"Active":"Away"})})]})}),a.jsx("span",{className:"c-member_profile_card__title","data-qa":"member_title",children:((u=i==null?void 0:i.profile)==null?void 0:u.title)??""})]})]}),a.jsxs("div",{className:"c-member_profile_card__body",children:[a.jsx("div",{className:"c-member_profile_card__status"}),a.jsxs("span",{className:"c-member_profile_card__local_time","data-qa":"member_profile_field__local_time",children:[a.jsx("span",{className:"c-member_profile_card__local_time_icon",children:a.jsx(vr,{size:20,"data-qa":"clock"})}),a.jsx("span",{children:Hb()})]}),a.jsxs("div",{className:"c-member_profile_card__actions",children:[a.jsxs("button",{type:"button",className:"c-member_profile_card__button","data-qa":"member_profile_message_btn","aria-label":`Message ${l}`,children:[a.jsx("span",{className:"c-member_profile_card__button_icon",children:a.jsx(Lt,{name:"dms",size:16,"data-qa":"comment"})}),a.jsx("span",{className:"c-member_profile_card__button_label",children:"Message"})]}),a.jsxs("button",{type:"button",className:"c-member_profile_card__button","data-qa":"member_profile_huddle_btn","aria-haspopup":"menu","aria-label":"Huddle",children:[a.jsx("span",{className:"c-member_profile_card__button_icon",children:a.jsx(br,{size:16,"data-qa":"headphones"})}),a.jsx("span",{className:"c-member_profile_card__button_label",children:"Huddle"}),a.jsx("span",{className:"c-member_profile_card__button_caret",children:a.jsx(Ie,{size:13,"data-qa":"call_icon_chevron_down"})})]}),a.jsxs("button",{type:"button",className:"c-member_profile_card__button","data-qa":"member_profile_vip_btn","aria-label":"Add to VIP",children:[a.jsx("span",{className:"c-member_profile_card__button_icon",children:a.jsx(Lt,{name:"workspace-add",size:16,"data-qa":"user-add"})}),a.jsx("span",{className:"c-member_profile_card__button_label",children:"VIP"})]})]})]})]})}),document.body)}function rx(e,t){const n=t.is_channel||t.is_group?`#${t.name}`:"the conversation";return e.subtype==="channel_join"?`joined ${n}.`:e.subtype==="channel_leave"?`left ${n}.`:null}function dn({channel:e,message:t,compact:n,inThread:s=!1,editing:r,onEdit:i,onOpenThread:l,onOpenChannel:o}){var It,ka;const c=Be(),{me:u,toggleReaction:m,togglePin:h,toggleSaved:p,saved:g,edit:y,remove:k,retry:C,users:f}=me(),[v,b]=_.useState(!1),[x,w]=_.useState(!1),[S,A]=_.useState(null),I=_.useRef(null),[Q,z]=_.useState(!1),[ae,ce]=_.useState(!1),[ie,P]=_.useState(null),K=_.useRef(null),[L,B]=_.useState(null),j=_.useRef(null),[F,M]=_.useState(t.text),X=_.useRef(null),oe=V=>{K.current!==null&&window.clearTimeout(K.current),P({anchor:V.getBoundingClientRect(),visible:!1}),K.current=window.setTimeout(()=>P(Se=>Se&&{...Se,visible:!0}),nv)},E=()=>{K.current!==null&&window.clearTimeout(K.current),K.current=null,P(null)};_.useEffect(()=>()=>{K.current!==null&&window.clearTimeout(K.current),j.current!==null&&window.clearTimeout(j.current),I.current!==null&&window.clearTimeout(I.current)},[]);const O=V=>Se=>{const Ot=Se.currentTarget,Et=Ot.closest(".c-message_actions__group"),it=Et?Ot.offsetLeft-Et.offsetLeft+Ot.offsetWidth/2:0;j.current!==null&&window.clearTimeout(j.current),j.current=window.setTimeout(()=>B({label:V,x:it}),ir)},D=()=>{j.current!==null&&window.clearTimeout(j.current),j.current=null,B(null)},W=V=>{I.current!==null&&window.clearTimeout(I.current),I.current=window.setTimeout(()=>A(V),ir)},Y=()=>{I.current!==null&&window.clearTimeout(I.current),I.current=null,A(null)};_.useEffect(()=>{if(!x&&!Q)return;const V=Se=>{Se.key==="Escape"&&(Se.preventDefault(),Se.stopPropagation(),Q?z(!1):w(!1))};return window.addEventListener("keydown",V,!0),()=>window.removeEventListener("keydown",V,!0)},[x,Q]),_.useEffect(()=>{var V;r&&(M(t.text),(V=X.current)==null||V.focus())},[r,t.text]);const T=t.user===u,q=t.user??"",U=t.username&&t.bot_id?t.username:c.realName(q),$=rx(t,e),Z=!!((It=t.pinned_to)!=null&&It.length),N=!!g[`${e.id}:${t.ts}`],H=t._status==="failed",J=t._status==="pending",re=t.reply_count??0,he=()=>{const V=F.trim();V&&V!==t.text&&y(e.id,t.ts,V),i(null)},be=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),he()),V.key==="Escape"&&i(null)},Xe=["c-message_kit__background","p-message_pane_message__message","c-message_kit__message",Z?"c-message_kit__background--highlighted":"",J?"c-message_kit__background--pending":"",H?"c-message_kit__background--failed":"",x?"c-message_kit__background--hovered":""].filter(Boolean).join(" ");let rt;return r?rt=a.jsxs("div",{className:"c-message__edit","data-qa":"message_edit_container",children:[a.jsx("textarea",{ref:X,autoFocus:!0,className:"c-message__edit_input","data-qa":"message_edit_input",value:F,onChange:V=>M(V.target.value),onKeyDown:be,rows:Math.min(8,F.split(`
70
+ `).length+1)}),a.jsxs("div",{className:"c-message__edit_actions",children:[a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--small","data-qa":"message_edit_cancel",onClick:()=>i(null),children:"Cancel"}),a.jsx("button",{type:"button",className:"c-button c-button--primary c-button--small","data-qa":"message_edit_save",onClick:he,children:"Save Changes"})]})]}):$?rt=a.jsx("div",{className:"c-message_kit__blocks c-message_kit__blocks--rich_text",children:a.jsx("span",{className:"c-message__body c-message__body--automated","data-qa":"message-text",children:$})}):rt=a.jsx("div",{className:"c-message_kit__blocks c-message_kit__blocks--rich_text",children:a.jsx("div",{className:"c-message__message_blocks c-message__message_blocks--rich_text","data-qa":"message-text",dir:"auto",children:a.jsx("div",{className:"p-block_kit_renderer","data-qa":"block-kit-renderer",children:a.jsx("div",{className:"p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first",children:a.jsxs("div",{className:"p-rich_text_block",children:[ex(t.text,{...c,selfId:u,onOpenChannel:o}),t.edited&&" ",t.edited&&a.jsx("span",{className:"c-message__edited_label c-message__edited_label--inline","data-qa":"message_edited_label",children:"(edited)"})]})})})})}),a.jsxs("div",{className:Xe,"data-qa":"message_container","data-qa-message-ts":t.ts,"data-ts":t.ts,"data-user-id":q,"data-qa-subtype":t.subtype,role:"presentation",onMouseEnter:()=>ce(!0),onMouseLeave:()=>{ce(!1),w(!1),E(),D(),Y()},children:[a.jsx("div",{className:"c-message_kit__hover",children:a.jsxs("div",{className:`c-message_kit__actions ${n?"c-message_kit__actions--above":"c-message_kit__actions--default"}`,children:[a.jsxs("div",{className:"c-message_kit__gutter",children:[a.jsx("div",{className:"c-message_kit__gutter__left",children:n?a.jsx("div",{className:"p-message_pane_message__compact_timestamp p-message_pane_message__compact_timestamp--light","data-qa":"message_time_compact",children:a.jsx("a",{className:"c-link c-timestamp",href:`?message_ts=${t.ts}`,onClick:V=>V.preventDefault(),title:a_(t.ts),children:a.jsx("span",{className:"c-timestamp__label","data-qa":"timestamp_label",children:Bb(t.ts)})})}):a.jsx("button",{type:"button",className:"c-button-unstyled c-message_kit__avatar c-avatar c-avatar--interactive","data-qa":"message_avatar","aria-label":U,children:a.jsx(Oe,{userId:q,size:36})})}),a.jsxs("div",{className:"c-message_kit__gutter__right","data-qa":"message_content",children:[Z&&!n&&a.jsxs("div",{className:"c-message_kit__label c-message_kit__label--pinned","data-qa":"message_pinned_label",children:[a.jsx(Lt,{name:"pin",size:12})," Pinned by ",c.realName(u)]}),!n&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"c-message__sender c-message_kit__sender","data-qa":"message_sender",children:a.jsx("span",{children:a.jsx("button",{type:"button",className:"c-link--button c-message__sender_button","data-qa":"message_sender_name","data-qa-user-id":q,onMouseEnter:V=>oe(V.currentTarget),onMouseLeave:E,children:U})})}),t.bot_id&&a.jsx("span",{className:"c-app_badge","data-qa":"app_badge",children:"APP"}),"  ",a.jsx("a",{className:"c-link c-timestamp","data-qa":"message_time",href:`?message_ts=${t.ts}`,onClick:V=>V.preventDefault(),title:a_(t.ts),children:a.jsx("span",{className:"c-timestamp__label","data-qa":"timestamp_label",children:pa(t.ts)})}),a.jsx("br",{})]}),rt,(ka=t.files)==null?void 0:ka.map(V=>{var Se;return a.jsx("div",{className:"c-message__file p-file_image_thumbnail","data-qa":"message_file","data-file-id":V.id,children:(Se=V.mimetype)!=null&&Se.startsWith("image/")&&V.mode!=="tombstone"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"c-message__file_name",children:[V.title??V.name," ",a.jsx("span",{className:"c-message__file_expand",children:"▾"})]}),a.jsx("img",{className:"p-file_image_thumbnail__image",src:nt(V.thumb_360??V.url_private),alt:V.title??V.name,width:Math.min(360,V.original_w??360),loading:"lazy"})]}):a.jsxs("div",{className:"c-message__file_generic",children:[a.jsx(Lt,{name:"files",size:18})," ",V.name??V.id]})},V.id)}),t.attachments&&t.attachments.length>0&&a.jsx("div",{className:"c-message_kit__attachments",children:a.jsxs("span",{className:"c-message_attachment_v3--hover_wrapper",children:[a.jsx("span",{className:"c-message_attachment_v3--list",children:t.attachments.map((V,Se)=>a.jsx(ix,{attachment:V},Se))}),a.jsx("div",{className:"c-message_attachment__delete_container--overlay","data-qa":"message_attachment_v3_delete",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-message_attachment__delete--overlay","data-qa":"message_attachment_v3_delete_button","aria-label":"Remove preview",children:a.jsx(ja,{size:12})})})]})}),t.reactions&&t.reactions.length>0&&a.jsxs("div",{className:"c-message_kit__reaction_bar c-reaction_bar c-reaction_bar--collapsed","data-qa":"reaction_bar",role:"group","aria-label":"Reactions",children:[t.reactions.map(V=>{const Se=V.users.includes(u),Ot=c.emoji(V.name),Et=c.customEmojiUrl(V.name),it=nx(V.users.map(pt=>pt===u?"You":c.realName(pt))),Mt=V.name.replace(/_/g," "),xn=Et?a.jsx("img",{src:nt(Et),alt:V.name,"data-qa":"emoji","aria-label":`${Mt} emoji`}):Ot?a.jsx(ba,{glyph:Ot,label:`${Mt} emoji`,size:16}):a.jsx("span",{"data-qa":"emoji","aria-label":`${Mt} emoji`,children:`:${V.name}:`});return a.jsxs("span",{className:"c-reaction--tooltip_anchor",children:[a.jsxs("button",{type:"button",className:`c-button-unstyled c-reaction c-reaction--light${Se?" c-reaction--reacted":""}`,"data-qa":"reactji","data-qa-reaction-name":V.name,"aria-pressed":Se,"aria-label":`${V.count} reaction${V.count===1?"":"s"}, react with ${Mt} emoji`,onMouseEnter:()=>W(V.name),onMouseLeave:Y,onClick:()=>void m(e.id,t.ts,V.name),children:[a.jsx("span",{className:"c-reaction__emoji",children:xn}),a.jsx("span",{className:"c-reaction__count",children:V.count})]}),S===V.name&&a.jsx("div",{className:"c-tooltip__popover","data-qa":"tooltip-popover",role:"tooltip",children:a.jsxs("div",{className:"c-tooltip__tip","data-qa":"tooltip-tip",children:[a.jsx("div",{className:"c-tooltip__tip_emoji",children:Et?a.jsx("img",{className:"c-tooltip__tip_emoji_glyph",src:nt(Et),alt:V.name,"data-qa":"emoji","aria-label":`${Mt} emoji`}):a.jsx("span",{className:"c-tooltip__tip_emoji_glyph","data-qa":"emoji","aria-label":`${Mt} emoji`,children:a.jsx("span",{className:"c-tooltip__tip_emoji_char",children:Ot})})}),a.jsxs("div",{className:"c-tooltip__tip_text",children:[it," ",a.jsxs("span",{className:"c-tooltip__tip_suffix",children:["reacted with :",V.name,":"]})]}),a.jsx("div",{className:"c-tooltip__tip_arrow","data-qa":"tooltip-tip-arrow"})]})})]},V.name)}),a.jsx("button",{type:"button",className:"c-button-unstyled c-reaction_add","data-qa":"add_reaction_button","aria-label":"Add reaction…",onClick:()=>b(!0),children:a.jsx(Xo,{size:18})})]}),!s&&re>0&&a.jsxs("div",{className:"c-message__reply_bar c-message_kit__thread_replies","data-qa":"reply_bar","data-qa-reply-count":re,role:"button",tabIndex:0,onClick:()=>l==null?void 0:l(t.ts),onKeyDown:V=>V.key==="Enter"&&(l==null?void 0:l(t.ts)),children:[(t.reply_users??[]).slice(0,3).map(V=>a.jsx(Oe,{userId:V,size:24,className:"c-message__reply_bar_avatar"},V)),a.jsxs("button",{type:"button",className:"c-link--button c-link--underline-inherit c-message__reply_count","data-qa":"reply_bar_count","data-qa-reply-count":re,tabIndex:-1,children:[re," ",re===1?"reply":"replies"]}),a.jsxs("div",{className:"c-message__reply_bar_description",children:[t.latest_reply&&a.jsx("span",{className:"c-message__reply_bar_last_reply","data-qa":"reply_bar_last_reply",children:Dh(t.latest_reply,re)}),a.jsx("span",{className:"c-message__reply_bar_view_thread","data-qa":"reply_bar_view_thread",children:"View thread"})]}),a.jsx("div",{className:"c-message__reply_bar_arrow",children:a.jsx(ud,{size:18,"data-qa":"caret-right"})})]}),H&&a.jsxs("div",{className:"c-message__failed","data-qa":"message_failed",role:"alert",children:["Message not sent",t._error?` (${t._error})`:"","."," ",a.jsx("button",{type:"button",className:"c-link","data-qa":"message_retry",onClick:()=>void C(e.id,t.client_msg_id??""),children:"Retry"})]})]})]}),(ae||x)&&!r&&!J&&!H&&a.jsxs("div",{className:`c-message_actions__container${x?" c-message_actions__container--open":""}`,role:"group",children:[a.jsxs("div",{className:"c-message_actions__group","data-qa":"message-actions",role:"group","aria-label":"Message actions",children:[a.jsx("div",{className:"c-message_actions__quick_reactions",children:ax.map(V=>a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button c-message_actions__button--quick_reaction","data-qa":V,"aria-pressed":(t.reactions??[]).some(Se=>Se.name===V&&Se.users.includes(u)),"aria-label":`React with ${V}`,onMouseEnter:O(`:${V}:`),onMouseLeave:D,onClick:()=>void m(e.id,t.ts,V),children:a.jsx("span",{className:"c-message_actions__emoji","aria-label":`${V.replace(/_/g," ")} emoji`,children:c.emoji(V)&&a.jsx(ba,{glyph:c.emoji(V)??"",label:`${V.replace(/_/g," ")} emoji`,size:16})})},V))}),a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsxs("div",{className:"c-message_actions__vacation_dot_wrapper","data-qa":"vacation-emoji-pack-dot-wrapper",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button","data-qa":"add_reaction","aria-keyshortcuts":"r","aria-label":"Add reaction…",onMouseEnter:O("Add reaction…"),onMouseLeave:D,onClick:()=>b(!0),children:a.jsx(Xo,{size:18,"data-qa":"add-reaction"})}),a.jsx("div",{className:"c-message_actions__new_dot","aria-hidden":"true"})]})}),!s&&a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button","data-qa":"start_thread","aria-keyshortcuts":"t","aria-label":"Reply in thread",onMouseEnter:O("Reply in thread"),onMouseLeave:D,onClick:()=>l==null?void 0:l(t.thread_ts??t.ts),children:a.jsx(hd,{size:18,"data-qa":"threads"})})}),a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button","data-qa":"share_message","aria-keyshortcuts":"s","aria-label":"Forward message…",onMouseEnter:O("Forward message…"),onMouseLeave:D,children:a.jsx(Lt,{name:"forward",size:18,"data-qa":"share-message"})})}),a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsx("button",{type:"button",className:`c-button-unstyled c-message_actions__button${N?" c-message_actions__button--active":""}`,"data-qa":"later","aria-pressed":N,"aria-keyshortcuts":"a","aria-label":N?"Remove from Later":"Save for later",onMouseEnter:O(N?"Remove from Later":"Save for later"),onMouseLeave:D,onClick:()=>p(e.id,t.ts),children:a.jsx(Lt,{name:"bookmark",size:18,"data-qa":"bookmark"})})}),a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button","data-qa":"send_to_slackbot","aria-haspopup":"menu","aria-label":"Ask Slackbot",onMouseEnter:O("Ask Slackbot"),onMouseLeave:D,children:a.jsx(Lt,{name:"slackbot",size:16})})}),a.jsx("div",{className:"c-message_actions__button_wrapper",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-message_actions__button","data-qa":"more_message_actions","aria-haspopup":"menu","aria-label":"More actions","aria-expanded":x,onMouseEnter:O("More actions"),onMouseLeave:D,onClick:()=>w(V=>!V),children:a.jsx(al,{size:18,"data-qa":"ellipsis-vertical-filled"})})}),L&&a.jsx("div",{className:"c-tooltip__popover c-message_actions__tooltip","data-qa":"tooltip-popover",role:"tooltip",style:{left:L.x},"data-twin-unverified":"true",children:a.jsxs("div",{className:"c-tooltip__tip","data-qa":"tooltip-tip",children:[L.label,a.jsx("div",{className:"c-tooltip__tip_arrow","data-qa":"tooltip-tip-arrow"})]})})]}),x&&a.jsxs("div",{className:"c-menu c-message_actions__menu","data-qa":"message_actions_menu",role:"menu",children:[a.jsx("button",{type:"button",role:"menuitem",className:"c-menu__item","data-qa":"copy_link",onClick:()=>{var V,Se;(Se=navigator.clipboard)==null||Se.writeText(`${location.origin}/client/${((V=f[u])==null?void 0:V.team_id)??""}/${e.id}?message_ts=${t.ts}`),w(!1)},children:"Copy link"}),a.jsx("button",{type:"button",role:"menuitem",className:"c-menu__item","data-qa":Z?"unpin_message":"pin_message",onClick:()=>{h(e.id,t.ts),w(!1)},children:Z?"Unpin from channel":"Pin to channel"}),T&&a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",role:"menuitem",className:"c-menu__item","data-qa":"edit_message",onClick:()=>{w(!1),i(t.ts)},children:"Edit message"}),a.jsx("button",{type:"button",role:"menuitem",className:"c-menu__item c-menu__item--danger","data-qa":"delete_message",onClick:()=>{w(!1),z(!0)},children:"Delete message..."})]})]})]})]})}),Q&&$t.createPortal(a.jsx("div",{className:"c-message__delete_overlay",role:"presentation",children:a.jsxs("div",{className:"c-message__delete_dialog","data-qa":"delete_message_confirm",role:"dialog","aria-modal":"true","aria-label":"Delete message","data-twin-unverified":"true",children:[a.jsx("h2",{className:"c-message__delete_title",children:"Delete message"}),a.jsx("p",{className:"c-message__delete_body",children:"Are you sure you want to delete this message? This cannot be undone."}),a.jsxs("div",{className:"c-message__delete_actions",children:[a.jsx("button",{type:"button",className:"c-button c-button--outline","data-qa":"delete_message_cancel",onClick:()=>z(!1),children:"Cancel"}),a.jsx("button",{type:"button",className:"c-button c-button--danger","data-qa":"delete_message_confirm_button",onClick:()=>{z(!1),k(e.id,t.ts)},children:"Delete"})]})]})}),document.body),ie&&q&&a.jsx(sx,{userId:q,anchor:ie.anchor,visible:ie.visible}),v&&a.jsx(Kh,{anchor:"down",onClose:()=>b(!1),onPick:V=>{b(!1),m(e.id,t.ts,V)}})]})}function ix({attachment:e}){const t=e,n=e.title_link??e.from_url??t.original_url,s=e.service_name,r=t.thumb_url??e.image_url;return a.jsx("a",{className:"c-link c-message_attachment_v3","data-qa":"message_attachment_default",href:n,target:"_blank",rel:"noopener noreferrer",children:a.jsxs("div",{className:"c-message_attachment__body",children:[a.jsxs("div",{className:"c-message_attachment__left",children:[e.title&&a.jsx("div",{className:"c-message_attachment__left__title_author",children:a.jsx("span",{className:"c-message_attachment__title","data-qa":"message_attachment_title",children:e.title})}),e.text&&a.jsx("span",{className:"c-message_attachment__text","data-qa":"message_attachment_text",children:e.text}),s&&a.jsxs("span",{className:"c-message_attachment__footer","data-qa":"attachment-footer",children:[t.service_icon?a.jsx("img",{className:"c-message_attachment__footer_icon","data-qa":"message_attachment_footer_icon",src:t.service_icon,alt:"",width:16,height:16}):a.jsx("span",{className:"c-message_attachment__footer_icon","data-qa":"message_attachment_footer_icon","aria-hidden":"true"}),a.jsx("span",{className:"c-message_attachment__footer_text c-message_attachment__part","data-qa":"message_attachment_footer_text",children:s})]})]}),r&&a.jsx("div",{className:"c-message_attachment__right",children:a.jsx("img",{className:"c-message_attachment__thumb",src:r,alt:"","data-qa":"attachment_image"})})]})})}const o_=4,lx=1.55,ox=4,cx=120,dx=49,ux=52;function _x(e){return e.length===1?`${e[0]} is typing`:e.length===2?`${e[0]} and ${e[1]} are typing`:"Several people are typing"}function px(e,t,n){const s=[];let r=null,i=!1;for(const l of e){const o=Ai(l.ts);let c=s[s.length-1];(!c||c.key!==o)&&(c={key:o,label:Ob(l.ts),rows:[]},s.push(c),r=null),!i&&t&&Number(l.ts)>Number(t)&&l.user!==n&&l.subtype!=="channel_join"&&(c.rows.push({kind:"unread",key:"unread"}),i=!0,r=null);const u=!!(r&&r.user===l.user&&!r.subtype&&!l.subtype&&!r.files&&Ub(r.ts,l.ts));c.rows.push({kind:"message",key:l.ts,message:l,compact:u}),r=l}return s}function c_({channel:e,onOpenThread:t,editingTs:n,onEditingChange:s,onOpenChannel:r}){var E,O;const{messages:i,pending:l,loaded:o,me:c,typing:u,join:m,openChannel:h,users:p}=me(),g=Be(),y=_.useRef(null),k=_.useRef(e.last_read),C=_.useRef(!0),[f,v]=_.useState(!1),[b,x]=_.useState(o_),[w,S]=_.useState(null),A=_.useRef(null),I=_.useRef(new Map),Q=_.useRef(0),[z,ae]=_.useState(0),ce=D=>{if(D.scrollHeight<=D.clientHeight){S(null);return}const W=D.clientHeight,Y=Math.max(24,Math.round(W*W/D.scrollHeight)),T=Math.round(D.scrollTop/(D.scrollHeight-D.clientHeight)*(W-Y));S(q=>q&&q.top===T&&q.height===Y?q:{top:T,height:Y})},ie=_.useMemo(()=>(i[e.id]??[]).filter(D=>!D.thread_ts||D.thread_ts===D.ts||D.subtype==="thread_broadcast"),[i,e.id]),P=_.useMemo(()=>ie.length>b?ie.slice(ie.length-b):ie,[ie,b]),K=_.useMemo(()=>px(P,k.current,c),[P,c]),L=l[e.id]??[],B=Object.keys(u[e.id]??{}).filter(D=>D!==c),j=o[e.id],F=K.reduce((D,W)=>D+W.rows.length,0),M=D=>{const W=D*lx;let Y=0,T=0,q="";for(let U=ie.length-1;U>=0;U-=1){const $=Ai(ie[U].ts);if($!==q&&(Y+=dx,q=$),Y+=I.current.get(ie[U].ts)??ux,T+=1,Y>=W)break}return Math.max(1,T)};_.useEffect(()=>{I.current.clear(),Q.current=0,C.current=!0,x(o_)},[e.id]),_.useLayoutEffect(()=>{const D=y.current;if(D){for(const W of D.querySelectorAll(".c-virtual_list__item[data-item-key]")){const Y=W.dataset.itemKey;Y&&Y.includes(".")&&I.current.set(Y,W.offsetHeight)}if(A.current!==null){D.scrollTop+=D.scrollHeight-A.current,A.current=null,ce(D);return}if(C.current){D.scrollTop=D.scrollHeight;const W=Math.min(ie.length,Math.max(M(D.clientHeight),Q.current,1));W!==b&&x(W)}ce(D)}},[F,L.length,j,b,ie.length,z]),_.useEffect(()=>{const D=y.current;if(!D)return;const W=()=>ae(Y=>Y+1);return D.addEventListener("load",W,!0),()=>D.removeEventListener("load",W,!0)},[]),_.useEffect(()=>{const D=y.current;if(!D)return;const W=()=>{const Y=D.scrollHeight-D.scrollTop-D.clientHeight;C.current=Y<80,v(Y>D.clientHeight),ce(D),!C.current&&D.scrollTop<cx&&b<ie.length&&A.current===null&&(A.current=D.scrollHeight,Q.current=Math.min(ie.length,b+ox),x(Q.current))};return D.addEventListener("scroll",W),()=>D.removeEventListener("scroll",W)},[b,ie.length]);const X=()=>{const D=y.current;D&&(C.current=!0,D.scrollTop=D.scrollHeight)},oe=g.channelName(e.id)??e.id;return a.jsxs("div",{className:"c-tabs__tab_panel c-tabs__tab_panel--active c-tabs__tab_panel--full_height","data-qa":"tabs_content_container",children:[a.jsx("div",{className:"p-split_view_drop_zone","aria-hidden":"true",children:a.jsx("div",{className:"p-split_view_drop_zone__icon",children:a.jsx(ph,{size:24,"data-qa":"move-to-split-view"})})}),a.jsxs("div",{className:"p-message_pane p-message_pane--classic-nav","data-qa":"message_pane","data-qa-channel-id":e.id,children:[f&&a.jsx("div",{className:"p-message_pane__jump","data-qa":"jump_to_recent",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-message_pane__jump_button",onClick:X,children:[a.jsx(Lt,{name:"arrow-up",size:14,style:{transform:"rotate(180deg)"}}),"Jump to recent messages"]})}),a.jsxs("div",{className:"c-virtual_list c-virtual_list--scrollbar c-message_list c-scrollbar",children:[a.jsx("div",{ref:y,className:"c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsxs("div",{className:"c-virtual_list__scroll_container","data-qa":"slack_kit_list",role:"presentation","aria-label":`Messages in ${oe}`,children:[j==="loading"&&F===0&&a.jsx("div",{className:"p-message_pane__loading","data-qa":"message_pane_loading",children:Array.from({length:6}).map((D,W)=>a.jsxs("div",{className:"p-skeleton_message",children:[a.jsx("span",{className:"p-skeleton p-skeleton--avatar"}),a.jsxs("div",{children:[a.jsx("span",{className:"p-skeleton p-skeleton--name"}),a.jsx("span",{className:"p-skeleton p-skeleton--line",style:{width:`${35+W*41%55}%`}})]})]},W))}),j==="error"&&a.jsxs("div",{className:"p-message_pane__error","data-qa":"message_pane_error",role:"alert",children:[a.jsx("p",{children:"Could not load messages."}),a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--small","data-qa":"message_pane_retry",onClick:()=>void h(e.id),children:"Try again"})]}),j==="done"&&P.length===ie.length&&a.jsxs("div",{className:"p-channel_intro","data-qa":"channel_intro",role:"listitem",children:[a.jsx("h2",{className:"p-channel_intro__title",children:e.is_im?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"p-channel_intro__avatar"})," ",oe]}):a.jsxs(a.Fragment,{children:[a.jsx(Lt,{name:e.is_private?"lock":"hash",size:22})," ",oe]})}),a.jsx("p",{className:"p-channel_intro__text",children:e.is_im?`This conversation is just between ${((E=p[e.user??""])==null?void 0:E.real_name)??"you two"} and you.`:e.is_mpim?"This is the very beginning of your group conversation.":`${((O=e.purpose)==null?void 0:O.value)||`This is the very beginning of the #${e.name} channel.`}${e.is_ext_shared?" This channel is shared with an external organization.":""}`})]}),K.map(D=>a.jsxs("div",{className:"c-virtual_list__sticky_container",children:[a.jsx("div",{className:"c-virtual_list__item c-message_list__day_divider__label_item","data-qa":"virtual-list-item","data-item-key":`date-${D.key}`,role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"c-message_list__day_divider__label c-message_list__day_divider__label--jump_to_date","data-qa":"day-divider-label",children:a.jsxs("button",{type:"button",className:"c-button-unstyled c-message_list__day_divider__label__pill","data-qa":"unstyled-button","aria-haspopup":"menu","aria-label":"Jump to date",children:[D.label,a.jsx("span",{className:"c-message_list__day_divider__label__pill_caret",children:a.jsx(Ie,{size:13,"data-qa":"caret-down"})})]})})}),a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":`divider-${D.key}`,role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"c-message_list__day_divider",children:a.jsx("div",{className:"c-message_list__day_divider__line"})})}),D.rows.map(W=>W.kind==="unread"?a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":"unread",role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"c-message_list__unread_divider","data-qa":"unread_divider",children:a.jsx("span",{children:"New"})})},W.key):a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":W.message.ts,role:"listitem","aria-setsize":-1,children:a.jsx(dn,{channel:e,message:W.message,compact:W.compact,editing:n===W.message.ts,onEdit:s,onOpenThread:t,onOpenChannel:r})},W.key))]},D.key)),L.map(D=>a.jsx("div",{className:"c-virtual_list__item c-virtual_list__item--pending","data-qa":"virtual-list-item","data-item-key":D.client_msg_id,role:"listitem","aria-setsize":-1,children:a.jsx(dn,{channel:e,message:D,compact:!1,editing:!1,onEdit:()=>{}})},D.client_msg_id)),B.length>0&&a.jsxs("div",{className:"p-message_pane__typing","data-qa":"typing_indicator","aria-live":"polite",children:[a.jsxs("span",{className:"p-message_pane__typing_dots","aria-hidden":"true",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]}),_x(B.map(D=>g.realName(D)))]}),a.jsx("div",{className:"c-virtual_list__item c-virtual_list__spacer","data-qa":"virtual-list-item","data-item-key":"end","aria-hidden":"true"})]})}),w&&a.jsx("div",{className:"c-scrollbar__track","aria-hidden":"true",children:a.jsx("div",{className:"c-scrollbar__bar",style:{top:w.top,height:w.height}})})]}),!e.is_member&&(e.is_channel||e.is_group)&&a.jsxs("div",{className:"p-message_pane__join_banner","data-qa":"channel_join_banner",children:[a.jsxs("p",{children:["You are viewing ",a.jsxs("strong",{children:["#",e.name]})]}),a.jsx("button",{type:"button",className:"c-button c-button--primary","data-qa":"channel_join_button",onClick:()=>void m(e.id),children:"Join channel"})]})]})]})}const cs="​",vd={bold:"STRONG",italic:"EM",underline:"U",strike:"S",code:"CODE"},mx={"*":"bold",_:"italic","~":"strike","`":"code"},hx={blockquote:"BLOCKQUOTE","code-block":"PRE","ordered-list":"OL","bullet-list":"UL"},fx=[{id:"bold",qa:"bold-composer-button",iconQa:"bold",label:"Bold",format:"bold",icon:Sv,shortcut:"⌘B"},{id:"italic",qa:"italic-composer-button",iconQa:"italic",label:"Italic",format:"italic",icon:Lv,shortcut:"⌘I"},{id:"underline",qa:"underline-composer-button",iconQa:"underline",label:"Underline",format:"underline",icon:Bv,shortcut:"⌘U"},{id:"strike",qa:"strike-composer-button",iconQa:"strikethrough",label:"Strikethrough",format:"strike",icon:Ov,shortcut:"⌘⇧X"},{id:"link",qa:"link-composer-button",iconQa:"link",label:"Link",format:"link",icon:Dv,shortcut:"⌘⇧U"},{id:"ordered-list",qa:"ordered-list-composer-button",iconQa:"numbered-list",label:"Ordered list",format:"ordered-list",icon:$v,shortcut:"⌘⇧7"},{id:"bullet-list",qa:"bullet-list-composer-button",iconQa:"bulleted-list",label:"Bulleted list",format:"bullet-list",icon:Cv,shortcut:"⌘⇧8"},{id:"blockquote",qa:"blockquote-composer-button",iconQa:"quote",label:"Blockquote",format:"blockquote",icon:Fv,shortcut:"⌘⇧9"},{id:"code",qa:"code-composer-button",iconQa:"code",label:"Code",format:"code",icon:Mv,shortcut:"⌘⇧C"},{id:"code-block",qa:"code-block-composer-button",iconQa:"code-block",label:"Code block",format:"code-block",icon:zv,shortcut:"⌘⌥⇧C"}],gx=[["bold","italic","underline","strike"],["link","ordered-list","bullet-list"],["blockquote","code","code-block"]],vx=[{command:"/msg",hint:"@someone [message]",description:"Send a direct message"},{command:"/send",hint:"#channel [message]",description:"Send a message to a channel"},{command:"/create channel",description:"Create a channel"},{command:"/rename",hint:"[new name]",description:"Rename this channel"},{command:"/archive",description:"Archive this channel"},{command:"/browse channels",description:"Browse channels"},{command:"/people",description:"Browse people"},{command:"/search",hint:"[your query]",description:"Search messages and files"},{command:"/mute",description:"Mute this channel"},{command:"/dnd",hint:"[time]",description:"Pause notifications"},{command:"/notifications",description:"Change your notification settings"},{command:"/remind",hint:"[@someone or #channel] [what] [when]",description:"Set a reminder"},{command:"/status",hint:"[emoji] [text]",description:"Set your status"},{command:"/gif",hint:"[text]",description:"Post a GIF"},{command:"/snippet",description:"Create a snippet"},{command:"/shrug",hint:"[message]",description:"Append ¯\\_(ツ)_/¯ to your message"},{command:"/me",hint:"[message]",description:"Display action text"},{command:"/away",description:"Toggle your away status"},{command:"/collapse",description:"Collapse inline media"},{command:"/expand",description:"Expand inline media"},{command:"/invite",hint:"@someone",description:"Invite people to this channel"},{command:"/leave",description:"Leave this channel"},{command:"/topic",hint:"[text]",description:"Set the channel topic"}],bx=[{id:"channel",name:"channel",title:"@channel",subtitle:"Notify everyone in this channel."},{id:"here",name:"here",title:"@here",subtitle:"Notify every online member of this channel."},{id:"everyone",name:"everyone",title:"@everyone",subtitle:"Notify everyone in the workspace."}];function la(){const e=window.getSelection();return e&&e.rangeCount>0?e.getRangeAt(0):null}function ma(e,t){const n=document.createRange();n.setStart(e,t),n.collapse(!0);const s=window.getSelection();s==null||s.removeAllRanges(),s==null||s.addRange(n)}function bd(e){var n;const t=document.createTextNode(cs);(n=e.parentNode)==null||n.insertBefore(t,e.nextSibling),ma(t,1)}function xd(e){const t=la();if(!t||!t.collapsed||!e.contains(t.startContainer))return null;const{startContainer:n,startOffset:s}=t;if(n.nodeType===Node.TEXT_NODE)return{node:n,offset:s};const r=n.childNodes[s-1];return r&&r.nodeType===Node.TEXT_NODE?{node:r,offset:r.data.length}:null}function ns(e,t,n){let s=t;for(;s&&s!==e;){if(s instanceof HTMLElement&&n.includes(s.tagName))return s;s=s.parentNode}return null}function nl(e,t){let n=t;for(;n&&n.parentNode!==e;)n=n.parentNode;return n instanceof HTMLElement?n:null}function xx(){const e=document.createElement("p");return e.append(document.createElement("br")),e}function jn(e){const t=[];for(const n of Array.from(e.childNodes))if(!(n instanceof HTMLElement&&["P","PRE","BLOCKQUOTE","OL","UL"].includes(n.tagName))){if(n instanceof HTMLElement&&n.tagName==="DIV"){const s=document.createElement("p");s.append(...Array.from(n.childNodes)),e.replaceChild(s,n);continue}t.push(n)}if(t.length){const n=document.createElement("p");e.insertBefore(n,t[0]),n.append(...t)}e.firstChild||e.append(xx())}function Br(e){return(e.innerText??"").replace(/\u200B/g,"").replace(/\u00a0/g," ")}function Nn(e){if(e.nodeType===Node.TEXT_NODE)return(e.textContent??"").replace(/\u200B/g,"").replace(/\u00a0/g," ");if(!(e instanceof HTMLElement))return"";if(e.tagName==="BR")return e.nextSibling?`
71
+ `:"";const t=Array.from(e.childNodes).map(Nn).join("");if(e.dataset.mentionId)return`<@${e.dataset.mentionId}>`;if(e.dataset.channelId)return`<#${e.dataset.channelId}|${e.dataset.channelName??""}>`;if(e.dataset.emojiName)return`:${e.dataset.emojiName}:`;if(!t.trim())return t;switch(e.tagName){case"STRONG":case"B":return`*${t}*`;case"EM":case"I":return`_${t}_`;case"S":case"STRIKE":case"DEL":return`~${t}~`;case"CODE":return`\`${t}\``;case"A":return e.getAttribute("href")&&e.getAttribute("href")!==t?`<${e.getAttribute("href")}|${t}>`:t;default:return t}}function yx(e){switch(e.tagName){case"PRE":return"```"+(e.textContent??"").replace(/\u200B/g,"").replace(/\n$/,"")+"```";case"BLOCKQUOTE":return Array.from(e.childNodes).map(t=>(t instanceof HTMLElement&&["P","DIV"].includes(t.tagName),Nn(t))).join(`
72
+ `).split(`
73
+ `).map(t=>`> ${t}`).join(`
74
+ `);case"OL":return Array.from(e.children).map((t,n)=>`${n+1}. ${Nn(t)}`).join(`
75
+ `);case"UL":return Array.from(e.children).map(t=>`• ${Nn(t)}`).join(`
76
+ `);default:return Nn(e)}}function jx(e){return Array.from(e.children).map(t=>yx(t)).join(`
77
+ `).replace(/\n{3,}/g,`
78
+
79
+ `).trim()}function wx(e){const t=xd(e);if(!t||t.offset===0)return!1;const n=t.node.data[t.offset-1],s=mx[n];if(!s||ns(e,t.node,["CODE","PRE"]))return!1;const r=nl(e,t.node);if(!r)return!1;const i=document.createTreeWalker(r,NodeFilter.SHOW_TEXT),l=[];for(;i.nextNode();)l.push(i.currentNode);let o=l.indexOf(t.node),c=t.offset-2,u=null;for(;o>=0&&!u;o-=1){const b=l[o],x=c<0?-1:b.data.lastIndexOf(n,c);if(x>=0){if(ns(e,b,["CODE"]))return!1;u={node:b,offset:x}}c=o>0?l[o-1].data.length:-1}if(!u)return!1;const m=u.offset>0?u.node.data[u.offset-1]:" ";if(n!=="`"&&m!==" "&&m!==cs&&m!==" ")return!1;const h=document.createRange();h.setStart(u.node,u.offset+1),h.setEnd(t.node,t.offset-1);const p=h.toString();if(!p||/^\s|\s$/.test(p))return!1;const g=document.createRange();g.setStart(u.node,u.offset),g.setEnd(t.node,t.offset);const y=g.extractContents(),k=document.createTreeWalker(y,NodeFilter.SHOW_TEXT),C=[];for(;k.nextNode();)C.push(k.currentNode);C[0].deleteData(0,1);const f=C[C.length-1];f.deleteData(f.data.length-1,1);const v=document.createElement(vd[s]);return v.append(s==="code"?document.createTextNode(y.textContent??""):y),g.insertNode(v),bd(v),!0}function kx(e){const t=xd(e);if(!t)return!1;const n=nl(e,t.node);if(!n||n.tagName!=="P")return!1;const s=(n.textContent??"").replace(/\u200B/g,"").replace(/\u00a0/g," ");let r=null;if(s==="```"?r=document.createElement("pre"):s==="> "?r=document.createElement("blockquote"):(s==="1. "||s==="* "||s==="- ")&&(r=document.createElement(s==="1. "?"ol":"ul"),r.append(document.createElement("li"))),!r)return!1;const i=r.tagName==="OL"||r.tagName==="UL"?r.firstChild:r,l=document.createTextNode(cs);return i.append(l),e.replaceChild(r,n),ma(l,1),!0}function Nx(e,t){e.focus();const n=la();if(!n||!e.contains(n.startContainer))return;const s=vd[t],r=ns(e,n.startContainer,[s]);if(r){if(n.collapsed)bd(r);else{const u=r.parentNode;for(;r.firstChild;)u==null||u.insertBefore(r.firstChild,r);u==null||u.removeChild(r)}return}const i=document.createElement(s);if(n.collapsed){i.textContent=cs,n.insertNode(i),ma(i.firstChild,1);return}const l=n.extractContents();i.append(t==="code"?document.createTextNode(l.textContent??""):l),n.insertNode(i);const o=window.getSelection(),c=document.createRange();c.selectNodeContents(i),o==null||o.removeAllRanges(),o==null||o.addRange(c)}function Sx(e,t){e.focus();const n=la();if(!n||!e.contains(n.startContainer))return;const s=nl(e,n.startContainer)??e.firstChild;if(!s)return;const r=hx[t],i=r==="OL"||r==="UL",l=s.tagName==="OL"||s.tagName==="UL"?Array.from(s.children).flatMap(u=>Array.from(u.childNodes)):Array.from(s.childNodes);if(s.tagName===r){const u=document.createElement("p");u.append(...l),u.firstChild||u.append(document.createElement("br")),e.replaceChild(u,s),ma(u,u.childNodes.length);return}const o=document.createElement(r.toLowerCase()),c=i?o.appendChild(document.createElement("li")):o;r==="PRE"?c.append(document.createTextNode(l.map(u=>u.textContent??"").join(""))):c.append(...l),c.firstChild||c.append(document.createTextNode(cs)),e.replaceChild(o,s),ma(c,c.childNodes.length)}function Cx(e){const t=new Set,n=la();if(!n||!e.contains(n.startContainer))return t;let s=n.startContainer;for(;s&&s!==e;){if(s instanceof HTMLElement){const r=s.tagName;(r==="STRONG"||r==="B")&&t.add("bold"),(r==="EM"||r==="I")&&t.add("italic"),r==="U"&&t.add("underline"),(r==="S"||r==="STRIKE"||r==="DEL")&&t.add("strike"),r==="CODE"&&t.add("code"),r==="PRE"&&t.add("code-block"),r==="BLOCKQUOTE"&&t.add("blockquote"),r==="OL"&&t.add("ordered-list"),r==="UL"&&t.add("bullet-list")}s=s.parentNode}return t}function qx(e,t){const n=t.toLowerCase(),s=n?e.toLowerCase().indexOf(n):-1;return s<0?e:a.jsxs(a.Fragment,{children:[e.slice(0,s),Array.from(e.slice(s,s+n.length)).map((r,i)=>a.jsx("span",{className:"c-texty_autocomplete__match",children:r},i)),e.slice(s+n.length)]})}const Ex=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><rect width="20" height="20" rx="4" fill="#4a154b"/><path d="M7.4 5.2h1.7v3.4h1.8V5.2h1.7v9.6h-1.7v-4.5H9.1v4.5H7.4z" fill="#fff"/></svg>')}`;function Mx(e){const t=xd(e);if(!t||ns(e,t.node,["CODE","PRE"]))return null;const n=t.node.data.slice(0,t.offset).replace(/\u00a0/g," "),s=/(?:^|[\s\u200B])([@#:/])([^\s@#:/]*)$/.exec(n);if(!s)return null;const r=s[1],i=s[2];if(r===":"&&i.length<2)return null;if(r==="/"){const c=nl(e,t.node)===e.firstElementChild,u=n.replace(/\u200B/g,"").trim();if(!c||u!==`/${i}`)return null}const l=t.offset-i.length-1;return{kind:r,query:i,node:t.node,start:l,end:t.offset}}function zx(e,t,n=" "){var i;const s=document.createRange();s.setStart(e.node,e.start),s.setEnd(e.node,e.end),s.deleteContents(),s.insertNode(t);const r=document.createTextNode(n?" ":cs);(i=t.parentNode)==null||i.insertBefore(r,t.nextSibling),ma(r,r.data.length)}const Tx=120;function Ax(){const[e,t]=_.useState(null),[n,s]=_.useState(!1),r=_.useRef(null),i=_.useCallback(()=>{r.current!==null&&window.clearTimeout(r.current),r.current=null,s(!1),t(null)},[]);_.useEffect(()=>i,[i]);const l=_.useRef(0),o=_.useCallback(k=>{l.current=Date.now()+k},[]),c=_.useCallback((k,C=ir)=>{Date.now()<l.current||(r.current!==null&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{if(r.current=null,!k.isConnected||!k.matches(":hover"))return;const f=k.getBoundingClientRect(),v=k.dataset.tipAlign??"center",b=Number(k.dataset.tipGap??0);t({label:k.dataset.tipLabel??"",hint:k.dataset.tipHint||void 0,x:v==="end"?f.right:f.left+f.width/2,y:f.top-b,align:v,arrowRight:f.width/2}),window.requestAnimationFrame(()=>s(!0))},C))},[]),u=_.useRef(null),[m,h]=_.useState(null);_.useLayoutEffect(()=>{if(!e||!u.current){h(null);return}const k=u.current.getBoundingClientRect();h({left:e.align==="end"?e.x-k.width:e.x-k.width/2,top:e.y-k.height})},[e]);const p=(k,C,f={})=>({"data-tip-label":k,"data-tip-hint":C??"","data-tip-align":f.align??"center","data-tip-gap":String(f.gap??7),onMouseEnter:v=>c(v.currentTarget),onMouseLeave:i}),g=_.useCallback(k=>{k&&window.setTimeout(()=>c(k,0),Tx)},[c]),y=e&&$t.createPortal(a.jsx("div",{ref:u,className:`p-composer_tooltip${n&&m?" p-composer_tooltip--visible":""}`,style:m?{left:m.left,top:m.top}:{left:0,top:0},role:"tooltip","data-qa":"tooltip-popover",children:a.jsx("div",{role:"presentation",children:a.jsxs("div",{className:"c-tooltip__tip","data-qa":"tooltip-tip",children:[e.hint?a.jsxs(a.Fragment,{children:[a.jsx("span",{"aria-hidden":"true",children:e.label}),a.jsx("span",{className:"c-tooltip__tip_shortcut",children:a.jsx("div",{className:"c-keyboard_key c-keyboard_key--inverted",role:"img","aria-hidden":"false","aria-label":e.hint.toLowerCase(),children:e.hint})})]}):e.label,a.jsx("div",{className:`c-tooltip__tip_arrow${e.align==="end"?" c-tooltip__tip_arrow--offset":""}`,"data-qa":"tooltip-tip-arrow",style:e.align==="end"?{"--tw_tooltip_arrow_right":`${e.arrowRight-4.5}px`}:void 0})]})})}),document.body);return{bind:p,hide:i,mute:o,rehover:g,node:y}}function Di({channel:e,threadTs:t,placeholder:n,onEditLast:s}){const{send:r,join:i,connectivity:l,users:o,channels:c,emoji:u,team:m}=me(),h=Be(),p=_.useRef(null),g=_.useRef(null),y=_.useRef(null),k=_.useRef(null),[C,f]=_.useState(!0),[v,b]=_.useState(!0),[x,w]=_.useState(!1),[S,A]=_.useState(!1),[I,Q]=_.useState(!1),[z,ae]=_.useState(!1),[ce,ie]=_.useState(!1),[P,K]=_.useState({right:0,top:0}),[L,B]=_.useState(()=>new Set),[j,F]=_.useState(null),[M,X]=_.useState(0),[oe,E]=_.useState(!1),[O,D]=_.useState(!1),[W,Y]=_.useState(()=>navigator.onLine),T=Ax();_.useEffect(()=>{const R=()=>Y(!0),ee=()=>Y(!1);return window.addEventListener("online",R),window.addEventListener("offline",ee),()=>{window.removeEventListener("online",R),window.removeEventListener("offline",ee)}},[]);const q=l==="online"&&W;_.useEffect(()=>{const R=window.setTimeout(()=>D(!q),q?ev:Zm);return()=>window.clearTimeout(R)},[q]),_.useEffect(()=>{if(!x){A(!1);return}const R=window.setTimeout(()=>A(!0),ov);return()=>window.clearTimeout(R)},[x]),_.useEffect(()=>{if(!ce)return;const R=pe=>{var fe;pe.key==="Escape"&&(pe.stopPropagation(),ie(!1),(fe=k.current)==null||fe.focus(),T.rehover(k.current))},ee=pe=>{var fe,se;(se=(fe=pe.target).closest)!=null&&se.call(fe,'.p-schedule_send_menu, [data-qa="texty_send_options_button"]')||(ie(!1),T.rehover(k.current))};return document.addEventListener("keydown",R,!0),document.addEventListener("mousedown",ee),()=>{document.removeEventListener("keydown",R,!0),document.removeEventListener("mousedown",ee)}},[ce]);const U=h.channelName(e.id)??e.name??e.id,$=!!(e.is_im&&e.user===h.selfId),Z=n??($?"Jot something down":e.is_im||e.is_mpim?`Message ${U}`:`Message #${U}`),N=e.is_member!==!1,H=hb(e.id,t),J=_.useCallback(()=>{const R=p.current;if(!R)return;const ee=Br(R);f(!ee.trim()),B(Cx(R));const pe=la();(!pe||pe.collapsed)&&F(Mx(R)),gb(H,R.innerHTML,ee)},[H]);_.useEffect(()=>{var pe;const R=p.current;if(!R)return;document.execCommand("defaultParagraphSeparator",!1,"p");const ee=fb(H);R.innerHTML=(ee==null?void 0:ee.html)??"",jn(R),R.focus(),ma(R.lastChild??R,((pe=R.lastChild)==null?void 0:pe.childNodes.length)??0),J()},[H,J]),_.useEffect(()=>{const R=()=>{const ee=p.current;ee&&document.activeElement===ee&&J()};return document.addEventListener("selectionchange",R),()=>document.removeEventListener("selectionchange",R)},[J]),_.useEffect(()=>X(0),[j==null?void 0:j.kind,j==null?void 0:j.query]);const re=_.useCallback(()=>{const R=p.current;R&&(R.innerHTML="",jn(R),ma(R.firstChild,0),Sh(H),J())},[H,J]),he=_.useCallback(async()=>{var pe;const R=p.current;if(!R||!q||oe)return;const ee=jx(R);if(ee){E(!0),re();try{await r(e.id,ee,t)}catch{}finally{E(!1),(pe=p.current)==null||pe.focus()}}},[e.id,t,r,oe,q,re]),be=R=>{const ee=p.current;if(ee){if(R==="link"){const pe=la(),fe=pe&&!pe.collapsed?pe.toString():"",se=window.prompt("Link","https://");if(!se||!pe)return;const We=document.createElement("a");We.href=se,We.textContent=fe||se,pe.deleteContents(),pe.insertNode(We),bd(We)}else R in vd?Nx(ee,R):Sx(ee,R);J()}},Xe=R=>{const ee=p.current;ee&&(ee.focus(),document.execCommand("insertText",!1,R),J())},rt=R=>{var se;const ee=p.current;if(!ee)return;ee.focus();const pe=la();!pe||!ee.contains(pe.startContainer)?(ee.lastElementChild??ee).append(R):(pe.deleteContents(),pe.insertNode(R));const fe=document.createTextNode(" ");(se=R.parentNode)==null||se.insertBefore(fe,R.nextSibling),ma(fe,1),jn(ee),J()},It=R=>{const ee=document.createElement("span");if(ee.className="c-emoji",ee.dataset.emojiName=R.name,ee.setAttribute("role","img"),ee.setAttribute("aria-label",R.name),R.url){const pe=document.createElement("img");pe.src=R.url,pe.alt=R.name,pe.width=22,pe.height=22,ee.append(pe)}else ee.textContent=R.glyph;return ee},ka=R=>{var fe;const ee=u.standard[R]??((fe=Li.find(se=>se.name===R))==null?void 0:fe.glyph)??"",pe=u.custom[R]?nt(u.custom[R]):void 0;rt(It({name:R,glyph:ee,url:pe}))},V=_.useMemo(()=>{if(!j)return[];const R=j.query.toLowerCase(),ee=(se,We=" ")=>()=>{zx(j,se,We),J()},pe=(m==null?void 0:m.name)??"",fe=se=>{const We=se.presence==="active",xt=se.name;return a.jsxs("div",{className:"c-texty_autocomplete__entity_pad",children:[a.jsx("div",{className:"c-texty_autocomplete__entity_row",children:a.jsxs("div",{className:"c-member_entity c-member_entity--small","data-qa":"small_member_entity",children:[a.jsx("span",{className:"c-member_entity__avatar","data-qa":"member-entity__avatar",children:a.jsx("span",{className:"c-avatar c-avatar--20",children:a.jsx("img",{src:nt(`/avatars/${se.id}.png`),alt:"",role:"img","aria-hidden":"true",width:20,height:20})})}),a.jsx("div",{className:"c-member_entity__names",children:a.jsxs("span",{className:"c-member_entity__name_group",children:[a.jsx("span",{className:"c-member_entity__primary_name","data-qa":"member-entity__primary-name",children:a.jsx("span",{children:a.jsxs("strong",{className:"c-member_entity__member_name","data-qa":"member_name",children:[se.real_name,se.id===h.selfId&&a.jsxs("span",{className:"c-member_entity__you","data-qa":"member_name__you",children:[" ","(you)"]})]})})}),a.jsx("span",{className:`c-member_entity__presence${We?" c-member_entity__presence--active":""}`,children:a.jsx(fd,{active:We,size:20})}),xt&&xt!==se.real_name&&a.jsx("span",{className:"c-member_entity__secondary_name","data-qa":"member-entity__secondary-name",children:a.jsx("span",{children:xt})})]})})]})}),a.jsx("div",{className:"c-texty_autocomplete__entity_gap"})]})};if(j.kind==="@"){const se=Object.values(o).filter(je=>!!je&&!je.deleted).filter(je=>je.name.toLowerCase().includes(R)||je.real_name.toLowerCase().includes(R)).slice(0,12).map(je=>({id:je.id,label:`${je.real_name}${je.id===h.selfId?" (you)":""}`,body:fe(je),apply:ee(Dx(je.id,je.real_name))})),We=bx.filter(je=>je.name.startsWith(R)).filter(je=>je.name!=="everyone"||e.is_general).map(je=>({id:je.id,body:a.jsxs("div",{className:"c-texty_autocomplete__entity_pad",children:[a.jsx("div",{className:"c-texty_autocomplete__entity_row",children:a.jsxs("div",{className:"c-texty_autocomplete__special",children:[a.jsx("i",{className:"c-icon c-icon--broadcast","data-qa":"slack_kit_icon","aria-hidden":"true",children:"@"}),a.jsx("div",{className:"c-texty_autocomplete__special_text",children:a.jsxs("span",{children:[a.jsx("span",{className:"c-texty_autocomplete__special_name",children:je.title}),je.subtitle]})})]})}),a.jsx("div",{className:"c-texty_autocomplete__entity_gap"})]}),apply:ee(document.createTextNode(`@${je.name}`))})),xt=se.filter(je=>je.id===h.selfId);return[...se.filter(je=>je.id!==h.selfId),...We,...xt]}if(j.kind==="#")return Object.values(c).filter(se=>se&&!se.is_im&&!se.is_mpim&&se.name&&se.name.toLowerCase().includes(R)).slice(0,17).map(se=>({id:se.id,label:`${se.name}, ${pe}${se.is_archived?" (archived channel)":""}`,body:a.jsx("div",{className:"c-texty_autocomplete__entity_pad",children:a.jsx("div",{className:"c-texty_autocomplete__entity_row",children:a.jsxs("div",{className:"c-channel_entity c-channel_entity--small","data-qa":"small_channel_entity",children:[a.jsx("span",{className:"c-channel_entity__icon",children:a.jsx(dr,{kind:se.is_private?"lock":"channel",size:18,qa:se.is_private?"lock":"channel"})}),a.jsx("div",{className:"c-channel_entity__names",children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{className:"c-channel_entity__name",children:se.name})})})})})]})})}),apply:ee(Px(se.id,se.name??""))}));if(j.kind===":"){const se=Object.entries(u.standard).map(([Ke,je])=>({name:Ke,glyph:je})),We=Object.entries(u.custom).map(([Ke,je])=>({name:Ke,glyph:"",url:nt(je)})),xt=new Set;return[...se,...Li,...We].filter(Ke=>Ke.name.includes(R)&&!xt.has(Ke.name)&&xt.add(Ke.name)).slice(0,25).map(Ke=>({id:Ke.name,body:a.jsxs(a.Fragment,{children:[a.jsx("img",{className:"c-texty_autocomplete__emoji","data-qa":"emoji",src:Ke.url??Kn(Ke.glyph),alt:"","aria-label":`${Ke.name.replace(/_/g," ")} emoji`}),a.jsxs("span",{className:"c-texty_autocomplete__emoji_code",children:[":",qx(Ke.name,j.query),":"]})]}),apply:ee(It(Ke))}))}return vx.filter(se=>se.command.slice(1).startsWith(R)).slice(0,25).map(se=>({id:se.command,label:`${se.command}, Slack, ${se.description}`,body:a.jsxs("div",{className:"c-texty_autocomplete__shortcut",children:[a.jsx("div",{className:"c-texty_autocomplete__shortcut_icon",children:a.jsx("img",{src:Ex,alt:"",role:"img","aria-hidden":"true",width:20,height:20})}),a.jsxs("div",{className:"c-texty_autocomplete__shortcut_text",children:[a.jsxs("div",{className:"c-texty_autocomplete__shortcut_title",children:[se.command,se.hint?` ${se.hint}`:""]}),a.jsxs("div",{className:"c-texty_autocomplete__shortcut_meta",children:[a.jsx("span",{className:"c-texty_autocomplete__shortcut_source",children:"Slack"}),` · ${se.description}`]})]})]}),apply:ee(document.createTextNode(se.command))}))},[j,o,c,u,J,h.selfId,m==null?void 0:m.name,e.is_general]),Se=R=>{var We,xt,Ke,je;const ee=p.current;if(!ee)return;const pe=R.metaKey||R.ctrlKey,fe=R.key.toLowerCase();if(j&&V.length){if(R.key==="ArrowDown"){R.preventDefault(),X(ds=>(ds+1)%V.length);return}if(R.key==="ArrowUp"){R.preventDefault(),X(ds=>(ds-1+V.length)%V.length);return}if(R.key==="Enter"||R.key==="Tab"){R.preventDefault(),(We=V[M])==null||We.apply();return}if(R.key==="Escape"){R.preventDefault(),F(null);return}}if(R.key==="Enter"&&!R.shiftKey&&!pe){if(R.preventDefault(),ns(ee,((xt=la())==null?void 0:xt.startContainer)??null,["PRE"])){document.execCommand("insertText",!1,`
80
+ `),J();return}he();return}if(R.key==="Enter"&&(R.shiftKey||pe)){R.preventDefault(),ns(ee,((Ke=la())==null?void 0:Ke.startContainer)??null,["PRE"])?document.execCommand("insertText",!1,`
81
+ `):document.execCommand("insertParagraph"),jn(ee),J();return}if(R.key==="ArrowUp"&&!Br(ee).trim()){R.preventDefault(),s();return}if(R.key==="Backspace"&&!Br(ee).trim()&&ee.children.length<=1&&((je=ee.firstElementChild)==null?void 0:je.tagName)!=="P"){R.preventDefault(),re();return}if(!pe)return;const se=ds=>{R.preventDefault(),be(ds)};if(R.altKey&&R.shiftKey&&fe==="c")return se("code-block");if(R.shiftKey&&fe==="x")return se("strike");if(R.shiftKey&&fe==="u")return se("link");if(R.shiftKey&&fe==="c")return se("code");if(R.shiftKey&&fe==="9")return se("blockquote");if(R.shiftKey&&fe==="8")return se("bullet-list");if(R.shiftKey&&fe==="7")return se("ordered-list");if(!R.shiftKey&&fe==="b")return se("bold");if(!R.shiftKey&&fe==="i")return se("italic");if(!R.shiftKey&&fe==="u")return se("underline")},Ot=R=>{const ee=p.current;if(!ee)return;if((R.nativeEvent.inputType??"").startsWith("delete")&&!Br(ee).trim()){re();return}jn(ee),wx(ee)||kx(ee),J()},Et=R=>{const ee=p.current;ee&&(R.preventDefault(),document.execCommand("insertText",!1,R.clipboardData.getData("text/plain")),jn(ee),J())};if(!N)return a.jsxs("div",{className:"p-message_pane_input p-message_pane_input--join","data-qa":"message_input_container",children:[a.jsxs("p",{children:["You are not a member of #",e.name,"."]}),a.jsx("button",{type:"button",className:"c-button c-button--primary","data-qa":"composer_join_button",onClick:()=>void i(e.id),children:"Join channel"})]});const it=C||oe||!q,Mt=!C,xn=x||ce||z,pt=O?C?"Slack is trying to connect.":"Slack is trying to connect, so messages can't be sent yet.":null,Nd={"@":"users","#":"channels",":":"emoji","/":"shortcuts"},pf={"@":"Users","#":"Channels",":":"Emoji","/":"Shortcuts"},Yt=R=>R.preventDefault();return a.jsxs("div",{className:`p-message_pane_input${t?" p-message_pane_input--thread":""}`,"data-qa":"message_input_container",children:[a.jsxs("div",{className:"p-message_pane_input_inner",children:[a.jsx("div",{className:"p-message_pane_input__context"}),a.jsxs("div",{className:"p-message_pane_input_inner_main",children:[a.jsx("div",{className:"p-workspace__input p-message_input_unstyled p-message_input_unstyled--attachments-visible",role:"group","aria-label":"composer",children:a.jsx("div",{className:"p-message_input__input_container_unstyled c-wysiwyg_container c-wysiwyg_container--theme_light c-wysiwyg_container--with_footer",children:a.jsxs("div",{className:"c-wysiwyg_container__inner",children:[!v&&a.jsx("div",{className:"c-wysiwyg_container__formatting c-wysiwyg_container__formatting--hidden",role:"toolbar","aria-orientation":"horizontal","aria-label":"Formatting"}),v&&a.jsx("div",{className:"c-wysiwyg_container__formatting","data-qa":"wysiwyg-container_formatting-enabled",role:"toolbar","aria-orientation":"horizontal","aria-label":"Formatting",children:a.jsx("div",{className:"p-texty_sticky_formatting_bar",children:gx.map((R,ee)=>a.jsxs("div",{style:{display:"contents"},children:[ee>0&&a.jsx("span",{className:"p-composer__separator"}),R.map(pe=>{const fe=fx.find(xt=>xt.id===pe);if(!fe)return null;const se=fe.icon,We=fe.format!=="link"&&L.has(fe.format);return a.jsx("button",{type:"button",className:`c-button-unstyled c-icon_button c-icon_button--size_smedium p-composer__button${xn?" p-composer__button--dimmed":""}`,"data-qa":fe.qa,"aria-label":fe.label,"aria-disabled":"false","aria-pressed":We,...T.bind(fe.label,fe.shortcut),onMouseDown:Yt,onClick:()=>be(fe.format),children:a.jsx(se,{"data-qa":fe.iconQa,size:18})},fe.id)})]},ee))})}),a.jsx("div",{className:"c-texty_input_unstyled__container c-texty_input_unstyled__container--size_medium c-texty_input_unstyled__container--multi_line c-texty_input_unstyled__container--no_actions",children:a.jsxs("div",{className:"c-texty_input_unstyled","data-qa":"message_input","data-message-input":"true","data-channel-id":e.id,children:[a.jsx("div",{ref:p,className:"ql-editor","data-qa":"texty_input",contentEditable:!0,suppressContentEditableWarning:!0,role:"textbox","aria-multiline":"true","aria-label":`Message to ${U}`,spellCheck:!0,onInput:Ot,onKeyDown:Se,onPaste:Et,onClick:J,onFocus:J}),C&&a.jsx("div",{className:"c-texty_input__placeholder","aria-hidden":"true",children:n||$||e.is_im||e.is_mpim?Z:a.jsxs(a.Fragment,{children:["Message"," ",a.jsxs("span",{children:[a.jsx("i",{className:`c-icon c-texty_input__placeholder_icon--public c-icon--${e.is_private?"lock":"hash-small"} c-icon--inline`,"data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("span",{children:U})]})]})})]})}),a.jsxs("div",{className:`c-wysiwyg_container__footer${v?" c-wysiwyg_container__footer--with_formatting":""}`,role:"toolbar","aria-orientation":"horizontal","aria-label":"Composer actions",children:[a.jsx("div",{className:"c-wysiwyg_container__prefix","data-qa":"wysiwyg-container_prefix",children:a.jsxs("div",{className:"p-shortcuts_menu_trigger_button_container p-shortcuts_menu_trigger_button_container--composer_ia","data-qa":"shortcuts_menu_trigger_container",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button c-wysiwyg_container__button--add","data-qa":"shortcuts_menu_trigger__Channel","aria-label":"Attach","aria-haspopup":"menu",...T.bind("Attach"),onMouseDown:Yt,onClick:()=>{var R;return(R=g.current)==null?void 0:R.click()},children:a.jsx(Wa,{"data-qa":"plus",size:18})}),a.jsx("input",{ref:g,type:"file",className:"c-wysiwyg_container__file_input","data-qa":"file_upload","aria-hidden":"true",tabIndex:-1,multiple:!0})]})}),a.jsx("div",{className:"c-wysiwyg_container__toolbar_buttons","data-qa":"wysiwyg-container_toolbar-buttons",children:a.jsxs("div",{className:"c-texty_buttons",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button","data-qa":"texty_composer_button","aria-disabled":"false","aria-label":"Show formatting","aria-pressed":v,...T.bind(v?"Hide formatting":"Show formatting"),onMouseDown:Yt,onClick:()=>b(R=>!R),children:a.jsx(Tv,{"data-qa":"formatting",size:18})}),a.jsx("button",{ref:y,type:"button",className:`c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button c-wysiwyg_container__button--emoji${I?"":" c-wysiwyg_container__button--emoji_new"}`,"data-qa":"emoji_toolbar_button","aria-label":"Emoji","aria-disabled":"false",...T.bind("Emoji","⌘⇧\\"),onMouseDown:Yt,onFocus:()=>ae(!0),onBlur:()=>ae(!1),onClick:()=>{Q(!0),w(R=>!R)},children:a.jsxs("div",{children:[a.jsx(lh,{"data-qa":"emoji",size:18,className:"c-wysiwyg_container__emoji_icon--rest"}),a.jsx(oh,{"data-qa":"emoji-filled",size:18,className:"c-wysiwyg_container__emoji_icon--hover"})]})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button","data-qa":"texty_mention_button","aria-label":"Mention someone",...T.bind("Mention someone"),onMouseDown:Yt,onClick:()=>Xe("@"),children:a.jsx(uh,{"data-qa":"mentions",size:18})}),a.jsx("span",{className:"c-wysiwyg_container__footer_divider"}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button p-video_composer_button","data-qa":"video_composer_button","aria-label":"Record video clip","aria-expanded":"false",...T.bind("Record video clip"),onMouseDown:Yt,children:a.jsx(bh,{"data-qa":"video",size:18})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button p-audio_composer_button","data-qa":"audio_composer_button","aria-label":"Record audio clip",...T.bind("Record audio clip"),onMouseDown:Yt,children:a.jsx(Pv,{"data-qa":"microphone",size:18})}),a.jsx("span",{className:"c-wysiwyg_container__footer_divider"}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button","data-qa":"slash_commands_composer_button","aria-label":"Run shortcut","aria-disabled":Mt,disabled:Mt,...T.bind("Run shortcut"),onMouseDown:Yt,onClick:()=>Xe("/"),children:a.jsx(Iv,{"data-qa":"slash-box",size:18})})]})}),a.jsx("div",{className:"c-wysiwyg_container__suffix","data-qa":"wysiwyg-container_suffix",children:a.jsxs("span",{className:`c-wysiwyg_container__send_button--with_options${it?" c-wysiwyg_container__send_button--with_options_disabled":""}`,children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_small c-wysiwyg_container__button c-wysiwyg_container__send_button","data-qa":"texty_send_button","aria-label":"Send now","aria-disabled":it,disabled:it,...T.bind("Send now","Return",{align:"end",gap:0}),onMouseDown:Yt,onClick:()=>void he(),children:a.jsx(Rv,{"data-qa":"send-filled",size:16})}),a.jsx("button",{ref:k,type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_small c-wysiwyg_container__button c-wysiwyg_container__send_options_button","data-qa":"texty_send_options_button","aria-label":"Schedule for later","aria-haspopup":"menu","aria-disabled":it,disabled:it,...T.bind("Schedule for later",void 0,{align:"end",gap:0}),onMouseDown:Yt,onClick:R=>{const ee=R.currentTarget.getBoundingClientRect();K({right:ee.right,top:ee.top}),ie(pe=>!pe)},children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})})]})]})})}),ce&&a.jsx(Lx,{anchor:P,onClose:()=>ie(!1)}),S&&a.jsx(Kh,{onClose:()=>{var R;w(!1),T.mute(1500),(R=y.current)==null||R.focus()},onPick:R=>{w(!1),ka(R)}}),j&&V.length>0&&a.jsx("div",{className:`c-texty_autocomplete c-texty_autocomplete--${Nd[j.kind]}${v?"":" c-texty_autocomplete--no_formatting"}`,"data-qa":"texty_autocomplete_menu","data-menu":Nd[j.kind],children:a.jsx("div",{className:"c-texty_autocomplete__scroller",children:a.jsx("ul",{className:"c-texty_autocomplete__list",role:"listbox","aria-label":pf[j.kind],children:V.map((R,ee)=>a.jsxs("li",{role:"option",className:`c-texty_autocomplete__item${ee===M?" c-texty_autocomplete__item--selected":""}`,"data-qa":"tab_complete_ui_item","data-id":R.id,"aria-selected":"false","aria-label":R.label,onMouseDown:pe=>pe.preventDefault(),onMouseEnter:()=>X(ee),onClick:R.apply,children:[R.body,ee===M&&a.jsx("div",{className:"c-texty_autocomplete__hint","aria-hidden":"true",children:a.jsx("div",{className:"c-keyboard_key",role:"img","aria-hidden":"false","aria-label":"enter",children:"Enter"})})]},R.id))})})})]}),a.jsxs("div",{className:"p-message_pane_input__helper",children:[a.jsxs("div",{className:"p-message_pane_input__helper_status","data-qa":pt?"composer_offline_helper":void 0,role:pt?"status":void 0,children:[pt,pt&&" ",pt&&a.jsx($x,{})]}),!O&&a.jsx("div",{className:`p-message_pane_input__helper_hint${C?"":" p-message_pane_input__helper_hint--visible"}`,children:a.jsx("span",{"aria-hidden":C,children:a.jsxs("button",{type:"button",tabIndex:-1,children:[a.jsx("b",{children:"Shift + Return"})," to add a new line"]})})})]})]}),T.node]})}function Lx({anchor:e,onClose:t}){const n=[["Tomorrow at 9:00 AM","Next Monday at 9:00 AM"],["Custom time"]];return $t.createPortal(a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"p-schedule_send_menu__backdrop",onMouseDown:t}),a.jsx("div",{className:"p-schedule_send_menu","data-qa":"menu",style:{left:e.right-260,bottom:window.innerHeight-e.top},children:a.jsx("div",{children:a.jsxs("div",{className:"p-schedule_send_menu__items","data-qa":"menu_items",role:"menu",children:[a.jsx("div",{className:"p-schedule_send_menu__header","data-qa":"menu-item-header","aria-hidden":"true",children:"Schedule message"}),n.map((s,r)=>a.jsxs("div",{style:{display:"contents"},children:[r>0&&a.jsx("div",{className:"p-schedule_send_menu__separator_row",children:a.jsx("hr",{className:"p-schedule_send_menu__separator","data-qa":"menu_separator__separator"})}),s.map(i=>a.jsx("div",{className:"p-schedule_send_menu__scheduling_option-wrapper","data-qa":"p-schedule_send_menu__scheduling_option-wrapper",children:a.jsx("button",{type:"button",role:"menuitem",className:"p-schedule_send_menu__scheduling_option","data-qa":"p-schedule_send_menu__scheduling_option",onMouseDown:l=>l.preventDefault(),onClick:t,children:a.jsx("div",{children:i})})},i))]},r))]})})})]}),document.body)}function Dx(e,t){const n=document.createElement("span");return n.className="c-member_slug c-mention",n.dataset.mentionId=e,n.contentEditable="false",n.textContent=`@${t}`,n}function Px(e,t){const n=document.createElement("span");return n.className="c-channel_slug",n.dataset.channelId=e,n.dataset.channelName=t,n.contentEditable="false",n.textContent=`#${t}`,n}function $x(){return a.jsxs("svg",{"data-qa":"cloud-offline-filled",width:10.5,height:10.5,viewBox:"0 0 20 20","aria-hidden":"true",fill:"currentColor",children:[a.jsx("path",{d:"M15.6 8.1a5.4 5.4 0 0 0-10.3-1.5A4.2 4.2 0 0 0 1.5 10.8c0 2.3 1.9 4.2 4.2 4.2h9.1a3.5 3.5 0 0 0 .8-6.9Z"}),a.jsx("path",{d:"M3.3 2.3 17.7 16.7",style:{stroke:"var(--dt_color-base-pry)"},strokeWidth:2.4,strokeLinecap:"round"}),a.jsx("path",{d:"M3.3 2.3 17.7 16.7",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round"})]})}const Fx={channel:"",lock:"",filter:"",filters:"","caret-up":"","caret-down":"",ellipsis:""};function Wt({glyph:e,size:t=20,...n}){return a.jsx("svg",{viewBox:"0 0 20 20",width:t,height:t,"aria-hidden":"true",fill:"currentColor",...n,children:a.jsx("text",{x:"10",y:"10",textAnchor:"middle",dominantBaseline:"central",fontFamily:"Slack v2",fontSize:"20",children:Fx[e]})})}const Rx="Search across people, channels, files, workflows, and more",Qh="tw_recent_places",Ix=640,Ox=17,Bx=52,js=new Set(["from","to","with","creator"]),d_=new Set(["in"]);function Hx(e){const t=/(^|\s)(from|to|with|creator|in):(\S*)$/.exec(e);return t?{modifier:t[2],value:t[3].replace(/^[@#]/,""),start:t.index+t[1].length}:null}function Gh(){const e=/^\/client\/[^/]+\/([^/?#]+)/.exec(location.pathname);return e?e[1]:null}function Yh(){try{const e=sessionStorage.getItem(Qh),t=e?JSON.parse(e):[];return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function Ux(e){if(e)try{const t=[e,...Yh().filter(n=>n!==e)].slice(0,10);sessionStorage.setItem(Qh,JSON.stringify(t))}catch{}}function Zh(e){window.history.pushState({},"",e),window.dispatchEvent(new PopStateEvent("popstate"))}function Vx(e){var n;const t=((n=/^\/client\/([^/]+)/.exec(location.pathname))==null?void 0:n[1])??"";Zh(`/client/${t}/search?q=${encodeURIComponent(e)}`)}let u_=null;function Wx(){return u_??(u_=Promise.all([ge.usersList(),ge.conversationsList(),ge.authTest()]).then(([e,t,n])=>({users:e.members.filter(s=>!s.deleted),channels:t.channels.filter(s=>!s.is_archived),self:n.user_id}))),u_}function Hr(e){var t;return((t=e.profile)==null?void 0:t.display_name)||e.real_name||e.name}function __(e,t){var n;return e.is_im?((n=t.find(s=>s.id===e.user))==null?void 0:n.real_name)??"Direct message":e.name??e.id}function Sa({children:e,label:t}){return a.jsx("div",{className:"c-keyboard_key",role:"img","aria-hidden":"true","aria-label":t,children:e})}function p_({user:e}){var n;const t=(e.real_name||e.name||"?").split(" ").map(s=>s[0]).join("").slice(0,2).toUpperCase();return a.jsx("span",{className:"c-member_entity__avatar","data-qa":"member-entity__avatar",children:a.jsx("span",{className:"c-member_entity__avatar_image",style:e.color?{background:`#${e.color}`}:void 0,children:(n=e.profile)!=null&&n.image_72?a.jsx("img",{src:nt(e.profile.image_72),alt:"",role:"img",width:20,height:20}):t})})}function Kx({onClose:e,anchorLeft:t}){const n=_.useRef(null),[s,r]=_.useState(""),[i,l]=_.useState(0),[o,c]=_.useState(!0),[u,m]=_.useState(null),[h]=_.useState(()=>Yh()),p=_.useMemo(()=>Gh(),[]);_.useEffect(()=>{var K;let P=!1;return Wx().then(L=>!P&&m(L)),(K=n.current)==null||K.focus(),()=>{P=!0}},[]);const g=Hx(s),y=s.trim(),k=_.useMemo(()=>{if(!u||!g||!js.has(g.modifier))return[];const P=g.value.toLowerCase(),K=u.users.filter(B=>!B.is_bot&&!B.is_slackbot),L=u.users.filter(B=>B.is_bot||B.is_slackbot);return[...K,...L].filter(B=>!P||Hr(B).toLowerCase().includes(P)||(B.real_name??"").toLowerCase().includes(P)||B.name.toLowerCase().includes(P))},[u,g]),C=_.useMemo(()=>{if(!u)return[];if(g&&d_.has(g.modifier)){const P=g.value.toLowerCase();return u.channels.filter(K=>!K.is_im&&!K.is_mpim&&(!P||(K.name??"").toLowerCase().includes(P)))}return[]},[u,g]),f=_.useMemo(()=>{if(!u)return[];const P=new Map(u.channels.map(L=>[L.id,L])),K=h.filter(L=>L!==p).map(L=>P.get(L)).filter(L=>!!L);return K.length>0?K.slice(0,5):u.channels.filter(L=>{var B;return L.id!==p&&L.is_member&&!L.is_im&&!L.is_mpim&&!L.is_private&&((B=L.latest)==null?void 0:B.ts)}).sort((L,B)=>{var j,F;return Number(((j=B.latest)==null?void 0:j.ts)??0)-Number(((F=L.latest)==null?void 0:F.ts)??0)}).slice(0,2)},[u,h,p]),v=_.useMemo(()=>{if(!u||g||!y)return{channels:[],people:[]};const P=y.toLowerCase();return{channels:u.channels.filter(K=>!K.is_im&&!K.is_mpim&&(K.name??"").toLowerCase().includes(P)).slice(0,3),people:u.users.filter(K=>Hr(K).toLowerCase().includes(P)||(K.real_name??"").toLowerCase().includes(P)).slice(0,3)}},[u,g,y]),b=!!(g&&(js.has(g.modifier)||d_.has(g.modifier))),x=g&&js.has(g.modifier)?k.length:C.length,w=b?x:y?1+v.channels.length+v.people.length:f.length;_.useEffect(()=>l(0),[s]);const S=()=>{var P;return(((P=n.current)==null?void 0:P.innerText)??"").replace(/ /g," ").replace(/\n+$/,"")},A=_.useCallback(P=>{const K=n.current;if(!K||!g)return;const L=`${s.slice(0,g.start)}${P} `;K.textContent=L;const B=document.createRange();B.selectNodeContents(K),B.collapse(!1);const j=window.getSelection();j==null||j.removeAllRanges(),j==null||j.addRange(B),r(L)},[s,g]),I=_.useCallback(P=>{P.trim()&&(e(),Vx(P.trim()))},[e]),Q=_.useCallback(P=>{var L;const K=((L=/^\/client\/([^/]+)/.exec(location.pathname))==null?void 0:L[1])??"";e(),Zh(`/client/${K}/${P}`)},[e]),z=_.useCallback(P=>{if(b&&g){if(js.has(g.modifier)){const L=k[P];L&&A(`${g.modifier}:@${L.name}`)}else{const L=C[P];L&&A(`${g.modifier}:#${L.name}`)}return}if(y){if(P===0)return I(y);const L=v.channels[P-1];if(L)return Q(L.id);const B=v.people[P-1-v.channels.length];return B?I(`from:@${B.name}`):void 0}const K=f[P];K&&Q(K.id)},[b,g,k,C,A,y,I,v,Q,f]),ae=P=>{if(P.key==="Escape"){P.preventDefault(),P.stopPropagation(),e();return}if(P.key==="ArrowDown"||P.key==="ArrowUp"){if(P.preventDefault(),w===0)return;l(K=>(K+(P.key==="ArrowDown"?1:-1)+w)%w);return}if(P.key==="Enter"){P.preventDefault(),w>0?z(i):y&&I(y);return}if(P.key==="Tab"&&b&&w>0){P.preventDefault(),z(i);return}if(P.key==="Tab"){const K=P.currentTarget.querySelector('[role="dialog"]'),L=Array.from((K==null?void 0:K.querySelectorAll('button:not([disabled]), [contenteditable="true"], a[href], input:not([disabled])'))??[]).filter(F=>F.offsetParent!==null);if(L.length===0)return;const B=L.indexOf(document.activeElement),j=L[(B+(P.shiftKey?-1:1)+L.length)%L.length];P.preventDefault(),j.focus()}},ce=()=>{const P=n.current;P&&(P.innerHTML="<p><br></p>",P.focus()),r("")},ie=t-Ix/2+56-Ox;return a.jsxs("div",{className:"c-search_modal__backdrop",onMouseDown:P=>P.target===P.currentTarget&&e(),onKeyDown:ae,children:[a.jsx("div",{className:"c-search_modal c-search_modal--floating",role:"dialog","aria-label":"Search","aria-modal":"true",style:{left:t},children:a.jsx("div",{className:"c-search_modal__surface",role:"presentation",children:a.jsxs("div",{className:"c-search_modal__content",children:[a.jsxs("div",{className:"c-search_modal__input_row",children:[a.jsx("div",{className:"c-search_modal__input","data-qa":"floating_omniswitcher_input",children:a.jsx("div",{className:"c-search_input_box",role:"presentation","data-qa":"search_input_box",children:a.jsx("div",{className:"c-search_input_box__inner",children:a.jsxs("div",{className:"c-search_input_box__row",children:[a.jsx("div",{className:"c-search_input_box__icon",children:a.jsx(aa,{size:20,"data-qa":"search"})}),a.jsx("div",{className:"c-search_input_box__field",children:a.jsx("div",{className:"c-search_input_box__field_inner",children:a.jsxs("div",{className:"c-search_input_box__focusable","data-qa":"focusable_search_input",children:[a.jsx("div",{ref:n,className:"c-texty_input","data-qa":"texty_input",contentEditable:!0,suppressContentEditableWarning:!0,role:"combobox","aria-label":"Query","aria-multiline":"false","aria-controls":"c-search_autocomplete__suggestion_list","aria-expanded":w>0,"aria-autocomplete":"list",spellCheck:!1,onInput:()=>r(S()),onPaste:P=>{P.preventDefault(),document.execCommand("insertText",!1,P.clipboardData.getData("text/plain").replace(/\s+/g," "))},children:a.jsx("p",{children:a.jsx("br",{})})}),!s&&a.jsx("div",{className:"c-search_input_box__placeholder","aria-hidden":"true",children:a.jsx("span",{children:Rx})})]})})}),s&&a.jsx("button",{type:"button",className:"c-search_input_box__clear","data-qa":"search_input_clear",onMouseDown:P=>P.preventDefault(),onClick:ce,children:"Clear"})]})})})}),a.jsxs("div",{className:"c-search_modal__input_actions",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-search_modal__filter_button","data-qa":"search_filter_button","aria-label":"Filters",onMouseDown:P=>P.preventDefault(),children:a.jsx(Wt,{glyph:"filters",size:20,"data-qa":"refine"})}),a.jsx("div",{className:"c-search_modal__history_wrap",role:"none",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-search_modal__history_button","data-qa":"search_input_history","aria-label":"Recent searches",onMouseDown:P=>P.preventDefault(),children:a.jsx(vr,{size:16,"data-qa":"clock"})})})]})]}),!b&&a.jsx("div",{className:"c-search_autocomplete","data-qa":"search_autocomplete",children:a.jsxs("div",{children:[!y&&o&&a.jsxs("div",{className:"c-search_autocomplete__ai_banner",role:"status",children:[a.jsx("span",{children:a.jsx("div",{children:a.jsxs("div",{className:"c-search_autocomplete__ai_body",children:[a.jsx("div",{className:"c-search_autocomplete__ai_icon",children:a.jsx(as,{size:20,"data-qa":"ai-search"})}),a.jsxs("div",{className:"c-search_autocomplete__ai_text",children:[a.jsx("span",{className:"c-search_autocomplete__ai_title",children:"Try AI search"}),a.jsx("span",{className:"c-search_autocomplete__ai_sub",children:"Ask a question like “What did I accomplish this week?”"})]})]})})}),a.jsx("div",{className:"c-search_autocomplete__ai_close","data-qa":"alert_close_btn",children:a.jsx("button",{type:"button",className:"c-button-unstyled","data-qa":"unstyled-button","aria-label":"Dismiss",onMouseDown:P=>P.preventDefault(),onClick:()=>c(!1),children:a.jsx(ja,{size:18,"data-qa":"close"})})})]}),a.jsxs("ol",{className:"c-search_autocomplete__list",role:"listbox",id:"c-search_autocomplete__suggestion_list","aria-label":"Search suggestions",children:[!y&&f.length>0&&a.jsxs("div",{role:"group","aria-label":"Recent places",children:[a.jsx("li",{className:"c-search_autocomplete__heading_item",role:"presentation",children:a.jsx("div",{className:"c-search_autocomplete__heading",role:"heading","aria-level":3,children:a.jsx("span",{children:a.jsx("span",{className:"c-search_autocomplete__heading_label",children:"Recent places"})})})}),f.map((P,K)=>a.jsxs("li",{className:"c-search_autocomplete__suggestion",role:"option",id:`c-search_autocomplete__suggestion_${K}`,"aria-selected":i===K,"aria-label":__(P,(u==null?void 0:u.users)??[]),onMouseEnter:()=>l(K),onMouseDown:L=>L.preventDefault(),onClick:()=>z(K),children:[a.jsx("div",{className:"c-search_autocomplete__suggestion_main",children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("div",{children:a.jsx("div",{children:a.jsxs("div",{className:"c-small_channel_entity","data-qa":"small_channel_entity",children:[a.jsx("div",{className:"c-small_channel_entity__icon",children:a.jsx("span",{children:a.jsx(Wt,{glyph:P.is_private?"lock":"channel",size:16,"data-qa":P.is_private?"lock":"channel"})})}),a.jsx("div",{className:"c-small_channel_entity__name",children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{children:__(P,(u==null?void 0:u.users)??[])})})})})})})]})})})})})}),i===K?a.jsx("div",{className:"c-search_autocomplete__suggestion_hint",children:a.jsx("span",{children:a.jsx(Sa,{label:"enter",children:"Enter"})})}):a.jsx("div",{})]},P.id))]}),y&&a.jsxs("div",{role:"group",children:[a.jsxs("li",{className:"c-search_autocomplete__suggestion",role:"option",id:"c-search_autocomplete__suggestion_0","aria-selected":i===0,onMouseEnter:()=>l(0),onMouseDown:P=>P.preventDefault(),onClick:()=>z(0),children:[a.jsx("div",{className:"c-search_autocomplete__suggestion_main",children:a.jsxs("span",{className:"c-search_autocomplete__suggestion_text",children:[a.jsx(aa,{size:16,style:{verticalAlign:-3,marginRight:12}})," Search for ",a.jsx("strong",{children:y})]})}),i===0&&a.jsx("div",{className:"c-search_autocomplete__suggestion_hint",children:a.jsx("span",{children:a.jsx(Sa,{label:"enter",children:"Enter"})})})]}),v.channels.map((P,K)=>{const L=1+K;return a.jsxs("li",{className:"c-search_autocomplete__suggestion",role:"option","aria-selected":i===L,onMouseEnter:()=>l(L),onMouseDown:B=>B.preventDefault(),onClick:()=>z(L),children:[a.jsx("div",{className:"c-search_autocomplete__suggestion_main",children:a.jsxs("div",{className:"c-small_channel_entity","data-qa":"small_channel_entity",children:[a.jsx("div",{className:"c-small_channel_entity__icon",children:a.jsx("span",{children:a.jsx(Wt,{glyph:P.is_private?"lock":"channel",size:16})})}),a.jsx("div",{className:"c-small_channel_entity__name",children:P.name})]})}),i===L&&a.jsx("div",{className:"c-search_autocomplete__suggestion_hint",children:a.jsx("span",{children:a.jsx(Sa,{label:"enter",children:"Enter"})})})]},P.id)}),v.people.map((P,K)=>{var B;const L=1+v.channels.length+K;return a.jsxs("li",{className:"c-search_autocomplete__suggestion",role:"option","aria-selected":i===L,onMouseEnter:()=>l(L),onMouseDown:j=>j.preventDefault(),onClick:()=>z(L),children:[a.jsx("div",{className:"c-search_autocomplete__suggestion_main",children:a.jsxs("div",{className:"c-small_member_entity","data-qa":"small_member_entity",children:[a.jsx(p_,{user:P}),a.jsxs("div",{className:"c-member_entity__names",children:[a.jsx("span",{className:"c-member_entity__primary_name",children:a.jsx("strong",{children:Hr(P)})}),((B=P.profile)==null?void 0:B.display_name)&&a.jsx("span",{className:"c-member_entity__secondary_name",children:P.real_name})]})]})}),i===L&&a.jsx("div",{className:"c-search_autocomplete__suggestion_hint",children:a.jsx("span",{children:a.jsx(Sa,{label:"enter",children:"Enter"})})})]},P.id)})]})]}),!y&&u&&f.length===0&&a.jsx("div",{className:"c-search_autocomplete__empty",children:"Search for messages, files, channels and people."}),a.jsxs("div",{className:"c-search_autocomplete__footer",children:[a.jsx("div",{children:a.jsxs("span",{children:[a.jsxs("span",{className:"c-search_autocomplete__footer_keys",children:[a.jsx(Sa,{label:"up arrow",children:a.jsx(Wt,{glyph:"caret-up",size:13,"data-qa":"caret-up-filled"})}),a.jsx(Sa,{label:"down arrow",children:a.jsx(Wt,{glyph:"caret-down",size:13,"data-qa":"caret-down-filled"})})]}),a.jsx("span",{className:"c-search_autocomplete__footer_label",children:"Select"})]})}),a.jsx("div",{className:"c-search_autocomplete__feedback",children:a.jsx("button",{type:"button",className:"c-link_button",onMouseDown:P=>P.preventDefault(),children:"Give feedback"})})]})]})})]})})}),b&&g&&a.jsx("div",{className:"c-texty_autocomplete_menu__host",style:{left:ie,top:Bx},role:"presentation",children:a.jsx("div",{role:"presentation",children:a.jsxs("div",{className:"c-texty_autocomplete_menu","data-qa":"texty_autocomplete_menu",children:[a.jsxs("div",{className:"c-texty_autocomplete_menu__scroll",children:[a.jsx("ul",{className:"c-texty_autocomplete_menu__list",role:"listbox","aria-label":"Suggestions",children:js.has(g.modifier)?k.map((P,K)=>{var F,M;const L=P.presence==="active",B=u?P.team_id!==((F=u.users.find(X=>X.id===u.self))==null?void 0:F.team_id):!1,j=!!((M=P.profile)!=null&&M.display_name);return a.jsxs("li",{className:"c-tab_complete_ui_item","data-qa":"tab_complete_ui_item",role:"option","aria-selected":i===K,onMouseEnter:()=>l(K),onMouseDown:X=>X.preventDefault(),onClick:()=>z(K),children:[a.jsx("div",{className:"c-tab_complete_ui_item__main",children:a.jsx("div",{className:"c-tab_complete_ui_item__row",children:a.jsxs("div",{className:"c-small_member_entity","data-qa":"small_member_entity",children:[a.jsx(p_,{user:P}),a.jsxs("div",{className:"c-member_entity__names",children:[a.jsxs("span",{className:"c-member_entity__names_inner",children:[a.jsx("span",{className:"c-member_entity__primary_name","data-qa":"member-entity__primary-name",children:a.jsx("span",{children:a.jsxs("strong",{"data-qa":"member_name",children:[Hr(P),P.is_bot&&!P.is_slackbot&&a.jsx("span",{className:"c-member_name__app","data-qa":"member_name__app",children:"APP"}),(u==null?void 0:u.self)===P.id&&a.jsx("span",{className:"c-member_name__you","data-qa":"member_name__you",children:"(you)"})]})})}),a.jsx("span",{className:`c-member_entity__presence${L?" c-member_entity__presence--active":""}`,children:a.jsx(xr,{size:20,"data-qa":"presence_indicator",role:"img","aria-label":L?"Active":"Away"})}),j&&a.jsx("span",{className:"c-member_entity__secondary_name","data-qa":"member-entity__secondary-name",children:a.jsx("span",{children:P.real_name})})]}),B&&a.jsx("span",{className:"c-tab_complete_ui_item__team",children:a.jsx("i",{className:"c-team_icon","data-qa":"team-icon",role:"img","aria-label":P.team_id,children:P.team_id.replace(/^T\d*/,"").charAt(0)||"E"})})]})]})})}),i===K&&a.jsx("div",{className:"c-tab_complete_ui_item__hint",children:a.jsx(Sa,{label:"enter",children:"Enter"})})]},P.id)}):C.map((P,K)=>a.jsxs("li",{className:"c-tab_complete_ui_item","data-qa":"tab_complete_ui_item",role:"option","aria-selected":i===K,onMouseEnter:()=>l(K),onMouseDown:L=>L.preventDefault(),onClick:()=>z(K),children:[a.jsx("div",{className:"c-tab_complete_ui_item__main",children:a.jsx("div",{className:"c-tab_complete_ui_item__row",children:a.jsxs("div",{className:"c-small_channel_entity","data-qa":"small_channel_entity",children:[a.jsx("div",{className:"c-small_channel_entity__icon",children:a.jsx("span",{children:a.jsx(Wt,{glyph:P.is_private?"lock":"channel",size:16})})}),a.jsx("div",{className:"c-small_channel_entity__name",children:P.name})]})})}),i===K&&a.jsx("div",{className:"c-tab_complete_ui_item__hint",children:a.jsx(Sa,{label:"enter",children:"Enter"})})]},P.id))}),u&&x===0&&a.jsx("div",{className:"c-texty_autocomplete_menu__empty",children:"No matches"})]}),a.jsx("div",{className:"c-texty_autocomplete_menu__footer",children:a.jsxs("span",{className:"c-texty_autocomplete_menu__feedback","data-qa":"autocomplete_feedback_help",children:["Something off?"," ",a.jsx("button",{type:"button",className:"c-link_button",onMouseDown:P=>P.preventDefault(),children:"Give feedback"})]})})]})})})]})}function Qx(){if(typeof document>"u")return;const e=window;if(e.__twSearchModal)return;e.__twSearchModal=!0;const t=document.createElement("div");t.className="c-search_modal__host",t.hidden=!0,document.body.appendChild(t);const n=Rm(t);let s=!1,r=0,i=null;const l=()=>{const u=document.querySelector('[data-qa="top_nav_search"]');if(!u)return window.innerWidth/2;const m=u.getBoundingClientRect();return m.left+m.width/2},o=()=>{var h;if(!s)return;s=!1,r=Date.now(),i!==null&&window.clearTimeout(i),i=null,n.render(null),t.hidden=!0;const u=document.activeElement;u&&u.closest('[data-qa="top_nav_search"]')&&u.blur();const m=document.querySelector('[data-qa="message_input"] [data-qa="texty_input"]');m?m.focus():(h=document.querySelector('[data-qa="top_nav_search"]'))==null||h.focus()},c=()=>{s||Date.now()-r<150||(s=!0,Ux(Gh()),i=window.setTimeout(()=>{i=null,t.hidden=!1,n.render(a.jsx(Kx,{onClose:o,anchorLeft:l()}))},lv))};document.addEventListener("click",u=>{const m=u.target;m!=null&&m.closest&&m.closest('[data-qa="top_nav_search"]')&&(u.preventDefault(),u.stopPropagation(),c())},!0),document.addEventListener("focusin",u=>{var h;const m=u.target;(h=m==null?void 0:m.closest)!=null&&h.call(m,'[data-qa="top_nav_search_input"]')&&c()},!0),window.addEventListener("keydown",u=>{(u.metaKey||u.ctrlKey)&&!u.shiftKey&&!u.altKey&&u.key.toLowerCase()==="g"&&(u.preventDefault(),u.stopPropagation(),c())},!0)}Qx();const Gx=Jm-20,Yx=Jm+120,Zx=av/2;function m_({channel:e,threadTs:t,onClose:n,onOpenChannel:s}){const{messages:r,threadsLoaded:i,loadThread:l,pending:o,broadcast:c,setBroadcast:u}=me(),m=Be(),[h,p]=_.useState(null),[g,y]=_.useState(null),[k,C]=_.useState(0),[f,v]=_.useState("column"),[b,x]=_.useState(!1),w=_.useRef(null),S=`${e.id}:${t}`;_.useEffect(()=>{i[S]||(y(null),l(e.id,t).catch(L=>y(L instanceof Error?L.message:"failed")))},[e.id,t,S,i,l,k]),_.useEffect(()=>{v("column"),x(!1);const L=window.setTimeout(()=>v("header"),Gx),B=window.setTimeout(()=>v("content"),Yx);return()=>{window.clearTimeout(L),window.clearTimeout(B)}},[S]);const A=_.useMemo(()=>(r[e.id]??[]).filter(L=>L.ts===t||L.thread_ts===t),[r,e.id,t]),I=A.find(L=>L.ts===t),Q=A.filter(L=>L.ts!==t),z=_.useRef(null),ae=(I==null?void 0:I.reply_count)??0;_.useEffect(()=>{!i[S]||ae<=Q.length||z.current===S||(z.current=S,l(e.id,t).catch(()=>{}))},[i,S,ae,Q.length,l,e.id,t]);const ce=(o[e.id]??[]).filter(L=>L.thread_ts===t),ie=f!=="content"||!i[S]&&!I&&!g,P=m.channelName(e.id)??e.id,K=!!(e.is_im||e.is_mpim);return _.useEffect(()=>{if(ie)return;const L=window.setTimeout(()=>x(!0),Zx),B=window.requestAnimationFrame(()=>{const j=w.current;j&&(j.scrollTop=j.scrollHeight)});return()=>{window.clearTimeout(L),window.cancelAnimationFrame(B)}},[ie,S]),f==="column"?a.jsx("div",{className:"p-flexpane p-threads_flexpane","data-qa":"threads_flexpane","data-qa-thread-ts":t,"data-phase":"column"}):a.jsxs("div",{className:"p-flexpane p-threads_flexpane","data-qa":"threads_flexpane","data-qa-thread-ts":t,"data-phase":f,children:[a.jsx("div",{className:"p-flexpane_header",role:"toolbar","aria-label":"Thread",children:a.jsxs("div",{className:"p-flexpane_header__content",children:[a.jsx("div",{className:"p-flexpane_header__title",children:a.jsxs("div",{className:"p-flexpane_header__title_text","data-qa":"flexpane-title-container",children:["Thread",a.jsx("div",{className:"p-flexpane_header__subtitle","data-qa":"subtitle"})]})}),a.jsx("span",{className:"p-flexpane_header__button_wrap",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium","data-qa":"ai_summary_summarize_thread_button","aria-label":"Summarize thread",children:a.jsx(as,{size:20,"data-qa":"ai-summary"})})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium","data-qa":"secondary-header-more","aria-label":"More channel actions","aria-haspopup":"menu",children:a.jsx(al,{size:20,"data-qa":"ellipsis-vertical-filled"})}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-icon_button--size_medium","data-qa":"close_flexpane","aria-label":"Close",onClick:n,children:a.jsx(ja,{size:20,"data-qa":"close"})})]})}),a.jsxs("div",{className:"p-flexpane__body","data-qa":"flexpane_body",children:[a.jsx("div",{className:"p-flexpane__scroll c-scrollbar",role:"presentation",children:a.jsx("div",{ref:w,className:"c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsxs("div",{className:"c-scrollbar__child",role:"presentation",children:[ie&&a.jsxs("div",{className:"p-threads_flexpane__loading","data-qa":"thread_loading",role:"status",children:[a.jsx(Av,{size:36}),a.jsx("span",{children:"Loading thread…"})]}),g&&a.jsxs("div",{className:"p-threads_flexpane__error",role:"alert","data-qa":"thread_error",children:["Could not load this thread (",g,").",a.jsx("button",{type:"button",className:"c-link",onClick:()=>C(L=>L+1),children:"Retry"})]}),!ie&&!g&&a.jsxs("div",{className:"c-virtual_list__scroll_container","data-qa":"slack_kit_list",role:"list",children:[I&&a.jsx("div",{className:`c-virtual_list__item${b?" p-threads_flexpane__root":""}`,"data-qa":"virtual-list-item","data-item-key":I.ts,role:"listitem",children:a.jsx(dn,{channel:e,message:I,compact:!1,inThread:!0,editing:h===I.ts,onEdit:p,onOpenChannel:s})}),Q.length>0&&a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":`${t}:replies`,role:"listitem",children:a.jsxs("div",{className:"p-threads_flexpane__reply_count","data-qa":"thread_reply_count",children:[a.jsxs("span",{children:[Q.length," ",Q.length===1?"reply":"replies"]}),a.jsx("span",{className:"p-threads_flexpane__reply_line"})]})}),Q.map((L,B)=>{const j=Q[B-1],F=!!(j&&j.user===L.user&&Number(L.ts)-Number(j.ts)<300);return a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":L.ts,role:"listitem",children:a.jsx(dn,{channel:e,message:L,compact:F,inThread:!0,editing:h===L.ts,onEdit:p,onOpenChannel:s})},L.ts)}),ce.map(L=>a.jsx("div",{className:"c-virtual_list__item c-virtual_list__item--pending","data-qa":"virtual-list-item","data-item-key":L.client_msg_id,role:"listitem",children:a.jsx(dn,{channel:e,message:L,compact:!1,inThread:!0,editing:!1,onEdit:()=>{}})},L.client_msg_id)),a.jsx("div",{className:"c-virtual_list__item","data-qa":"virtual-list-item","data-item-key":`${t}:composer`,role:"listitem",children:a.jsx("div",{className:"p-threads_flexpane__footer","data-qa":"reply_container",children:a.jsx(e5,{composerKey:S,channel:e,threadTs:t,target:K?`Also send as direct message to ${P}`:"Also send to",channelName:K?null:P,broadcast:!!c[S],onBroadcast:L=>u(e.id,t,L),onEditLast:()=>{const L=Q.filter(j=>j.user===m.selfId),B=L[L.length-1];B&&p(B.ts)}})})})]})]})})}),a.jsx("div",{className:"p-flexpane__footer_spacer"})]})]})}const Jx=[{qa:"blockquote-composer-button",label:"Blockquote"},{qa:"code-composer-button",label:"Code"},{qa:"code-block-composer-button",label:"Code block"}],Xx=[{qa:"video_composer_button",label:"Record video clip"},{qa:"audio_composer_button",label:"Record audio clip"},{qa:"slash_commands_composer_button",label:"Run shortcut"}],Bl={broadcast:null,format:null,slash:null};function Hl(e,t,n){const s=document.createElement(e);return s.className=t,n&&s.setAttribute("data-qa",n),s}function e5({composerKey:e,channel:t,threadTs:n,target:s,channelName:r,broadcast:i,onBroadcast:l,onEditLast:o}){const c=_.useRef(null),u=_.useRef(Bl),[m,h]=_.useState(Bl),[p,g]=_.useState(null);_.useLayoutEffect(()=>{var S;const C=c.current;if(!C)return;const f={...Bl},v=C.querySelector('[data-qa="message_input"]'),b=(v==null?void 0:v.closest(".c-texty_input_unstyled__container"))??(v==null?void 0:v.parentElement)??null;if(b){const A=u.current.broadcast??Hl("div","p-threads_footer__broadcast_controls","threads_footer_broadcast_controls");b.nextSibling!==A&&b.insertAdjacentElement("afterend",A),f.broadcast=A}const x=C.querySelector(".p-texty_sticky_formatting_bar");if(x){const A=u.current.format??Hl("span","p-threads_flexpane__overflow");x.lastElementChild!==A&&x.appendChild(A),f.format=A}const w=C.querySelector(".c-texty_buttons");if(w){const A=u.current.slash??Hl("div","p-threads_flexpane__overflow p-threads_flexpane__overflow--footer");w.lastElementChild!==A&&w.appendChild(A),f.slash=A}(S=C.querySelector('[data-qa="shortcuts_menu_trigger__Channel"]'))==null||S.setAttribute("data-qa","shortcuts_menu_trigger__Thread"),u.current=f,h(A=>A.broadcast===f.broadcast&&A.format===f.format&&A.slash===f.slash?A:f)}),_.useEffect(()=>{if(!p)return;const C=v=>{var x;const b=v.target;(x=b==null?void 0:b.closest)!=null&&x.call(b,".p-threads_flexpane__overflow")||g(null)},f=v=>{v.key==="Escape"&&g(null)};return document.addEventListener("mousedown",C,!0),document.addEventListener("keydown",f,!0),()=>{document.removeEventListener("mousedown",C,!0),document.removeEventListener("keydown",f,!0)}},[p]),_.useEffect(()=>g(null),[e]);const y=(C,f,v,b,x)=>a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:v,"data-qa":f,"aria-label":b,"aria-haspopup":"menu","aria-expanded":p===C,onMouseDown:w=>w.preventDefault(),onClick:()=>g(w=>w===C?null:C),children:a.jsx(Wt,{glyph:"ellipsis",size:18,"data-qa":"ellipsis-horizontal-filled"})}),p===C&&a.jsx("div",{className:`c-menu p-threads_flexpane__overflow_menu p-threads_flexpane__overflow_menu--${C}`,role:"menu","aria-label":b,children:x.map(w=>a.jsx("button",{type:"button",role:"menuitem",className:"c-menu__item",onMouseDown:S=>S.preventDefault(),onClick:()=>{var S,A;g(null),(A=(S=c.current)==null?void 0:S.querySelector(`[data-qa="${w.qa}"]`))==null||A.click()},children:w.label},w.qa))})]}),k=a.jsxs("label",{className:"c-label c-label--inline",children:[a.jsx("span",{className:"c-label__text",children:a.jsxs("span",{children:[s,r&&a.jsxs(a.Fragment,{children:[" ",a.jsx("span",{className:"c-inline_channel_entity","data-qa":"inline_channel_entity",children:a.jsxs("span",{children:[a.jsx("span",{className:"c-inline_channel_entity__icon",children:a.jsx(Wt,{glyph:"channel",size:12,"data-qa":"channel"})}),a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{className:"c-inline_channel_entity__name","data-qa":"inline_channel_entity__name",children:r})})})]})})]})]})}),a.jsx("span",{className:"c-label__checkbox",children:a.jsx("input",{type:"checkbox",className:"c-input_checkbox","data-qa":"threads_footer_broadcast_checkbox",checked:i,onChange:C=>l(C.target.checked)})})]});return a.jsxs("div",{ref:c,className:"p-threads_flexpane__composer",children:[a.jsx(Di,{channel:t,threadTs:n,placeholder:"Reply…",onEditLast:o},`thread-${e}`),m.broadcast&&$t.createPortal(k,m.broadcast),m.format&&$t.createPortal(y("format","overflow-composer-button","c-button-unstyled c-icon_button c-icon_button--size_smedium p-composer__button","More formatting options",Jx),m.format),m.slash&&$t.createPortal(y("slash","slash_commands_overflow_button","c-button-unstyled c-icon_button c-icon_button--size_smedium c-wysiwyg_container__button","More composer actions",Xx),m.slash)]})}const h_=[{id:"messages",label:"Messages"},{id:"files",label:"Files"},{id:"channels",label:"Channels"},{id:"people",label:"People"}],t5=/^(from|to|in|with|has|is|before|after|on|during):/;function a5(e){return e.toLowerCase().split(/\s+/).filter(t=>t&&!t5.test(t))}function n5(e,t=new Date){const n=bn(e),s=u=>new Date(u.getFullYear(),u.getMonth(),u.getDate()).getTime(),r=Math.round((s(t)-s(n))/864e5);if(r===0)return`Today at ${pa(e)}`;if(r===1)return`Yesterday at ${pa(e)}`;const i=n.getDate(),l=i%10===1&&i!==11?"st":i%10===2&&i!==12?"nd":i%10===3&&i!==13?"rd":"th",o=n.toLocaleString("en-US",{month:"short"}),c=n.getFullYear()===t.getFullYear()?"":`, ${n.getFullYear()}`;return`${o} ${i}${l}${c} at ${pa(e)}`}function s5(e,t){if(t.length===0)return e;const n=new RegExp(`(${t.map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|")})`,"gi");return e.split(n).map((s,r)=>r%2===1?a.jsx("span",{className:"c-mrkdwn__highlight",children:s},r):s)}function r5({query:e,onOpen:t}){var b;Be();const{channels:n,users:s}=me(),[r,i]=_.useState("messages"),[l,o]=_.useState(!1),[c,u]=_.useState(null),[m,h]=_.useState(0),[p,g]=_.useState(null);_.useEffect(()=>{let x=!1;if(u(null),g(null),!e.trim()){u([]),h(0);return}return ge.search(e).then(w=>{x||(u(w.messages.matches),h(w.messages.total))}).catch(w=>!x&&g(w instanceof Error?w.message:"failed")),()=>{x=!0}},[e]);const y=_.useMemo(()=>a5(e),[e]),k=_.useMemo(()=>Object.values(n).filter(x=>!x.is_im&&!x.is_mpim&&y.some(w=>(x.name??"").toLowerCase().includes(w))),[n,y]),C=_.useMemo(()=>Object.values(s).filter(x=>y.some(w=>(x.real_name??"").toLowerCase().includes(w)||x.name.toLowerCase().includes(w))),[s,y]),f=r==="messages"?c?m:null:r==="channels"?k.length:r==="people"?C.length:c?0:null,v=((b=h_.find(x=>x.id===r))==null?void 0:b.label)??"Messages";return a.jsxs("div",{className:"p-client_workspace__layout p-search_page","data-qa":"search_view",role:"main","aria-label":`Search results for ${e}`,children:[a.jsx("div",{className:"p-search_page__header",children:a.jsxs("div",{className:"p-search_page__header_content",children:[a.jsx("div",{className:"p-search_page__title",children:a.jsxs("span",{className:"c-truncate c-truncate--break_words",children:["Results for: ",a.jsx("b",{className:"p-search_page__title_query","data-qa":"search_query_label",children:e})]})}),a.jsx("span",{className:"p-search_page__feedback","data-qa":"combined-feedback-link",children:a.jsx("button",{type:"button",className:"c-link--button","data-twin-unverified":"true",children:"Give feedback"})})]})}),a.jsx("div",{className:"p-search_page__content",children:a.jsxs("div",{className:"p-search_page__container",children:[a.jsxs("div",{className:"p-search_page__filters","data-qa":"search_filters",children:[a.jsxs("div",{className:"p-search_page__filter_group",children:[a.jsxs("div",{className:"p-search_filter__block_item_wrapper p-search_page__kind_wrapper",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-search_page__kind","data-qa":"search-sources-filter-trigger-button","aria-haspopup":"menu","aria-expanded":l,onClick:()=>o(x=>!x),children:[a.jsx(i5,{}),a.jsx("span",{className:"p-search_page__kind_label",children:v}),a.jsx("span",{className:"p-search_page__caret","data-qa":"filter-button-caret-down",children:a.jsx(Ie,{size:16,"data-qa":"caret-down"})})]}),l&&a.jsx("div",{className:"c-menu p-search_page__kind_menu",role:"menu","data-qa":"search_kind_menu",children:h_.map(x=>a.jsx("button",{type:"button",role:"menuitemradio","aria-checked":r===x.id,className:"c-menu_item__button","data-qa":`search_tab_${x.id}`,onClick:()=>{i(x.id),o(!1)},children:a.jsx("span",{className:"c-menu_item__label",children:x.label})},x.id))})]}),a.jsx(Vr,{qa:"search-filters-from-filter_trigger",caret:!0,children:"From"}),a.jsx(Vr,{qa:"search-filters-in-filter_trigger",caret:!0,children:"In"}),a.jsx(Vr,{children:"Only my channels"}),a.jsx(Vr,{children:"Exclude automations"}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-search_page__filters_link","data-twin-unverified":"true",children:[a.jsx("span",{className:"p-search_filter__filters_link_icon",children:a.jsx(Wt,{glyph:"filters",size:18,"data-qa":"refine"})}),"Filters"]})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-search_page__sort","data-qa":"message_sort_toggle-button","data-twin-unverified":"true",children:[a.jsx("span",{className:"p-search_page__sort_label",children:"Sort: Most relevant (default)"}),a.jsx("span",{className:"p-search_page__caret","data-qa":"filter-button-caret-down",children:a.jsx(Ie,{size:16,"data-qa":"caret-down"})})]})]}),a.jsx("div",{className:"p-search_page__count","data-qa":"search_result_count",children:p?`Search failed (${p}).`:f===null?"Searching…":`${f} ${f===1?"result":"results"}`}),a.jsxs("div",{className:"p-search_page__list","data-qa":"search_results",children:[r==="messages"&&(c==null?void 0:c.map(x=>a.jsx(l5,{match:x,terms:y,onOpen:t},x.iid))),r==="messages"&&c&&c.length===0&&a.jsx(Ur,{query:e,noun:"messages"}),r==="files"&&c&&a.jsx(Ur,{query:e,noun:"files"}),r==="channels"&&k.map(x=>a.jsxs("button",{type:"button",className:"p-search_page__card p-search_page__entity","data-qa":"search_channel_result","data-channel-id":x.id,onClick:()=>t(x.id),children:[a.jsx(Wt,{glyph:x.is_private?"lock":"channel",size:16}),a.jsxs("span",{children:[a.jsx("strong",{children:x.name}),x.num_members!==void 0&&a.jsxs("span",{className:"c-search_entity_row__sub",children:[x.num_members," members"]})]})]},x.id)),r==="channels"&&k.length===0&&a.jsx(Ur,{query:e,noun:"channels"}),r==="people"&&C.map(x=>{var w;return a.jsxs("button",{type:"button",className:"p-search_page__card p-search_page__entity","data-qa":"search_person_result","data-user-id":x.id,onClick:()=>{const S=Object.values(n).find(A=>A.is_im&&A.user===x.id);S&&t(S.id)},children:[a.jsx(Oe,{userId:x.id,size:36}),a.jsxs("span",{children:[a.jsx("strong",{children:x.real_name??x.name}),((w=x.profile)==null?void 0:w.title)&&a.jsx("span",{className:"c-search_entity_row__sub",children:x.profile.title})]})]},x.id)}),r==="people"&&C.length===0&&a.jsx(Ur,{query:e,noun:"people"})]})]})})]})}function Ur({query:e,noun:t}){return a.jsxs("div",{className:"p-search_page__empty","data-qa":"search_empty_state",children:["No ",t," match “",e,"”."]})}function Vr({children:e,qa:t,caret:n=!1}){return a.jsx("div",{className:"p-search_filter__block_item_wrapper",children:a.jsx("button",{type:"button",className:`c-button c-button--outline c-button--small p-search_page__pill${n?" p-search_page__pill--caret":""}`,"data-qa":t,"data-twin-unverified":"true",children:a.jsxs("div",{className:"c-filter-pill__content",children:[a.jsx("span",{className:"p-search_filter__block_label_wrapper",children:e}),n&&a.jsx("div",{className:"p-search_filter__block_item_dropdown_icon",children:a.jsx(Ie,{size:16,"data-qa":"caret-down"})})]})})})}function i5(){return a.jsxs("svg",{className:"p-search_page__kind_icon",viewBox:"0 0 20 20",width:15,height:15,"aria-hidden":"true",children:[a.jsx("path",{fill:"#e01e5a",d:"M4.2 12.6a2.1 2.1 0 1 1-2.1-2.1h2.1zm1 0a2.1 2.1 0 0 1 4.2 0v5.3a2.1 2.1 0 0 1-4.2 0z"}),a.jsx("path",{fill:"#36c5f0",d:"M7.4 4.2a2.1 2.1 0 1 1 2.1-2.1v2.1zm0 1a2.1 2.1 0 0 1 0 4.2H2.1a2.1 2.1 0 0 1 0-4.2z"}),a.jsx("path",{fill:"#2eb67d",d:"M15.8 7.4a2.1 2.1 0 1 1 2.1 2.1h-2.1zm-1 0a2.1 2.1 0 0 1-4.2 0V2.1a2.1 2.1 0 0 1 4.2 0z"}),a.jsx("path",{fill:"#ecb22e",d:"M12.6 15.8a2.1 2.1 0 1 1-2.1 2.1v-2.1zm0-1a2.1 2.1 0 0 1 0-4.2h5.3a2.1 2.1 0 0 1 0 4.2z"})]})}function l5({match:e,terms:t,onOpen:n}){const s=Be(),{channels:r,me:i}=me(),l=r[e.channel.id],o=e.reply_count??0,c=e.thread_ts&&e.thread_ts!==e.ts?e.thread_ts:o>0?e.ts:void 0,u=()=>n(e.channel.id,c),m=tx(e.text,s);let h;if(e.channel.is_im){const p=l==null?void 0:l.user;h=p&&p!==i?`Direct Message with ${s.realName(p)}`:"Direct Message with you"}else h=a.jsxs("span",{className:"c-inline_channel_entity","data-qa":"inline_channel_entity",children:[a.jsx("span",{className:"c-inline_channel_icon",children:a.jsx(Wt,{glyph:e.channel.is_private?"lock":"channel",size:13,"data-qa":e.channel.is_private?"lock-filled":"channel"})}),a.jsx("span",{className:"c-channel_entity__name","data-qa":"inline_channel_entity__name",children:e.channel.name||s.channelName(e.channel.id)})]});return a.jsx("div",{className:"p-search_page__card p-search_page__message","data-qa":"search_message_result","data-channel-id":e.channel.id,"data-ts":e.ts,children:a.jsxs("div",{className:"c-search_message c-search_message--light","data-qa":"search_result",role:"button",tabIndex:0,onClick:u,onKeyDown:p=>p.key==="Enter"&&u(),children:[a.jsx("div",{className:"c-search_message__gutter",children:a.jsx(Oe,{userId:e.user,size:36,className:"c-search_message__avatar"})}),a.jsxs("div",{className:"c-search_message__content",children:[a.jsxs("div",{className:"c-search_message__content_header","data-qa":"search_message_header",children:[a.jsxs("div",{className:"c-search_message__header_left",children:[a.jsx("span",{className:"c-message__sender","data-qa":"message_sender",children:s.realName(e.user??"")}),a.jsx("span",{className:"c-message_group__header_name","data-qa":"search_result_channel_name",children:h})]}),a.jsx("span",{className:"c-search_message__header_right_timestamps",children:a.jsx("span",{className:"c-timestamp c-timestamp--static",children:a.jsx("span",{className:"c-timestamp__label","data-qa":"timestamp_label",children:n5(e.ts)})})})]}),a.jsx("div",{className:"c-message__message_blocks c-search_message__text","data-qa":"message-text",children:s5(m,t)}),o>0&&a.jsxs("div",{className:"c-message__reply_bar c-message_kit__thread_replies","data-qa":"reply_bar","data-qa-reply-count":o,children:[(e.reply_users??[]).slice(0,3).map(p=>a.jsx(Oe,{userId:p,size:24,className:"c-message__reply_bar_avatar"},p)),a.jsxs("button",{type:"button",className:"c-link--button c-link--underline-inherit c-message__reply_count","data-qa":"reply_bar_count",tabIndex:-1,children:[o," ",o===1?"reply":"replies"]}),a.jsxs("div",{className:"c-message__reply_bar_description",children:[a.jsx("span",{className:"c-message__reply_bar_last_reply","data-qa":"reply_bar_last_reply",children:Dh(e.latest_reply??e.ts,o)}),a.jsx("span",{className:"c-message__reply_bar_view_thread","data-qa":"reply_bar_view_thread",children:"View thread"})]}),a.jsx("div",{className:"c-message__reply_bar_arrow",children:a.jsx(ud,{size:18,"data-qa":"caret-right"})})]})]})]})})}const o5=4,f_="c-search_autocomplete__recent_places_label";function ic(e,t){if(!t)return[];const n=e.toLowerCase(),s=[];let r=0;for(const i of t){const l=n.indexOf(i,r);if(l<0)return null;s.push(l),r=l+1}return s}function Ul({text:e,needle:t}){const n=t?e.toLowerCase().indexOf(t.toLowerCase()):-1;if(n>=0)return a.jsxs(a.Fragment,{children:[e.slice(0,n),a.jsx("span",{className:"p-omniswitcher__autocomplete__match",children:e.slice(n,n+t.length)}),e.slice(n+t.length)]});const s=ic(e,t.toLowerCase());if(!s||s.length===0)return a.jsx(a.Fragment,{children:e});const r=new Set(s);return a.jsx(a.Fragment,{children:Array.from(e).map((i,l)=>r.has(l)?a.jsx("span",{className:"p-omniswitcher__autocomplete__match",children:i},l):i)})}function g_({direction:e}){return a.jsx("svg",{viewBox:"0 0 20 20",width:13,height:13,"aria-hidden":"true","data-qa":`caret-${e}-filled`,style:xe(13),children:a.jsx("path",{fill:"currentColor",d:e==="up"?"M10 6 4.5 13h11z":"M10 14 4.5 7h11z"})})}function c5(){return a.jsx("svg",{viewBox:"0 0 20 20",width:20,height:20,"aria-hidden":"true","data-qa":"refine",style:xe(20),children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 4.5a.75.75 0 0 0 0 1.5h15.5a.75.75 0 0 0 0-1.5zm2.5 4.75a.75.75 0 0 1 .75-.75h9a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1-.75-.75m3.25 4.5a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z"})})}function d5({order:e,onClose:t,onSelect:n}){const{channels:s,users:r,me:i,openDm:l,join:o}=me(),c=Be(),u=Mh(r),[m,h]=_.useState(""),[p,g]=_.useState(0),[y,k]=_.useState(!0),C=_.useRef(null);_.useEffect(()=>{var z;return(z=C.current)==null?void 0:z.focus()},[]);const f=m.trim().replace(/^[#@]/,""),v=f.toLowerCase(),b=_.useMemo(()=>{const z=B=>{const j=s[B];return j?{kind:"channel",id:B,label:c.channelName(B)??j.name??B,channel:j}:null};if(!v){const B=new Set,j=[],[F,...M]=Sb();for(const X of[...M,...e]){if(B.has(X)||X===F||j.length>=o5)continue;const oe=z(X);oe&&(B.add(X),j.push(oe))}return j}const ae=Object.values(s).filter(B=>!B.is_archived&&!B.is_im),ce=B=>B.toLowerCase().split(/[-_ ]/).some(j=>j.startsWith(v)),ie=ae.map(B=>({c:B,label:c.channelName(B.id)??B.name??B.id})).filter(({label:B})=>ce(B)).sort((B,j)=>B.label.toLowerCase().indexOf(v)-j.label.toLowerCase().indexOf(v)||B.label.localeCompare(j.label)).map(({c:B,label:j})=>({kind:"channel",id:B.id,label:j,channel:B})),P=Object.values(r).filter(B=>B.id!==i&&!B.is_bot&&!B.is_slackbot&&!B.deleted).filter(B=>ic(B.real_name,v)||B.name.toLowerCase().includes(v)).sort((B,j)=>+!B.real_name.toLowerCase().includes(v)-+!j.real_name.toLowerCase().includes(v)).map(B=>({kind:"user",id:B.id,label:B.real_name,user:B})),K=Object.values(r).filter(B=>B.is_bot&&!B.is_slackbot&&ic(B.real_name,v)).map(B=>({kind:"app",id:B.id,label:B.real_name,user:B})),L={kind:"query",id:`query:${f}`,label:f};return[...ie,L,...P,...K].slice(0,10)},[s,r,i,c,e,v,f]);_.useEffect(()=>g(0),[v]);const x=z=>{if(z.kind==="query"){t();return}if(z.kind==="channel"){!z.channel.is_member&&z.channel.is_channel&&!z.channel.is_private?o(z.id).then(()=>n(z.id)):n(z.id);return}if(z.kind==="user"){l([z.id]).then(ae=>n(ae.id));return}t()},w=z=>g(ae=>b.length?(ae+z+b.length)%b.length:0),S=(z,ae)=>{const ce=z.presence==="active",ie=z.is_stranger?u[z.team_id]:void 0;return a.jsxs("div",{className:"p-omniswitcher__autocomplete__entity p-omniswitcher__member","data-qa":"small_member_entity",children:[a.jsx("span",{className:"p-omniswitcher__member__avatar","data-qa":"member-entity__avatar",children:a.jsxs("span",{className:"c-avatar","data-user-id":z.id,children:[a.jsx("span",{className:"c-base_icon__width_only_container",style:z.color?{background:`#${z.color}`}:void 0,children:z.profile.image_72&&a.jsx("img",{className:"c-base_icon c-base_icon--image",src:nt(z.profile.image_72),alt:"",width:24,height:24,loading:"lazy"})}),ae==="user"&&a.jsx("span",{className:`c-avatar__presence c-presence ${ce?"c-presence--active":"c-presence--away"}`,children:a.jsx(fd,{active:ce,size:18})})]})}),a.jsxs("div",{className:"p-omniswitcher__autocomplete__entity_name",children:[a.jsx("span",{className:"p-omniswitcher__member__primary_name","data-qa":"member-entity__primary-name",children:a.jsxs("span",{className:"p-omniswitcher__member__name","data-qa":"member_name",children:[a.jsx(Ul,{text:z.real_name,needle:f}),z.id===i&&a.jsx("span",{className:"p-omniswitcher__member__you","data-qa":"member_name__you",children:"(you)"})]})}),ae==="user"?a.jsx("span",{className:"p-omniswitcher__member__secondary_name","data-qa":"member-entity__secondary-name",children:a.jsx("span",{children:z.real_name})}):a.jsx("span",{className:"p-omniswitcher__autocomplete__entity_kind",children:a.jsx("span",{className:"p-omniswitcher__member__secondary_name",children:"App"})}),ie&&a.jsx("i",{className:"p-omniswitcher__autocomplete__team_icon c-team_icon","data-qa":"team-icon",role:"img","aria-hidden":"false","aria-label":ie,children:ie.charAt(0)})]})]})},A=z=>{switch(z.kind){case"channel":{const ae=z.channel;if(ae.is_im){const ce=r[ae.user??""];if(ce)return S(ce,ce.is_bot?"app":"user")}return ae.is_mpim?a.jsxs("div",{className:"p-omniswitcher__autocomplete__entity","data-qa":"small_channel_entity",children:[a.jsx("div",{className:"p-omniswitcher__autocomplete__entity_icon_box",children:a.jsx("span",{children:a.jsx(cr,{size:16,"data-qa":"channel",style:xe(16)})})}),a.jsx("div",{className:"p-omniswitcher__autocomplete__entity_name",children:a.jsx("span",{className:"p-omniswitcher__autocomplete__channel_name",children:a.jsx(Ul,{text:z.label,needle:f})})})]}):a.jsxs("div",{className:"p-omniswitcher__autocomplete__entity","data-qa":"small_channel_entity",children:[a.jsx("div",{className:"p-omniswitcher__autocomplete__entity_icon_box",children:a.jsx("span",{children:a.jsx(dr,{kind:ae.is_private||ae.is_ext_shared?"lock":"channel",qa:"channel"})})}),a.jsx("div",{className:"p-omniswitcher__autocomplete__entity_name",children:a.jsx("span",{className:"p-omniswitcher__autocomplete__channel_name",children:a.jsx(Ul,{text:z.label,needle:f})})})]})}case"query":return a.jsxs("div",{className:"p-omniswitcher__autocomplete__entity p-omniswitcher__autocomplete__entity--query",children:[a.jsx("span",{className:"p-omniswitcher__autocomplete__entity_icon",children:a.jsx(aa,{size:18,"data-qa":"entity-icon",style:xe(18)})}),a.jsx("span",{className:"p-omniswitcher__autocomplete__entity_name","data-qa":"search-query-entity-text-content",children:a.jsxs("span",{className:"p-omniswitcher__autocomplete__query_text",children:["Show results for: ",a.jsx("span",{className:"p-omniswitcher__autocomplete__match",children:z.label})]})})]});case"user":case"app":return S(z.user,z.kind)}},I=z=>{if(z.kind==="query")return`Search for: ${z.label}`;const ae=(ce,ie)=>{const P=ce.is_stranger?u[ce.team_id]:void 0,K=ie?" (app)":P?` (${P})`:"";return`${ce.real_name}${K}, Direct Message`};if(z.kind==="user")return ae(z.user,!1);if(z.kind==="app")return ae(z.user,!0);if(z.channel.is_im){const ce=r[z.channel.user??""];if(ce)return ae(ce,!!ce.is_bot)}return z.label},Q=!v;return a.jsx("div",{className:"p-omniswitcher",onMouseDown:t,children:a.jsx("div",{className:"p-omniswitcher__dialog",role:"dialog","aria-modal":"true","aria-label":"Search",onMouseDown:z=>z.stopPropagation(),children:a.jsx("div",{className:"p-omniswitcher__content",role:"presentation",children:a.jsxs("div",{className:"p-omniswitcher__inner",children:[a.jsxs("div",{className:"p-omniswitcher__header",children:[a.jsx("div",{className:"p-search_input_floating","data-qa":"floating_omniswitcher_input",children:a.jsx("div",{className:"p-omniswitcher__input_box","data-qa":"search_input_box",role:"presentation",children:a.jsx("div",{className:"p-omniswitcher__input_box__inner",children:a.jsxs("div",{className:"p-omniswitcher__input_box__input_wrap",children:[a.jsx("div",{className:"p-omniswitcher__input_box__icon",children:a.jsx(aa,{size:20,"data-qa":"search",style:xe(20)})}),a.jsx("div",{className:"p-search_input__focusable_wrap",children:a.jsx("div",{className:"p-search_input__focusable","data-qa":"focusable_search_input",children:a.jsx("div",{className:"ql-container","data-qa":"texty_input",role:"combobox","aria-label":"Query","aria-multiline":"false","aria-controls":"c-search_autocomplete__suggestion_list","aria-expanded":"true","aria-autocomplete":"list",children:a.jsx("input",{ref:C,className:"p-omniswitcher__input_box__field",placeholder:"Search across people, channels, files, workflows, and more","aria-label":"Search",autoComplete:"off",spellCheck:!1,value:m,onChange:z=>h(z.target.value),onKeyDown:z=>{z.key==="ArrowDown"?(z.preventDefault(),w(1)):z.key==="ArrowUp"?(z.preventDefault(),w(-1)):z.key==="Enter"&&b[p]&&(z.preventDefault(),x(b[p]))}})})})}),m&&a.jsx("button",{type:"button",className:"c-button-unstyled p-omniswitcher__input_box__clear","data-qa":"search_input_clear",onClick:()=>{var z;h(""),(z=C.current)==null||z.focus()},children:"Clear"})]})})})}),a.jsxs("div",{className:"p-omniswitcher__controls",children:[a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button","data-qa":"search_filter_button","aria-label":"Show filters",children:a.jsx(c5,{})}),a.jsx("div",{className:"p-omniswitcher__history",children:a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button","data-qa":"search_input_history","aria-label":"Show search history",children:a.jsx(vr,{size:16,"data-qa":"clock",style:xe(16)})})})]})]}),a.jsx("div",{className:"p-omniswitcher__autocomplete","data-qa":"search_autocomplete",children:a.jsxs("div",{className:"p-omniswitcher__autocomplete__body",children:[Q&&y&&a.jsxs("div",{className:"p-omniswitcher__autocomplete__ai_banner",role:"status",children:[a.jsxs("span",{className:"p-omniswitcher__autocomplete__ai_banner_body",children:[a.jsx("div",{className:"p-omniswitcher__autocomplete__ai_banner_icon",children:a.jsx(as,{size:20,"data-qa":"ai-search",style:xe(20)})}),a.jsxs("div",{className:"p-omniswitcher__autocomplete__ai_banner_text",children:[a.jsx("span",{className:"p-omniswitcher__autocomplete__ai_banner_title",children:"Try AI search"}),a.jsx("span",{className:"p-omniswitcher__autocomplete__ai_banner_hint",children:"Ask a question like “What did I accomplish this week?”"})]})]}),a.jsx("div",{className:"p-omniswitcher__autocomplete__ai_banner_close","data-qa":"alert_close_btn",children:a.jsx("button",{type:"button",className:"c-button-unstyled","data-qa":"unstyled-button","aria-label":"Dismiss",onClick:()=>k(!1),children:a.jsx(ja,{size:18,"data-qa":"close",style:xe(18)})})})]}),a.jsxs("ol",{className:`p-omniswitcher__autocomplete__list${Q?"":" p-omniswitcher__autocomplete__list--results"}`,role:"listbox","aria-label":"Suggestions",children:[a.jsxs("div",{className:"p-omniswitcher__autocomplete__group",role:"group","aria-labelledby":Q?f_:void 0,children:[Q&&a.jsx("li",{className:"p-omniswitcher__autocomplete__heading",role:"presentation",children:a.jsx("div",{role:"heading","aria-level":2,children:a.jsx("span",{children:a.jsx("span",{id:f_,children:"Recent places"})})})}),b.map((z,ae)=>a.jsxs("li",{role:"option","aria-selected":"false","aria-label":I(z),className:`p-omniswitcher__autocomplete__option${ae===p?" p-omniswitcher__autocomplete__option--selected":""}`,"data-id":z.id,onMouseEnter:()=>g(ae),onClick:()=>x(z),children:[a.jsx("div",{className:"p-omniswitcher__autocomplete__option_body",children:A(z)}),ae===p&&a.jsx("div",{className:"p-omniswitcher__autocomplete__option_hint",children:a.jsx("span",{children:a.jsx("div",{className:"p-omniswitcher__autocomplete__enter_hint",role:"img","aria-hidden":"true","aria-label":"enter",children:"Enter"})})})]},z.id))]}),!Q&&a.jsxs("li",{className:"p-omniswitcher__autocomplete__see_more",role:"option","aria-selected":"false",children:[a.jsx("span",{className:"p-omniswitcher__autocomplete__see_more_label",children:"See more results for:"}),a.jsxs("span",{className:"p-omniswitcher__autocomplete__see_more_tabs",role:"group","aria-label":"Search result tabs",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-omniswitcher__autocomplete__escape_hatch","data-qa":"omniswitcher-srp-escape-hatch-channels",children:[a.jsx(dr,{kind:"channel",size:12,em:16,qa:"channel"}),a.jsx("span",{children:"Channels"})]}),a.jsx("span",{className:"p-omniswitcher__autocomplete__see_more_dot","aria-hidden":"true",children:"·"}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-omniswitcher__autocomplete__escape_hatch","data-qa":"omniswitcher-srp-escape-hatch-dms",children:[a.jsx(cr,{size:12,"data-qa":"direct-messages",style:xe(16)}),a.jsx("span",{children:"DMs"})]}),a.jsx("span",{className:"p-omniswitcher__autocomplete__see_more_dot","aria-hidden":"true",children:"·"}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-omniswitcher__autocomplete__escape_hatch","data-qa":"omniswitcher-srp-escape-hatch-files",children:[a.jsx(or,{size:12,"data-qa":"files",style:xe(16)}),a.jsx("span",{children:"Files"})]}),a.jsx("span",{className:"p-omniswitcher__autocomplete__see_more_dot","aria-hidden":"true",children:"·"}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-omniswitcher__autocomplete__escape_hatch","data-qa":"omniswitcher-srp-escape-hatch-people",children:[a.jsx(Fs,{size:12,"data-qa":"user",style:xe(16)}),a.jsx("span",{children:"People"})]})]})]})]}),b.length===0&&!Q&&a.jsx("div",{className:"p-omniswitcher__autocomplete__empty",children:"No matches"}),a.jsx("div",{className:"p-omniswitcher__autocomplete__footer",children:a.jsxs("div",{className:"p-omniswitcher__autocomplete__footer_keys",children:[a.jsxs("span",{className:"p-omniswitcher__autocomplete__keycaps",children:[a.jsx("div",{className:"p-omniswitcher__autocomplete__keycap",role:"img","aria-hidden":"false","aria-label":"up arrow",children:a.jsx(g_,{direction:"up"})}),a.jsx("div",{className:"p-omniswitcher__autocomplete__keycap",role:"img","aria-hidden":"false","aria-label":"down arrow",children:a.jsx(g_,{direction:"down"})})]}),a.jsx("span",{className:"p-omniswitcher__autocomplete__footer_label",children:"Select"})]})})]})}),a.jsx("div",{className:"p-omniswitcher__autocomplete__feedback",children:a.jsx("button",{type:"button",className:"c-button-unstyled",children:"Give feedback"})})]})})})})}const u5={"add-channel-canvas":sh,"add-reaction":Xo,"ai-agents":dd,"ai-sparkle":as,"arrow-right":rh,buildings:ih,"canvas-browser":or,"canvas-content":or,"channel-search":aa,call_icon_chevron_down:Ie,"caret-down":Ie,"caret-right":ud,"channel-filled":_d,clock:vr,close:ja,comment:tc,"direct-messages":cr,"ellipsis-vertical-filled":al,headphones:br,help:ch,home:dh,mentions:uh,message:tc,moon:_h,"move-to-split-view":ph,notifications:mh,"notifications-all-new-posts":hh,plus:Wa,"plus-filled":fh,presence_indicator:xr,send:gh,settings:yr,star:md,threads:hd,user:Fs,"user-add":Fs,"user-filled":Fs,"user-directory":vh,video:bh},_5={info:"M10 2.75a7.25 7.25 0 1 1 0 14.5 7.25 7.25 0 0 1 0-14.5Zm0 6v5M10 6.5v.01",refine:"M3 5h14M5.5 10h9M8 15h4",filters:"M3 5h14M5.5 10h9M8 15h4","status-member-filled":"M10 3a3.25 3.25 0 1 1 0 6.5A3.25 3.25 0 0 1 10 3Zm-6 14a6 6 0 0 1 12 0Z","share-message":"M11 4l6 5.5-6 5.5V11.5C7 11.5 4.5 13 3 16.5 3 10.5 6 7.5 11 7.5V4Z","arrow-up":"M10 16V4m0 0-5 5m5-5 5 5","arrow-down":"M10 4v12m0 0-5-5m5 5 5-5",table:"M3 4.5h14v11H3Zm0 3.5h14M8 8v7.5M13 8v7.5",menu:"M3 5.5h14M3 10h14M3 14.5h14",reorder:"M4 7h12M4 13h12",download:"M10 3v9m0 0-3.5-3.5M10 12l3.5-3.5M3.5 14.5V16a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-1.5",bookmark:"M5.5 3h9v14L10 13.5 5.5 17V3Z","mark-as-unread":"M3 5.5h14v10H3Zm0 0 7 5 7-5",menu_item_link_indicator:"M11.5 4H16v4.5M16 4l-7 7M14 11.5V15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3.5",play:"M6.5 4.5v11L15 10 6.5 4.5Z",lock:"M6 9V6.5a4 4 0 0 1 8 0V9M4.5 9h11v8h-11Z",vip:"M3 8l3.5 3L10 4l3.5 7L17 8l-1.5 8h-11L3 8Z",laptop:"M4 5h12v8H4Zm-2 10h16","navigation-tabs-vertical":"M3 4h14v12H3Zm5 0v12","sun-filled":"M10 6.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0-4v2m0 11v2m7.5-7.5h-2m-11 0h-2m12.8-5.3-1.4 1.4M5.1 14.9l-1.4 1.4m0-12.6 1.4 1.4m9.8 9.8 1.4 1.4",paintbrush:"M15.5 3.5 8 11m-2 1.5c-1.5 0-2.5 1.2-2.5 3 0 .7-.4 1.2-1 1.5 2.5.5 5-.5 5-2.5 0-1-.6-2-1.5-2Z",pin:"M8 3h4l.5 5 2.5 2.5v1.5H5V10.5L7.5 8 8 3Zm2 9v5",globe:"M10 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14Zm-7 7h14M10 3c2 2 3 4.5 3 7s-1 5-3 7c-2-2-3-4.5-3-7s1-5 3-7Z","email-invite":"M3 5.5h14v9H3Zm0 0 7 5 7-5","check-circle":"M10 3a7 7 0 1 1 0 14 7 7 0 0 1 0-14Zm-3 7 2 2 4-4.5","user-groups":"M7 4.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm6 1a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM2.5 16a4.5 4.5 0 0 1 9 0Zm9.5-1a3.5 3.5 0 0 1 5.5-2.5",bolt:"M11 2.5 4.5 11h5l-.5 6.5L15.5 9h-5l.5-6.5Z",apps:"M3.5 3.5h5v5h-5Zm8 0h5v5h-5Zm-8 8h5v5h-5Zm8 0h5v5h-5Z",plug:"M7 3v4m6-4v4M5 7h10v3a5 5 0 0 1-10 0V7Zm5 8v2.5","sf-cloud":"M6 15.5a3.5 3.5 0 0 1-.5-7 4.5 4.5 0 0 1 8.6-1 3.5 3.5 0 0 1 .4 8H6Z",lists:"M4 5.5h.01M7 5.5h10M4 10h.01M7 10h10M4 14.5h.01M7 14.5h10"},p5="M5 4h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z";function te({name:e,size:t=20,className:n}){const s=u5[e];return s?a.jsx(s,{"data-qa":e,size:t,className:n}):a.jsx("svg",{"data-qa":e,"aria-hidden":"true",viewBox:"0 0 20 20",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:n,"data-twin-unverified":"true",children:a.jsx("path",{d:_5[e]??p5})})}function ur({title:e,ariaLabel:t,qa:n,width:s=640,onClose:r,children:i,footer:l,unverified:o=!0,className:c="",headerExtra:u,headerRow:m}){const h=_.useRef(null),p=_.useId();return _.useEffect(()=>{var y,k;(k=((y=h.current)==null?void 0:y.querySelector('[role="tab"][aria-selected="true"], button, [href], input, select, textarea'))??h.current)==null||k.focus()},[]),a.jsx("div",{className:"c-sk-modal_portal","data-qa":`${n}_portal`,children:a.jsx("div",{className:"c-sk-modal_overlay",children:a.jsxs("div",{ref:h,id:p,className:`c-sk-modal ${c}`,role:"dialog","aria-modal":"false","aria-hidden":"false","aria-label":t??(typeof e=="string"?e:void 0),"data-qa":n,"data-twin-unverified":o?"true":void 0,tabIndex:-1,style:{width:s},onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),r())},children:[a.jsxs("div",{className:"c-sk-modal_header",children:[a.jsxs("div",{className:"c-sk-modal_header__row",children:[a.jsx("div",{className:"c-sk-modal_title_wrap",children:a.jsx("h1",{className:"c-sk-modal_title",children:e})}),u]}),m]}),a.jsx("div",{className:"c-sk-modal__body",children:i}),l&&a.jsx("footer",{className:"c-sk-modal_footer",children:l}),a.jsx("button",{type:"button",className:"c-button-unstyled c-icon_button c-sk-modal_close_button","data-qa":"sk_close_modal_button","aria-label":"Close",onClick:r,children:a.jsx(te,{name:"close",size:20})})]})})})}function m5({tabs:e,active:t,onSelect:n,listLabel:s,children:r}){return a.jsxs("div",{className:"c-tabs__vertical","data-qa":"tabs_full_height_class",role:"none",children:[a.jsx("div",{className:"c-tabs__vertical_list","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"vertical","aria-label":s,children:e.map(i=>a.jsxs("button",{type:"button",id:i.id,role:"tab",className:"c-tabs__item","data-qa":"tabs_item","aria-haspopup":"false","aria-selected":i.id===t,onClick:()=>n(i.id),children:[i.icon&&a.jsx("div",{className:"c-tabs__item_icon","data-qa":"tabs_item_render_icon",children:a.jsx(te,{name:i.icon,size:15})}),a.jsx("span",{className:"c-tabs__item_label",children:a.jsx("span",{children:i.label})})]},i.id))}),a.jsx("div",{className:"c-tabs__panel","data-qa":"tabs_content_container",role:"tabpanel","aria-labelledby":t,children:r})]})}function h5(e,t,n){let s=e.left-20,r=e.bottom+10;t==="below-end"&&(s=e.right-n.w),t==="right-end"&&(s=e.right+12,r=e.bottom-n.h),t==="right-start"&&(s=e.right-2,r=e.top-12),t==="above-start"&&(s=e.left,r=e.top-n.h-10);const i=window.innerWidth-n.w-8,l=window.innerHeight-n.h-8;return{position:"fixed",left:Math.max(8,Math.min(s,i)),top:Math.max(8,Math.min(r,l))}}function sl({anchor:e,placement:t="below-start",entries:n,qa:s,onClose:r,width:i=300,unverified:l=!0,ariaLabel:o,container:c=!1,radius:u}){const m=_.useRef(null),[h,p]=_.useState({position:"fixed",left:-9999,top:-9999}),[g,y]=_.useState(null),[k,C]=_.useState(null),[f,v]=_.useState(-1);_.useLayoutEffect(()=>{const S=m.current;S&&p(h5(e,t,{w:S.offsetWidth,h:S.offsetHeight}))},[e,t,n.length]),_.useEffect(()=>{if(c)return;const S=I=>{var z,ae;const Q=I.target;(z=m.current)!=null&&z.contains(Q)||(ae=Q.closest)!=null&&ae.call(Q,".c-menu")||r()},A=I=>{I.key==="Escape"&&(I.stopPropagation(),r())};return document.addEventListener("mousedown",S,!0),window.addEventListener("keydown",A,!0),()=>{document.removeEventListener("mousedown",S,!0),window.removeEventListener("keydown",A,!0)}},[r,c]),_.useEffect(()=>{var S,A;c||(A=(S=m.current)==null?void 0:S.querySelector('[role="menuitem"]'))==null||A.focus({preventScroll:!0})},[c]);const b=n.map((S,A)=>({entry:S,index:A})).filter(S=>S.entry.kind==="item"&&!S.entry.disabled),x=S=>{var A,I;if(S.key==="ArrowDown"||S.key==="ArrowUp"){S.preventDefault();const Q=b.findIndex(ae=>ae.index===f),z=b[(Q+(S.key==="ArrowDown"?1:-1)+b.length)%b.length];z&&(v(z.index),(I=(A=m.current)==null?void 0:A.querySelector(`[data-menu-index="${z.index}"]`))==null||I.focus())}},w=a.jsx("div",{className:`c-menu c-menu--twin${c?" c-menu--submenu":""}`,"data-qa":"menu","data-qa-menu":s,style:u?{borderRadius:u}:void 0,children:a.jsx("div",{children:a.jsx("div",{className:"c-menu__items","data-qa":"menu_items",role:"menu","aria-label":o,onKeyDown:x,children:n.map((S,A)=>{var z;if(S.kind==="divider")return a.jsx("div",{className:"c-menu_separator",children:a.jsx("hr",{className:"c-menu_separator__separator","data-qa":"menu_separator__separator"})},A);if(S.kind==="header")return a.jsx("div",{className:"c-menu_item__header","data-qa":"menu-item-header","aria-hidden":"true",children:S.label},A);if(S.kind==="custom")return a.jsx("div",{className:"c-menu_item__li--custom",role:"presentation","data-qa":S.qa,children:S.node},A);const I=!!((z=S.submenu)!=null&&z.length),Q=a.jsx("div",{className:"c-menu_item__wrapper","data-qa":"menu_item_button-wrapper",onMouseEnter:I?void 0:()=>{y(null)},children:a.jsxs("button",{type:"button",role:"menuitem",className:`c-menu_item__button${S.danger?" c-menu_item__button--danger":""}${S.note?" c-menu_item__button--note":""}${g===A?" c-menu_item__button--highlighted":""}`,"data-qa":S.qa??"menu_item_button","data-menu-index":A,"aria-haspopup":I?!0:void 0,"aria-checked":S.checked,disabled:S.disabled,onClick:()=>{var ae;I||S.note||((ae=S.onSelect)==null||ae.call(S),r())},children:[S.icon&&a.jsx("span",{className:"c-menu_item__icon",children:S.icon}),a.jsxs("div",{className:"c-menu_item__label",children:[S.label,S.sublabel&&a.jsx("div",{className:"c-menu_item__sublabel",children:S.sublabel})]}),S.hint&&a.jsx("div",{className:"c-menu_item__hint",children:a.jsx("span",{children:S.hint})}),S.checked&&a.jsx("span",{className:"c-menu_item__check","aria-hidden":"true",children:"✓"}),S.external&&a.jsx("div",{className:"c-menu_item__link_icon","data-qa":"menu_item_link_icon",role:"presentation",children:a.jsx(te,{name:"menu_item_link_indicator",size:15})}),I&&a.jsx("div",{className:"c-menu_item__submenu_indicator","data-qa":"menu_item_submenu_indicator",role:"presentation",children:a.jsx(te,{name:"caret-right",size:15})})]})});return I?a.jsxs("div",{"data-qa":"submenu_trigger_wrapper",role:"presentation",onMouseEnter:ae=>{y(A),C(ae.currentTarget.getBoundingClientRect())},children:[Q,g===A&&k&&S.submenu&&a.jsx(sl,{anchor:k,placement:"right-start",entries:S.submenu,qa:"submenu",onClose:r,width:S.submenuWidth??i,unverified:l,radius:S.submenuRadius,container:!0})]},A):a.jsx(_.Fragment,{children:Q},A)})})})});return c?a.jsx("div",{ref:m,className:"c-menu_submenu_container","data-qa":"submenu_container",role:"presentation","data-twin-unverified":l?"true":void 0,style:{...h,width:i},children:w}):a.jsx("div",{ref:m,className:"c-menu_container",role:"presentation","data-twin-unverified":l?"true":void 0,style:{...h,width:i},children:a.jsx("div",{role:"presentation",children:w})})}function Jh({title:e,text:t,action:n,qa:s}){return a.jsxs("div",{className:"p-empty_state","data-qa":s,children:[a.jsx("div",{className:"p-empty_state__illustration","aria-hidden":"true"}),a.jsx("h2",{className:"p-empty_state__title",children:e}),t&&a.jsx("p",{className:"p-empty_state__text",children:t}),n]})}function _t({children:e,qa:t="prefs_section_container",className:n=""}){return a.jsx("div",{className:`p-prefs_dialog__container ${n}`.trim(),"data-qa":t??void 0,children:e})}function f5({children:e}){return a.jsx("div",{className:"p-prefs_dialog__panel_title_wrap",children:a.jsx("h2",{className:"p-prefs_dialog__panel_title",children:e})})}function de({title:e,children:t,qa:n,id:s,legendQa:r=!1,legendGap:i=4,large:l=!1,margin:o,action:c,className:u=""}){return a.jsxs("fieldset",{className:`p-prefs_dialog__section ${u}`.trim(),"data-qa":n,id:s,style:o!==void 0?{margin:o}:void 0,children:[c,e&&a.jsx("legend",{className:`p-prefs_dialog__section_heading p-prefs_dialog__section_heading--gap${i}${l?" p-prefs_dialog__section_heading--large":""}`,"data-qa":r?"prefs_section_heading":void 0,children:e}),t]})}function Ae({children:e,small:t=!1,variant:n,margin:s,id:r,qa:i}){const l=n??(t?"small":"sec");return a.jsx("p",{className:`p-prefs_dialog__help p-prefs_dialog__help--${l}`,style:s!==void 0?{margin:s}:void 0,id:r,"data-qa":i,children:e})}function Ce({margin:e="20px 0"}){return a.jsx("hr",{className:"p-prefs_dialog__divider",style:{margin:e}})}function $e({label:e,children:t,icon:n}){return a.jsx("div",{className:"c-keyboard_key",role:"img","aria-hidden":"false","aria-label":e,children:n?a.jsx(te,{name:n,size:13}):t})}function rl({kind:e,checked:t,onChange:n,name:s,label:r,sublabel:i,subMuted:l,subSmall:o,qa:c,inputQa:u,disabled:m,icon:h,iconSize:p=15,iconQa:g,emoji:y,suffix:k,gap:C=4,indent:f,id:v,ariaDescribedBy:b,className:x=""}){const w=h?g?a.jsx("span",{className:"c-input_checkbox_group__icon c-input_checkbox_group__icon--wrapped","data-qa":g,children:a.jsx(te,{name:h,size:p})}):a.jsx(te,{name:h,size:p,className:"c-input_checkbox_group__icon_svg"}):null;return a.jsxs("label",{className:`c-input_checkbox_group c-input_checkbox_group--gap${C}${m?" c-input_checkbox_group--disabled":""}${f?" c-input_checkbox_group--indent":""} ${x}`.trim(),"data-qa":c,id:v,children:[a.jsxs("span",{className:"c-input_checkbox_group__label",children:[y&&a.jsx("span",{className:"c-input_checkbox_group__emoji c-emoji",role:"img","aria-hidden":"true",children:a.jsx(ba,{glyph:y,label:""})}),w,r,k&&a.jsxs("span",{className:"c-input_checkbox_group__suffix",children:[" ",k]}),i&&a.jsx("span",{className:`c-input_checkbox_group__sublabel${l?" c-input_checkbox_group__sublabel--muted":""}${o?" c-input_checkbox_group__sublabel--small":""}`,children:i})]}),a.jsx("span",{className:"c-input_checkbox_group__box",children:a.jsx("input",{type:e,name:s,className:e==="checkbox"?"c-input_checkbox":"c-input_radio","data-qa":u,checked:t,disabled:m,"aria-disabled":m?"true":void 0,"aria-describedby":b,onChange:S=>n(S.target.checked)})})]})}function _e({pref:e,...t}){const n=bt();return a.jsx(rl,{kind:"checkbox",checked:n[e],onChange:s=>St({[e]:s}),...t})}function ke({pref:e,id:t,defaultChecked:n=!1,...s}){const i=bt()[e],l=t in i?!!i[t]:n;return a.jsx(rl,{kind:"checkbox",checked:l,onChange:o=>St({[e]:{...i,[t]:o}}),...s})}function na({pref:e,options:t,name:n,qa:s,indent:r,margin:i}){const o=bt()[e];return a.jsx("div",{className:`c-input_radio_group${r?" c-input_radio_group--indent":""}`,role:"radiogroup","aria-disabled":"false","data-qa":s,style:i?{margin:i}:void 0,children:t.map(({value:c,...u})=>a.jsx(rl,{kind:"radio",name:n??String(e),checked:o===c,onChange:()=>St({[e]:c}),...u},String(c)))})}function Pi({id:e,options:t,defaultValue:n,qa:s,indent:r,margin:i}){const l=bt(),o=typeof l.extra[e]=="string"?l.extra[e]:n;return a.jsx("div",{className:`c-input_radio_group${r?" c-input_radio_group--indent":""}`,role:"radiogroup","aria-disabled":"false","data-qa":s,style:i?{margin:i}:void 0,children:t.map(({value:c,...u})=>a.jsx(rl,{kind:"radio",name:e,checked:o===c,onChange:()=>St({extra:{...l.extra,[e]:c}}),...u},c))})}function Fn({pref:e,options:t,label:n,qa:s,inline:r=!1,width:i,large:l=!1,disabled:o=!1,ariaLabel:c,describedBy:u,margin:m,labelMargin:h}){const g=bt()[e],y=t.find(k=>k.value===g);return a.jsx(Xh,{name:s??`pref_${String(e)}`,label:n,inline:r,width:i,large:l,disabled:o,ariaLabel:c,describedBy:u,margin:m,labelMargin:h,current:(y==null?void 0:y.label)??String(g),children:a.jsx("select",{className:"c-select_button__select",value:String(g),disabled:o,onChange:k=>{const C=t.find(f=>String(f.value)===k.target.value);C&&St({[e]:C.value})},children:t.map(k=>a.jsx("option",{value:String(k.value),children:k.label},String(k.value)))})})}function zt(e){const{pref:t,choices:n,...s}=e;return a.jsx(Fn,{pref:t,options:n.map(r=>({value:r,label:r})),...s})}function qs({id:e,choices:t,defaultValue:n,...s}){const r=bt(),i=typeof r.extra[e]=="string"?r.extra[e]:n,{qa:l,...o}=s;return a.jsx(Xh,{name:l,current:i,...o,children:a.jsx("select",{className:"c-select_button__select",value:i,disabled:o.disabled,onChange:c=>St({extra:{...r.extra,[e]:c.target.value}}),children:t.map(c=>a.jsx("option",{children:c},c))})})}function Xh({name:e,label:t,inline:n=!1,width:s,large:r=!1,disabled:i=!1,ariaLabel:l,describedBy:o,margin:c,labelMargin:u,current:m,children:h}){const p=a.jsx("span",{className:`c-select_group__control${r?" c-select_group__control--large":""}`,"data-qa":e,style:{...s!==void 0?{width:s}:{},...c?{margin:c}:{}},children:a.jsxs("span",{className:`c-select_button c-select_button--twin${i?" c-select_button--disabled":""}`,"data-qa":`${e}-button`,id:`${e}_button`,role:"combobox","aria-label":l??(typeof t=="string"?t:void 0),"aria-describedby":o,"aria-disabled":i?"true":void 0,"aria-invalid":"false","aria-expanded":"false","aria-haspopup":"listbox",children:[a.jsx("span",{className:"c-select_button__content","data-qa":`${e}-button-content`,id:`${e}_button-option`,role:"none",children:m}),h,a.jsx("span",{className:"c-select_button__caret","aria-hidden":"true",children:a.jsx(Ie,{"data-qa":"caret-down",size:20})})]})});return t?a.jsxs("label",{className:`c-select_group${n?" c-select_group--inline":""}`,style:u?{margin:u}:void 0,children:[a.jsx("span",{className:"c-select_group__label",children:t}),p]}):p}function g5({pref:e,label:t,placeholder:n,qa:s,help:r}){const i=bt();return a.jsxs("label",{className:"c-textarea_group","data-qa":s??`pref_${e}`,children:[t&&a.jsx("span",{className:"c-textarea_group__label",children:t}),a.jsx("textarea",{className:"c-texty_input c-texty_input--prefs",value:i[e],placeholder:n,rows:3,onChange:l=>St({[e]:l.target.value})}),r&&a.jsx("span",{className:"c-textarea_group__help",children:r})]})}function _r({children:e,qa:t,small:n=!1,spanQa:s,ariaPressed:r,className:i=""}){return a.jsx("button",{type:"button",className:`c-button c-button--outline c-button--prefs${n?" c-button--prefs_small":""} ${i}`.trim(),"data-qa":t,"aria-pressed":r,children:s?a.jsx("span",{"data-qa":s,children:e}):e})}function Vl({children:e,qa:t,tone:n="info"}){return a.jsxs("div",{className:`c-alert_banner c-alert_banner--${n}`,"data-qa":t,children:[a.jsx("div",{className:"c-alert_banner__icon",children:a.jsx(te,{name:"info",size:20})}),a.jsx("span",{className:"c-alert_banner__text",children:e})]})}const Rs=(()=>{const e=[];for(let t=0;t<24;t+=1)for(const n of["00","30"]){const s=t%12||12;e.push(`${s}:${n} ${t<12?"AM":"PM"}`)}return e})(),v5=[{id:"availability",label:"Availability",icon:"clock"},{id:"notifications",label:"Notifications",icon:"notifications"},{id:"vip",label:"VIP",icon:"vip"},{id:"tab_rail",label:"Navigation",icon:"navigation-tabs-vertical"},{id:"sidebar",label:"Home",icon:"home"},{id:"themes",label:"Appearance",icon:"paintbrush"},{id:"messages_media",label:"Messages & media",icon:"threads"},{id:"language_region",label:"Language & region",icon:"globe"},{id:"accessibility",label:"Accessibility",icon:"laptop"},{id:"mark_as_read",label:"Mark as read",icon:"check-circle"},{id:"video_audio",label:"Audio & video",icon:"video"},{id:"salesforce",label:"Salesforce",icon:"sf-cloud"},{id:"connected_accounts",label:"Connected accounts",icon:"plug"},{id:"privacy_visibility",label:"Privacy & visibility",icon:"lock"},{id:"slack_ai",label:"Slack AI",icon:"ai-sparkle"},{id:"advanced",label:"Advanced",icon:"settings"}];function en({glyph:e,label:t}){return a.jsx("span",{className:"c-emoji c-emoji--22",role:"img","aria-label":t,children:a.jsx(ba,{glyph:e,label:t})})}function b5(){return a.jsxs(_t,{children:[a.jsx(f5,{children:"Availability"}),a.jsx("div",{children:a.jsxs(de,{title:"Working hours",legendQa:!0,legendGap:4,margin:"0",children:[a.jsxs(Ae,{children:["You’ll only receive notifications in the hours you choose. Outside of those times, notifications will be paused. You can still allow notifications from"," ",a.jsx("button",{type:"button",className:"c-link","data-qa":"prefs_availability_vips",children:"VIPs"}),"."]}),a.jsxs("div",{className:"p-prefs_dialog__row",children:[a.jsx(Fn,{pref:"scheduleDays",label:"Allow notifications:",qa:"dnd_days_select",options:[{value:"every_day",label:"Every day"},{value:"weekdays",label:"Weekdays"},{value:"custom",label:"Custom"}]}),a.jsxs("div",{className:"p-prefs_dialog__time_range",children:[a.jsx(zt,{pref:"scheduleStart",choices:Rs,qa:"dnd_user_prefs_end_time_select",width:130,ariaLabel:"Start time"}),a.jsx("span",{"aria-hidden":"true",className:"p-prefs_dialog__row_text",children:"to"}),a.jsx(zt,{pref:"scheduleEnd",choices:Rs,qa:"dnd_user_prefs_start_time_select",width:130,ariaLabel:"End time"})]})]}),a.jsx("p",{className:"p-prefs_dialog__subtext","data-qa":"dnd_user_prefs_weekdays_only_subtext",children:"You won’t receive notifications on Saturday or Sunday."})]})}),a.jsx(Ce,{margin:"0 0 20px"}),a.jsxs(de,{title:"Automatic statuses",legendQa:!0,legendGap:4,children:[a.jsx(Ae,{children:"Let people know when responses might be delayed. If you already have a status set, it stays."}),a.jsx("div",{className:"p-prefs_dialog__sublegend_wrap",children:a.jsx("legend",{className:"p-prefs_dialog__sublegend",children:"Set status to:"})}),a.jsx(_e,{pref:"huddleStatus",label:a.jsx("b",{children:"In a huddle"}),suffix:"for huddles",emoji:"🎧"}),a.jsx(_e,{pref:"focusStatus",label:a.jsx("b",{children:"In focus mode"}),suffix:"for focus mode",emoji:"🔭"}),a.jsx(_e,{pref:"afterHoursStatus",label:a.jsx("b",{children:"After hours"}),suffix:"for after working hours",emoji:"🕔"})]})]})}function x5(){const{team:e}=me();return a.jsxs(_t,{children:[a.jsxs(de,{title:"How to notify you",legendGap:8,children:[a.jsx(_e,{pref:"notifyDesktop",label:"Desktop notifications"}),a.jsx(_e,{pref:"notifyMobile",label:"Mobile notifications"})]}),a.jsxs(de,{title:"What to notify you about",legendGap:8,children:[a.jsx(Fn,{pref:"notifyAbout",qa:"notify_about_select",options:[{value:"everything",label:"Everything"},{value:"mentions",label:"Mentions and direct messages"}]}),a.jsx(Ae,{children:"You’ll also be notified about messages in channels you have set to “All new posts”."})]}),a.jsxs(de,{title:"Also notify you about",legendGap:8,children:[a.jsx(_e,{pref:"notifyThreadReplies",label:"Thread replies",sublabel:"Replies in threads you’re following"}),a.jsx(_e,{pref:"notifyVip",label:"VIP messages",sublabel:"Messages from people you’ve marked as VIPs"}),a.jsx(_e,{pref:"notifyHuddleStarts",label:"Huddle starts",sublabel:"When a huddle starts in a channel you’re in"})]}),a.jsxs(de,{title:"What to show in Activity",legendGap:8,children:[a.jsx(_e,{pref:"activityAllNewPosts",label:"Channels with notifications set to “All new posts”"}),a.jsx(_e,{pref:"activityReminders",label:"Reminders when Later item due dates arrive"})]}),a.jsx(de,{title:"Channel keywords",legendGap:8,children:a.jsx(g5,{pref:"keywords",placeholder:"Use commas to separate each keyword, ex: Q1 targets, shopping, workshop",help:`Show a badge in my channel list when someone uses one of my keywords in a channel in ${e.name}.`})}),a.jsx(Ce,{}),a.jsxs(de,{title:"Notification schedule",legendGap:8,children:[a.jsx(Ae,{children:"You’ll only receive notifications in the hours you choose. Outside of those times, notifications will be paused."}),a.jsxs("div",{className:"p-prefs_dialog__row",children:[a.jsx(Fn,{pref:"scheduleDays",label:"Allow notifications:",qa:"notify_schedule_days",options:[{value:"every_day",label:"Every day"},{value:"weekdays",label:"Weekdays"},{value:"custom",label:"Custom"}]}),a.jsxs("div",{className:"p-prefs_dialog__time_range",children:[a.jsx(zt,{pref:"scheduleStart",choices:Rs,qa:"notify_schedule_start",width:130}),a.jsx("span",{className:"p-prefs_dialog__row_text",children:"to"}),a.jsx(zt,{pref:"scheduleEnd",choices:Rs,qa:"notify_schedule_end",width:130})]})]}),a.jsx(zt,{pref:"reminderTime",label:"Set a default time for reminder notifications:",choices:Rs,qa:"notify_reminder_time"})]}),a.jsx(Ce,{}),a.jsxs(de,{title:"Sound & appearance",legendGap:8,children:[a.jsx(_e,{pref:"notificationPreview",label:"Include a preview of the message in each notification",sublabel:"Message previews are shown in notifications on all your devices."}),a.jsx(_e,{pref:"muteSounds",label:"Mute all sounds from Slack"}),a.jsxs("div",{className:"p-prefs_dialog__grid",children:[a.jsx(zt,{pref:"soundMessages",label:"Notification sound (messages)",qa:"notify_sound_messages",choices:["Ding","Boing","Drop","Ta-da","Plink","Wow","Here you go","Hi","Knock Brush","Whoa!","Yoink","None"]}),a.jsx(zt,{pref:"soundHuddles",label:"Notification sound (huddles)",qa:"notify_sound_huddles",choices:["Here you go","Ding","Boing","Drop","Ta-da","Plink","Wow","None"]}),a.jsx(zt,{pref:"soundDmSend",label:"Sound when sending a direct message",qa:"notify_sound_dm_send",choices:["Whoosh","None"]}),a.jsx(zt,{pref:"soundDmReceive",label:"Sound when receiving a direct message",qa:"notify_sound_dm_receive",choices:["Knock Brush","Ding","None"]})]}),a.jsx(_e,{pref:"badgeOnIcon",label:"Show a badge on Slack’s icon to indicate new activity"}),a.jsx(Fn,{pref:"flashWindow",label:"Flash window when a notification is received:",qa:"notify_flash_window",options:[{value:"always",label:"Always"},{value:"when_idle",label:"When idle"},{value:"never",label:"Never"}]})]}),a.jsx(Ce,{}),a.jsx(de,{title:"When I’m not active on desktop...",legendGap:8,children:a.jsx(Fn,{pref:"emailWhenAway",label:"Send me email notifications for mentions and direct messages:",qa:"notify_email_when_away",options:[{value:"15m",label:"Once every 15 minutes"},{value:"1h",label:"Once an hour"},{value:"never",label:"Never"}]})})]})}function y5(){return a.jsx(_t,{qa:"tab_rail_section_container",children:a.jsxs("div",{className:"p-prefs_dialog__container","data-qa":"prefs_section_container__tab_rail__synth_page_prefs",children:[a.jsxs(de,{id:"tab_rail_page_prefs",legendGap:0,title:a.jsx("span",{id:"tab_rail_page_prefs_legend","aria-label":"Show these tabs in the navigation bar. At smaller window sizes, not all selected tabs may appear.",children:"Show these tabs in the navigation bar:"}),children:[a.jsx("div",{className:"p-prefs_dialog__help p-prefs_dialog__help--small",children:"At smaller window sizes, not all selected tabs may appear."}),a.jsx(ke,{pref:"tabs",id:"home",label:"Home",icon:"home",gap:8,disabled:!0}),a.jsx(ke,{pref:"tabs",id:"dms",label:"DMs",icon:"direct-messages",gap:8,ariaDescribedBy:"tab_rails_section__dms_hint"}),a.jsx(ke,{pref:"tabs",id:"activity",label:"Activity",icon:"notifications",gap:8,disabled:!0}),a.jsx(ke,{pref:"tabs",id:"files",label:"Files",icon:"canvas-browser",gap:8}),a.jsx(ke,{pref:"tabs",id:"agents",label:"Agents & tools",icon:"ai-agents",gap:8})]}),a.jsxs(de,{id:"tab_rail_page_prefs_icon_mode",title:"Navigation Tab Appearance",legendGap:8,children:[a.jsx("div",{children:a.jsx(na,{pref:"railLabels",options:[{value:"icons_and_text",label:"Icons & text",gap:8}]})}),a.jsx("div",{children:a.jsx(na,{pref:"railLabels",margin:"0 0 20px",options:[{value:"icons",label:"Icons only",sublabel:"Makes navigation tabs smaller, and automatically turns off numerical badges.",gap:8}]})})]}),a.jsx(de,{id:"tab_rail_page_prefs_ai",title:"App agents & assistants",legendGap:0,children:a.jsx(_e,{pref:"showAiAgentsInTopBar",label:"Show AI Agents in top bar",className:"c-input_checkbox_group--margin8"})})]})})}function j5(){return a.jsxs(_t,{children:[a.jsx("div",{className:"p-prefs_dialog__container","data-qa":"prefs_section_container__channel_organization_prefs",children:a.jsx(de,{id:"channel_organization_prefs",title:"Channel organization",legendGap:8,children:a.jsx("div",{id:"enable_channel_join_experience_pref",children:a.jsx(_e,{pref:"channelRecommendations",label:"Get recommendations to organize your channels",gap:8})})})}),a.jsx(Ce,{}),a.jsx("div",{className:"p-prefs_dialog__container","data-qa":"prefs_section_container__activity__synth_page_prefs",children:a.jsx(de,{id:"activity_page_prefs",title:"Show activity",legendGap:8,children:a.jsx(_e,{pref:"homeUnreadDot",label:"Show a dot on the Home icon when there is unread activity",icon:"home",iconSize:16,iconQa:"home",gap:8})})}),a.jsx(Ce,{}),a.jsxs("div",{className:"p-prefs_dialog__container p-prefs_dialog__container--with_action","data-qa":"prefs_section_container__sidebar__synth_page_prefs",children:[a.jsx("a",{className:"c-link p-prefs_dialog__learn_more",href:"#","aria-label":"Learn more about sidebar preferences",onClick:e=>e.preventDefault(),children:a.jsxs("span",{children:[a.jsx("span",{children:"Learn more"}),a.jsx(te,{name:"help",size:20})]})}),a.jsxs(de,{id:"sidebar_page_prefs",title:"Always show in the sidebar:",legendGap:8,className:"p-prefs_dialog__section--narrow",children:[a.jsx(ke,{pref:"sidebarAlways",id:"slackbot",label:"Slackbot",icon:"slackbot",iconSize:16,gap:8}),a.jsx(ke,{pref:"sidebarAlways",id:"unreads",label:"Unreads",icon:"mark-as-unread",iconSize:16,iconQa:"mark-as-unread",gap:8}),a.jsx(ke,{pref:"sidebarAlways",id:"huddles",label:"Huddles",icon:"headphones",iconSize:16,iconQa:"headphones",gap:8}),a.jsx(ke,{pref:"sidebarAlways",id:"threads",label:"Threads",icon:"threads",iconSize:16,iconQa:"small-reply",gap:8}),a.jsx(ke,{pref:"sidebarAlways",id:"drafts",label:"Drafts & sent",icon:"send",iconSize:16,iconQa:"paper-plane-alt",gap:8}),a.jsx(ke,{pref:"sidebarAlways",id:"directories",label:"Directories",icon:"user-directory",iconSize:16,iconQa:"unified-directory",gap:8})]})]}),a.jsx(Ce,{}),a.jsxs(de,{qa:"prefs_section_container__sidebar__show_prefs",id:"sidebar_show_pref",title:"Filter conversations by:",legendGap:8,className:"p-prefs_dialog__section--legend_top24",children:[a.jsx("div",{children:a.jsx(na,{pref:"sidebarShow",margin:"0 0 20px",options:[{value:"active",label:"Active only",sublabel:"New activity within the last 30 days"},{value:"unreads",label:"Unreads"},{value:"mentions",label:"Mentions"},{value:"all",label:"All"}]})}),a.jsx("div",{className:"p-prefs_dialog__footnote",children:"You have custom filters for 3 sections in your channel list"})]}),a.jsx(Ce,{}),a.jsxs(de,{qa:"prefs_section_container__sidebar__sort_prefs",id:"channel_sort_pref",title:"Sort conversations by:",legendGap:8,children:[a.jsx("div",{children:a.jsx(na,{pref:"sidebarSort",margin:"0 0 20px",options:[{value:"alphabetical",label:"A–Z"},{value:"recent",label:"Most recent"},{value:"priority",label:"Priority"}]})}),a.jsx("div",{className:"p-prefs_dialog__footnote",children:"You have a custom sort setting for 1 section in your sidebar."})]}),a.jsx(Ce,{}),a.jsx(de,{id:"additional_prefs",title:"Sidebar Organization",legendGap:8,children:a.jsxs("div",{className:"p-prefs_dialog__container","data-qa":"prefs_section_container__sidebar__additional_prefs",id:"prefs_section_container__sidebar__additional_prefs",children:[a.jsx(_e,{pref:"sidebarProfilePhotos",label:"Show profile photos next to DMs"}),a.jsx(_e,{pref:"sidebarSeparatePrivate",label:"Separate private channels from public ones in sidebar"}),a.jsx(ke,{pref:"extra",id:"sidebar_separate_dms",label:"Separate direct messages and apps from channels in sidebar"}),a.jsx(ke,{pref:"extra",id:"sidebar_mentions_top",defaultChecked:!0,label:a.jsxs(a.Fragment,{children:["Move items with unread Mentions (",a.jsx("span",{className:"c-mention_badge c-mention_badge--prefs","data-qa":"badge","aria-hidden":"true",children:"1"}),") to top of sections"]})}),a.jsx(ke,{pref:"extra",id:"sidebar_external_section",defaultChecked:!0,label:"Organize external conversations into the External Connections section"}),a.jsx(ke,{pref:"extra",id:"sidebar_online_top",label:"Move online users to the top of the DM section",className:"c-input_checkbox_group--id_online"}),a.jsxs("div",{id:"hide-muted-items",children:[a.jsx(_e,{pref:"sidebarShowMuted",label:"Hide muted channels from your sidebar",ariaDescribedBy:"show_muted_items_outside_sidebar_menus_help_text"}),a.jsx("span",{className:"p-prefs_dialog__muted_help",id:"show_muted_items_outside_sidebar_menus_help_text",children:"You’ll always be able to find them in the channel section menu and they’ll pop up in your sidebar if you get a mention."})]})]})})]})}const w5=[{id:"miles-davis-themes",title:"Celebrate the music of Miles Davis",isNew:!0,share:!0,themes:["Kind of Blue","Funky Fresh","Jazz Club","Electric Fusion","Brassy","Sunglasses Inside"]},{id:"single-color-themes",title:"Single color",themes:["Aubergine","Clementine","Banana","Jade","Lagoon","Barbra","Gray","Mood Indigo"]},{id:"vision-assistive-themes",title:"Vision assistive",themes:["Tritanopia","Protanopia & Deuteranopia"]},{id:"fun-themes",title:"Fun and new",themes:["Raspberry Beret","Big Business","POG","Mint Chip","PB&J","Chill Vibes","Forest Floor","Slackr","Sea Glass","Lemon Lime","Falling Leaves","Sunrise"]}];function ef(e){const t=ts.find(s=>s.name.toLowerCase()===e.toLowerCase());return t?t.id:{barbra:"barbie",gray:"hoth","mood indigo":"ocean","kind of blue":"lagoon","jazz club":"solanum","electric fusion":"lavender",brassy:"banana","funky fresh":"horizon","sunglasses inside":"monument"}[e.toLowerCase()]??"aubergine"}function k5({name:e,selected:t,onSelect:n}){const s=ts.find(r=>r.id===ef(e))??ts[0];return a.jsxs("div",{className:`p-prefs_theme_card${t?" p-prefs_theme_card--selected":""}`,children:[a.jsx("input",{type:"radio",name:"slack_theme","aria-label":e,checked:t,onChange:n}),a.jsx("div",{className:"p-prefs_theme_card__swatch",style:{background:`linear-gradient(135deg, ${s.column_bg} 50%, ${s.active_item} 50%)`}}),a.jsx("span",{"aria-hidden":"true",children:e})]})}function N5(){var s;const e=bt(),t=((s=ts.find(r=>r.id===e.theme))==null?void 0:s.name)??"Aubergine",n=[{value:"light",label:"Light",aria:"Light",icon:"sun-filled"},{value:"dark",label:"Dark",aria:"Dark",icon:"moon"},{value:"system",label:"System",aria:"Operating System",icon:"laptop"}];return a.jsx(_t,{children:a.jsxs("div",{"data-qa":"ia4-theming-section",children:[a.jsx("div",{children:a.jsxs("label",{className:"c-select_group c-select_group--stacked",children:[a.jsx("span",{className:"p-prefs_dialog__plain_label",children:"Font"}),a.jsx(qs,{id:"font",qa:"customFontTypefaceSelect",ariaLabel:"Font",choices:["Lato (Default)","Atkinson Hyperlegible","Fira Sans","Inter"],defaultValue:"Lato (Default)",width:250,margin:"8px 0"})]})}),a.jsx(Ce,{}),a.jsxs(de,{title:"Color Mode",legendGap:4,children:[a.jsx(Ae,{variant:"plain",children:"Choose if Slack’s appearance should be light or dark, or follow your computer’s settings."}),a.jsx("div",{className:"p-prefs_mode_grid",role:"radiogroup","aria-label":"Color Mode",children:n.map(r=>a.jsxs("div",{className:`p-prefs_mode_card${e.colorMode===r.value?" p-prefs_mode_card--selected":""}`,children:[a.jsx("input",{type:"radio",name:"color_mode","aria-label":r.aria,checked:e.colorMode===r.value,onChange:()=>St({colorMode:r.value})}),a.jsxs("span",{"aria-hidden":"true",children:[a.jsx(te,{name:r.icon,size:18}),r.label]})]},r.value))}),a.jsx(ke,{pref:"extra",id:"dark_in_focus",label:"Always use dark color mode when in focus mode.",className:"c-input_checkbox_group--margin_top16"})]}),a.jsxs("div",{className:"p-prefs_theme_tabs","data-qa":"tabs_full_height_class",role:"none",children:[a.jsxs("div",{className:"c-tabs__strip c-tabs__strip--prefs","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal","aria-label":"Themes",children:[a.jsx("button",{type:"button",className:"c-tabs__strip_item","data-qa":"tabs_item",id:"slack-themes",role:"tab","aria-label":"Slack themes","aria-haspopup":"false","aria-selected":"true",children:a.jsx("span",{children:"Slack themes"})}),a.jsx("button",{type:"button",className:"c-tabs__strip_item","data-qa":"tabs_item",id:"custom-theme",role:"tab","aria-label":"Custom theme","aria-haspopup":"false","aria-selected":"false",children:a.jsx("span",{children:"Custom theme"})})]}),a.jsx("div",{className:"p-prefs_theme_tabs__panel","data-qa":"tabs_content_container",role:"tabpanel","aria-label":"Slack themes",children:w5.map(r=>a.jsxs("fieldset",{id:r.id,className:"p-prefs_theme_group",children:[a.jsxs("legend",{className:"p-prefs_theme_group__legend",children:[r.title,r.isNew&&a.jsx("span",{className:"c-tag_span","data-qa":"tag-span",children:"New"})]}),r.share&&a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--prefs_small p-prefs_theme_group__share",children:a.jsxs("span",{children:[a.jsx(te,{name:"share-message",size:18}),"Share"]})}),a.jsx("div",{className:"p-prefs_theme_group__grid",role:"radiogroup",children:r.themes.map(i=>a.jsx(k5,{name:i,selected:t===i||i==="Aubergine"&&e.theme==="aubergine",onSelect:()=>St({theme:ef(i)})},i))})]},r.id))})]})]})})}function Wl({sender:e,children:t,grey:n=!1}){return a.jsx("div",{className:`p-prefs_example_message${n?" p-prefs_example_message--grey":""}`,children:a.jsxs("div",{className:"p-prefs_example_message__row",children:[a.jsx("div",{className:"p-prefs_example_message__avatar",children:a.jsx("span",{className:"c-avatar c-avatar--example","aria-hidden":"true"})}),a.jsxs("div",{className:"p-prefs_example_message__body",children:[a.jsx("span",{className:"p-prefs_example_message__sender","data-qa":"message_sender_name",children:e}),a.jsx("span",{className:"p-prefs_example_message__time",children:"8:53 PM"}),a.jsx("br",{}),a.jsx("span",{className:"p-prefs_example_message__text",children:t})]})]})})}const S5=[{glyph:"✋",label:"hand emoji",aria:"No skin tone"},{glyph:"✋🏻",label:"hand emoji with light skin tone",aria:"light skin tone"},{glyph:"✋🏼",label:"hand emoji with medium-light skin tone",aria:"medium-light skin tone"},{glyph:"✋🏽",label:"hand emoji with medium skin tone",aria:"medium skin tone"},{glyph:"✋🏾",label:"hand emoji with medium-dark skin tone",aria:"medium-dark skin tone"},{glyph:"✋🏿",label:"hand emoji with dark skin tone",aria:"dark skin tone"}];function C5(){const e=bt();return a.jsxs(_t,{children:[a.jsxs(de,{title:"Theme",legendGap:8,children:[a.jsx(na,{pref:"messageDisplay",options:[{value:"clean",label:"Clean"},{value:"compact",label:"Compact"}]}),a.jsx("p",{className:"p-prefs_dialog__example_label",children:"Here’s an example:"}),a.jsx(Wl,{sender:"Slackbot",children:"Feeling great!"})]}),a.jsx(Ce,{margin:"24px 0 20px"}),a.jsxs(de,{title:"Names",legendGap:8,children:[a.jsx(na,{pref:"namesDisplay",options:[{value:"full",label:"Full & display names"},{value:"display",label:"Just display names"}]}),a.jsx("p",{className:"p-prefs_dialog__example_label",children:"Here’s an example:"}),a.jsxs(Wl,{sender:"Meg",children:[a.jsx(en,{glyph:"👋",label:"wave emoji"})," Hi, I’m ",a.jsx("span",{className:"c-member_slug",children:"@Meg"})]}),a.jsxs("p",{className:"p-prefs_dialog__after_example",children:["To change your full or display name, head to"," ",a.jsx("button",{type:"button",className:"c-link",children:"your profile"}),"."]})]}),a.jsx(Ce,{}),a.jsxs(de,{id:"additional-options-messages-media",title:"Additional options",legendGap:8,children:[a.jsx(_e,{pref:"showTyping",label:"Display information about who is currently typing a message"}),a.jsx(_e,{pref:"time24h",label:"Show times with 24-hour clock",inputQa:"time24_user_pref"}),a.jsx(_e,{pref:"colorSwatches",label:"Display color swatches next to hexadecimal values"})]}),a.jsx(Ce,{}),a.jsxs(de,{id:"emoji-messages-media",title:"Emoji",legendGap:8,children:[a.jsx("p",{className:"p-prefs_dialog__skin_tone_header","data-qa":"emoji_skin_tone_prefs_header",children:"Default Skin Tone"}),a.jsx("p",{className:"p-prefs_dialog__skin_tone_description","data-qa":"emoji_skin_tone_prefs_description",children:"Choose the default skin tone that will be used whenever you use certain emojis in reactions and messages."}),a.jsx("div",{"data-qa":"emoji_skintone_radio_group",children:a.jsx("div",{className:"p-prefs_dialog__skin_tone_row",role:"radiogroup","aria-disabled":"false","aria-labelledby":"emoji-skin-tone-picker-radio-group-label",children:S5.map((t,n)=>a.jsx("label",{className:`p-prefs_dialog__skin_tone${e.skinTone===n?" p-prefs_dialog__skin_tone--selected":""}`,"data-qa":`emoji_skintone_container_${n+1}`,children:a.jsxs("span",{children:[a.jsx("input",{type:"radio",name:"emoji_skintone","data-qa":`emoji_skintone_radio_option_${n+1}`,"aria-label":t.aria,checked:e.skinTone===n,onChange:()=>St({skinTone:n})}),a.jsx("div",{"data-qa":`emoji_skintone_${n+1}`,"aria-hidden":"true",children:a.jsx(en,{glyph:t.glyph,label:t.label})})]})},t.aria))})}),a.jsx(ke,{pref:"extra",id:"emoji_as_text",label:"Display emoji as plain text"}),a.jsx(_e,{pref:"jumbomoji",label:a.jsxs(a.Fragment,{children:["Show ",a.jsx("strong",{children:"JUMBOMOJI"})]}),sublabel:"Display the jumbo versions of emoji (up to 23 at a time!) in messages without text."}),a.jsx(_e,{pref:"convertEmoticons",label:a.jsxs(a.Fragment,{children:["Convert my typed emoticons to emoji, so :D becomes ",a.jsx(en,{glyph:"😄",label:"smile emoji"})]})}),a.jsx(_e,{pref:"oneClickReactions",label:"Show one-click reactions on messages",inputQa:"quick_reactions_user_pref_checkbox"}),a.jsx("div",{children:a.jsx(Pi,{id:"quick_reactions_source",defaultValue:"frequent",indent:!0,margin:"0 0 20px 24px",options:[{value:"frequent",label:"My most frequently used emoji",inputQa:"frequently_used_emoji_quick_reactions"},{value:"custom",label:"Custom",sublabel:"Click below to choose the emoji you’d like.",inputQa:"custom_quick_reactions"}]})}),a.jsx("div",{className:"p-prefs_dialog__slots_wrapper","data-qa":"quick_reaction_customization_slots_wrapper",children:a.jsx("div",{className:"p-prefs_dialog__slots","data-qa":"quick_reactions_customization_slots",children:[{name:"white_check_mark",glyph:"✅",label:"white check mark emoji"},{name:"eyes",glyph:"👀",label:"eyes emoji"},{name:"raised_hands",glyph:"🙌",label:"raised hands emoji"}].map((t,n)=>a.jsx("button",{type:"button",className:"p-prefs_dialog__slot","data-qa":`quick_reaction_customization_slot_${n+1}`,"aria-label":`Customize quick reaction slot ${n+1} of 3, ${t.name}`,children:a.jsx(en,{glyph:t.glyph,label:t.label})},t.name))})}),a.jsxs("div",{className:"p-prefs_dialog__actions_example",children:[a.jsx("p",{className:"p-prefs_dialog__example_label",children:"Here’s an example:"}),a.jsx("div",{className:"p-prefs_dialog__actions_example_bar","data-qa":"message_actions_example",children:a.jsx("div",{role:"group",children:a.jsx("div",{className:"p-prefs_actions_bar",role:"group",children:a.jsxs("div",{className:"p-prefs_actions_bar__group",role:"group","aria-label":"Here’s an example",children:[a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"white_check_mark","aria-label":"React with white_check_mark","aria-pressed":"false",children:a.jsx(en,{glyph:"✅",label:"white check mark emoji"})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"eyes","aria-label":"React with eyes","aria-pressed":"false",children:a.jsx(en,{glyph:"👀",label:"eyes emoji"})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"raised_hands","aria-label":"React with raised_hands","aria-pressed":"false",children:a.jsx(en,{glyph:"🙌",label:"raised hands emoji"})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"unstyled-button","aria-label":"Find another reaction",children:a.jsx(te,{name:"add-reaction",size:18})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"unstyled-button","aria-label":"Reply to thread",children:a.jsx(te,{name:"threads",size:18})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"unstyled-button","aria-label":"Share file…",children:a.jsx(te,{name:"share-message",size:18})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"unstyled-button","aria-label":"Save",children:a.jsx(te,{name:"bookmark",size:18})}),a.jsx("button",{type:"button",className:"p-prefs_actions_bar__button","data-qa":"unstyled-button","aria-label":"More actions",children:a.jsx(te,{name:"ellipsis-vertical-filled",size:18})})]})})})}),a.jsx(Wl,{sender:"Marcel",grey:!0,children:"I just reviewed it, and I’m ready to provide feedback"})]})]}),a.jsx(Ce,{}),a.jsxs(de,{title:"Inline media & links",legendGap:8,children:[a.jsx(_e,{pref:"inlineImages",label:"Show images and files uploaded to Slack"}),a.jsx(ke,{pref:"extra",id:"inline_linked_images",defaultChecked:!0,label:"Show images and files from linked websites"}),a.jsx(_e,{pref:"inlineLargeImages",label:"Even if they’re larger than 20MB",indent:!0}),a.jsx(_e,{pref:"textPreviews",label:"Show text previews of linked websites"})]}),a.jsx(Ce,{}),a.jsxs(de,{title:"Bring emails into Slack",legendQa:!0,legendGap:16,children:[a.jsx(Ae,{variant:"plain",children:"You can upload any important email to Slack by forwarding it to a unique email address. Forwarded emails show up as messages from you in a direct message with yourself, ready to share."}),a.jsx(_r,{qa:"get_forwarding_address_button",children:"Get a Forwarding Address"})]})]})}function q5(){const e=bt();return a.jsxs(_t,{children:[a.jsx(zt,{pref:"language",label:"Language",qa:"locale",large:!0,describedBy:"prefs_locale_description",labelMargin:"0 0 8px",choices:["English (US)","English (UK)","Deutsch","Español (España)","Español (Latinoamérica)","Français (France)","Italiano","Português (Brasil)","日本語","한국어","中文 (简体)","中文 (繁體)"]}),a.jsx(Ae,{variant:"muted",id:"prefs_locale_description",children:"Choose the language you’d like to use with Slack."}),a.jsxs(de,{title:"Time zone",legendGap:4,children:[a.jsx(_e,{pref:"timezoneAuto",label:"Set time zone automatically",ariaDescribedBy:"prefs_timezone_description"}),a.jsx(zt,{pref:"timezone",qa:"tz",large:!0,width:"100%",disabled:e.timezoneAuto,ariaLabel:"Time zone",describedBy:"prefs_timezone_description",choices:["(UTC-08:00) Pacific Time (US and Canada)","(UTC-07:00) Mountain Time (US and Canada)","(UTC-06:00) Central Time (US and Canada)","(UTC-05:00) Eastern Time (US and Canada)","(UTC+00:00) London","(UTC+01:00) Berlin, Paris, Madrid","(UTC+05:30) Mumbai, Kolkata","(UTC+09:00) Tokyo"]}),a.jsx(Ae,{variant:"muted",id:"prefs_timezone_description",children:"Slack uses your time zone to send summary and notification emails, for times in your activity feeds, and for reminders."})]}),a.jsx(zt,{pref:"keyboardLayout",label:"Keyboard layout",qa:"keyboard",large:!0,margin:"0 0 32px",choices:["English (US)","English (UK)","German","French","Dvorak","Colemak"],width:"100%"}),a.jsxs(de,{title:"Spellcheck",legendGap:4,margin:"0 0 8px",children:[a.jsx(_e,{pref:"spellcheck",label:"Enable spellcheck on your messages and canvases",ariaDescribedBy:"prefs_spellcheck_lanuages_hint"}),a.jsx(Ae,{variant:"small",id:"prefs_spellcheck_lanuages_hint",margin:"0 0 0 25px",children:"Spellcheck uses the languages set in your browser."})]})]})}const E5=[{id:"sender",label:"Sender",locked:!0},{id:"message_text",label:"Message",locked:!0},{id:"alt_text",label:"Image alt text"},{id:"date_time",label:"Date and time"},{id:"reaction_count",label:"Reaction count"},{id:"reply_count",label:"Reply count"},{id:"thread_context",label:"Thread context"},{id:"file_names",label:"File names"},{id:"link_previews",label:"Link previews"},{id:"edited",label:"Edited indicator"},{id:"pinned",label:"Pinned indicator"},{id:"saved",label:"Saved indicator"},{id:"channel_name",label:"Channel name"},{id:"unread",label:"Unread indicator"},{id:"app_badge",label:"App badge"}];function M5(){return a.jsxs(_t,{children:[a.jsxs(de,{title:"Display",large:!0,legendGap:4,margin:"0",children:[a.jsxs("div",{id:"a11y_bbm",className:"p-prefs_dialog__block16",children:[a.jsxs(de,{title:"Simplified layout mode",legendGap:4,children:[a.jsx(Ae,{variant:"plain",id:"bbm-description",children:"All of Slack’s functionality in a compact, more predictable layout designed to be easier to navigate with a screen reader."}),a.jsx(_r,{qa:"simplified-layout-toggle",ariaPressed:!1,children:"Turn On"})]}),a.jsx(de,{title:"Alt text reminders",legendGap:4,children:a.jsx(ke,{pref:"extra",id:"alt_text_reminders",defaultChecked:!0,label:"Remind me to add an image description on image uploads"})})]}),a.jsxs(de,{id:"a11y_other_display_options",title:"Other display options",legendGap:4,margin:"0 0 4px",children:[a.jsx(_e,{pref:"tabPreviews",label:"Show previews when hovering over tabs"}),a.jsx(_e,{pref:"underlineLinks",label:"Underline links to websites"}),a.jsx(_e,{pref:"animations",label:"Allow animations",sublabel:"Applies to emoji animation, GIFs, and reactions & effects in huddles and across Slack.",subSmall:!0})]})]}),a.jsx(Ce,{}),a.jsxs(de,{title:"Keyboard",large:!0,legendGap:4,margin:"0",children:[a.jsxs(Ae,{variant:"plain",id:"keyboard-interactions-aria-describedby-id",children:["You can improve the way you use Slack by learning our"," ",a.jsx("button",{type:"button",className:"c-link",children:"handy keyboard shortcuts"}),"."]}),a.jsx("div",{"data-qa":"up_to_browse_keyboard_section",children:a.jsxs(de,{legendGap:4,title:a.jsxs(a.Fragment,{children:["Press ",a.jsx($e,{label:"up arrow",icon:"caret-up-filled"})," in the empty message field to:"]}),children:[a.jsx(Pi,{id:"up_arrow",defaultValue:"edit",options:[{value:"focus",label:a.jsx("strong",{children:"Move focus to the message list"}),sublabel:"The most recent message in the list will be selected"},{value:"focus_empty",label:a.jsx("strong",{children:"Move focus to the message list, only if the message field is empty"}),sublabel:"The most recent message in the list will be selected"},{value:"edit",label:a.jsx("strong",{children:"Edit your last message"}),sublabel:"The last message you sent will be selected and in editing mode"}]}),a.jsxs("div",{className:"p-prefs_dialog__note",children:["Note: You can always press ",a.jsx($e,{label:"command",icon:"command"})," + ",a.jsx($e,{label:"up arrow",icon:"caret-up-filled"})," to edit your last message."]})]})}),a.jsxs(de,{id:"lists_keyboard_interactions",title:"Lists keyboard interactions",legendGap:4,margin:"0",children:[a.jsx(Ae,{variant:"plain",id:"list-keyboard-interactions-aria-describedby-id",children:"Choose how you want to use your keyboard with lists."}),a.jsx("div",{children:a.jsx("div",{children:a.jsx(Pi,{id:"lists_keyboard",defaultValue:"tab_nav",options:[{value:"tab_nav",label:a.jsxs(a.Fragment,{children:[a.jsx("strong",{children:"Data entry mode"})," (default)"]}),sublabel:"Use Tab to move horizontally, Enter to move vertically between cells",id:"tab_nav_option"},{value:"arrow_nav",label:a.jsxs(a.Fragment,{children:[a.jsx("strong",{children:"Full keyboard mode"})," (best for assistive technology)"]}),sublabel:"Use Tab to move between interactive elements, Enter to edit",id:"arrow_nav_option"}]})})})]})]}),a.jsx(Ce,{}),a.jsxs(de,{title:"Screen reader",large:!0,legendGap:4,margin:"0",children:[a.jsx(Ae,{variant:"plain",id:"screen-reader-aria-describedby-id",children:"Customize your screen reader experience"}),a.jsxs(de,{title:"Message verbosity",legendGap:4,children:[a.jsx(Ae,{variant:"plain",id:"message-verbosity-settings-aria-describedby-id",children:"Choose which parts of a message to include and the order in which they are announced by your screen reader."}),a.jsx("div",{children:a.jsxs("div",{role:"listbox","aria-label":"message components","aria-multiselectable":"true",className:"p-prefs_verbosity",children:[E5.map(e=>a.jsxs("div",{className:"p-prefs_verbosity__row",children:[a.jsx("div",{className:"p-prefs_verbosity__handle",children:a.jsx(te,{name:"reorder",size:20})}),a.jsx("div",{className:"p-prefs_verbosity__option_wrap",children:a.jsxs("div",{id:e.id,role:"option","aria-selected":"true","aria-label":e.label,"aria-disabled":e.locked?"true":"false",className:`p-prefs_verbosity__option${e.locked?" p-prefs_verbosity__option--locked":""}`,children:[a.jsx("input",{type:"checkbox","aria-hidden":"true",checked:!0,readOnly:!0,disabled:e.locked}),a.jsxs("div",{children:[a.jsx("div",{children:e.label}),e.locked&&a.jsx("div",{className:"p-prefs_verbosity__desc",children:"Can be reordered, but not turned off."})]})]})})]},e.id)),a.jsxs("div",{className:"p-prefs_verbosity__move",children:[a.jsx("button",{type:"button",className:"c-button-unstyled","data-qa":"unstyled-button","aria-disabled":"true","aria-label":"Move up",children:a.jsx(te,{name:"arrow-up",size:15})}),a.jsx("button",{type:"button",className:"c-button-unstyled","data-qa":"unstyled-button","aria-disabled":"false","aria-label":"Move down",children:a.jsx(te,{name:"arrow-down",size:15})})]})]})}),a.jsxs(_r,{small:!0,children:[a.jsx(te,{name:"play",size:15}),"Preview"]})]}),a.jsxs(de,{title:"Screen reader announcements",legendGap:4,children:[a.jsx(ke,{pref:"extra",id:"announce_new_messages",defaultChecked:!0,label:"Read incoming messages aloud in the current conversation"}),a.jsx(_e,{pref:"announceHuddles",label:"Announce when people join or leave a huddle"})]})]})]})}function z5(){return a.jsxs(_t,{children:[a.jsx(Ae,{variant:"plain",children:"Slack marks a channel read as soon as you view it. You can change this if you’d rather it worked differently."}),a.jsx(de,{title:"When I view a channel:",legendGap:8,margin:"0 0 16px",children:a.jsx(na,{pref:"markAsRead",options:[{value:"left_off",label:"Start me where I left off, and mark the channel read"},{value:"newest_read",label:"Start me at the newest message, and mark the channel read"},{value:"newest_unread",label:"Start me at the newest message, but leave unseen messages unread"}]})}),a.jsx(de,{title:"When I mark everything as read:",legendGap:4,children:a.jsx(_e,{pref:"confirmMarkAll",label:"Prompt to confirm"})}),a.jsx("h3",{className:"p-prefs_dialog__h3",children:"Keyboard shortcuts"}),a.jsxs("ul",{className:"p-prefs_dialog__shortcuts","aria-label":"Keyboard shortcuts",children:[a.jsxs("li",{children:["Mark all messages in current channel as read ",a.jsx($e,{label:"escape",children:"Esc"})]}),a.jsxs("li",{children:["Mark all messages as read ",a.jsx($e,{label:"shift",children:"Shift"}),a.jsx($e,{label:"escape",children:"Esc"})]}),a.jsxs("li",{children:["Mark a message as unread ",a.jsx($e,{label:"option",children:"Option"})," and click message"]})]}),a.jsxs("div",{className:"p-prefs_dialog__shortcuts_more",children:["And that’s just the beginning. To view the full list of keyboard shortcuts, just press ",a.jsx($e,{label:"command",icon:"command"}),a.jsx($e,{label:"/",children:"/"})]})]})}function T5(){return a.jsx(_t,{qa:null,children:a.jsxs("div",{children:[a.jsxs("div",{children:[a.jsx("label",{className:"c-select_group c-select_group--stacked",children:a.jsx("span",{className:"c-select_group__label",children:"Camera"})}),a.jsx("div",{className:"p-prefs_dialog__video","data-qa":"video-and-audio-setting-video-element"}),a.jsx(qs,{id:"camera",qa:"camera",ariaLabel:"Camera devices",choices:["Unknown Device"],defaultValue:"Unknown Device",width:"100%"}),a.jsx(Ce,{})]}),a.jsxs("div",{children:[a.jsx("label",{className:"c-select_group c-select_group--stacked",children:a.jsx("span",{className:"c-select_group__label",children:"Microphone"})}),a.jsx("div",{children:a.jsx(qs,{id:"microphone",qa:"microphone",ariaLabel:"Microphone devices",choices:["Unknown Device"],defaultValue:"Unknown Device",width:"100%"})}),a.jsxs("div",{className:"p-prefs_dialog__level_row",children:[a.jsx("span",{id:"audio-and-video-input-level",children:"Input level:"}),a.jsx("div",{className:"p-prefs_dialog__level_meter_wrap",children:a.jsx("div",{className:"p-prefs_dialog__level_meter","data-qa":"audio-levels-bubbles",role:"meter","aria-labelledby":"audio-and-video-input-level","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,children:Array.from({length:15},(e,t)=>a.jsx("span",{},t))})})]}),a.jsxs("div",{className:"p-prefs_dialog__checkbox_row",children:[a.jsx(ke,{pref:"extra",id:"auto_gain",defaultChecked:!0,label:"Enable automatic gain control"}),a.jsx(ke,{pref:"extra",id:"noise_suppression",defaultChecked:!0,label:"Enable noise suppression"})]})]}),a.jsxs("div",{className:"p-prefs_dialog__block16",children:[a.jsx("label",{className:"c-select_group c-select_group--stacked",children:a.jsx("span",{className:"c-select_group__label",children:"Speaker"})}),a.jsxs("div",{className:"p-prefs_dialog__speaker_row",children:[a.jsx(qs,{id:"speaker",qa:"speaker",ariaLabel:"Speaker devices",choices:["Unknown Device"],defaultValue:"Unknown Device",width:380.52}),a.jsx(_r,{spanQa:"video-and-audio-setting-test-speaker-button",className:"p-prefs_dialog__speaker_test",children:"Test Speaker"})]})]}),a.jsx(Ce,{margin:"24px 0 20px"}),a.jsx(de,{title:"When audio or video is playing…",legendQa:!0,legendGap:16,children:a.jsx(ke,{pref:"extra",id:"clips_pip_auto_dock",defaultChecked:!0,label:"Automatically dock to corner upon scroll or when navigating away",inputQa:"clips_pip_auto_dock_pref_checkbox"})}),a.jsx(Ce,{}),a.jsxs(de,{title:"When joining a huddle…",legendQa:!0,legendGap:16,children:[a.jsx(_e,{pref:"huddleJoinMuted",label:"Mute my microphone",inputQa:"video_and_audio_join_huddles_mute_by_default"}),a.jsx(_e,{pref:"huddleCaptions",label:"Automatically turn on captions when you’re in a huddle",inputQa:"video_and_audio_join_huddles_cc_by_default"}),a.jsx(_e,{pref:"huddleWarnLarge",label:"Send a warning if you’re starting a huddle in a channel with more than 150 members. This helps make sure you don’t start one by accident.",inputQa:"video_and_audio_warn_large_number_users_default"}),a.jsx(_e,{pref:"huddleBlur",label:"Blur your video background when you’re in a huddle with your camera on",inputQa:"video-background-filter-checkbox"}),a.jsx(_e,{pref:"huddlePreview",label:"Show audio and video preview",inputQa:"huddles_show_join_preview"})]}),a.jsx(de,{id:"huddle-reactions",title:"Huddle motion",legendQa:!0,legendGap:16,children:a.jsx(_e,{pref:"huddleReactions",label:"Allow for reactions & effects",inputQa:"huddles_reaction_explosions_pref_checkbox"})}),a.jsx(de,{title:"When alone in a huddle…",legendQa:!0,legendGap:16,children:a.jsxs("div",{children:[a.jsx(_e,{pref:"huddleMusic",label:"Play music",inputQa:"video_and_audio_join_huddles_play_music_when_last"}),a.jsx(qs,{id:"music_timeout",qa:"music_timeout",ariaLabel:"Please select an option",choices:["After 1 minute","After 5 minutes","After 10 minutes","Never"],defaultValue:"After 1 minute",width:300})]})}),a.jsxs("div",{children:[a.jsx(Ce,{margin:"24px 0 20px"}),a.jsx(de,{title:"Troubleshooting",legendQa:!0,legendGap:16,children:a.jsxs("div",{className:"p-prefs_dialog__test_row",children:[a.jsx("span",{children:"Run an audio, video and screensharing test."}),a.jsx(_r,{qa:"huddles-connectivity-trigger-button",children:"Run test"})]})})]})]})})}function A5(){var r;const{team:e,users:t,me:n}=me(),s=((r=t[n])==null?void 0:r.profile.email)??"";return a.jsxs(_t,{qa:"admin-slack-connect-privacy-visibility-settings",children:[a.jsx("div",{"data-qa":"account-visibility-radio-group",children:a.jsxs(de,{title:"Slack Connect discoverability",legendGap:4,children:[a.jsxs(Ae,{variant:"plain",children:["Choose who can find you via Slack search. They’ll only be able to see that you’re on Slack, not any of your details."," ",a.jsx("a",{className:"c-link",href:"#","aria-label":"Learn more about Slack Connect",onClick:i=>i.preventDefault(),children:"Learn more"})]}),a.jsx(na,{pref:"connectDiscoverability",name:"account-visibility",options:[{value:"email",label:a.jsxs(a.Fragment,{children:["Anyone with your email address ",a.jsxs("strong",{children:["(",s,")"]})]}),qa:"account-visibility-radio-label-everyone",inputQa:"account-visibility-radio-option-everyone"},{value:"no_one",label:"No one",qa:"account-visibility-radio-label-no-one",inputQa:"account-visibility-radio-option-no-one"}]})]})}),a.jsxs(Vl,{qa:"account-visibility-find-my-teams",children:[a.jsx("strong",{children:"Preferences only apply to this workspace"}),"To make sure no one can search for you, you’ll need to change this preference across all your workspaces."," ",a.jsx("button",{type:"button",className:"c-link","data-qa":"account-visibility-find-my-teams-link",children:"Find my workspaces"})]}),a.jsx(Ce,{}),a.jsx("div",{"data-qa":"contact-sharing-radio-group",children:a.jsxs(de,{title:"Contact sharing",legendGap:4,children:[a.jsxs(Ae,{variant:"plain",children:["Choose who’s allowed to share your contact info, so they can introduce you to people they work with in ",a.jsx("span",{children:e.name}),"."," ",a.jsx("a",{className:"c-link",href:"#",onClick:i=>i.preventDefault(),children:"Learn more"})]}),a.jsx(na,{pref:"contactSharing",name:"contact-sharing",options:[{value:"anyone",label:"All your contacts",sublabel:a.jsxs(a.Fragment,{children:["Includes people from ",a.jsx("span",{children:e.name})," and any external people you’re using Slack Connect to work with."]}),inputQa:"contact-sharing-radio-option-everyone"},{value:"organization",label:a.jsxs(a.Fragment,{children:["Only people at ",a.jsx("span",{children:e.name})]}),inputQa:"contact-sharing-radio-option-team-members"},{value:"no_one",label:"No one",inputQa:"contact-sharing-radio-option-no-one"}]})]})}),a.jsx(Ce,{}),a.jsxs("div",{"data-qa":"blocked-invites-section",children:[a.jsx("h3",{className:"p-prefs_dialog__h3 p-prefs_dialog__h3--gap4","data-qa":"blocked-invites-section-label",children:"Invitations you’ve blocked"}),a.jsx(Ae,{variant:"plain",children:"You’ve stopped receiving Slack Connect invitations from these people."}),a.jsx(Vl,{tone:"neutral",qa:"blocked-invites-list-empty",children:"You haven’t blocked any invitations from anyone yet."})]}),a.jsx(Ce,{}),a.jsxs("div",{"data-qa":"hidden-users-section",children:[a.jsx("h3",{className:"p-prefs_dialog__h3 p-prefs_dialog__h3--gap4","data-qa":"hidden-users-section-label",children:"People you’ve hidden"}),a.jsxs(Ae,{variant:"plain",children:["You won’t get notifications or see messages from these people."," ",a.jsx("a",{className:"c-link",href:"#",onClick:i=>i.preventDefault(),children:"Learn more"})]}),a.jsx(Vl,{tone:"neutral",qa:"hidden-users-list-empty",children:"You haven’t hidden anyone yet."})]})]})}function L5(){const e=bt();return a.jsxs(a.Fragment,{children:[a.jsxs(de,{qa:"prefs_section_container",id:"input-options",title:"Input options",legendQa:!0,legendGap:16,children:[a.jsx(_e,{pref:"codeBlockEnter",label:a.jsxs(a.Fragment,{children:["When typing code with ```, ",a.jsx($e,{label:"enter",children:"Enter"})," should not send the message."]}),sublabel:a.jsxs(a.Fragment,{children:["With this checked use ",a.jsx($e,{label:"shift",children:"Shift"}),a.jsx($e,{label:"enter",children:"Enter"})," to send."]}),subMuted:!0}),a.jsx(_e,{pref:"markupFormatting",label:"Format messages with markup",sublabel:"The text formatting toolbar won’t show in the composer.",subMuted:!0}),a.jsx(ke,{pref:"extra",id:"shorten_links",label:"Shorten external links",sublabel:"When pasting links to places outside Slack, URLs will be shortened.",subMuted:!0,inputQa:"disable_link_truncation_checkbox"}),a.jsx("div",{children:a.jsx(de,{legendGap:4,margin:"8px 0 0",title:a.jsxs(a.Fragment,{children:["When writing a message, press ",a.jsx($e,{label:"enter",children:"Enter"})," to…"]}),children:a.jsx(na,{pref:"enterSends",qa:"pref_enter_key",options:[{value:!0,label:"Send the message"},{value:!1,label:a.jsxs(a.Fragment,{children:["Start a new line (use ",a.jsx($e,{label:"command",icon:"command"}),a.jsx($e,{label:"enter",children:"Enter"})," to send)"]})}]})})})]}),a.jsx(Ce,{margin:"24px 0 20px"}),a.jsxs(de,{id:"search-options",title:"Search options",legendGap:16,children:[a.jsx(_e,{pref:"cmdFSearch",label:a.jsxs(a.Fragment,{children:[a.jsx($e,{label:"command",icon:"command"}),a.jsx($e,{label:"f",children:"F"})," starts a Slack search"]}),sublabel:"Overrides normal browser search behavior",subMuted:!0}),a.jsx(ke,{pref:"extra",id:"quickswitcher_cmd_k",defaultChecked:!0,inputQa:"quickswitcher_checkbox",label:a.jsxs(a.Fragment,{children:[a.jsx($e,{label:"command",icon:"command"}),a.jsx($e,{label:"k",children:"K"})," starts the Quick Switcher"]}),sublabel:"Overrides normal behavior in some browsers",subMuted:!0}),a.jsxs("label",{className:"c-select_group",style:{margin:"8px 0 0"},children:[a.jsx("span",{className:"c-select_group__label",children:"Exclude these channels from search results:"}),a.jsx("span",{children:a.jsxs("div",{"data-qa":"search_exclude_channels_picker",children:[a.jsxs("div",{className:"c-multi_select_input","data-qa":"multi_select_input",children:[a.jsxs("div",{className:"c-multi_select_input__input","data-qa":"search_exclude_channels_picker-input",id:"search_exclude_channels_picker",role:"combobox","aria-disabled":"false","aria-autocomplete":"list","aria-expanded":"false","aria-controls":"search_exclude_channels_picker_listbox",contentEditable:!0,suppressContentEditableWarning:!0,onInput:t=>St({searchExclude:t.currentTarget.textContent??""}),children:[a.jsx("span",{"data-qa":"multi_select_space"}),a.jsx("span",{"data-qa":"multi_select_filter_query",children:e.searchExclude}),a.jsx("span",{"data-qa":"multi_select_space"})]}),!e.searchExclude&&a.jsx("div",{className:"c-multi_select_input__placeholder","aria-hidden":"true",children:"Type a channel name…"})]}),a.jsx("div",{})]})})]}),a.jsx("div",{children:a.jsx(de,{title:"Sort option default:",legendGap:4,margin:"24px 0 4px",children:a.jsx(Pi,{id:"search_sort_default",defaultValue:"relevant",options:[{value:"relevant",label:"Most relevant"},{value:"last_used",label:"Last used:",sublabel:"Each new search defaults you to the option you last used"}]})})})]}),a.jsx(Ce,{margin:"24px 0 20px"}),a.jsxs(de,{title:"Confirmations and warnings",legendQa:!0,legendGap:16,children:[a.jsx(ke,{pref:"extra",id:"confirm_unsend",defaultChecked:!0,label:a.jsxs(a.Fragment,{children:["Show me a confirmation when I use ",a.jsx($e,{label:"command",icon:"command"}),a.jsx($e,{label:"z",children:"Z"})," to unsend a message I just sent"]})}),a.jsx(ke,{pref:"extra",id:"ask_toggle_away",defaultChecked:!0,label:"Ask if I want to toggle my away status when I log in after having set myself away manually"}),a.jsx(_e,{pref:"warnDownloads",label:"Warn me about potentially malicious links"}),a.jsx(ke,{pref:"extra",id:"warn_external_files",defaultChecked:!0,label:"Warn me when sharing files with external organizations"}),a.jsx(ke,{pref:"extra",id:"warn_external_canvases",defaultChecked:!0,label:"Warn me when sharing canvases with external organizations"})]}),a.jsx(Ce,{margin:"24px 0 20px"}),a.jsxs(de,{title:"Other options",legendQa:!0,legendGap:16,children:[a.jsx(ke,{pref:"extra",id:"channel_suggestions",defaultChecked:!0,label:"Send me occasional channel suggestions"}),a.jsx(ke,{pref:"extra",id:"surveys",defaultChecked:!0,label:"Send me occasional surveys",sublabel:"We’re always working to make Slack better, and we’d love your thoughts.",subMuted:!0})]})]})}function D5(){return a.jsx(_t,{children:a.jsxs(de,{title:"VIP",legendGap:4,children:[a.jsx(Ae,{children:"Mark the people whose messages should always reach you. VIP messages notify you even while notifications are paused."}),a.jsx(_e,{pref:"notifyVip",label:"Always allow notifications from VIPs"})]})})}function P5(){return a.jsx(_t,{children:a.jsx(de,{title:"Salesforce",legendGap:4,children:a.jsx(Ae,{children:"Connect a Salesforce org to bring records into Slack."})})})}function $5(){return a.jsx(_t,{children:a.jsx(de,{title:"Connected accounts",legendGap:4,children:a.jsx(Ae,{children:"Accounts you have connected to Slack appear here."})})})}function F5(){return a.jsx(_t,{children:a.jsx(de,{title:"Slack AI",legendGap:4,children:a.jsx(Ae,{children:"Choose how AI features behave in your conversations."})})})}function R5({tab:e}){switch(e){case"availability":return a.jsx(b5,{});case"notifications":return a.jsx(x5,{});case"vip":return a.jsx(D5,{});case"tab_rail":return a.jsx(y5,{});case"sidebar":return a.jsx(j5,{});case"themes":return a.jsx(N5,{});case"messages_media":return a.jsx(C5,{});case"language_region":return a.jsx(q5,{});case"accessibility":return a.jsx(M5,{});case"mark_as_read":return a.jsx(z5,{});case"video_audio":return a.jsx(T5,{});case"salesforce":return a.jsx(P5,{});case"connected_accounts":return a.jsx($5,{});case"privacy_visibility":return a.jsx(A5,{});case"slack_ai":return a.jsx(F5,{});case"advanced":return a.jsx(L5,{});default:return null}}function I5({initialTab:e="availability",onClose:t}){const[n,s]=_.useState(e);return a.jsx(ur,{title:"Preferences",qa:"prefs_dialog",width:800,onClose:t,className:"p-prefs_dialog",unverified:!1,children:a.jsx(m5,{tabs:v5,active:n,onSelect:r=>s(r),listLabel:"Categories",children:a.jsx(R5,{tab:n})})})}const v_=new WeakSet;function O5(){const e=bt(),{theme:t,toggleTheme:n}=me(),s=_.useRef(null);return _.useEffect(()=>{const r=xv(e.colorMode);if(s.current!==null&&t!==s.current&&t!==r){s.current=t,St({colorMode:t});return}r!==t&&n(),s.current=r},[e.colorMode,t,n]),_.useEffect(()=>{if(e.colorMode!=="system")return;const r=matchMedia("(prefers-color-scheme: dark)"),i=()=>{s.current=null,St({colorMode:"system"})};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[e.colorMode]),_.useEffect(()=>{const r=document.documentElement,i=nh(e.theme);r.setAttribute("data-sidebar-theme",i.id),r.style.setProperty("--tw_column_bg",i.column_bg),r.style.setProperty("--tw_hover_item",i.hover_item),r.style.setProperty("--tw_active_item",i.active_item),r.style.setProperty("--tw_active_item_text",i.active_item_text),r.style.setProperty("--tw_text_color",i.text_color),r.style.setProperty("--tw_text_color_muted",i.light?"rgba(29, 28, 29, 0.7)":"rgba(255, 255, 255, 0.7)"),r.style.setProperty("--tw_active_presence",i.active_presence),r.style.setProperty("--tw_mention_badge",i.badge),r.style.setProperty("--tw_rail_bg",i.menu_bg),r.style.setProperty("--tw_top_nav_bg",i.menu_bg),r.style.setProperty("--tw_top_nav_text",i.text_color),r.style.setProperty("--tw_rail_icon",i.light?"rgba(29, 28, 29, 0.7)":"rgba(255, 255, 255, 0.7)"),r.style.setProperty("--tw_rail_icon_active",i.text_color),r.style.setProperty("--tw_sidebar_divider",i.light?"rgba(29, 28, 29, 0.13)":"rgba(255, 255, 255, 0.13)"),r.style.setProperty("--tw_column_bg_hover",i.light?"rgba(29, 28, 29, 0.06)":"rgba(255, 255, 255, 0.1)"),r.style.setProperty("--tw_top_nav_search_bg",i.light?"rgba(29, 28, 29, 0.06)":"rgba(255, 255, 255, 0.2)"),r.style.setProperty("--tw_top_nav_search_border",i.light?"rgba(29, 28, 29, 0.2)":"rgba(255, 255, 255, 0.3)"),r.style.setProperty("--tw_top_nav_search_text",i.text_color),r.setAttribute("data-message-display",e.messageDisplay),r.setAttribute("data-rail-labels",e.railLabels),r.setAttribute("data-time-format",e.time24h?"24":"12"),r.setAttribute("data-darker-sidebars",String(e.darkerSidebars)),r.setAttribute("data-window-gradient",String(e.windowGradient)),r.setAttribute("data-underline-links",String(e.underlineLinks)),r.setAttribute("data-show-typing",String(e.showTyping)),r.setAttribute("data-sidebar-photos",String(e.sidebarProfilePhotos)),r.setAttribute("data-hidden-tabs",Object.entries(e.tabs).filter(([,l])=>!l).map(([l])=>l).join(" ")),r.setAttribute("data-hidden-sidebar-items",Object.entries(e.sidebarAlways).filter(([,l])=>!l).map(([l])=>l).join(" ")),r.style.setProperty("--tw_zoom",String(parseInt(e.zoom,10)/100))},[e]),_.useEffect(()=>{if(e.enterSends)return;const r=i=>{var u;if(v_.has(i)||i.key!=="Enter"||i.shiftKey||i.altKey)return;const l=i.target;if(!((u=l==null?void 0:l.closest)!=null&&u.call(l,'[data-qa="message_input"]')))return;const o=i.metaKey||i.ctrlKey;i.preventDefault(),i.stopPropagation();const c=new KeyboardEvent("keydown",{key:"Enter",code:"Enter",bubbles:!0,cancelable:!0,shiftKey:!o});v_.add(c),l.dispatchEvent(c)};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[e.enterSends]),null}const tf="twin.self",Kl={status:null,dndUntil:null,resumedUntil:null,stars:[]};let ua=B5();const lc=new Set;function B5(){try{const e=typeof localStorage<"u"?localStorage.getItem(tf):null;return e?{...Kl,...JSON.parse(e)}:Kl}catch{return Kl}}function il(e){ua=e;try{localStorage.setItem(tf,JSON.stringify(e))}catch{}lc.forEach(t=>t())}function b_(){return ua}function ll(){return _.useSyncExternalStore(e=>(lc.add(e),()=>lc.delete(e)),b_,b_)}function Ql(e){il({...ua,status:e})}function oc(e){il({...ua,dndUntil:e})}function H5(e){const t=ua.stars.includes(e)?ua.stars.filter(n=>n!==e):[...ua.stars,e];il({...ua,stars:t})}function yd(e,t=Date.now()){return!e.status||e.status.expiresAt&&e.status.expiresAt<t?null:e.status}function af(e,t=Date.now()){if(e.dndUntil&&e.dndUntil>t)return e.dndUntil;const n=nf(t);return n&&e.resumedUntil!==n?n:null}function U5(e=Date.now()){il({...ua,dndUntil:null,resumedUntil:nf(e)})}function x_(e){const t=/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i.exec(e.trim());if(!t)return{h:9,m:0};let n=Number(t[1])%12;return t[3].toUpperCase()==="PM"&&(n+=12),{h:n,m:Number(t[2])}}function Gl(e,t){if(t==="every_day")return!0;const n=e.getDay();return n!==0&&n!==6}function nf(e=Date.now()){const t=da(),n=x_(t.scheduleStart),s=x_(t.scheduleEnd),r=(o,c)=>{const u=new Date(o);return u.setHours(c.h,c.m,0,0),u},i=new Date(e);if(Gl(i,t.scheduleDays)&&e>=r(i,n).getTime()&&e<r(i,s).getTime())return null;const l=new Date(i);Gl(i,t.scheduleDays)&&e<r(i,n).getTime()||l.setDate(l.getDate()+1);for(let o=0;o<8&&!Gl(l,t.scheduleDays);o+=1)l.setDate(l.getDate()+1);return r(l,n).getTime()}function V5(e,t=new Date){const n=new Date(e),s=n.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});if(n.toDateString()===t.toDateString())return`until ${s}`;const i=new Date(t);return i.setDate(t.getDate()+1),n.toDateString()===i.toDateString()?`until tomorrow at ${s}`:`until ${n.toLocaleDateString([],{month:"short",day:"numeric"})} at ${s}`}function ol(e,t){const n=e?"Active":"Away";return t?`${n}, notifications snoozed`:n}function W5({anchor:e,onClose:t,onOpenPreferences:n,onOpenProfile:s,onOpenStatus:r,onSignOut:i}){var S;const{me:l,users:o,team:c,setPresence:u}=me(),m=Be(),h=ll(),p=yd(h),g=af(h),y=((S=o[l])==null?void 0:S.presence)==="active",[k,C]=_.useState(!1),f=A=>oc(Date.now()+A),v=()=>{const A=new Date;A.setDate(A.getDate()+1),A.setHours(9,0,0,0),oc(A.getTime())},b={kind:"custom",node:a.jsxs("div",{className:"c-menu__footnote",children:["You can choose to always allow notifications from VIPs"," ",a.jsx("button",{type:"button",className:"c-button-unstyled c-menu__footnote_link",onClick:()=>n("availability"),children:"in preferences."})]})},x=g?[{kind:"item",label:"Resume notifications",sublabel:`Paused ${V5(g)}`,danger:!0,onSelect:()=>U5()},{kind:"divider"},b]:[{kind:"header",label:"Pause notifications..."},{kind:"item",label:"For 30 minutes",onSelect:()=>f(30*60*1e3)},{kind:"item",label:"For 1 hour",onSelect:()=>f(60*60*1e3)},{kind:"item",label:"For 2 hours",onSelect:()=>f(2*60*60*1e3)},{kind:"item",label:"Until tomorrow",onSelect:v},{kind:"item",label:"Custom...",onSelect:()=>f(4*60*60*1e3)},{kind:"divider"},b],w=[...k?[]:[{kind:"custom",node:a.jsxs("div",{className:"p-ia__main_menu__promo","data-twin-unverified":"true",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-ia__main_menu__promo_card","data-qa":"unstyled-button",role:"menuitem",onClick:()=>n("themes"),children:[a.jsx("span",{className:"p-ia__main_menu__promo_emoji","aria-hidden":"true",children:"🎨"}),a.jsxs("span",{className:"p-ia__main_menu__promo_text",children:[a.jsx("strong",{children:m.realName(l)})," try the new themes",a.jsx("span",{className:"p-ia__main_menu__promo_arrow",children:a.jsx(te,{name:"arrow-right",size:13})})]})]}),a.jsx("span",{className:"p-ia__main_menu__promo_dismiss_wrap",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-ia__main_menu__promo_dismiss","data-qa":"unstyled-button","aria-label":"Dismiss themes banner",onClick:()=>C(!0),children:a.jsx(te,{name:"close",size:18})})})]})}],{kind:"custom",node:a.jsxs("div",{className:"p-ia__main_menu__user","aria-hidden":"true",children:[a.jsx(Oe,{userId:l,size:36,presence:!1}),a.jsxs("div",{className:"p-ia__main_menu__user_details",children:[a.jsx("div",{className:"p-ia__main_menu__user_name",children:m.realName(l)}),a.jsxs("span",{className:"p-ia__main_menu__user_presence",children:[a.jsx("span",{className:`p-ia__main_menu__user_presence_icon${y?"":" p-ia__main_menu__user_presence_icon--away"}`,children:a.jsx(xr,{"data-qa":"presence_indicator",size:20,role:"img","aria-hidden":"false","aria-label":ol(y,!!g)})}),y?"Active":"Away"]})]})]})},{kind:"custom",node:a.jsx("div",{className:"p-ia__main_menu__custom_status",children:a.jsxs("button",{type:"button",className:"p-ia__main_menu__custom_status_button","data-qa":"main-menu-custom-status-item",role:"menuitem","aria-label":(p!=null&&p.text,"Update your status"),onClick:()=>{t(),r()},children:[a.jsx("div",{className:"p-ia__main_menu__custom_status_emoji",children:p!=null&&p.emoji?a.jsx(ba,{glyph:p.emoji,label:"status emoji",size:20}):a.jsxs(a.Fragment,{children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--color","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--outline","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--ink","data-qa":"slack_kit_icon","aria-hidden":"true"})]})}),(p==null?void 0:p.text)||"Update your status"]})})},{kind:"item",label:a.jsxs(a.Fragment,{children:["Set yourself as ",a.jsx("strong",{children:y?"away":"active"})]}),onSelect:()=>void u(y?"away":"auto")},{kind:"item",label:"Notifications",hint:g?"Paused":void 0,submenu:x,submenuWidth:260,submenuRadius:"0 0 6px 6px"},{kind:"divider"},{kind:"item",label:"Profile",onSelect:()=>s(l)},{kind:"item",label:"Preferences",onSelect:()=>n()},{kind:"item",label:"Account settings",external:!0},{kind:"divider"},{kind:"item",label:`Sign out of ${c.name}`,onSelect:i}];return a.jsx(sl,{anchor:e,placement:"right-end",entries:w,qa:"user_menu",onClose:t,width:300,ariaLabel:`User menu: ${m.realName(l)}`,unverified:!1})}const K5=[{emoji:"📅",text:"In a meeting",expiresAt:null,label:"1 hour"},{emoji:"🚌",text:"Commuting",expiresAt:null,label:"30 minutes"},{emoji:"🤒",text:"Out sick",expiresAt:null,label:"Today"},{emoji:"🌴",text:"Vacationing",expiresAt:null,label:"Don't clear"},{emoji:"🏡",text:"Working remotely",expiresAt:null,label:"Today"}],Q5=["Don't clear","30 minutes","1 hour","4 hours","Today","This week","Choose date and time"];function y_(e){const t=new Date;switch(e){case"30 minutes":return t.getTime()+30*60*1e3;case"1 hour":return t.getTime()+60*60*1e3;case"4 hours":return t.getTime()+4*60*60*1e3;case"Today":{const n=new Date(t);return n.setHours(23,59,0,0),n.getTime()}case"This week":{const n=new Date(t);return n.setDate(t.getDate()+((7-t.getDay())%7||7)),n.setHours(0,0,0,0),n.getTime()}default:return null}}function G5({onClose:e}){const t=ll(),n=yd(t),[s,r]=_.useState((n==null?void 0:n.emoji)??""),[i,l]=_.useState((n==null?void 0:n.text)??""),[o,c]=_.useState((n==null?void 0:n.label)??"Don't clear"),[u,m]=_.useState(!1),h=()=>{if(!i.trim()&&!s?Ql(null):Ql({emoji:s||"💬",text:i.trim(),expiresAt:y_(o),label:o}),u){const p=y_(o);oc(p??Date.now()+60*60*1e3)}e()};return a.jsxs(ur,{title:"Set a status",qa:"custom_status_dialog",width:520,onClose:e,footer:a.jsxs(a.Fragment,{children:[n&&a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--medium c-sk-modal_footer__left","data-qa":"custom_status_clear",onClick:()=>{Ql(null),e()},children:"Clear status"}),a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--medium","data-qa":"custom_status_cancel",onClick:e,children:"Cancel"}),a.jsx("button",{type:"button",className:"c-button c-button--primary c-button--medium","data-qa":"custom_status_save",onClick:h,children:"Save"})]}),children:[a.jsxs("div",{className:"p-custom_status_input","data-qa":"custom_status_input",children:[a.jsx("button",{type:"button",className:"p-custom_status_input__emoji","aria-label":"Choose an emoji","data-qa":"custom_status_emoji",onClick:()=>r(s?"":"💬"),children:s?a.jsx(ba,{glyph:s,label:"status emoji"}):a.jsx(lh,{size:22})}),a.jsx("input",{className:"p-custom_status_input__text","data-qa":"custom_status_text",placeholder:"What's your status?",value:i,maxLength:100,autoFocus:!0,onChange:p=>l(p.target.value)}),(i||s)&&a.jsx("button",{type:"button",className:"p-custom_status_input__clear","aria-label":"Clear",onClick:()=>{l(""),r("")},children:"×"})]}),!i&&!s?a.jsx("ul",{className:"p-custom_status_suggestions","data-qa":"custom_status_suggestions",children:K5.map(p=>a.jsx("li",{children:a.jsxs("button",{type:"button",className:"p-custom_status_suggestion","data-qa":`custom_status_suggestion_${p.text.toLowerCase().replace(/\s+/g,"_")}`,onClick:()=>{r(p.emoji),l(p.text),c(p.label)},children:[a.jsx("span",{className:"p-custom_status_suggestion__emoji",children:a.jsx(ba,{glyph:p.emoji,label:`${p.text} emoji`,size:20})}),a.jsx("span",{className:"p-custom_status_suggestion__text",children:p.text}),a.jsx("span",{className:"p-custom_status_suggestion__hint",children:p.label})]})},p.text))}):a.jsxs("div",{className:"p-custom_status_options",children:[a.jsxs("label",{className:"c-select_group",children:[a.jsx("span",{className:"c-select_group__label",children:"Clear after"}),a.jsx("span",{className:"c-select_button c-select_button--twin",children:a.jsx("select",{className:"c-select_button__select","data-qa":"custom_status_clear_after",value:o,onChange:p=>c(p.target.value),children:Q5.map(p=>a.jsx("option",{children:p},p))})})]}),a.jsxs("label",{className:"c-input_checkbox_group",children:[a.jsx("input",{type:"checkbox",className:"c-input_checkbox","data-qa":"custom_status_pause",checked:u,onChange:p=>m(p.target.checked)}),a.jsx("span",{className:"c-input_checkbox_group__text",children:a.jsx("span",{className:"c-input_checkbox_group__label",children:"Pause notifications"})})]})]})]})}const Y5=130,Z5=["January","February","March","April","May","June","July","August","September","October","November","December"];function J5(e){if(!e)return"";const t=new Date(e*1e3);return`${Z5[t.getMonth()]} ${t.getDate()}, ${t.getFullYear()}`}function j_({qa:e,label:t,children:n,className:s="",onClick:r,ariaLabel:i,ariaPressed:l}){return a.jsxs("button",{type:"button",className:`c-button-unstyled p-about_modal__pill ${s}`.trim(),"data-qa":e,"aria-haspopup":"menu","aria-label":i,"aria-pressed":l,onClick:r,children:[n,t]})}function Ca({qa:e,title:t,children:n,editQa:s,editLabel:r,radius:i,top:l=!1}){return a.jsx("div",{className:`p-about_modal__field${l?"":" p-about_modal__field--rule"}`,"data-qa":e,role:"group","aria-disabled":"false",style:i?{borderRadius:i}:void 0,children:a.jsxs("div",{className:"p-about_modal__field_inner",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:t}),n,s&&a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__edit","data-qa":s,"aria-label":r,children:"Edit"})]})})}function X5({channel:e,initialTab:t="about",onClose:n,onOpenProfile:s,onLeave:r}){var K,L,B,j,F;const{users:i,me:l}=me(),o=Be(),c=ll(),[u,m]=_.useState(t),[h,p]=_.useState(null),[g,y]=_.useState(""),[k,C]=_.useState(!1),[f,v]=_.useState(!1),b=o.channelName(e.id)??e.id,x=e.is_starred!==c.stars.includes(e.id);_.useEffect(()=>{const M=window.setTimeout(()=>C(!0),Y5);return()=>window.clearTimeout(M)},[]),_.useEffect(()=>{let M=!1;return ge.members(e.id).then(X=>{M||p(X.members)}).catch(()=>{M||p([])}),()=>{M=!0}},[e.id]);const w=e.creator,S=_.useMemo(()=>{const M=(h??[]).filter(E=>i[E]),X=g.trim().toLowerCase(),oe=M.sort((E,O)=>E===w?-1:O===w?1:o.realName(E).localeCompare(o.realName(O)));return X?oe.filter(E=>o.realName(E).toLowerCase().includes(X)||i[E].name.includes(X)):oe},[h,i,g,w,o]),A=(h==null?void 0:h.length)??e.num_members??0,I=[{id:"about",label:"About"},{id:"members",label:"Members",count:A},{id:"agents_apps",label:"Agents & apps"},{id:"automations",label:"Automations"},{id:"tabs",label:"Tabs"},{id:"settings",label:"Settings",ariaLabel:"Settings"}],Q=((K=I.find(M=>M.id===u))==null?void 0:K.label)??"About",z=M=>M==="agents_apps"?"agents":M==="automations"?"integrations":M,ae=a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"p-about_modal__title_icon",children:e.is_im?a.jsx(Oe,{userId:e.user??void 0,size:22,presence:!0}):e.is_private?a.jsx(Lt,{name:"lock",size:22}):a.jsx(_d,{"data-qa":"channel-filled",size:22})}),a.jsx("span",{children:b}),a.jsx("span",{className:"p-about_modal__title_spacer"})]}),ce=a.jsxs("div",{className:"p-about_modal__actions",children:[a.jsxs(j_,{qa:"channel-header-star-button",className:"p-about_modal__pill--star",ariaLabel:x?"Unstar channel":"Star channel",ariaPressed:x,onClick:()=>H5(e.id),children:[a.jsx("i",{className:`c-slack_kit_icon c-slack_kit_icon--star${x?" c-slack_kit_icon--star_on":""}`,"data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--caret","data-qa":"slack_kit_icon","aria-hidden":"true"})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-about_modal__pill","data-qa":"control_button","aria-haspopup":"menu","aria-label":"All new posts",children:[a.jsx("div",{className:"p-about_modal__pill_icon",children:a.jsx(te,{name:"notifications-all-new-posts",size:15})}),"All new posts",a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--caret","data-qa":"slack_kit_icon","aria-hidden":"true"})]}),a.jsx(j_,{qa:"call",label:"Huddle",ariaLabel:`Huddle in #${b}`,className:"p-about_modal__pill--call",children:a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--headphones","data-qa":"slack_kit_icon","aria-hidden":"true"})})]}),ie=a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx(Ca,{title:"Channel name",editQa:"undefined-edit-button",editLabel:`Edit channel name: ${b}`,radius:"12px",top:!0,children:a.jsxs("span",{className:"p-about_modal__field_desc",children:[a.jsx("span",{className:"p-about_modal__field_desc_icon",children:a.jsx(te,{name:e.is_private?"lock":"channel",size:15})}),a.jsx("span",{children:b})]})})}),P=(M,X)=>a.jsx("div",{className:"p-about_modal__content","data-qa":"sk-modal-content",children:a.jsx("div",{className:"p-about_modal__scroll_wrap",role:"presentation",children:a.jsx("div",{className:"p-about_modal__scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsx("div",{className:"p-about_modal__scroll_child",role:"presentation",style:X?{height:X}:void 0,children:a.jsx("div",{children:M})})})})});return a.jsxs(ur,{title:ae,ariaLabel:`Details for channel #${b}`,qa:"channel_details_modal",width:580,onClose:n,className:"p-about_modal",unverified:!1,headerRow:ce,children:[a.jsxs("div",{className:"c-tabs__horizontal","data-qa":"tabs_full_height_class",role:"none",children:[a.jsx("div",{className:"c-tabs__strip","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal",children:I.map(M=>a.jsxs("button",{type:"button",role:"tab",id:z(M.id),className:"c-tabs__strip_item","data-qa":`channel_details_${M.id}_tab`,"aria-haspopup":"false","aria-selected":M.id===u,"aria-label":M.ariaLabel,onClick:()=>m(M.id),children:[a.jsx("span",{children:M.label}),M.count!==void 0&&a.jsx("span",{className:"c-tabs__strip_count","data-qa":"tabs_item_render_count",children:M.count})]},M.id))}),a.jsxs("div",{className:"c-tabs__strip_panel","data-qa":"tabs_content_container",role:"tabpanel","aria-label":Q,children:[u==="about"&&P(a.jsxs(a.Fragment,{children:[k&&ie,a.jsxs("div",{className:"p-about_modal__group",role:"group",children:[a.jsx(Ca,{qa:"about__topic_field",title:"Topic",editQa:"about__topic_field-edit-button",editLabel:"Edit channel topic",radius:"12px 12px 0 0",top:!0,children:a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{className:(L=e.topic)!=null&&L.value?"":"p-about_modal__field_desc--empty",children:((B=e.topic)==null?void 0:B.value)||"Add a topic"})})}),a.jsx(Ca,{qa:"about__purpose_field",title:"Description",editQa:"about__purpose_field-edit-button",editLabel:"Add channel purpose",children:a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{className:(j=e.purpose)!=null&&j.value?"":"p-about_modal__field_desc--empty",children:((F=e.purpose)==null?void 0:F.value)||"Add a description"})})}),a.jsx(Ca,{qa:"about__channel_manager_field",editQa:"about__channel_manager_field-edit-button",editLabel:"Edit channel managers",title:a.jsxs("span",{className:"p-about_modal__field_title_inner",children:[a.jsx("span",{children:"Managed by"}),a.jsx("a",{className:"p-about_modal__help","data-qa":"help-link","aria-label":"More information about channel managers",href:"#",onClick:M=>M.preventDefault(),children:a.jsx(te,{name:"info",size:15})})]}),children:a.jsx("span",{role:"presentation",className:"p-about_modal__field_desc",children:k?a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__manager_link","data-qa":"about__channel_manager_field__channel_manager_profile_link",onClick:()=>w&&s(w),children:a.jsx("span",{"data-qa":"inline_member_entity",children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{"data-qa":"inline_member_entity__name",children:a.jsx("strong",{"data-qa":"member_name",children:w?o.realName(w):"Workspace admins"})})})})})})}):a.jsx("span",{className:"p-about_modal__spinner","aria-label":"Loading"})})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__field p-about_modal__field--rule p-about_modal__field--button","aria-disabled":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:"Created by"}),a.jsxs("div",{children:[w?o.realName(w):"Unknown",e.created?` on ${J5(e.created)}`:""]})]})}),!e.is_im&&a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__field p-about_modal__field--rule p-about_modal__field--button p-about_modal__field--leave","data-qa":"about__leave_channel_btn","aria-disabled":"false",onClick:()=>v(!0),children:a.jsx("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--single",children:a.jsx("h3",{className:"p-about_modal__field_title",children:"Leave channel"})})})]}),a.jsxs("div",{className:"p-about_modal__channel_id",children:["Channel ID: ",e.id,a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__copy","data-qa":"unstyled-button","aria-label":"Copy channel ID",onClick:()=>{var M;return void((M=navigator.clipboard)==null?void 0:M.writeText(e.id))},children:a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--copy","data-qa":"slack_kit_icon","aria-hidden":"true"})})]})]})),u==="members"&&a.jsxs("div",{className:"p-about_modal__members_content","data-qa":"ia-details-popover-members-content",children:[a.jsx("div",{children:a.jsxs("div",{className:"p-about_modal__members_filter_row",children:[a.jsxs("div",{className:"p-about_modal__members_filter","data-qa":"members_dialog_filter",role:"presentation",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--search","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("input",{className:"p-about_modal__members_filter_input","data-qa":"members_dialog_filter_input",role:"searchbox","aria-label":"People or agent name",value:g,onChange:M=>y(M.target.value),autoFocus:!0}),a.jsx("div",{})]}),a.jsx("div",{className:"p-about_modal__members_select","data-qa":"ia-details-popover-members-filter-select",children:a.jsxs("div",{className:"c-select_button c-select_button--twin","data-qa":"ia-details-popover-members-filter-select-button",id:"ia-details-popover-members--filter-select_button",role:"combobox","aria-label":"Filter by: All","aria-invalid":"false","aria-expanded":"false","aria-haspopup":"listbox",children:[a.jsx("div",{className:"c-select_button__content","data-qa":"ia-details-popover-members-filter-select-button-content",id:"ia-details-popover-members--filter-select_button-option",role:"none",children:a.jsx("div",{children:a.jsx("span",{children:a.jsx("span",{className:"p-about_modal__members_select_label","data-qa":"ia-details-popover-members-filter-option-label",children:"All"})})})}),a.jsx("div",{className:"c-select_button__caret","aria-hidden":"true",children:a.jsx(te,{name:"caret-down",size:20})})]})})]})}),a.jsxs("div",{className:"p-about_modal__members_list_wrap",children:[a.jsx("div",{}),a.jsx("div",{role:"presentation",children:a.jsx("div",{role:"presentation",children:a.jsx("div",{className:"p-about_modal__scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsxs("div",{className:"p-about_modal__scroll_child",role:"presentation",children:[a.jsxs("div",{className:"p-about_modal__members_list","data-qa":"slack_kit_list",role:"list","aria-label":"Members in channel",children:[a.jsx("div",{className:"p-about_modal__member_row p-about_modal__member_row--anchor","data-qa":"virtual-list-item",id:"anchor_hack_item",role:"listitem","aria-setsize":-1,"aria-label":"",children:a.jsx("div",{})}),a.jsxs("div",{className:"p-about_modal__invite_row","data-qa":"invite-members",id:"add_member",role:"listitem","aria-setsize":-1,"aria-label":"Add people or agents",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--add_user","data-qa":"slack_kit_icon","aria-hidden":"true"}),"Add people or agents"]}),S.map(M=>{const oe=i[M].presence==="active",E=M===w;return a.jsxs("div",{className:"p-about_modal__member_row","data-qa":"virtual-list-item",id:M,role:"listitem","aria-setsize":-1,"aria-label":"",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__member_button","data-qa":"unstyled-button","aria-label":`${o.realName(M)} `,onClick:()=>s(M),children:a.jsx("div",{children:a.jsx("div",{className:"p-about_modal__member_entity_wrap","data-qa":"medium_member_list_entity",children:a.jsx("div",{children:a.jsxs("div",{className:"p-about_modal__member_entity","data-qa":"medium_member_entity",children:[a.jsx("span",{className:"p-about_modal__member_avatar","data-qa":"member-entity__avatar",children:a.jsx(Oe,{userId:M,size:36})}),a.jsx("div",{className:"p-about_modal__member_text",children:a.jsxs("span",{children:[a.jsx("span",{role:"presentation",className:"p-about_modal__member_primary_wrap",children:a.jsx("span",{className:"p-about_modal__member_primary","data-qa":"member-entity__primary-name",children:a.jsx("span",{children:a.jsxs("strong",{"data-qa":"member_name",children:[o.realName(M),M===l&&a.jsx("span",{className:"p-about_modal__member_you","data-qa":"member_name__you",children:"(you)"})]})})})}),a.jsxs("span",{className:`p-about_modal__member_presence${oe?"":" p-about_modal__member_presence--away"}`,children:[a.jsx(te,{name:"presence_indicator",size:20,className:"p-about_modal__member_presence_svg"}),a.jsx("span",{className:"sr-only",children:ol(oe,!0)})]}),o.userName(M)!==o.realName(M)&&!E&&a.jsx("span",{className:"p-about_modal__member_secondary","data-qa":"member-entity__secondary-name",children:a.jsx("span",{children:o.userName(M)})})]})})]})})})})}),a.jsx("div",{className:"p-about_modal__member_badge_wrap",children:E&&a.jsx("div",{className:"p-about_modal__member_badge","data-qa":"ia_details_members_list_channel_manager_indicator",children:"Channel Manager"})})]},M)}),h!==null&&S.length===0&&a.jsx("div",{className:"p-about_modal__members_empty",children:"No matches found"})]}),a.jsx("div",{})]})})})})]})]}),u==="tabs"&&P(a.jsx("div",{className:"p-about_modal__tabs_wrap",children:a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsxs("div",{className:"p-about_modal__tabs_card",children:[a.jsx("h3",{id:"manage-channel-tabs-title",className:"p-about_modal__tabs_title",children:"Manage tabs"}),a.jsx("p",{id:"manage-channel-tabs-description",className:"p-about_modal__tabs_desc",children:"Reorder, add, remove, and hide the tabs that everyone sees in this channel."}),a.jsxs("div",{children:[a.jsx("div",{role:"presentation",children:a.jsx("div",{className:"p-about_modal__tabs_list_wrap",role:"presentation",children:a.jsx("div",{className:"p-about_modal__scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsxs("div",{className:"p-about_modal__scroll_child",role:"presentation",children:[a.jsx("div",{className:"p-about_modal__tabs_list","data-qa":"slack_kit_list",role:"list","aria-label":"Channel tabs","aria-labelledby":"manage-channel-tabs-title","aria-describedby":"manage-channel-tabs-description",children:[{id:"channel",label:"Messages",icon:"message",actions:!1},{id:"channel_canvas",label:"Add canvas",icon:"add-channel-canvas",actions:!0,shown:!0,upDisabled:!0},{id:"files",label:"Files & links",icon:"canvas-browser",actions:!0,eye:"eye-open",downDisabled:!0},{id:"workflows",label:"Workflows",icon:"bolt",actions:!0,hidden:!0},{id:"bookmarks",label:"Pins",icon:"pin",actions:!0,hidden:!0}].map(M=>a.jsx("div",{className:"p-about_modal__tab_row","data-qa":"virtual-list-item",id:M.id,role:"listitem","aria-setsize":-1,"aria-labelledby":`tab-${M.id}-label${M.hidden?` tab-${M.id}-hidden-status`:""}`,children:a.jsx("div",{className:"p-about_modal__tab_row_inner",children:a.jsx("div",{className:"p-about_modal__tab_row_main",children:a.jsxs("div",{children:[a.jsx("div",{id:`tab-${M.id}-label`,className:"p-about_modal__tab_label",children:a.jsx("div",{children:a.jsxs("div",{className:`p-about_modal__tab_label_inner${M.hidden?" p-about_modal__tab_label_inner--hidden":""}`,children:[a.jsx("span",{className:"p-about_modal__tab_icon",children:a.jsx(te,{name:M.icon,size:16})}),a.jsx("span",{children:M.label})]})})}),M.actions&&a.jsx("div",{className:`p-about_modal__tab_actions${M.shown?" p-about_modal__tab_actions--shown":""}`,children:a.jsxs("div",{className:"p-about_modal__actions_bar","data-qa":"actions-bar",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__tab_action","data-qa":"unstyled-button","aria-label":M.hidden?"Show tab":"Hide tab","aria-describedby":`tab-${M.id}-label`,"aria-disabled":"false",children:a.jsx(te,{name:M.eye??"eye-closed",size:18})}),a.jsx("button",{type:"button",className:`c-button-unstyled p-about_modal__tab_action${M.upDisabled||M.hidden?" p-about_modal__tab_action--disabled":""}`,"data-qa":"unstyled-button","aria-label":"Move tab up","aria-describedby":`tab-${M.id}-label`,"aria-disabled":M.upDisabled||M.hidden?"true":void 0,children:a.jsx(te,{name:"arrow-up",size:18})}),a.jsx("button",{type:"button",className:`c-button-unstyled p-about_modal__tab_action${M.downDisabled||M.hidden?" p-about_modal__tab_action--disabled":""}`,"data-qa":"unstyled-button","aria-label":"Move tab down","aria-describedby":`tab-${M.id}-label`,"aria-disabled":M.downDisabled||M.hidden?"true":"false",children:a.jsx(te,{name:"arrow-down",size:18})})]})}),M.hidden&&a.jsx("span",{id:`tab-${M.id}-hidden-status`,className:"p-about_modal__tab_hidden",children:"Hidden"})]})})})},M.id))}),a.jsx("div",{})]})})})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__new_tab","aria-label":"Add a tab","aria-haspopup":"menu",children:a.jsxs("div",{children:[a.jsx("span",{children:a.jsx(te,{name:"plus",size:16})}),"New Tab"]})})]})]})})}),414),u==="agents_apps"&&P(a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx(Ca,{title:"Apps",editQa:"agents_apps-add-button",editLabel:"Add apps",radius:"12px",top:!0,children:a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{className:"p-about_modal__field_desc--empty",children:"No apps have been added to this channel yet."})})})}),a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx(Ca,{title:"Agents",radius:"12px",top:!0,children:a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{className:"p-about_modal__field_desc--empty",children:"Agents you add to this channel will show up here."})})})})]})),u==="automations"&&P(a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx(Ca,{title:"Workflows",editQa:"automations-add-button",editLabel:"Add a workflow",radius:"12px",top:!0,children:a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{className:"p-about_modal__field_desc--empty",children:"Automate routine tasks with workflows in this channel."})})})})),u==="settings"&&P(a.jsxs(a.Fragment,{children:[ie,a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsxs("div",{className:"p-about_modal__connect","data-qa":"not_connected_section_paid",role:"group",children:[a.jsxs("div",{className:"p-about_modal__connect_body",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:a.jsx("div",{children:"Slack Connect"})}),a.jsxs("div",{className:"p-about_modal__connect_desc",children:["Work with other companies and organizations in this channel."," ",a.jsx("a",{className:"c-link",href:"#",onClick:M=>M.preventDefault(),children:"Learn more"})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-about_modal__small_pill","data-qa":"connected_section_add_people_button",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--add_user_small","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("span",{children:"Add People"})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-about_modal__small_pill","data-qa":"connected_section_share_link_button",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--link","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("span",{children:"Share Link"})]})]}),a.jsx("div",{className:"p-about_modal__connect_art"})]})}),a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx("div",{className:"p-about_modal__field p-about_modal__field--muted","data-qa":"channel-posting-permissions",role:"group","aria-disabled":"true",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--tall",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:"Posting permissions"}),a.jsxs("span",{children:[a.jsxs("ul",{className:"p-about_modal__posting_list","data-qa":"about_modal__posting_permissions_subtitle",children:[a.jsx("li",{children:"Everyone can post"}),a.jsx("li",{children:"Everyone can reply to messages"}),a.jsx("li",{children:"Because of your workspace settings, only people who have permission can use @channel, @here and @everyone"})]}),a.jsx("a",{className:"c-link",href:"#",role:"link",onClick:M=>M.preventDefault(),children:"Learn more"})]})]})})}),a.jsxs("div",{className:"p-about_modal__group",role:"group",children:[a.jsx("div",{className:"p-about_modal__field",role:"group","aria-disabled":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--tall",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:a.jsx("div",{children:"Huddles"})}),a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsxs("span",{children:[a.jsx("span",{children:"Members can start and join huddles in this channel. "}),a.jsx("a",{className:"c-link",href:"#",onClick:M=>M.preventDefault(),children:"Learn more"})]})}),a.jsxs("div",{className:"p-about_modal__huddle_actions",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-about_modal__small_pill","data-qa":"huddles_section_start_huddle_button",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--headphones_small","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("span",{children:"Start Huddle"})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-about_modal__small_pill","data-qa":"huddles_section_copy_huddle_link_button",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--link","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("span",{children:"Copy Huddle Link"})]})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__edit","data-qa":"undefined-edit-button","aria-label":"Huddles",children:"Edit"})]})}),a.jsx("div",{className:"p-about_modal__field p-about_modal__field--rule",role:"group","aria-disabled":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--tall66",children:[a.jsx("h3",{className:"p-about_modal__field_title",children:"Always Start AI Notes"}),a.jsx("span",{className:"p-about_modal__field_desc",children:a.jsx("div",{children:"Take notes automatically in every huddle in this channel."})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__edit","data-qa":"undefined-edit-button","aria-label":"Always Start AI Notes",children:"Edit"})]})})]}),a.jsx("div",{className:"p-about_modal__group",role:"group",children:a.jsx(Ca,{title:"Channel management",radius:"12px",top:!0,children:a.jsxs("span",{className:"p-about_modal__field_desc",children:[a.jsx("div",{children:"Who can manage this channel’s settings, tabs and members."}),a.jsx("span",{className:"c-select_group__control","data-qa":"basic-select-0j3xg2mn",children:a.jsxs("span",{className:"c-select_button c-select_button--twin","data-qa":"basic-select-0j3xg2mn-button",id:"basic-select-0j3xg2mn_button",role:"combobox","aria-invalid":"false","aria-expanded":"false","aria-haspopup":"listbox",children:[a.jsx("span",{className:"c-select_button__content","data-qa":"basic-select-0j3xg2mn-button-content",role:"none",children:"Everyone"}),a.jsx("span",{className:"c-select_button__caret","aria-hidden":"true",children:a.jsx(te,{name:"caret-down",size:20})})]})})]})})}),a.jsxs("div",{className:"p-about_modal__group",role:"group",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__field p-about_modal__field--button","aria-disabled":e.is_general?"true":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--single p-about_modal__danger_row",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--lock","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("h3",{className:"p-about_modal__field_title",children:"Change to a private channel"})]})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__field p-about_modal__field--rule p-about_modal__field--button p-about_modal__field--leave","data-qa":"archive-channel","aria-disabled":e.is_general?"true":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--single p-about_modal__danger_row",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--archive","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("h3",{className:"p-about_modal__field_title",children:"Archive channel for everyone"})]})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-about_modal__field p-about_modal__field--rule p-about_modal__field--button p-about_modal__field--leave","aria-disabled":e.is_general?"true":"false",children:a.jsxs("div",{className:"p-about_modal__field_inner p-about_modal__field_inner--single p-about_modal__danger_row",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--trash","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("h3",{className:"p-about_modal__field_title",children:"Delete this channel"})]})})]})]}))]})]}),f&&a.jsx(ur,{title:`Leave ${e.is_private?"":"#"}${b}`,qa:"leave_channel_confirm",width:480,onClose:()=>v(!1),footer:a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--medium","data-qa":"leave_channel_cancel",onClick:()=>v(!1),children:"Cancel"}),a.jsx("button",{type:"button",className:"c-button c-button--danger c-button--medium","data-qa":"leave_channel_confirm_button",onClick:()=>{v(!1),r()},children:"Leave channel"})]}),children:a.jsx("p",{className:"p-about_modal__confirm_text",children:e.is_general?"Everyone in the workspace is a member of this channel. You can leave, but you will be added back if the workspace requires it.":e.is_private?"You will no longer be able to see messages in this private channel unless someone adds you back.":"You can rejoin this channel at any time from the channel browser."})})]})}const ey=280,ty=150;function ay(e,t){try{return new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",timeZone:e||void 0}).format(t)}catch{return t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}}function ws({qa:e,label:t,icon:n,chevron:s=!1,ariaLabel:r,className:i="",onClick:l,textWidth:o}){return a.jsxs("button",{type:"button",className:`c-button-unstyled p-member_profile__button ${i}`.trim(),"data-qa":e,"aria-label":r,"aria-haspopup":s||e.endsWith("more_btn")?"menu":void 0,onClick:l,children:[a.jsxs("div",{className:"p-member_profile__button_inner",style:o?{width:o}:void 0,children:[n&&a.jsx("span",{className:"p-member_profile__button_icon",children:a.jsx(te,{name:n,size:20})}),t&&a.jsx("div",{className:n?"p-member_profile__button_label":"p-member_profile__button_label--bare",children:t})]}),s&&a.jsx("div",{className:"p-member_profile__button_chevron",children:a.jsx(te,{name:"call_icon_chevron_down",size:15})})]})}function ny({userId:e,onClose:t,onMessage:n,onEditProfile:s,onSetStatus:r}){const{users:i,me:l,channels:o}=me();Be();const c=ll(),u=i[e],[m,h]=_.useState(()=>new Date),[p,g]=_.useState(!1);if(_.useEffect(()=>{const w=window.setInterval(()=>h(new Date),3e4);return()=>window.clearInterval(w)},[]),_.useEffect(()=>{g(!1);const w=window.setTimeout(()=>g(!0),ty);return()=>window.clearTimeout(w)},[e]),!u)return null;const y=e===l,k=u.presence==="active",C=y?!!af(c):!0,f=y?yd(c):u.profile.status_text?{emoji:u.profile.status_emoji??"",text:u.profile.status_text}:null,v=u.profile.email,b=u.real_name,x=Object.values(o).find(w=>w.is_im&&w.user===e);return a.jsx("div",{className:"p-flexpane p-member_profile_flexpane",role:"dialog","aria-label":`${b} Profile`,children:a.jsxs("div",{className:"p-member_profile_flexpane__column",children:[a.jsx("div",{className:"p-member_profile_flexpane__header",role:"toolbar","aria-orientation":"horizontal","aria-label":"Secondary view actions",children:a.jsxs("div",{className:"p-member_profile_flexpane__header_inner",children:[a.jsx("div",{className:"p-member_profile_flexpane__title_wrap",children:a.jsx("div",{className:"p-member_profile_flexpane__title","data-qa":"flexpane-title-container",children:"Profile"})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile_flexpane__close","data-qa":"close_flexpane","aria-label":"Close",onClick:t,children:a.jsx(te,{name:"close",size:20})})]})}),a.jsxs("div",{className:"p-member_profile_flexpane__body","data-qa":"flexpane_body",children:[a.jsx("div",{}),a.jsx("div",{className:"p-member_profile_flexpane__scroll_wrap",role:"presentation",children:a.jsx("div",{className:"p-member_profile_flexpane__scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsx("div",{className:"p-member_profile_flexpane__scroll_child",role:"presentation",children:a.jsxs("div",{className:"p-member_profile_pane","data-qa":"member_profile_pane",children:[a.jsx("div",{className:"p-member_profile__photo_wrap",children:a.jsx("div",{className:"p-member_profile__photo",children:u.profile.image_72&&p?a.jsx("img",{src:nt(u.profile.image_72),alt:""}):p?a.jsx(Oe,{userId:e,size:256}):null})}),a.jsxs("div",{className:"p-member_profile__info",children:[a.jsx("div",{}),a.jsxs("div",{children:[a.jsxs("div",{className:"p-member_profile__name_row",children:[a.jsx("span",{className:"p-member_profile__name",children:b}),y&&a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__edit_link","aria-label":"Edit Header Section",children:"Edit"})]}),a.jsx("div",{className:"p-member_profile__title_line",children:u.profile.title}),a.jsx("div",{className:"p-member_profile__status_line",children:f&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"c-emoji c-emoji--22",role:"img","aria-label":"status emoji",children:a.jsx(ba,{glyph:f.emoji,label:"status emoji"})})," ",f.text]})}),y&&a.jsx("div",{className:"p-member_profile__pronunciation",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__add_link","data-qa":"unstyled-button",children:a.jsxs("div",{children:[a.jsx(te,{name:"plus-filled",size:15}),a.jsx("span",{children:"Add name pronunciation"})]})})}),a.jsxs("div",{className:"p-member_profile__fields",children:[a.jsx("div",{className:"p-member_profile__field p-member_profile__field--empty"}),a.jsxs("div",{className:"p-member_profile__field p-member_profile__field--presence",children:[a.jsx("span",{className:`p-member_profile__presence_icon${k?"":" p-member_profile__presence_icon--away"}`,children:a.jsx(te,{name:"presence_indicator",size:20,className:"p-member_profile__presence_svg"})}),a.jsx("span",{className:"p-member_profile__presence_text","aria-hidden":"true",children:ol(k,C)})]}),a.jsx("div",{className:"p-member_profile__field p-member_profile__field--empty p-member_profile__field--flex",children:a.jsx("div",{children:a.jsx("div",{})})}),a.jsx("div",{className:"p-member_profile__field p-member_profile__field--empty",children:a.jsx("div",{})}),!u.is_bot&&a.jsx("div",{className:"p-member_profile__field",children:a.jsxs("span",{className:"p-member_profile__local_time","data-qa":"member_profile_field__local_time",children:[a.jsx("span",{className:"p-member_profile__local_time_icon",children:a.jsx(te,{name:"clock",size:20})}),a.jsxs("span",{children:[ay(u.tz,m)," local time"]})]})}),a.jsx("div",{className:"p-member_profile__field p-member_profile__field--empty"}),a.jsx("div",{className:"p-member_profile__field p-member_profile__field--empty p-member_profile__field--flex"})]}),a.jsx("div",{className:"p-member_profile__actions",children:a.jsxs("div",{className:"p-member_profile__actions_inner",children:[y?a.jsxs(a.Fragment,{children:[a.jsx(ws,{qa:"member_profile_status_btn",label:"Set a status",onClick:r,textWidth:111}),a.jsx(ws,{qa:"member_profile_preview_btn",label:"View as",chevron:!0,className:"p-member_profile__button--view_as"})]}):a.jsxs(a.Fragment,{children:[a.jsx(ws,{qa:"member_profile_message_btn",label:"Message",icon:"comment",ariaLabel:`Message ${b}`,onClick:()=>n(e),className:"p-member_profile__button--shrink"}),!u.is_bot&&a.jsx(ws,{qa:"member_profile_huddle_btn",label:"Huddle",icon:"headphones",chevron:!0,ariaLabel:"Huddle",className:"p-member_profile__button--shrink"}),!u.is_bot&&a.jsx(ws,{qa:"member_profile_vip_btn",label:"VIP",icon:"user-add",ariaLabel:"Add to VIP"})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__button p-member_profile__button--more","data-qa":"member_profile_more_btn","aria-label":"More","aria-haspopup":"menu",children:a.jsx("div",{className:"p-member_profile__button_inner p-member_profile__button_inner--more",children:a.jsx("span",{className:"p-member_profile__button_icon p-member_profile__button_icon--more",children:a.jsx(te,{name:"ellipsis-vertical-filled",size:20})})})})]})})]})]}),a.jsxs("div",{className:"p-member_profile__section",children:[a.jsxs("div",{className:"p-member_profile__section_header",children:[a.jsx("div",{className:"p-member_profile__section_title",children:"Contact information"}),y&&a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__section_edit","aria-label":"Edit Contact Information Section",onClick:s,children:a.jsx("span",{children:"Edit"})})})]}),a.jsx("div",{children:a.jsxs("div",{className:"p-member_profile__contact_row",children:[a.jsx("div",{className:"p-member_profile__contact_icon",children:a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--envelope","data-qa":"slack_kit_icon","aria-hidden":"true"})}),a.jsx("div",{children:a.jsxs("div",{children:[a.jsx("div",{className:"p-member_profile__contact_label",children:"Email Address"}),a.jsx("div",{className:"p-member_profile__contact_value_wrap",children:v?a.jsx("a",{className:"p-member_profile__contact_link",href:`mailto:${v}`,"aria-haspopup":"menu",onClick:w=>w.preventDefault(),children:v}):a.jsx("span",{children:"Not shared"})})]})})]})})]}),y?a.jsxs("div",{className:"p-member_profile__section p-member_profile__section--last",children:[a.jsxs("div",{className:"p-member_profile__section_header",children:[a.jsx("div",{className:"p-member_profile__section_title",children:"About me"}),a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__section_edit","aria-label":"Edit about me section",onClick:s,children:a.jsx("span",{children:"Edit"})})})]}),a.jsx("div",{className:"p-member_profile__about",children:a.jsx("div",{className:"p-member_profile__about_row",children:a.jsx("div",{children:a.jsx("div",{className:"p-member_profile__about_pad",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-member_profile__add_link","data-qa":"unstyled-button",children:a.jsxs("div",{children:[a.jsx(te,{name:"plus-filled",size:15}),a.jsx("span",{children:"Add Start Date"})]})})})})})})]}):a.jsxs("div",{className:"p-member_profile__section p-member_profile__section--last",children:[a.jsx("div",{className:"p-member_profile__section_header",children:a.jsx("div",{className:"p-member_profile__section_title",children:"Recent DMs"})}),a.jsx("div",{className:"p-member_profile__recent",children:a.jsx("button",{type:"button",className:"c-button-unstyled",onClick:()=>x?n(e):void 0,children:a.jsxs("div",{className:"p-member_profile__small_entity","data-qa":"small_member_entity",children:[a.jsx("span",{className:"p-member_profile__small_avatar","data-qa":"member-entity__avatar",children:a.jsx(Oe,{userId:e,size:20})}),a.jsx("div",{children:a.jsx("span",{children:a.jsx("span",{className:"p-member_profile__small_name","data-qa":"member-entity__primary-name",children:a.jsx("span",{children:a.jsx("span",{"data-qa":"member_name",children:b})})})})})]})})})]})]})})})})]})]})})}function Yl(e){window.open(`/admin/${e}`,"_blank","noopener")}function sy({anchor:e,onClose:t,onOpenPreferences:n,onInvite:s,onSignOut:r}){const{team:i}=me(),l=[{kind:"header",label:"Tools"},{kind:"item",label:"Workflow Builder",onSelect:()=>Yl("workflows")},{kind:"item",label:"Workspace analytics",external:!0,onSelect:()=>Yl("stats")},{kind:"divider"},{kind:"header",label:"Administration"},{kind:"item",label:"Admin tools",onSelect:()=>Yl("settings")},{kind:"item",label:"Admin tools and settings have moved. You can now access them directly from the sidebar.",note:!0}],o=[{kind:"item",label:a.jsx("div",{children:a.jsxs("div",{className:"p-ia__sidebar_header__menu_team",children:[a.jsx("i",{className:"p-ia__sidebar_header__menu_team_icon","data-qa":"team-icon",role:"img","aria-hidden":"true","aria-label":i.name,children:i.name.slice(0,1)}),a.jsxs("div",{children:[a.jsx("div",{className:"p-ia__sidebar_header__menu_team_name",children:i.name}),a.jsxs("div",{className:"p-ia__sidebar_header__menu_team_url",id:"team-blurb-text",children:[i.domain,".slack.com"]})]})]})})},{kind:"divider"},{kind:"custom",qa:"team-messages-limit-meter-wrapper",node:a.jsx("button",{type:"button",className:"c-menu_item__button p-ia__sidebar_header__plan","data-qa":"team-messages-limit-meter",role:"menuitem",children:a.jsx("div",{className:"p-ia__sidebar_header__plan_body","data-qa":"false",children:a.jsxs("div",{className:"p-ia__sidebar_header__plan_info","data-qa":"classic_nav__team_menu__plan_info",children:["Your workspace is currently on Slack’s ",a.jsx("strong",{children:"Pro Plan"}),"."," ",a.jsx("span",{"data-qa":"info_blurb_link",className:"c-link",children:"Learn more"})]})})})},{kind:"divider"},{kind:"item",label:`Invite people to ${i.name}`,onSelect:s},{kind:"divider"},{kind:"item",label:"Preferences",onSelect:n},{kind:"item",label:"Tools & settings",submenu:l,submenuWidth:300},{kind:"divider"},{kind:"custom",qa:"qr-code-signin-menu-item-wrapper",node:a.jsx("button",{type:"button",className:"c-menu_item__button","data-qa":"qr-code-signin-menu-item",role:"menuitem",children:a.jsx("div",{className:"c-menu_item__label",children:"Sign in on mobile"})})},{kind:"item",label:"Sign out",onSelect:r},{kind:"custom",qa:"open-desktop-app-wrapper",node:a.jsx("a",{className:"c-menu_item__button p-ia__sidebar_header__desktop_app","data-qa":"open-desktop-app",role:"menuitem",href:"#",onClick:c=>c.preventDefault(),children:a.jsxs("div",{className:"p-ia__sidebar_header__desktop_app_row",children:[a.jsx("span",{className:"p-ia__sidebar_header__desktop_app_label",children:"Open the Slack App"}),a.jsx("span",{className:"p-ia__sidebar_header__desktop_app_badge","aria-hidden":"true",children:a.jsx("span",{})})]})})}];return a.jsx(sl,{anchor:e,placement:"below-start",entries:o,qa:"workspace_menu",onClose:t,width:320,ariaLabel:`${i.name} Actions`,unverified:!1})}function cl(){const{channels:e,loaded:t,openChannel:n,phase:s}=me(),r=_.useMemo(()=>Object.values(e).filter(i=>i.is_member&&!i.is_archived).map(i=>i.id),[e]);return _.useEffect(()=>{s==="ready"&&r.forEach(i=>{t[i]||n(i)})},[r,t,n,s]),r.every(i=>t[i]==="done"||t[i]==="error")}function sf(e){var h,p;const{phase:t,loaded:n,openChannel:s,setActive:r,markRead:i,channels:l,messages:o}=me(),c=e?n[e]:void 0,u=e?(h=o[e])==null?void 0:h.length:0,m=e?(p=l[e])==null?void 0:p.is_member:!1;_.useEffect(()=>{if(!(t!=="ready"||!e))return r(e),s(e),()=>r(null)},[t,e,s,r]),_.useEffect(()=>{t==="ready"&&e&&c==="done"&&m&&i(e)},[t,e,c,u,m,i])}function rf(e){return!e.thread_ts||e.thread_ts===e.ts}function lf(){const{channels:e,messages:t,me:n,users:s}=me();return _.useMemo(()=>{var l;const r=[],i=new RegExp(`<@${n}(\\|[^>]*)?>|<!channel>|<!here>|<!everyone>`);for(const o of Object.values(e)){if(!o.is_member)continue;const c=t[o.id]??[],u=Number(o.last_read??0),m=new Set(c.filter(h=>h.user===n).map(h=>h.ts));for(const h of c){if(!h.user||h.user===n){if(h.user===n&&h.reactions)for(const y of h.reactions)for(const k of y.users)k!==n&&r.push({id:`${h.ts}:${y.name}:${k}`,kind:"reaction",channel:o,message:h,actor:k,ts:h.ts,unread:!1,reaction:y.name});continue}const p=Number(h.ts)>u,g=!!((l=s[h.user])!=null&&l.is_bot||h.bot_id);i.test(h.text)?r.push({id:`${h.ts}:mention`,kind:g?"app":"mention",channel:o,message:h,actor:h.user,ts:h.ts,unread:p}):!rf(h)&&h.thread_ts&&m.has(h.thread_ts)?r.push({id:`${h.ts}:thread`,kind:"thread",channel:o,message:h,actor:h.user,ts:h.ts,unread:p}):g&&o.is_im&&r.push({id:`${h.ts}:app`,kind:"app",channel:o,message:h,actor:h.user,ts:h.ts,unread:p})}}return r.sort((o,c)=>Number(c.ts)-Number(o.ts))},[e,t,n,s])}function ry(){const{channels:e,messages:t,me:n}=me();return _.useMemo(()=>{var r;const s=[];for(const i of Object.values(e)){if(!i.is_member)continue;const l=t[i.id]??[],o=Number(i.last_read??0);for(const c of l){if(!rf(c)||!c.reply_count)continue;const u=l.filter(p=>p.thread_ts===c.ts&&p.ts!==c.ts);if(!(c.user===n||(c.reply_users??[]).includes(n)||u.some(p=>p.user===n)))continue;const h=c.latest_reply??((r=u[u.length-1])==null?void 0:r.ts)??c.ts;s.push({channel:i,root:c,replies:u,unread:Number(h)>o&&u.some(p=>p.user!==n&&Number(p.ts)>o)})}}return s.sort((i,l)=>Number(l.root.latest_reply??l.root.ts)-Number(i.root.latest_reply??i.root.ts))},[e,t,n])}function dl(e,t,n){return e.replace(/<@([A-Z0-9]+)(\|[^>]*)?>/g,(s,r)=>{var i;return`@${((i=t[r])==null?void 0:i.real_name)??r}`}).replace(/<#([A-Z0-9]+)(\|([^>]*))?>/g,(s,r,i,l)=>{var o;return`#${l||((o=n[r])==null?void 0:o.name)||r}`}).replace(/<!(channel|here|everyone)>/g,"@$1").replace(/<([^|>]+)\|([^>]+)>/g,"$2").replace(/<([^>]+)>/g,"$1").replace(/[*_~`]/g,"").replace(/\s+/g," ").trim()}function wa({children:e,className:t="",ariaLabel:n,listQa:s="slack_kit_list",role:r="list",listClass:i="",listStyle:l}){return a.jsxs("div",{className:`p-kit_scroll_wrap ${t}`.trim(),children:[a.jsx("div",{}),a.jsx("div",{className:"p-kit_scroll_outer",role:"presentation",children:a.jsx("div",{className:"p-kit_scroll_outer",role:"presentation",children:a.jsx("div",{className:"p-kit_scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsx("div",{className:"p-kit_scroll_child",role:"presentation",children:s?a.jsx("div",{className:`p-kit_list ${i}`.trim(),"data-qa":s,role:r,"aria-label":n,style:l,children:e}):e})})})})]})}function iy({ctx:e}){const{channels:t,users:n,me:s,team:r}=me(),i=Be(),[l,o]=_.useState(!1),[c,u]=_.useState(""),m=_.useMemo(()=>Object.values(t).filter(g=>{var y;return(g.is_im||g.is_mpim)&&g.is_open!==!1&&!(g.is_im&&((y=n[g.user??""])!=null&&y.is_slackbot))}).sort((g,y)=>{var k,C;return Number(((k=y.latest)==null?void 0:k.ts)??0)-Number(((C=g.latest)==null?void 0:C.ts)??0)}),[t,n]),h=m.filter(g=>(!l||(g.unread_count_display??0)>0)&&(!c||(i.channelName(g.id)??"").toLowerCase().includes(c.toLowerCase()))),p=m.reduce((g,y)=>g+(y.unread_count_display??0),0);return _.useEffect(()=>{!e.selected&&m[0]&&e.select(m[0].id)},[m.length]),a.jsx("div",{className:"p-tab_page_column p-dms_page__column",role:"group","aria-label":"Direct Messages","aria-roledescription":"Sidebar","data-twin-unverified":"true",children:a.jsxs("div",{className:"p-tab_page_column__inner",children:[a.jsx("div",{className:"p-tab_page_column__header_wrap",children:a.jsxs("div",{className:"p-tab_page_column__toolbar",role:"toolbar","aria-orientation":"horizontal","aria-label":"Actions",children:[a.jsx("div",{className:"p-tab_page_column__title_wrap",children:a.jsx("div",{className:"p-tab_page_column__title","data-qa":"ia4_sidebar_header__title",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-tab_page_column__title_button","data-qa":"workspace_actions_button","aria-haspopup":"menu","aria-label":`${r.name} Actions`,children:[a.jsx("span",{children:"Direct messages"}),a.jsx(Ie,{"data-qa":"caret-down",size:18})]})})}),a.jsx("div",{className:"p-tab_page_column__toolbar_actions",children:a.jsxs("div",{children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-dms_page__unreads_toggle","data-qa":"dms-unreads-toggle-button","aria-pressed":l,"aria-label":`Filter by unread messages; ${p} unread`,onClick:()=>o(g=>!g),children:[a.jsx("div",{className:"p-dms_page__unreads_label",children:a.jsx("span",{children:"Unreads"})}),a.jsx("div",{className:`c-toggle_track${l?" c-toggle_track--on":""}`,children:a.jsx("div",{className:"c-toggle_knob"})})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"dms_compose_button","aria-label":"New message",children:a.jsx(ec,{"data-qa":"compose",size:20})})]})})]})}),a.jsxs("div",{className:"p-tab_page_column__body",children:[a.jsx("div",{className:"p-dms_page__search_group",role:"group","aria-label":"Search DMs",children:a.jsxs("div",{children:[a.jsx("div",{"data-qa":"dms_tab_page__destination",children:a.jsxs("div",{className:"c-multi_select_input c-multi_select_input--column","data-qa":"multi_select_input",children:[a.jsx("span",{className:"c-multi_select_input__icon","aria-hidden":"true",children:a.jsx(pd,{"data-qa":"quick-switch",size:16})}),a.jsxs("div",{className:"c-multi_select_input__input","data-qa":"dms_tab_page__destination-input",id:"dms_tab_page__destination",role:"combobox","aria-disabled":"false","aria-autocomplete":"list","aria-expanded":"false","aria-controls":"dms_tab_page__destination_listbox",contentEditable:!0,suppressContentEditableWarning:!0,onInput:g=>u(g.currentTarget.textContent??""),children:[a.jsx("span",{"data-qa":"multi_select_space"}),a.jsx("span",{"data-qa":"multi_select_filter_query"}),a.jsx("span",{"data-qa":"multi_select_space"})]}),!c&&a.jsx("div",{className:"c-multi_select_input__placeholder c-multi_select_input__placeholder--column","aria-hidden":"true",children:"Find a DM…"})]})}),a.jsx("div",{})]})}),a.jsxs(wa,{ariaLabel:"Recent conversations",children:[a.jsx("div",{className:"p-dms_page__list_top","data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,"aria-label":""}),h.map(g=>{const y=g.latest,k=(y==null?void 0:y.user)===s?"You: ":g.is_mpim&&(y!=null&&y.user)?`${i.realName(y.user).split(" ")[0]}: `:"",C=g.is_im?n[g.user??""]:void 0,f=(C==null?void 0:C.presence)==="active";return a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:`p-dms_page__channel${e.selected===g.id?" p-dms_page__channel--selected":""}`,"data-qa":"dms_channel",onClick:()=>e.select(g.id),children:a.jsx("div",{"data-qa":"activity-item-container",role:"document","aria-roledescription":"message",children:a.jsx("div",{className:"p-dms_page__channel_inner",children:a.jsxs("div",{className:"p-dms_page__channel_row",children:[a.jsx("div",{className:"p-dms_page__avatar_col",role:"presentation",children:g.is_im?a.jsxs("span",{className:"p-dms_page__avatar","data-qa":"dms-channel-sender-avatar",children:[a.jsx(Oe,{userId:g.user??void 0,size:36}),C&&!C.is_bot&&a.jsx("span",{className:`p-dms_page__presence${f?"":" p-dms_page__presence--away"}`,children:a.jsx(te,{name:"presence_indicator",size:20,className:"p-dms_page__presence_svg"})})]}):a.jsx("div",{className:"p-dms_page__mpim_avatar",children:a.jsx("span",{className:"p-dms_page__mpim_count","aria-hidden":"true",children:(g.num_members??2)-1})})}),a.jsxs("div",{className:"p-dms_page__text_col","data-qa":"message_content",role:"presentation",children:[a.jsxs("div",{className:"p-dms_page__name_row",children:[a.jsx("span",{className:"p-dms_page__senders","data-qa":"activity_ia4_page_item_senders_primary_dms",children:a.jsx("span",{children:a.jsx("span",{children:a.jsxs("span",{"data-qa":"dms-channel-sender-name",children:[i.channelName(g.id),g.is_im&&g.user===s&&a.jsx("span",{className:"p-dms_page__you","data-qa":"channel_sidebar_name_you",children:"(you)"})]})})})}),y&&a.jsx("span",{className:"p-dms_page__time_wrap",children:a.jsx("div",{children:a.jsx("span",{"data-qa":"dms-channel-timestamp",children:a.jsx("span",{children:pa(y.ts)})})})})]}),a.jsx("div",{children:a.jsx("span",{className:"p-dms_page__message","data-qa":"activity-item-message",children:a.jsx("span",{children:y?k+dl(y.text??"",n,t):"No messages yet"})})})]})]})})})})},g.id)}),h.length===0&&a.jsx("div",{className:"p-tab_page_column__empty",children:l?"You’re all caught up":"No direct messages yet"})]})]})]})})}function ly({ctx:e}){const{channels:t}=me(),n=e.selected?t[e.selected]:void 0;return sf(n==null?void 0:n.id),n?a.jsx(a.Fragment,{children:e.renderConversation(n)}):a.jsx(Jh,{qa:"dms_page_empty",title:"No direct messages yet",text:"Start a conversation with someone in your workspace.",action:a.jsx("button",{type:"button",className:"c-button c-button--primary c-button--medium","data-qa":"dms_page_empty_new_message",children:"New message"})})}const Wr=[{id:"all",label:"All",kinds:null},{id:"dms",label:"DMs",icon:"direct-messages",kinds:["app"]},{id:"mentions",label:"Mentions",icon:"mentions",kinds:["mention"]},{id:"threads",label:"Threads",icon:"threads",kinds:["thread"]}];function oy(e){switch(e.kind){case"mention":return"Mention in";case"thread":return"Thread in";case"reaction":return"Reaction in";case"app":return"Message in";default:return"Invitation to"}}function Zl(e){const t=new Date(Number(e)*1e3),n=new Date,s=new Date(n);return s.setDate(n.getDate()-1),t.toDateString()===n.toDateString()?"Today":t.toDateString()===s.toDateString()?"Yesterday":t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})}function cy(e){switch(e){case"mention":return"mentions";case"thread":return"threads";case"reaction":return"add-reaction";case"app":return"direct-messages";default:return"email-invite"}}function dy({ctx:e}){var k,C;const t=cl(),n=lf(),{users:s,channels:r}=me(),i=Be(),[l,o]=_.useState("all"),[c,u]=_.useState(!1),[m,h]=_.useState(!1),p=((k=Wr.find(f=>f.id===l))==null?void 0:k.kinds)??null,g=n.filter(f=>(!p||p.includes(f.kind))&&(!c||f.unread)),y=((C=Wr.find(f=>f.id===l))==null?void 0:C.label)??"All";return a.jsxs("div",{className:"p-tab_page_column p-activity_page__column",role:"group","aria-label":"Activity","aria-roledescription":"Sidebar","data-twin-unverified":"true",children:[a.jsxs("div",{className:"p-activity_page__header",role:"none","aria-label":"",children:[a.jsxs("div",{className:"p-activity_page__title_row",children:[a.jsx("div",{className:"p-activity_page__title","data-qa":"activity-inbox-sidebar-header-title","aria-hidden":"true",children:a.jsx("span",{children:a.jsx("span",{children:"Activity"})})}),a.jsx("div",{className:"p-activity_page__title_actions",role:"toolbar","aria-orientation":"horizontal","aria-label":"Actions",children:a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button p-tab_page_column__icon_button--ink","data-qa":"onboarding-button","aria-label":"See all notification settings",children:a.jsx(yr,{"data-qa":"settings",size:20})})})})]}),a.jsxs("div",{className:"p-activity_page__tabs_row",children:[a.jsx("span",{"aria-hidden":"true"}),a.jsx("div",{children:a.jsxs("div",{className:"p-activity_page__tablist",role:"tablist","aria-orientation":"horizontal","aria-label":"Activity",children:[Wr.map(f=>a.jsxs("div",{role:"none",className:"p-activity_page__tab_wrap",children:[a.jsx("div",{children:a.jsx("button",{type:"button",className:`c-button-unstyled p-activity_page__tab${l===f.id?" p-activity_page__tab--selected":""}`,"data-qa":`activity-saved-view-tab-${f.id}`,id:`Av0${Wr.indexOf(f)+1}`,role:"tab","aria-label":f.label,"aria-haspopup":"false","aria-selected":l===f.id,onClick:()=>o(f.id),children:f.icon?a.jsx("span",{children:a.jsxs("span",{children:[a.jsx(te,{name:f.icon,size:16}),a.jsx("span",{children:f.label})]})}):a.jsx("span",{children:f.label})})}),a.jsx("div",{})]},f.id)),a.jsx("div",{className:"p-activity_page__add_tab_wrap",children:a.jsx("div",{"aria-haspopup":"menu",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-activity_page__add_tab","data-qa":"unstyled-button",id:"add-channel-tab",role:"button","aria-label":"Add new tab","aria-haspopup":"true",children:a.jsx("span",{children:a.jsx("div",{children:a.jsx("div",{children:a.jsx(te,{name:"plus-filled",size:16})})})})})})})]})})]})]}),a.jsxs("div",{className:"p-activity_page__content",children:[a.jsx("div",{className:"p-activity_page__controls_wrap",children:a.jsx("div",{className:"p-activity_page__controls",role:"toolbar","aria-orientation":"horizontal","aria-label":y,children:a.jsxs("div",{className:"p-activity_page__controls_inner",role:"none",children:[a.jsxs("div",{className:"p-activity_page__controls_left",role:"none",children:[a.jsx("span",{className:"p-activity_page__select_all_wrap",children:a.jsxs("span",{className:"p-activity_page__select_all",children:[a.jsxs("label",{role:"none",children:[a.jsx("span",{}),a.jsx("span",{children:a.jsx("input",{type:"checkbox","aria-label":"Select all","aria-describedby":"numberOfItemsSelected"})})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-activity_page__select_caret","aria-label":"Select options","aria-haspopup":"menu",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})}),a.jsx("div",{role:"none",children:a.jsxs("button",{type:"button",className:`c-button-unstyled p-activity_page__pill${c?" p-activity_page__pill--on":""}`,"data-qa":"unstyled-button","aria-label":"Filter unreads","aria-pressed":c,onClick:()=>u(f=>!f),children:[a.jsx(te,{name:"mark-as-unread",size:16}),a.jsx("span",{children:"Unreads"})]})}),a.jsx("div",{role:"none",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-activity_page__pill","data-qa":"unstyled-button","aria-label":"Filters","aria-haspopup":"dialog","aria-pressed":"false",children:[a.jsx("span",{className:"p-activity_page__pill_icon",children:a.jsx(te,{name:"refine",size:16})}),a.jsx("span",{className:"p-activity_page__pill_caret",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})})]}),a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-activity_page__search",id:"activity_search_button","aria-label":"Search",onClick:()=>{var f;return(f=document.querySelector('[data-qa="top_nav_search"]'))==null?void 0:f.click()},children:a.jsx("div",{children:a.jsx(aa,{"data-qa":"search",size:20})})})}),a.jsx("div",{className:"p-activity_page__density_wrap",children:a.jsx("div",{role:"none",children:a.jsx("div",{role:"none",children:a.jsxs("div",{className:"p-activity_page__density",role:"group","aria-label":"Layout density",children:[a.jsx("div",{className:"p-activity_page__density_track",role:"none"}),a.jsx("div",{className:`p-activity_page__density_thumb${m?" p-activity_page__density_thumb--right":""}`,role:"none"}),a.jsx("button",{type:"button",className:"c-button-unstyled p-activity_page__density_button","data-qa":"page_controls_toggle_button_grid","aria-label":"Detailed","aria-pressed":!m,onClick:()=>h(!1),children:a.jsx(te,{name:"table",size:18})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-activity_page__density_button","data-qa":"page_controls_toggle_button_grid","aria-label":"Dense","aria-pressed":m,onClick:()=>h(!0),children:a.jsx(te,{name:"menu",size:18})})]})})})})]})})}),a.jsxs(wa,{ariaLabel:y,className:"p-activity_page__scroll",listClass:"p-activity_page__list",children:[a.jsx("div",{className:"p-activity_page__list_top","data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,"aria-label":""}),g.map((f,v)=>a.jsxs("div",{className:`p-activity_page__item_wrap${m?" p-activity_page__item_wrap--dense":""}`,"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:[v>0&&Zl(f.ts)!==Zl(g[v-1].ts)&&a.jsx("div",{className:"p-activity_page__day","data-qa":"inbox-date-divider",children:Zl(f.ts)}),a.jsx("div",{children:a.jsx("div",{className:`p-activity_page__item${e.selected===f.id?" p-activity_page__item--selected":""}${f.unread?" p-activity_page__item--unread":""}`,"data-qa":"activity-item-container",role:"document","aria-roledescription":"message",onClick:()=>e.select(f.id),children:a.jsx("div",{className:"p-activity_page__card",children:a.jsxs("div",{className:"p-activity_page__card_inner",children:[a.jsxs("div",{className:"p-activity_page__card_head",children:[a.jsxs("div",{className:"p-activity_page__card_lead",children:[a.jsx("div",{className:"p-activity_page__card_avatar",children:a.jsxs("div",{children:[a.jsx("span",{children:a.jsx(Oe,{userId:f.actor,size:36})}),a.jsx("div",{className:"p-activity_page__card_badge",children:a.jsx(te,{name:cy(f.kind),size:16})})]})}),a.jsxs("div",{className:"p-activity_page__card_who",children:[a.jsx("div",{children:a.jsx("span",{children:i.realName(f.actor)})}),a.jsx("div",{className:"p-activity_page__card_where",children:a.jsxs("span",{children:[a.jsx("span",{children:oy(f)}),a.jsx("div",{className:"p-activity_page__channel_pill",children:a.jsx("span",{children:a.jsx("span",{"data-qa":"inline_channel_entity",children:a.jsxs("span",{children:[a.jsx("span",{className:"p-activity_page__channel_icon",children:a.jsx(te,{name:f.channel.is_im||f.channel.is_mpim?"direct-messages":f.channel.is_private?"lock-filled":"channel",size:12})}),a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{"data-qa":"inline_channel_entity__name",children:i.channelName(f.channel.id)})})})]})})})})]})})]})]}),a.jsxs("div",{className:"p-activity_page__card_meta",children:[a.jsx("div",{children:a.jsx("div",{children:a.jsx("span",{children:gd(f.ts)})})}),a.jsx("div",{className:"p-activity_page__card_meta_spacer"})]})]}),a.jsx("div",{className:"p-activity_page__card_body",children:a.jsx("div",{children:a.jsx("span",{"data-qa":"activity-item-message",children:a.jsx("span",{children:dl(f.message.text,s,r)})})})})]})})})})]},f.id)),g.length===0&&a.jsx("div",{className:"p-tab_page_column__empty p-tab_page_column__empty--ink","data-qa":"activity_page_empty",children:t?c?"No unread notifications":"Nothing to see here":"Loading activity"})]})]})]})}function uy({ctx:e}){const n=lf().find(r=>r.id===e.selected);if(sf(n==null?void 0:n.channel.id),!n)return a.jsx(Jh,{qa:"activity_page_main_empty",title:"Stay on top of what matters",text:"Mentions, thread replies, reactions and invitations will show up here. Select one to see it in context."});const s=n.message.thread_ts&&n.message.thread_ts!==n.message.ts?n.message.thread_ts:void 0;return a.jsx(a.Fragment,{children:e.renderConversation(n.channel,{threadTs:s})})}const _y=[{id:"all",label:"All files",icon:"canvas-browser"},{id:"canvases",label:"Canvases",icon:"canvas-content"},{id:"lists",label:"Lists",icon:"lists"}];function cc({label:e,icon:t,selected:n,onClick:s,ariaLabel:r}){return a.jsxs("button",{type:"button",className:`c-button-unstyled p-tab_page_column__row${n?" p-tab_page_column__row--selected":""}`,"aria-label":r??e,onClick:s,children:[a.jsx("span",{className:"p-tab_page_column__row_icon",children:a.jsx(te,{name:t,size:16})}),a.jsx("span",{className:"p-tab_page_column__row_label",children:a.jsx("span",{children:e})})]})}function py({ctx:e}){var n;const t=(n=e.selected)!=null&&n.startsWith("view:")?e.selected.slice(5):"all";return a.jsx("div",{className:"p-tab_page_column p-files_page__column",role:"group","aria-label":"Content","aria-roledescription":"Sidebar","data-twin-unverified":"true",children:a.jsx("div",{children:a.jsxs("div",{className:"p-tab_page_column__inner",children:[a.jsx("div",{className:"p-tab_page_column__header52",children:a.jsxs("div",{className:"p-tab_page_column__header52_inner",children:[a.jsx("div",{className:"p-tab_page_column__title52_wrap",children:a.jsx("div",{className:"p-tab_page_column__title52","data-qa":"ia4_sidebar_header__title",children:"Files"})}),a.jsxs("div",{className:"p-tab_page_column__header52_actions",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"unified-files-sidebar-settings-menu","aria-label":"More options","aria-haspopup":"menu",children:a.jsx(yr,{"data-qa":"settings",size:20})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"unified-files-sidebar-create-menu","aria-label":"Create new","aria-haspopup":"menu",children:a.jsx(Wa,{"data-qa":"plus",size:20})})]})]})}),a.jsx("div",{className:"p-tab_page_column__body",children:a.jsxs(wa,{listClass:"p-tab_page_column__rows",children:[_y.map(s=>a.jsx(cc,{label:s.label,icon:s.icon,selected:t===s.id,onClick:()=>e.select(`view:${s.id}`)},s.id)),a.jsx("div",{className:"p-tab_page_column__divider","data-qa":"browse-sidebar-divider"}),a.jsx(cc,{label:"Deleted",icon:"trash",selected:t==="deleted",onClick:()=>e.select("view:deleted")}),a.jsx("div",{className:"p-tab_page_column__divider","data-qa":"browse-sidebar-divider"}),a.jsxs("div",{className:"p-tab_page_column__section",children:[a.jsx("div",{children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-tab_page_column__section_button","data-qa":"unstyled-button","aria-expanded":"true",children:[a.jsx("span",{className:"p-tab_page_column__row_icon","aria-hidden":"true",children:a.jsx(te,{name:"star",size:16})}),a.jsx("div",{children:a.jsx("span",{children:"Starred"})})]})}),a.jsx("div",{})]}),a.jsx("div",{className:"p-tab_page_column__empty_state","data-qa":"empty_state_wrapper",role:"alert",children:a.jsx("div",{children:"Click the ⭐ star on any canvas or list to add it here for later."})})]})})]})})})}const my=["In progress","Archived","Completed"];function hy({ctx:e}){var c;const{saved:t,channels:n,users:s,messages:r}=me(),i=Be();cl();const l=(c=e.selected)!=null&&c.startsWith("tab:")?e.selected.slice(4):"In progress",o=_.useMemo(()=>l!=="In progress"?[]:Object.keys(t).filter(u=>t[u]).map(u=>{var g;const[m,h]=u.split(":"),p=(g=r[m])==null?void 0:g.find(y=>y.ts===h);return p?{channelId:m,ts:h,message:p}:null}).filter(u=>u!==null).sort((u,m)=>Number(m.ts)-Number(u.ts)),[t,r,l]);return a.jsx("div",{className:"p-tab_page_column p-later_page__column",role:"group","aria-label":"Later","aria-roledescription":"Sidebar",children:a.jsxs("div",{className:"p-tab_page_column__inner",children:[a.jsxs("div",{className:"p-later_page__header",children:[a.jsx("div",{className:"p-ia__view_header__title p-later_page__title",children:"Later"}),a.jsxs("div",{className:"p-later_page__header_actions",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"later_filter_button","aria-label":"Filter","aria-haspopup":"menu",children:a.jsx(te,{name:"filters",size:20})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"later_create_reminder_button","aria-label":"Create reminder",children:a.jsx(Wa,{"data-qa":"plus",size:20})})]})]}),a.jsx("div",{className:"p-later_page__tabs",role:"tablist","aria-orientation":"horizontal",children:my.map(u=>a.jsx("button",{type:"button",role:"tab",className:`c-button-unstyled c-tabs__tab p-later_page__tab${u===l?" c-tabs__tab--active":""}`,"aria-selected":u===l,onClick:()=>e.select(`tab:${u}`),children:a.jsx("span",{className:"c-tabs__tab_content",children:u})},u))}),o.length===0?a.jsxs("div",{className:"p-later_page__empty","data-qa":"saved_for_later_empty_state",children:[a.jsx("p",{className:"p-saved_for_later_page__empty_title",children:"Nothing here"}),a.jsx("div",{className:"c-empty_state__description",children:l==="In progress"?"Enjoy a little moment to yourself.":`Nothing has been ${l.toLowerCase()} yet.`}),a.jsx("button",{type:"button",className:"c-button c-button--outline c-button--medium p-later_page__reminder_button","data-qa":"later_empty_create_reminder",children:"Create Reminder"})]}):a.jsx(wa,{listClass:"p-later_page__rows",children:o.map(({channelId:u,ts:m,message:h})=>{const p=n[u],g=s[h.user??""];return a.jsxs("button",{type:"button",className:"c-button-unstyled p-later_page__row","data-twin-unverified":"true",onClick:()=>e.go(u),children:[a.jsxs("div",{className:"p-later_page__row_meta",children:[p!=null&&p.is_im?i.channelName(u):`# ${(p==null?void 0:p.name)??u}`," · ",gd(m)]}),a.jsxs("div",{className:"p-later_page__row_body",children:[a.jsx("span",{className:"p-later_page__row_sender",children:(g==null?void 0:g.real_name)??(g==null?void 0:g.name)??h.username??""})," ",dl(h.text??"",s,n)]})]},`${u}:${m}`)})})]})})}function fy(){return a.jsx("div",{className:"p-later_page__main","data-qa":"saved_for_later_main",children:a.jsxs("svg",{className:"p-later_page__illustration",viewBox:"0 0 280 250","aria-hidden":"true",children:[a.jsx("ellipse",{cx:"140",cy:"200",rx:"120",ry:"22",fill:"#1d1c1d",opacity:"0.05"}),a.jsx("path",{d:"M40 118 L150 52 L240 100 L130 166 Z",fill:"#f3e2f7"}),a.jsx("path",{d:"M40 118 L130 166 L130 196 L40 148 Z",fill:"#8a3a8f"}),a.jsx("path",{d:"M130 166 L240 100 L240 130 L130 196 Z",fill:"#6a2a70"}),a.jsx("path",{d:"M40 118 L40 148 L100 116 L100 86 Z",fill:"#b45bb8"}),a.jsx("path",{d:"M100 86 L100 116 L130 166 L130 196 Z",fill:"#5a1f60",opacity:"0.35"})]})})}const gy=[{title:"Project tracker",text:"Manage and monitor tasks as a team",kind:"list"},{title:"Monthly Newsletter",text:"Broadcast your announcements.",kind:"canvas"},{title:"Feedback tracker",text:"A streamlined approach to keeping track of feedback from coworkers",kind:"list"},{title:"Out of Office Coverage Plan",text:"Share how your work will be covered.",kind:"canvas"}];function vy({ctx:e}){var u;const t=(u=e.selected)!=null&&u.startsWith("view:")?e.selected.slice(5):"all",n=Be(),[s,r]=_.useState(null),[i,l]=_.useState("");_.useEffect(()=>{ge.filesList().then(m=>r(m.files)).catch(()=>r([]))},[]);const o=t==="all"?"All files":t==="canvases"?"Canvases":t==="lists"?"Lists":"Deleted",c=(s??[]).filter(m=>t==="canvases"&&m.filetype!=="quip"||t==="lists"&&m.filetype!=="list"||t==="deleted"?!1:!i||(m.title??m.name).toLowerCase().includes(i.toLowerCase()));return a.jsx("div",{className:"p-page_main p-files_page__main",role:"group","aria-label":"Recents",children:a.jsxs("div",{className:"p-page_main__body",children:[a.jsx("div",{className:"p-files_page__header",children:a.jsxs("div",{className:"p-files_page__header_inner",children:[a.jsx("div",{}),a.jsx("div",{className:"p-files_page__title","data-qa":"unfied_files_browser_all_title",children:o}),a.jsx("div",{className:"p-files_page__header_actions",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-files_page__new","aria-haspopup":"menu",children:[a.jsx("span",{children:a.jsx(te,{name:"plus-filled",size:16})}),"New"]})})]})}),a.jsx("div",{className:"p-explorer_search","data-qa":"explorer_search",children:a.jsx("div",{children:a.jsx("div",{className:"p-explorer_search__inner",children:a.jsx(of,{label:"Search files",placeholder:"Search files",value:i,onChange:l})})})}),a.jsxs("div",{className:"p-files_page__results","data-qa":"unfied_files_browser_all_results",children:[a.jsxs(wa,{listClass:"p-files_page__body",children:[a.jsxs("div",{"data-qa":"virtual-list-item",role:"presentation",children:[a.jsx("div",{className:"p-files_page__section_title p-files_page__section_title--first",children:"Start with a template"}),a.jsx("div",{className:"p-files_page__templates",children:gy.map(m=>a.jsx("div",{role:"none",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-files_page__template","data-qa":"unstyled-button","aria-label":m.title,children:[a.jsx("div",{className:"p-files_page__template_preview","data-qa":"preview-container",children:a.jsx("div",{className:`p-files_page__template_art p-files_page__template_art--${m.kind}`,role:"presentation","aria-hidden":"true"})}),a.jsxs("div",{className:"p-files_page__template_labels","data-qa":"stacked-labels-enabled-container",children:[a.jsx("span",{className:"p-files_page__template_title",children:m.title}),a.jsx("span",{className:"p-files_page__template_text",children:m.text})]})]})},m.title))})]}),a.jsxs("div",{className:"p-files_page__filters_row","data-qa":"virtual-list-item",role:"presentation",children:[a.jsx("div",{className:"p-files_page__filters",role:"radiogroup","aria-orientation":"horizontal","aria-label":"Filter",children:["All","Created by you","Shared with you"].map((m,h)=>a.jsx("button",{type:"button",role:"radio","aria-checked":h===0,className:`c-button-unstyled p-files_page__filter${h===0?" p-files_page__filter--on":""}`,"data-qa":"unstyled-button",children:m},m))}),a.jsxs("div",{className:"p-files_page__filters_right",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-files_page__filter_select","data-qa":"filter_file_types_recents-explorer-select","aria-haspopup":"menu",children:[a.jsx("span",{children:a.jsx(te,{name:"refine",size:18})}),"Type",a.jsx("span",{children:a.jsx(Ie,{"data-qa":"caret-down",size:18})})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-files_page__filter_select","data-qa":"sort-explorer-select-button","aria-haspopup":"menu",children:["Recently viewed",a.jsx("span",{"data-qa":"filter-button-caret-down",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-files_page__filters_icon","data-qa":"unstyled-button","aria-label":"Filters",children:a.jsx(te,{name:"filters",size:18})})]})]}),c.map(m=>a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsxs("div",{className:"p-files_page__file","data-qa":"message_file_link",id:m.id,children:[a.jsx("i",{className:"p-files_page__file_icon","data-qa":"file_thumbnail_icon","aria-hidden":"true",children:m.thumb_360?a.jsx("img",{src:nt(m.thumb_360),alt:""}):(m.filetype??"file").toUpperCase().slice(0,4)}),a.jsxs("div",{className:"p-files_page__file_text",children:[a.jsx("span",{className:"p-files_page__file_title","data-qa":"file-entity-metadata-title",children:a.jsx("span",{className:"p-files_page__file_name","data-qa":"file_name",children:m.title||m.name})}),a.jsxs("div",{className:"p-files_page__file_desc","data-qa":"file-entity-metadata-description",children:[m.user?n.realName(m.user):"Unknown"," shared ",m.filetype?`a ${m.filetype.toUpperCase()}`:"a file"]})]}),a.jsxs("div",{className:"p-files_page__file_actions","data-qa":"file_actions",role:"presentation",children:[a.jsx("a",{className:"p-files_page__file_action","data-qa":"download_action",href:m.url_private?nt(m.url_private):"#","aria-label":"Download",onClick:h=>h.preventDefault(),children:a.jsx(te,{name:"download",size:18})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-files_page__file_action p-files_page__file_action--more","data-qa":"more_file_actions","aria-label":"More actions","aria-haspopup":"menu",children:a.jsx(te,{name:"ellipsis-vertical-filled",size:18})})]})]})},m.id)),s&&c.length===0&&a.jsx("div",{className:"p-files_page__list_empty",children:"No files yet"})]}),a.jsx("div",{className:"p-files_page__results_footer","data-qa":"unfied_files_browser_all_results_footer"})]})]})})}function of({label:e,placeholder:t,value:n,onChange:s,width:r}){return a.jsx("div",{className:"p-explorer_search__container","data-qa":"static_omniswitcher_container",role:"presentation",style:r!==void 0?{width:r}:void 0,children:a.jsx("div",{className:"p-explorer_search__input","data-qa":"static_omniswitcher_input",role:"presentation",children:a.jsxs("div",{className:"p-explorer_search__box","data-qa":"search_input_box",role:"presentation",children:[a.jsx("span",{className:"p-explorer_search__icon",children:a.jsx(aa,{"data-qa":"search",size:20})}),a.jsxs("div",{className:"p-explorer_search__field","data-qa":"focusable_search_input",children:[a.jsx("div",{className:"p-explorer_search__texty","data-qa":"texty_input",role:"combobox","aria-label":e,"aria-multiline":"false","aria-expanded":"false","aria-autocomplete":"list",contentEditable:!0,suppressContentEditableWarning:!0,onInput:i=>s(i.currentTarget.textContent??"")}),!n&&a.jsx("span",{className:"p-explorer_search__placeholder",children:t})]})]})})})}const by=[{id:"agents",label:"All agents",icon:"ai-agents"},{id:"workflows",label:"Workflows",icon:"play"},{id:"apps",label:"Apps",icon:"apps"}];function xy({ctx:e}){var r;const t=(r=e.selected)!=null&&r.startsWith("view:")?e.selected.slice(5):"agents",[n,s]=_.useState("");return a.jsx("div",{className:"p-tab_page_column p-agents_page__column",role:"group","aria-label":"Automations","aria-roledescription":"Sidebar","data-twin-unverified":"true",children:a.jsxs("div",{className:"p-tab_page_column__inner",children:[a.jsx("div",{className:"p-tab_page_column__header52",children:a.jsxs("div",{className:"p-tab_page_column__header52_inner",children:[a.jsx("div",{className:"p-tab_page_column__title52_wrap",children:a.jsx("div",{className:"p-tab_page_column__title52","data-qa":"ia4_sidebar_header__title",children:"Agents & tools"})}),a.jsx("div",{className:"p-tab_page_column__header52_actions p-tab_page_column__header52_actions--single",children:a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-tab_page_column__icon_button","data-qa":"unstyled-button","aria-label":"New","aria-haspopup":"menu",children:a.jsx(Wa,{"data-qa":"plus",size:20})})})})]})}),a.jsx("div",{className:"p-agents_page__filter_wrap",children:a.jsxs("div",{className:"p-tab_page_column__filter","data-qa":"agent-sessions-filter-input",role:"presentation",children:[a.jsx(pd,{"data-qa":"quick-switch",size:16}),a.jsx("input",{className:"p-tab_page_column__filter_input","data-qa":"agent-sessions-filter-input_input",role:"searchbox","aria-label":"Filter recent conversations and workflows",value:n,onChange:i=>s(i.target.value)}),a.jsx("div",{})]})}),a.jsx("div",{className:"p-tab_page_column__body",children:a.jsx(wa,{listClass:"p-tab_page_column__rows",children:by.map(i=>a.jsx(cc,{label:i.label,icon:i.icon,selected:t===i.id,onClick:()=>e.select(`view:${i.id}`)},i.id))})})]})})}function yy({ctx:e}){var p;const{users:t,channels:n}=me(),s=(p=e.selected)!=null&&p.startsWith("view:")?e.selected.slice(5):"agents",[r,i]=_.useState(""),[l,o]=_.useState("my-agents"),c=_.useMemo(()=>Object.values(t).filter(g=>g.is_bot&&!g.is_slackbot&&!g.deleted),[t]),u=c.filter(g=>!r||g.real_name.toLowerCase().includes(r.toLowerCase())),m=s==="workflows"?"Workflows":s==="apps"?"Apps":"All agents",h=g=>Object.values(n).filter(y=>y.is_member&&!y.is_im&&!y.is_archived).length+(Object.values(n).some(y=>y.is_im&&y.user===g)?1:0);return a.jsx("div",{className:"p-page_main p-agents_page__main",role:"group","aria-label":"Agent Browser",children:a.jsxs("div",{className:"p-page_main__body",children:[a.jsx("div",{className:"p-agents_page__header",children:a.jsxs("div",{className:"p-agents_page__header_inner",children:[a.jsx("h1",{className:"p-agents_page__title","data-qa":"agent_browser_tabbed_view_header_title",children:m}),a.jsx("div",{})]})}),a.jsxs("div",{className:"p-page_tabs","data-qa":"tabs_full_height_class",role:"none",children:[a.jsxs("div",{className:"c-tabs__strip c-tabs__strip--page","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal","aria-label":"Agent Browser Tabs",children:[a.jsx("button",{type:"button",className:"c-tabs__strip_item","data-qa":"tabs_item",id:"my-agents",role:"tab","aria-haspopup":"false","aria-selected":l==="my-agents",onClick:()=>o("my-agents"),children:a.jsx("span",{children:"Installed agents"})}),a.jsx("button",{type:"button",className:"c-tabs__strip_item","data-qa":"tabs_item",id:"agent-exchange",role:"tab","aria-haspopup":"false","aria-selected":l==="agent-exchange",onClick:()=>o("agent-exchange"),children:a.jsx("span",{children:"AgentExchange"})})]}),a.jsxs("div",{className:"p-page_tabs__panel","data-qa":"tabs_content_container",role:"tabpanel","aria-label":l==="my-agents"?"Installed agents":"AgentExchange",children:[a.jsx("div",{className:"p-agents_page__results_header","data-qa":"my_agents_browser_results_header"}),a.jsx("div",{className:"p-agents_page__results","data-qa":"my_agents_browser_results",children:a.jsxs(wa,{ariaLabel:"Installed agent results",listClass:"p-agents_page__list",children:[a.jsx("div",{className:"p-agents_page__list_top"}),a.jsx("div",{className:"p-agents_page__search_row",children:a.jsx("section",{className:"p-agents_page__search_section",role:"search",children:a.jsxs("div",{className:"p-agents_page__search","data-qa":"search-my-agents-browser",role:"presentation",children:[a.jsx("i",{className:"c-slack_kit_icon c-slack_kit_icon--search","data-qa":"slack_kit_icon","aria-hidden":"true"}),a.jsx("input",{className:"p-agents_page__search_input","data-qa":"search-my-agents-browser_input",role:"searchbox","aria-label":`Search agents, ${u.length} results listed below`,value:r,onChange:g=>i(g.target.value)}),a.jsx("div",{})]})})}),a.jsx("div",{"data-qa":"virtual-list-item",role:"presentation",children:a.jsxs("div",{className:"p-agents_page__featured",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-agents_page__featured_dismiss","data-qa":"unstyled-button","aria-label":"Dismiss",children:a.jsx(te,{name:"close",size:20})}),c.slice(0,3).map(g=>a.jsxs("div",{className:"p-agents_page__featured_card",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-agents_page__featured_info","aria-label":`About ${g.real_name}`,onClick:()=>e.openProfile(g.id),children:a.jsx(te,{name:"info",size:16})}),a.jsx(Oe,{userId:g.id,size:48}),a.jsx("div",{className:"p-agents_page__featured_art","aria-hidden":"true"}),a.jsxs("div",{className:"p-agents_page__featured_name",children:[g.real_name,a.jsx("span",{className:"p-agents_page__status",children:a.jsx(te,{name:"status-member-filled",size:15})})]}),a.jsx("div",{className:"p-agents_page__featured_desc",children:g.profile.title||`${g.real_name} works inside your channels and DMs.`})]},g.id))]})}),a.jsxs("div",{className:"p-agents_page__filter_row","data-qa":"virtual-list-item",role:"presentation",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-agents_page__select_pill","data-qa":"agent-type-explorer-select-button","aria-haspopup":"menu",children:[m,a.jsx("span",{"data-qa":"filter-button-caret-down",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-agents_page__select_pill p-agents_page__select_pill--sort","data-qa":"sort-explorer-select-button","aria-haspopup":"menu",children:["Most relevant",a.jsx("span",{"data-qa":"filter-button-caret-down",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})]}),u.map(g=>a.jsx("div",{className:"p-agents_page__row","data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,id:g.id,children:a.jsxs("div",{className:"p-agents_page__row_inner",role:"none",children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-agents_page__row_button",onClick:()=>e.openProfile(g.id),children:[a.jsx("div",{className:"p-agents_page__thumb","data-qa":"thumbnail-container",children:a.jsx("div",{className:"p-agents_page__thumb_inner","data-qa":"enabled-container",children:a.jsx(Oe,{userId:g.id,size:36})})}),a.jsxs("div",{className:"p-agents_page__labels","data-qa":"stacked-labels-enabled-container",children:[a.jsxs("span",{className:"p-agents_page__label_row",children:[a.jsx("span",{className:"p-agents_page__name",children:g.real_name}),a.jsx("span",{className:"p-agents_page__status",children:a.jsx(te,{name:"status-member-filled",size:15})}),a.jsxs("span",{className:"p-agents_page__active",children:["Active in ",h(g.id)," channels and DMs"]})]}),a.jsx("span",{className:"p-agents_page__desc","aria-hidden":"false",children:g.profile.title||`${g.real_name} posts automated updates into channels in this workspace.`})]})]}),a.jsxs("div",{className:"p-agents_page__actions","data-qa":"actions-bar",children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-agents_page__action","data-qa":"unstyled-button","aria-label":`Open in split view for ${g.real_name}`,children:a.jsx(te,{name:"move-to-split-view",size:18})}),a.jsx("button",{type:"button",className:"c-button-unstyled p-agents_page__action","data-qa":"unstyled-button","aria-label":`About ${g.real_name}`,onClick:()=>e.openProfile(g.id),children:a.jsx(te,{name:"info",size:18})})]})]})},g.id)),u.length===0&&a.jsx("div",{className:"p-agents_page__empty",children:"No agents match"})]})}),a.jsx("div",{className:"p-agents_page__results_footer","data-qa":"my_agents_browser_results_footer"})]})]})]})})}function jd({title:e,titleQa:t,white:n=!1,children:s}){return a.jsx("div",{className:`p-page_view_header${n?" p-page_view_header--white":""}`,"data-qa":"view_header",role:"toolbar","aria-orientation":"horizontal","aria-label":"Primary view actions",children:a.jsx("div",{className:"p-page_view_header__inner",children:a.jsx("div",{className:"p-page_view_header__title_wrap",children:a.jsxs("div",{className:`p-page_view_header__title${s?" p-page_view_header__title--row":""}`,"data-qa":"channel_name",children:[t?a.jsx("div",{"data-qa":t,children:e}):a.jsx("div",{children:e}),s]})})})})}function cf({title:e,text:t,action:n,onClose:s}){const r=e.replace(/\W+/g,"-").toLowerCase();return a.jsx("div",{className:"p-hero_banner",role:"dialog","aria-labelledby":`${r}-title`,"aria-describedby":`${r}-desc`,children:a.jsxs("div",{className:"p-hero_banner__container","data-qa":"hero-banner-container",children:[a.jsxs("div",{className:"p-hero_banner__body",children:[a.jsx("h2",{id:`${r}-title`,className:"p-hero_banner__title",children:e}),a.jsx("p",{id:`${r}-desc`,className:"p-hero_banner__text",children:t}),a.jsx("div",{children:n})]}),a.jsx("button",{type:"button",className:"c-button-unstyled p-hero_banner__close","data-qa":"unstyled-button","aria-label":"close",onClick:s,children:a.jsx(te,{name:"close",size:20})})]})})}function jy({ctx:e}){const t=cl(),n=ry(),s=Be(),{me:r}=me(),i=n.filter(o=>o.unread).length,l=_.useRef(null);return _.useEffect(()=>{const o=()=>{l.current&&(l.current.scrollTop=0)};o();const c=[window.setTimeout(o,0),window.setTimeout(o,120),window.setTimeout(o,400)];return()=>c.forEach(u=>window.clearTimeout(u))},[n.length]),a.jsxs("div",{className:"p-page_main p-threads_page",role:"group","aria-label":"Threads",children:[a.jsx(jd,{title:"Threads",titleQa:"ia_view_header_threads"}),a.jsx("div",{className:"p-threads_view","data-qa":"threads_view","data-twin-unverified":"true",children:a.jsxs("div",{className:"p-threads_view__scroll_wrap",children:[a.jsx("div",{id:"threads_view",role:"presentation",className:"p-threads_view__zero"}),a.jsx("div",{id:"threads_view",role:"presentation",className:"p-threads_view__outer",children:a.jsx("div",{ref:l,className:"p-kit_scroll c-scrollbar__hider","data-qa":"slack_kit_scrollbar",role:"presentation",children:a.jsx("div",{className:"p-kit_scroll_child",role:"presentation",children:a.jsxs("div",{className:"p-threads_view__list","data-qa":"slack_kit_list",role:"list","aria-label":i?`Threads, ${i} new ${i===1?"reply":"replies"}`:"Threads, no new replies",children:[n.length===0&&a.jsxs("div",{className:"p-threads_view__empty","data-qa":"threads_view_empty",children:[a.jsx("div",{className:"p-threads_view__empty_title",children:t?"No threads yet":"Loading threads"}),t&&a.jsx("div",{children:"Threads you’re following will show up here. Reply to a message to start one."})]}),n.map(o=>{const u=Array.from(new Set([o.root.user,...o.replies.map(p=>p.user)].filter(p=>!!p))).filter(p=>p!==r),m=u.length===0?"Just you":u.length===1?`You and ${s.realName(u[0])}`:`You, ${u.slice(0,-1).map(p=>s.realName(p)).join(", ")} and ${s.realName(u[u.length-1])}`,h=o.replies.slice(-2);return a.jsxs("div",{className:"p-threads_view__thread","data-channel-id":o.channel.id,"data-ts":o.root.ts,children:[a.jsxs("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:[a.jsxs("div",{className:"p-threads_view__header","data-qa":"threads_view_header",children:[a.jsx("div",{children:a.jsx("button",{type:"button",className:"c-button-unstyled p-threads_view__channel",onClick:()=>e.go(o.channel.id),children:a.jsx("span",{"data-qa":"inline_channel_entity",className:"p-threads_view__channel_entity",children:a.jsx("span",{children:a.jsxs("span",{children:[a.jsx("span",{className:"p-threads_view__channel_icon",children:a.jsx(te,{name:o.channel.is_im||o.channel.is_mpim?"direct-messages":o.channel.is_private?"lock":"channel",size:15})}),a.jsx("span",{children:a.jsx("span",{children:a.jsx("span",{"data-qa":"inline_channel_entity__name",children:s.channelName(o.channel.id)})})})]})})})})}),a.jsx("span",{className:"p-threads_view__participants","data-qa":"thread_participant_list",children:m})]}),a.jsx("div",{className:"p-threads_view__card p-threads_view__card--first","data-qa":"multi_thread_background",children:a.jsx(dn,{channel:o.channel,message:o.root,compact:!1,inThread:!0,editing:!1,onEdit:()=>{},onOpenThread:p=>e.openThread(o.channel.id,p),onOpenChannel:e.go})})]}),o.replies.length>h.length&&a.jsx("div",{className:"p-threads_view__card","data-qa":"multi_thread_background",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-threads_view__more","data-qa":"threads_view_open",onClick:()=>e.openThread(o.channel.id,o.root.ts),children:["View ",o.replies.length-h.length," more ",o.replies.length-h.length===1?"reply":"replies"]})}),h.map(p=>a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"p-threads_view__card","data-qa":"multi_thread_background",children:a.jsx(dn,{channel:o.channel,message:p,compact:!1,inThread:!0,editing:!1,onEdit:()=>{},onOpenChannel:e.go})})},p.ts)),a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"p-threads_view__card p-threads_view__card--last","data-qa":"multi_thread_background",children:a.jsx("div",{className:"p-threads_view__footer","data-qa":"threads_footer",children:a.jsx("div",{className:"p-threads_view__reply","data-qa":"reply_container",children:a.jsx(Di,{channel:o.channel,threadTs:o.root.ts,placeholder:"Reply…",onEditLast:()=>{}})})})})})]},`${o.channel.id}:${o.root.ts}`)})]})})})})]})})]})}function wy(){const{channels:e,users:t,me:n}=me(),s=Be(),[r,i]=_.useState(!0),l=_.useMemo(()=>Object.values(e).filter(c=>c.is_im&&c.user&&c.user!==n&&t[c.user]&&!t[c.user].is_bot).sort((c,u)=>{var m,h;return Number(((m=u.latest)==null?void 0:m.ts)??0)-Number(((h=c.latest)==null?void 0:h.ts)??0)}).slice(0,3).map(c=>c.user),[e,t,n]),o=_.useMemo(()=>Object.values(e).filter(c=>c.is_member&&!c.is_im&&!c.is_mpim&&!c.is_archived).slice(0,3),[e]);return a.jsxs("div",{className:"p-page_main p-huddles_page",role:"group","aria-label":"Huddles","data-twin-unverified":"true",children:[a.jsx(jd,{title:"Huddles",white:!0,children:a.jsx("div",{className:"p-page_view_header__actions",children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-page_view_header__pill","aria-haspopup":"menu",children:[a.jsx("span",{children:a.jsx(te,{name:"plus",size:13})}),"New Huddle"]})})}),a.jsx("div",{className:"p-huddles_view","data-qa":"huddles_view",children:a.jsxs(wa,{ariaLabel:"Recent huddles",listClass:"p-huddles_view__list",children:[r&&a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx(cf,{title:"Instantly connect over audio or video",text:"Talk it out in real time on a huddle, with screen-sharing, expressive reactions and live captions.",action:a.jsxs("button",{type:"button",className:"c-button-unstyled p-hero_banner__primary",children:[a.jsx("span",{children:a.jsx(br,{"data-qa":"headphones",size:15})}),"Start a Huddle"]}),onClose:()=>i(!1)})}),a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsxs("div",{className:"p-huddles_view__suggestions",role:"toolbar","aria-orientation":"horizontal","aria-label":"Direct message suggestions",children:[a.jsxs("div",{className:"p-huddles_view__section_title",children:[a.jsx("span",{children:"Direct messages"})," Talk privately 1:1 with someone"]}),a.jsx("div",{className:"p-huddles_view__cards",children:l.map(c=>{const u=t[c].presence==="active";return a.jsxs("button",{type:"button",className:"c-button-unstyled p-huddles_view__card","data-qa":"unstyled-button","aria-label":`Start a huddle with ${s.realName(c)}`,children:[a.jsxs("div",{className:"p-huddles_view__card_avatars",children:[a.jsx(Oe,{userId:n,size:60}),a.jsx(Oe,{userId:c,size:60})]}),a.jsxs("div",{className:"p-huddles_view__card_name",children:[a.jsx("span",{children:s.realName(c)}),a.jsx("span",{className:`p-huddles_view__presence${u?"":" p-huddles_view__presence--away"}`,children:a.jsx(te,{name:"presence_indicator",size:20,className:"p-huddles_view__presence_svg"})})]}),a.jsxs("div",{className:"p-huddles_view__card_foot",children:[a.jsx("span",{className:`p-huddles_view__presence${u?"":" p-huddles_view__presence--away"}`,children:a.jsx(te,{name:"presence_indicator",size:20,className:"p-huddles_view__presence_svg"})}),a.jsx("span",{className:"p-huddles_view__presence_text","aria-hidden":"true",children:ol(u,!0)}),a.jsx("span",{className:"p-huddles_view__start",children:"Start Huddle"})]})]},c)})})]})}),a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsxs("div",{className:"p-huddles_view__channels",role:"toolbar","aria-orientation":"vertical","aria-label":"Channel suggestions",children:[a.jsxs("div",{className:"p-huddles_view__section_title",children:[a.jsx("span",{children:"Channels"})," Meet with a whole team, or just let people drop in and out"]}),a.jsx("div",{className:"p-huddles_view__rows",children:o.map(c=>a.jsxs("button",{type:"button",className:"c-button-unstyled p-huddles_view__row","data-qa":"unstyled-button",children:[a.jsx("span",{className:"p-huddles_view__row_icon",children:a.jsx(te,{name:c.is_private?"lock":"channel",size:20})}),a.jsxs("div",{className:"p-huddles_view__row_name",children:["#",c.name]}),a.jsx("span",{className:"p-huddles_view__start",children:"Start Huddle"})]},c.id))})]})})]})})]})}function ky({ctx:e}){cl(),Ch();const t=vb(),n=Be(),{users:s,channels:r}=me(),[i,l]=_.useState("drafts"),o=[{id:"drafts",label:"Drafts"},{id:"scheduled",label:"Scheduled"},{id:"sent",label:"Sent"}];return a.jsxs("div",{className:"p-page_main p-drafts_page_root",role:"group","aria-label":"Drafts & sent","data-twin-unverified":"true",children:[a.jsx(jd,{title:"Drafts & sent"}),a.jsx("div",{className:"p-page_tabs","data-qa":"tabs_full_height_class",role:"none",children:a.jsx("div",{className:"c-tabs__strip c-tabs__strip--page c-tabs__strip--page_grey","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal","aria-label":"Drafts sub-view type",children:o.map(c=>a.jsx("button",{type:"button",className:"c-tabs__strip_item","data-qa":`outbox_tab_${c.id}`,id:c.id,role:"tab","aria-haspopup":"false","aria-selected":i===c.id,onClick:()=>l(c.id),children:a.jsx("span",{children:c.label})},c.id))})}),a.jsx("div",{className:"p-page_tabs__panel",children:a.jsxs("div",{className:"p-drafts_page","data-qa":"drafts_page","data-qa-tab":i,children:[i==="drafts"&&t.length>0&&a.jsx("div",{className:"p-drafts_page__list",role:"list","data-qa":"drafts_list",children:t.map(({key:c,channel:u,threadTs:m,draft:h})=>{var p,g,y;return a.jsxs("button",{type:"button",className:"c-button-unstyled p-drafts_page__item","data-qa":"draft_item","data-channel-id":u,"data-ts":m??void 0,role:"listitem",onClick:()=>e.go(u),children:[a.jsxs("span",{className:"p-drafts_page__item_head",children:[a.jsxs("span",{className:"p-drafts_page__item_channel",children:[(p=r[u])!=null&&p.is_im?a.jsx(Oe,{userId:((g=r[u])==null?void 0:g.user)??void 0,size:20}):a.jsx(te,{name:(y=r[u])!=null&&y.is_private?"lock":"channel",size:15}),n.channelName(u)??u,m?" (thread)":""]}),a.jsx("span",{className:"p-drafts_page__item_time",children:gd(String(h.updated/1e3))})]}),a.jsx("span",{className:"p-drafts_page__item_text",children:dl(h.text,s,r)})]},c)})}),i==="drafts"&&t.length===0&&a.jsxs("div",{className:"p-empty_state_wrapper","data-qa":"empty_state_wrapper",role:"alert",children:[a.jsx("div",{className:"p-empty_state_wrapper__art","aria-hidden":"true"}),a.jsx("div",{className:"p-empty_state_wrapper__title",children:"Draft messages to send when you’re ready"}),a.jsx("div",{className:"p-empty_state_wrapper__text",children:"Start typing a message anywhere, then find it here. Re-read, revise, and send when you’re ready."}),a.jsx("div",{className:"p-empty_state_wrapper__action","data-qa":"empty_state_primary_action",children:a.jsx("button",{type:"button",className:"c-button-unstyled p-empty_state_wrapper__button",children:"New Message"})})]}),i==="scheduled"&&a.jsxs("div",{className:"p-empty_state_wrapper","data-qa":"empty_state_wrapper",role:"alert",children:[a.jsx("div",{className:"p-empty_state_wrapper__art","aria-hidden":"true"}),a.jsx("div",{className:"p-empty_state_wrapper__title",children:"Schedule messages to send later"}),a.jsx("div",{className:"p-empty_state_wrapper__text",children:"Use the arrow next to the send button to pick a time. Scheduled messages wait here until they go out."})]}),i==="sent"&&a.jsxs("div",{className:"p-empty_state_wrapper","data-qa":"empty_state_wrapper",role:"alert",children:[a.jsx("div",{className:"p-empty_state_wrapper__art","aria-hidden":"true"}),a.jsx("div",{className:"p-empty_state_wrapper__title",children:"See what you’ve sent"}),a.jsx("div",{className:"p-empty_state_wrapper__text",children:"Messages you send will show up here so you can find them again."})]})]})})]})}const Jl=[{id:"people",label:"People",icon:"user-filled"},{id:"channels",label:"Channels",icon:"channel-search"},{id:"user_groups",label:"User Groups",icon:"user-groups"},{id:"external",label:"External",icon:"buildings"},{id:"invitations",label:"Invitations",icon:"email-invite"}];function Ny({ctx:e}){const{users:t,channels:n,me:s,join:r,team:i}=me();Be();const l=Xa(),o=typeof window<"u"&&new URLSearchParams(window.location.search).get("tab")==="channels"?"channels":"people",[c,u]=_.useState(o),[m,h]=_.useState(""),[p,g]=_.useState(!0),y=m.trim().toLowerCase(),k=Object.values(t).filter(x=>!x.is_bot&&!x.is_slackbot&&!x.deleted).filter(x=>!y||x.real_name.toLowerCase().includes(y)||x.name.includes(y)||(x.profile.title??"").toLowerCase().includes(y)).sort((x,w)=>x.id===s?-1:w.id===s?1:x.real_name.localeCompare(w.real_name)),C=Object.values(n).filter(x=>x.is_channel&&!x.is_archived&&!x.is_im&&!x.is_mpim).filter(x=>{var w;return!y||(x.name??"").includes(y)||(((w=x.purpose)==null?void 0:w.value)??"").toLowerCase().includes(y)}).sort((x,w)=>(x.name??"").localeCompare(w.name??"")),f=Jl.find(x=>x.id===c)??Jl[0],v=c==="people"?"Search people":c==="channels"?"Search channels":`Search ${f.label.toLowerCase()}`,b=c==="people"?"Search for people":c==="channels"?"Search for channels":`Search for ${f.label.toLowerCase()}`;return a.jsxs("div",{className:"p-page_main p-directories_page",role:"group","aria-label":"Unified Directory","data-twin-unverified":"true",children:[a.jsx("div",{className:"p-directories_page__header",children:a.jsx("p",{className:"p-directories_page__title",children:"Directories"})}),a.jsxs("div",{className:"p-page_tabs","data-qa":"tabs_full_height_class",role:"none",children:[a.jsx("div",{className:"c-tabs__strip c-tabs__strip--page c-tabs__strip--page_grey","data-qa":"tabs_full_width_class",role:"tablist","aria-orientation":"horizontal","aria-label":"Unified Directory Tabs",children:Jl.map(x=>a.jsxs("button",{type:"button",className:"c-tabs__strip_item","data-qa":"tabs_item",id:x.id,role:"tab","aria-haspopup":"false","aria-selected":c===x.id,onClick:()=>{u(x.id),h(""),l({search:x.id==="channels"?"?tab=channels":""},{replace:!0})},children:[a.jsx("div",{className:"c-tabs__strip_icon","data-qa":"tabs_item_render_icon",children:a.jsx(te,{name:x.icon,size:13})}),a.jsx("span",{children:x.label})]},x.id))}),a.jsxs("div",{className:"p-page_tabs__panel p-page_tabs__panel--grey","data-qa":"tabs_content_container",role:"tabpanel","aria-label":f.label,children:[a.jsx("div",{className:"p-explorer_search p-explorer_search--directories","data-qa":"explorer_search",children:a.jsx("div",{children:a.jsxs("div",{className:"p-explorer_search__inner",children:[a.jsx(of,{label:v,placeholder:b,value:m,onChange:h,width:755.65}),c==="people"&&a.jsx("button",{type:"button",className:"c-button-unstyled p-explorer_search__action",children:"Invite People"}),c==="channels"&&a.jsx("button",{type:"button",className:"c-button-unstyled p-explorer_search__action","data-qa":"directories_create_channel",children:"Create Channel"})]})})}),a.jsx("div",{className:"p-directories_page__results_header","data-qa":`${c}_browser_results_header`}),a.jsx("div",{className:"p-directories_page__results","data-qa":`${c}_browser_results`,children:a.jsxs(wa,{ariaLabel:`${f.label} results`,role:"presentation",listClass:"p-directories_page__list",children:[c==="people"&&a.jsxs(a.Fragment,{children:[p&&a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx(cf,{title:"Invite your team to Slack",text:`Bring your team members into Slack to start working better together. Send invites, or share a link so people can join ${i.name} on their own.`,action:a.jsx("button",{type:"button",className:"c-button-unstyled p-hero_banner__outline",children:"Invite people"}),onClose:()=>g(!1)})}),a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsxs("div",{className:"p-directories_page__filters_row",children:[a.jsxs("div",{className:"p-directories_page__filters","data-qa":"search_filters",role:"toolbar","aria-orientation":"horizontal","aria-label":"Filter by",children:[["title","location"].map(x=>a.jsxs("span",{children:[a.jsx("button",{type:"button",className:"c-button-unstyled p-directories_page__filter","data-qa":`search-filters-${x}-filter_trigger`,id:x,"aria-expanded":"false",children:a.jsxs("span",{children:[x==="title"?"Title":"Location",a.jsx("span",{children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})}),a.jsx("span",{id:`${x}-label`,className:"sr-only",children:x==="title"?"Title:":"Location:"})]},x)),a.jsxs("button",{type:"button",className:"c-button-unstyled p-directories_page__filters_more","data-qa":"unstyled-button",children:[a.jsx("span",{children:a.jsx(te,{name:"refine",size:18})}),"Filters"]})]}),a.jsx("span",{id:"sort-active-value",className:"sr-only","aria-hidden":"true",children:"Most recommended"}),a.jsx("span",{id:"sort-title",className:"sr-only","aria-hidden":"true",children:"Sort"}),a.jsxs("button",{type:"button",className:"c-button-unstyled p-directories_page__sort","data-qa":"sort-explorer-select-button",id:"sort-explorer-select","aria-labelledby":"sort-title sort-active-value","aria-haspopup":"menu",children:["Most recommended",a.jsx("span",{className:"p-directories_page__sort_caret","data-qa":"filter-button-caret-down",children:a.jsx(Ie,{"data-qa":"caret-down",size:16})})]})]})}),a.jsx("div",{"data-qa":"virtual-list-item",role:"listitem","aria-setsize":-1,children:a.jsx("div",{className:"p-directories_page__grid","data-qa":"grid-container",role:"grid","aria-label":"People results","aria-rowcount":Math.ceil(k.length/4),"aria-colcount":4,"aria-readonly":"true",children:a.jsx("div",{role:"rowgroup",children:Array.from({length:Math.ceil(k.length/4)},(x,w)=>a.jsx("div",{className:"p-directories_page__grid_row","data-qa":"grid-row",role:"row",children:k.slice(w*4,w*4+4).map((S,A)=>{const I=S.presence==="active";return a.jsx("div",{className:"p-directories_page__cell",role:"gridcell","aria-setsize":4,"aria-posinset":A+1,children:a.jsx("div",{className:"p-directories_page__member","data-qa":"browse_page_member",onClick:()=>e.openProfile(S.id),children:a.jsxs("button",{type:"button",className:"c-button-unstyled p-directories_page__member_button","aria-label":S.real_name,children:[a.jsx("span",{className:"p-directories_page__member_avatar","data-qa":"browse_page_member_card_entity_avatar",children:a.jsx(Oe,{userId:S.id,size:209})}),a.jsxs("span",{className:"p-directories_page__member_text",children:[a.jsxs("span",{className:"p-directories_page__member_name","data-qa":"browse_page_member_card_entity_name",children:[a.jsxs("span",{children:[a.jsx("span",{className:"p-directories_page__member_name_text","data-qa":"browse_page_member_card_entity__name_text",children:S.real_name}),S.id===s&&a.jsx("span",{className:"p-directories_page__member_you","data-qa":"browse_page_member_card_entity__you",children:"(you)"})]}),a.jsx("span",{className:`p-directories_page__member_presence${I?"":" p-directories_page__member_presence--away"}`,"data-qa":"browse_page_member_card_entity__guest_badge",children:a.jsx(te,{name:"presence_indicator",size:20,className:"p-directories_page__member_presence_svg"})})]}),a.jsx("span",{className:"p-directories_page__member_subtext","data-qa":"browse_page_member_card_entity_subtext",children:S.profile.title})]})]})})},S.id)})},w))})})})]}),c==="channels"&&a.jsx("div",{className:"p-directories_page__channels",role:"list","data-qa":"directories_channels",children:C.map(x=>{var w;return a.jsxs("div",{className:"p-directories_page__channel_row",role:"listitem","data-qa":"directories_channel","data-channel-id":x.id,children:[a.jsxs("button",{type:"button",className:"c-button-unstyled p-directories_page__channel_main",onClick:()=>e.go(x.id),children:[a.jsxs("span",{className:"p-directories_page__channel_name",children:[a.jsx(te,{name:x.is_private?"lock":"channel",size:16}),x.name]}),a.jsxs("span",{className:"p-directories_page__channel_meta",children:[x.is_member&&a.jsx("span",{className:"p-directories_page__joined",children:"Joined"}),x.num_members??0," member",x.num_members===1?"":"s",((w=x.purpose)==null?void 0:w.value)&&` · ${x.purpose.value}`]})]}),x.is_member?a.jsx("button",{type:"button",className:"c-button-unstyled p-directories_page__channel_action","data-qa":"directories_channel_view",onClick:()=>e.go(x.id),children:"View"}):a.jsx("button",{type:"button",className:"c-button-unstyled p-directories_page__channel_action p-directories_page__channel_action--primary","data-qa":"directories_channel_join",onClick:()=>void r(x.id).then(()=>e.go(x.id)),children:"Join"})]},x.id)})}),c==="user_groups"&&a.jsxs("div",{className:"p-directories_page__empty",children:["User groups let you message and notify a set of people at once. No user groups have been created in ",i.name," yet."]}),c==="external"&&a.jsx("div",{className:"p-directories_page__empty",children:"Organizations you work with over Slack Connect show up here."}),c==="invitations"&&a.jsxs("div",{className:"p-directories_page__empty",children:["Pending invitations to ",i.name," show up here."]})]})}),a.jsx("div",{className:"p-directories_page__results_footer","data-qa":`${c}_browser_results_footer`})]})]})]})}const wd={"all-dms":{title:"Direct messages",replacesSidebar:!0},activity:{title:"Activity",replacesSidebar:!0},files:{title:"Files",replacesSidebar:!0},later:{title:"Later",replacesSidebar:!0},agents:{title:"Agents & tools",replacesSidebar:!0},threads:{title:"Threads",replacesSidebar:!1},huddles:{title:"Huddles",replacesSidebar:!1},drafts:{title:"Drafts & sent",replacesSidebar:!1},directories:{title:"Directories",replacesSidebar:!1}};function df(e){return e&&e in wd?e:null}const uf=_.createContext(null);function kd(){const e=_.useContext(uf);if(!e)throw new Error("useSurfaces outside SurfacesProvider");return e}function Sy({teamId:e,channelId:t,go:n,openThread:s,renderConversation:r,children:i}){const l=Xa(),o=me(),c=bt(),[u,m]=_.useState(null),[h,p]=_.useState(null),[g,y]=_.useState(null),[k,C]=_.useState(null),[f,v]=_.useState(!1),[b,x]=_.useState(!1),[w,S]=_.useState(null),[A,I]=_.useState(null),Q=_.useRef(null),z=_.useCallback(T=>{if(Q.current&&window.clearTimeout(Q.current),Q.current=null,!T){I(null);return}Q.current=window.setTimeout(()=>{Q.current=null,I(T)},ey)},[]),[ae,ce]=_.useState(!1),[ie,P]=_.useState({}),K=_.useRef(t);df(t)||(K.current=t);const L=_.useCallback(T=>l(`/client/${e}/${T}`),[l,e]),B=_.useCallback(T=>z(T),[z]),j=_.useCallback(()=>z(null),[z]),F=_.useCallback((T="availability")=>C(T),[]),M=_.useCallback((T,q="about")=>S({channelId:T,tab:q}),[]),X=_.useCallback(()=>v(!0),[]),oe=_.useCallback(()=>{m(null),p(null),y(null)},[]);_.useEffect(()=>{const T=q=>{var J;const U=q.target;if(!(U!=null&&U.closest))return;const $=re=>U.closest(`[data-qa="${re}"]`),Z=()=>{q.stopPropagation(),q.preventDefault()};let N;if(N=$("user-button")){Z();const re=N.getBoundingClientRect();m(he=>he?null:{anchor:re});return}if(N=$("workspace_actions_button")){Z();const re=N.getBoundingClientRect();p(he=>he?null:{anchor:re});return}if((N=$("tab_rail_more"))||(N=$("tab_rail_more_button"))){const re=N.getBoundingClientRect();y(he=>he?null:{anchor:re});return}if($("channel_name_button")){Z();const re=o.channels[t];re!=null&&re.is_im&&re.user?z(re.user):re&&M(re.id,"about");return}if($("channel_header_members_button")||$("avatar_stack")){Z(),o.channels[t]&&M(t,"members");return}if((N=$("message_sender_name")??$("message_sender"))&&N.dataset.qaUserId){z(N.dataset.qaUserId);return}if(N=$("message_avatar")){const re=N.querySelector("[data-user-id]"),he=(re==null?void 0:re.dataset.userId)??((J=N.closest('[data-qa="message_container"]'))==null?void 0:J.dataset.userId);he&&z(he);return}const H={tab_rail_home:()=>n(K.current),tab_rail_home_button:()=>n(K.current),tab_rail_dms:()=>L("all-dms"),tab_rail_dms_button:()=>L("all-dms"),tab_rail_activity:()=>L("activity"),tab_rail_activity_button:()=>L("activity"),tab_rail_files:()=>L("files"),tab_rail_files_button:()=>L("files"),tab_rail_later:()=>L("later"),tab_rail_later_button:()=>L("later"),tab_rail_agents:()=>L("agents"),tab_rail_admin:()=>window.open("/admin/members","_blank","noopener"),channel_sidebar_vall_threads:()=>L("threads"),channel_sidebar_name_page_threads:()=>L("threads"),"channel_sidebar_pbrowse-huddles":()=>L("huddles"),channel_sidebar_name_page_huddles:()=>L("huddles"),channel_sidebar_pdrafts:()=>L("drafts"),channel_sidebar_name_page_pdrafts:()=>L("drafts"),channel_sidebar_name_page_drafts:()=>L("drafts"),channel_sidebar_directories_link:()=>L("directories"),channel_sidebar_name_page_directories:()=>L("directories")};for(const[re,he]of Object.entries(H))if($(re)){he();return}};return document.addEventListener("click",T,!0),()=>document.removeEventListener("click",T,!0)},[t,n,M,L,o.channels]),_.useEffect(()=>{const T=q=>{const U=q.metaKey||q.ctrlKey,$=q.key.toLowerCase();if(q.key==="Escape"){k||f||w||b?(q.stopPropagation(),C(null),v(!1),S(null),x(!1)):A&&(q.stopPropagation(),z(null));return}if(q.metaKey&&q.key===","){q.preventDefault(),C("availability");return}if(U&&q.shiftKey&&$==="y"){q.preventDefault(),v(!0);return}if(U&&q.shiftKey&&$==="i"){q.preventDefault(),o.channels[t]&&M(t,"about");return}if(U&&q.shiftKey&&$==="k"){q.preventDefault(),L("all-dms");return}if(U&&q.shiftKey&&$==="m"){q.preventDefault(),L("activity");return}if(U&&q.shiftKey&&$==="t"){q.preventDefault(),L("threads");return}if(U&&q.shiftKey&&$==="e"){q.preventDefault(),L("directories");return}if(q.ctrlKey&&!q.metaKey&&q.key==="0"){q.preventDefault();const Z=document.querySelector('[data-qa="tab_rail_more"], [data-qa="tab_rail_more_button"]');Z&&y({anchor:Z.getBoundingClientRect()})}};return window.addEventListener("keydown",T,!0),()=>window.removeEventListener("keydown",T,!0)},[t,w,n,b,M,k,A,f,L,o.channels]);const E=_.useCallback(T=>({slug:T,selected:ie[T]??null,select:q=>P(U=>({...U,[T]:q})),go:n,openProfile:B,openThread:s,renderConversation:r}),[ie,n,B,s,r]),O=_.useMemo(()=>kv(c.theme),[c.theme]),D=_.useMemo(()=>({profileUser:A,openProfile:B,closeProfile:j,openPreferences:F,openDetails:M,openStatus:X,pageContext:E,themeStyle:O}),[A,B,j,F,M,X,E,O]),W=[...Object.entries(c.tabs).filter(([,T])=>!T).map(([T])=>({kind:"item",label:Cy[T]??T,qa:`more_menu_${T}`,onSelect:()=>T in wd?L(T):void 0})),{kind:"divider"},{kind:"item",label:"Customize navigation",qa:"more_menu_customize",onSelect:()=>C("tab_rail")}],Y=w?o.channels[w.channelId]:void 0;return a.jsxs(uf.Provider,{value:D,children:[a.jsx(O5,{}),typeof i=="function"?i(D):i,u&&a.jsx(W5,{anchor:u.anchor,onClose:oe,onOpenPreferences:T=>C(T??"availability"),onOpenProfile:B,onOpenStatus:X,onSignOut:()=>ce(!0)}),h&&a.jsx(sy,{anchor:h.anchor,onClose:oe,onOpenPreferences:()=>C("availability"),onInvite:()=>x(!0),onSignOut:()=>ce(!0)}),g&&a.jsx(sl,{anchor:g.anchor,placement:"right-end",entries:W,qa:"more_menu",onClose:oe,width:260,ariaLabel:"More"}),k&&a.jsx(I5,{initialTab:k,onClose:()=>C(null)}),f&&a.jsx(G5,{onClose:()=>v(!1)}),b&&a.jsx(zy,{onClose:()=>x(!1)}),Y&&a.jsx(X5,{channel:Y,initialTab:w==null?void 0:w.tab,onClose:()=>S(null),onOpenProfile:T=>{S(null),z(T)},onLeave:()=>{const T=w==null?void 0:w.channelId;S(null),T&&o.leave(T).then(()=>{if(T===t){const q=Object.values(o.channels).find(U=>U.is_general&&U.id!==T);q&&n(q.id)}})}}),ae&&a.jsx(Ty,{onBack:()=>ce(!1)})]})}const Cy={dms:"DMs",activity:"Activity",files:"Files",agents:"Agents & tools",admin:"Admin",later:"Later",canvases:"Canvases",automations:"Automations",templates:"Templates",external:"External connections"};function qy({go:e}){const{profileUser:t,closeProfile:n,openPreferences:s,openStatus:r}=kd(),{openDm:i}=me();return t?a.jsx(ny,{userId:t,onClose:n,onMessage:l=>void i([l]).then(o=>e(o.id)),onEditProfile:()=>s("availability"),onSetStatus:r}):null}function Ey({slug:e}){const{pageContext:t}=kd(),n=t(e);switch(e){case"all-dms":return a.jsx(iy,{ctx:n});case"activity":return a.jsx(dy,{ctx:n});case"files":return a.jsx(py,{ctx:n});case"later":return a.jsx(hy,{ctx:n});case"agents":return a.jsx(xy,{ctx:n});default:return null}}function My({slug:e}){const{pageContext:t}=kd(),n=t(e);switch(e){case"all-dms":return a.jsx(ly,{ctx:n});case"activity":return a.jsx(uy,{ctx:n});case"files":return a.jsx(vy,{ctx:n});case"later":return a.jsx(fy,{});case"agents":return a.jsx(yy,{ctx:n});case"threads":return a.jsx(jy,{ctx:n});case"huddles":return a.jsx(wy,{});case"drafts":return a.jsx(ky,{ctx:n});case"directories":return a.jsx(Ny,{ctx:n});default:return null}}function zy({onClose:e}){const{team:t}=me(),[n,s]=_.useState("");return a.jsxs(ur,{title:`Invite people to ${t.name}`,qa:"invite_modal",width:560,onClose:e,footer:a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:"c-link c-sk-modal_footer__left","data-qa":"invite_modal_copy_link",children:"Copy invite link"}),a.jsx("button",{type:"button",className:"c-button c-button--primary c-button--medium","data-qa":"invite_modal_send",disabled:!n.trim(),onClick:e,children:"Send"})]}),children:[a.jsxs("label",{className:"c-textarea_group",children:[a.jsx("span",{className:"c-textarea_group__label",children:"To:"}),a.jsx("textarea",{className:"c-texty_input c-texty_input--prefs","data-qa":"invite_modal_emails",placeholder:"name@gmail.com",rows:3,value:n,onChange:r=>s(r.target.value)})]}),a.jsxs("p",{className:"p-prefs_dialog__help",children:["Invited people will join as members of ",t.name,". You can change their role after they sign up."]})]})}function Ty({onBack:e}){const{team:t}=me();return a.jsx("div",{className:"p-signed_out","data-qa":"signed_out","data-twin-unverified":"true",children:a.jsxs("div",{className:"p-signed_out__card",children:[a.jsxs("h1",{children:["You've signed out of ",t.name]}),a.jsx("p",{children:"Sign back in to keep working with your team."}),a.jsxs("button",{type:"button",className:"c-button c-button--primary c-button--medium","data-qa":"signed_out_sign_in",onClick:e,children:["Sign in to ",t.name]})]})})}const _f=[{heading:"Settings & permissions",items:[{slug:"settings",label:"Settings"},{slug:"permissions",label:"Permissions"},{slug:"auth",label:"Authentication"}]},{heading:"Members",items:[{slug:"members",label:"Manage members"},{slug:"invites",label:"Invitations"},{slug:"deactivated",label:"Deactivated accounts"}]},{heading:"Apps & integrations",items:[{slug:"apps",label:"Manage apps"},{slug:"workflows",label:"Workflow Builder"}]},{heading:"Workspace",items:[{slug:"stats",label:"Analytics"},{slug:"customize",label:"Customize"},{slug:"billing",label:"Billing"}]}];function Ay(e){for(const t of _f)for(const n of t.items)if(n.slug===e)return n.label;return"Manage members"}function w_(){const{section:e="members"}=el(),{phase:t,team:n,users:s,error:r}=me();if(t!=="ready")return a.jsx(jh,{phase:t,error:r,teamName:n.name});const i=Object.values(s).filter(o=>!o.is_bot&&!o.is_slackbot).sort((o,c)=>o.real_name.localeCompare(c.real_name)),l=o=>o.is_stranger?"Guest":o.is_admin?"Admin":"Member";return a.jsxs("div",{className:"p-admin_site","data-qa":"admin_site","data-twin-unverified":"true",children:[a.jsxs("header",{className:"p-admin_site__header",children:[a.jsx("span",{className:"p-admin_site__team_icon",children:n.name.slice(0,1)}),a.jsxs("span",{className:"p-admin_site__title",children:[n.name," workspace settings"]}),a.jsx("a",{className:"p-admin_site__back",href:"/","data-qa":"admin_site_back",children:"Back to Slack"})]}),a.jsxs("div",{className:"p-admin_site__body",children:[a.jsx("nav",{className:"p-admin_site__nav","aria-label":"Admin",children:_f.map(o=>a.jsxs("div",{className:"p-admin_site__nav_group",children:[a.jsx("h2",{className:"p-admin_site__nav_heading",children:o.heading}),a.jsx("ul",{children:o.items.map(c=>a.jsx("li",{children:a.jsx(Bg,{to:`/admin/${c.slug}`,className:`p-admin_site__nav_link${e===c.slug?" p-admin_site__nav_link--active":""}`,"data-qa":`admin_nav_${c.slug}`,children:c.label})},c.slug))})]},o.heading))}),a.jsxs("main",{className:"p-admin_site__main","data-qa":`admin_section_${e}`,children:[a.jsx("h1",{className:"p-admin_site__page_title",children:Ay(e)}),e==="members"?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"p-admin_site__toolbar",children:[a.jsx("input",{className:"p-admin_site__search",placeholder:"Search current members","aria-label":"Search current members","data-qa":"admin_members_search"}),a.jsx("button",{type:"button",className:"c-button c-button--primary c-button--medium","data-qa":"admin_invite_people",children:"Invite people"})]}),a.jsxs("table",{className:"p-admin_site__table","data-qa":"admin_members_table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"Full name"}),a.jsx("th",{children:"Display name"}),a.jsx("th",{children:"Email"}),a.jsx("th",{children:"Account type"}),a.jsx("th",{children:"Status"})]})}),a.jsx("tbody",{children:i.map(o=>a.jsxs("tr",{"data-user-id":o.id,children:[a.jsx("td",{children:a.jsxs("span",{className:"p-admin_site__member",children:[a.jsx(Oe,{userId:o.id,size:24}),o.real_name]})}),a.jsxs("td",{children:["@",o.name]}),a.jsx("td",{children:o.profile.email??""}),a.jsx("td",{children:l(o)}),a.jsx("td",{children:o.deleted?"Deactivated":"Active"})]},o.id))})]})]}):a.jsxs("p",{className:"p-admin_site__placeholder","data-twin-unverified":"true",children:["Only Workspace Owners and Admins can change these settings for ",a.jsx("strong",{children:n.name}),". Contact a Workspace Owner if you need something changed here."]})]})]})]})}function Ly(e){const[t,n]=_.useState(()=>performance.now()>=e);return _.useEffect(()=>{if(t)return;const s=window.setTimeout(()=>n(!0),Math.max(0,e-performance.now()));return()=>window.clearTimeout(s)},[e,t]),t}function Dy(e,t){const[n,s]=_.useState(!1),[r,i]=_.useState(e);return r!==e&&(i(e),s(!1)),_.useEffect(()=>{if(!e)return;const l=window.setTimeout(()=>s(!0),t);return()=>window.clearTimeout(l)},[e,t]),e&&n}const dc="T01GATEWAY",Is="C01GENERAL",k_=10*60*1e3,uc=[{id:"slackbot",page:null},{id:"home",page:null},{id:"dms",page:"all-dms"},{id:"activity",page:"activity"},{id:"files",page:"files"},{id:"later",page:"later"},{id:"agents",page:"agents"},{id:"admin",page:"admin"}],Py=Object.fromEntries(uc.filter(e=>e.page).map(e=>[e.page,e.id])),$y="Mark all messages as read?",Fy="Are you sure you want to delete this message? This cannot be undone.",Ry=['[data-qa="tab_rail"], [data-qa="tab_rail_desktop"]','[data-qa="channel_sidebar"], [data-qa="channel-sidebar"], [data-qa="page_column"]','[data-qa="view_contents"]','[data-qa="threads_flexpane"], [data-qa="search_results_view"]'],Iy='button:not([disabled]), a[href], input:not([disabled]), [contenteditable="true"], [tabindex]:not([tabindex="-1"])';function Oy(e){const n=e.querySelector('[data-qa="texty_input"]')??Array.from(e.querySelectorAll(Iy)).find(s=>s.offsetParent!==null);if(n){n.focus();return}e.hasAttribute("tabindex")||(e.tabIndex=-1),e.focus()}function By(e){const t=e;return!!(t&&(t.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName)))}function Hy(){var s;const e=document.activeElement,t=(s=e==null?void 0:e.closest)==null?void 0:s.call(e,'[data-qa="message_container"]'),n=t==null?void 0:t.dataset.ts;return!t||!n||n.startsWith("pending")?null:{row:t,ts:n,inThread:!!t.closest('[data-qa="threads_flexpane"]')}}const Uy="Slack is trying to connect.",Vy="No connection. You’ll be able to send messages as soon as you’re back online.",Wy="Slack is connected.",N_={position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"},Xl="search";function Ky(){return a.jsx(gv,{children:a.jsxs(zg,{children:[a.jsx(wn,{path:"/client/:teamId/:channelId",element:a.jsx(Gy,{})}),a.jsx(wn,{path:"/client/:teamId",element:a.jsx(Ou,{to:`/client/${dc}/${Is}`,replace:!0})}),a.jsx(wn,{path:"/admin",element:a.jsx(w_,{})}),a.jsx(wn,{path:"/admin/:section",element:a.jsx(w_,{})}),a.jsx(wn,{path:"*",element:a.jsx(Ou,{to:`/client/${dc}/${Is}`,replace:!0})})]})})}function Qy(){var n;const e=document.activeElement;return(n=e==null?void 0:e.closest)!=null&&n.call(e,'[data-qa="message_input"]')?(e.innerText??e.textContent??"").replace(/​/g,"").trim()?null:e:null}function Gy(){var Y;const{teamId:e=dc,channelId:t=Is}=el(),[n,s]=Ug(),r=Xa(),i=me(),[l,o]=_.useState(!1),c=Dy(l,iv),[u,m]=_.useState(null),h=Ly(fn.content),[p,g]=_.useState(""),y=n.get("thread_ts"),k=t===Xl?n.get("q")??"":null,C=y&&k===null?{kind:"thread",ts:y}:null,f=k!==null?Xl:df(t),[v,b]=_.useState(null),x=_.useCallback(T=>r(`/client/${e}/${T}`),[r,e]),w=_.useCallback(T=>{const q=new URLSearchParams(n);T?q.set("thread_ts",T):q.delete("thread_ts"),s(q,{replace:!1})},[n,s]),S=_.useRef({}),[A,I]=_.useState(0),Q=_.useRef(Is),z=_.useMemo(()=>{var T;return(T=Object.values(i.channels).find(q=>{var U;return q.is_im&&((U=i.users[q.user??""])==null?void 0:U.is_slackbot)}))==null?void 0:T.id},[i.channels,i.users]),ae=!f&&t===z;_.useEffect(()=>{var T;if(!(i.phase!=="ready"||f))return t!==z&&(Q.current=t),S.current[t]=(T=i.channels[t])==null?void 0:T.last_read,i.setActive(t),i.openChannel(t),()=>i.setActive(null)},[t,i.phase,f]);const[ce,ie]=_.useState(t),P=_.useRef({id:t,at:performance.now()}),K=i.loaded[t];_.useEffect(()=>{if(P.current.id!==t&&(P.current={id:t,at:performance.now()},m(null)),f||i.phase!=="ready"){ie(t);return}if(ce===t)return;const T=performance.now()-P.current.at,q=K==="done"?Yg:Zg,U=window.setTimeout(()=>ie(t),Math.max(0,q-T));return()=>window.clearTimeout(U)},[t,K,f,ce,i.phase]);const L=_.useRef(null);_.useEffect(()=>{L.current!==t&&(L.current=null)},[t]),_.useEffect(()=>{var T;f||i.phase!=="ready"||i.loaded[t]!=="done"||!((T=i.channels[t])!=null&&T.is_member)||L.current!==t&&i.markRead(t)},[t,i.loaded[t],(Y=i.messages[t])==null?void 0:Y.length,i.phase,f]);const B=_.useMemo(()=>qb(i.channels,i.users,i.me),[i.channels,i.users,i.me]),j=f?void 0:i.channels[ce],F=f===Xl?null:f,M=_.useCallback((T,q)=>{L.current=T,i.markUnread(T,q);const U=(i.messages[T]??[]).filter(Z=>!Z.thread_ts||Z.thread_ts===Z.ts),$=U.findIndex(Z=>Z.ts===q);S.current[T]=$>0?U[$-1].ts:"0000000000.000000",I(Z=>Z+1)},[i]);_.useEffect(()=>{const T=q=>{var H;if(!q.altKey||q.button!==0)return;const U=q.target,$=(H=U==null?void 0:U.closest)==null?void 0:H.call(U,'[data-qa="message_container"]'),Z=$==null?void 0:$.dataset.ts;if(!$||!Z||Z.startsWith("pending")||$.closest('[data-qa="threads_flexpane"]'))return;const N=$.closest('[data-qa="message_pane"]');q.preventDefault(),q.stopPropagation(),M((N==null?void 0:N.dataset.qaChannelId)??t,Z)};return document.addEventListener("click",T,!0),()=>document.removeEventListener("click",T,!0)},[t,M]),_.useEffect(()=>{const T=q=>{var Z,N,H;const U=q.target;if(!((Z=U==null?void 0:U.closest)!=null&&Z.call(U,'[data-qa="leave_channel_confirm_button"]')))return;const $=((N=U.closest("[data-channel-id]"))==null?void 0:N.dataset.channelId)??t;(H=i.channels[$])!=null&&H.is_member&&i.leave($).catch(()=>{})};return document.addEventListener("click",T,!0),()=>document.removeEventListener("click",T,!0)},[t,i]),_.useEffect(()=>{const T=q=>{var J;if(q.defaultPrevented||q.metaKey||q.ctrlKey||q.altKey||By(q.target))return;const U=Hy();if(!U||!j)return;const $=((J=U.row.closest('[data-qa="message_pane"]'))==null?void 0:J.dataset.qaChannelId)??j.id,Z=(i.messages[$]??[]).find(re=>re.ts===U.ts);if(!Z)return;const N=Z.user===i.me&&!Z.subtype,H=()=>{q.preventDefault(),q.stopPropagation()};switch(q.key.toLowerCase()){case"e":if(!N||U.inThread)return;H(),m(Z.ts);return;case"delete":case"backspace":if(!N)return;H(),window.confirm(Fy)&&i.remove($,Z.ts).catch(()=>{});return;case"t":case"arrowright":if(U.inThread)return;H(),w(Z.thread_ts??Z.ts);return;case"p":H(),i.togglePin($,Z.ts).catch(()=>{});return;case"a":H(),i.toggleSaved($,Z.ts);return;case"u":if(U.inThread)return;H(),M($,Z.ts);return;case"r":{const re=U.row.querySelector('[data-qa="add_reaction"], [data-qa="add_reaction_button"]');if(!re)return;H(),re.click();return}default:return}};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[j,w,M,i]),_.useEffect(()=>{const T=q=>{var N,H;const U=q.target,$=(N=U==null?void 0:U.closest)==null?void 0:N.call(U,'[data-qa="message_input"]');if(!$)return;const Z=$.dataset.channelId??t;(H=i.channels[Z])!=null&&H.is_member&&i.sendTyping(Z)};return document.addEventListener("input",T,!0),()=>document.removeEventListener("input",T,!0)},[t,i]),_.useEffect(()=>{if(i.phase!=="ready")return;let T=k_;try{T=Number(localStorage.getItem("twin.idleMs"))||k_}catch{}let q=!1,U=window.setTimeout($,T);function $(){q=!0,i.setPresence("away").catch(()=>{})}const Z=()=>{window.clearTimeout(U),U=window.setTimeout($,T),q&&(q=!1,i.setPresence("auto").catch(()=>{}))},N=["mousemove","mousedown","keydown","wheel","touchstart"];for(const H of N)window.addEventListener(H,Z,{passive:!0});return()=>{window.clearTimeout(U);for(const H of N)window.removeEventListener(H,Z)}},[i.phase,i.setPresence]);const X=i.connectivity==="online",oe=_.useRef(!1);_.useEffect(()=>{if(X){oe.current&&g(Wy),oe.current=!1;return}oe.current=!0;const T=window.setTimeout(()=>g(Uy),Zm);return()=>window.clearTimeout(T)},[X]),_.useEffect(()=>{const T=q=>{var $;if(q.key!=="Enter"||q.shiftKey||X)return;const U=q.target;($=U==null?void 0:U.closest)!=null&&$.call(U,'[data-qa="message_input"]')&&g(Vy)};return window.addEventListener("keydown",T,!0),()=>window.removeEventListener("keydown",T,!0)},[X]),_.useEffect(()=>{const T=q=>{if(!q.altKey||q.metaKey||q.ctrlKey||q.key!=="ArrowUp"&&q.key!=="ArrowDown")return;q.preventDefault(),q.stopPropagation();const U=q.key==="ArrowDown"?1:-1,$=q.shiftKey?B.filter(H=>{var J;return(((J=i.channels[H])==null?void 0:J.unread_count)??0)>0||H===t}):B;if($.length===0)return;const Z=$.indexOf(t),N=Z===-1?U===1?$[0]:$[$.length-1]:$[(Z+U+$.length)%$.length];N&&N!==t&&(m(null),x(N))};return window.addEventListener("keydown",T,!0),()=>window.removeEventListener("keydown",T,!0)},[B,t,x,i.channels]);const E=_.useCallback(T=>{T.id==="slackbot"?z&&x(z):T.page==="admin"?window.open("/admin/members","_blank","noopener"):T.page?r(`/client/${e}/${T.page}`):x(Q.current)},[x,r,z,e]);_.useEffect(()=>{const T=q=>{var Z,N;if(q.defaultPrevented)return;const U=q.metaKey||q.ctrlKey,$=q.key.toLowerCase();if(U&&!q.shiftKey&&!q.altKey&&$==="k"){q.preventDefault(),o(H=>!H);return}if(U&&!q.shiftKey&&q.key==="."){q.preventDefault(),y?w(null):k!==null?x(Q.current):v&&b(null);return}if(U&&!q.shiftKey&&(q.key==="["||q.key==="]")){q.preventDefault(),r(q.key==="["?-1:1);return}if(U&&q.shiftKey&&$==="l"){q.preventDefault(),r(`/client/${e}/directories?tab=channels`);return}if(U&&!q.shiftKey&&$==="j"){q.preventDefault();const H=document.querySelector('[data-qa="message_pane"] [data-qa="unread_divider"]'),J=document.querySelector('[data-qa="message_pane"] [data-qa="slack_kit_scrollbar"]');H?H.scrollIntoView({block:"start"}):J&&(J.scrollTop=J.scrollHeight);return}if(U&&!q.shiftKey&&$==="o"){q.preventDefault(),(Z=document.querySelector('[data-qa="file_upload"]'))==null||Z.click();return}if(U&&!q.shiftKey&&$==="z"&&j){const H=Qy();if(!H)return;q.preventDefault(),i.unsend(j.id).then(J=>{J&&(H.focus(),document.execCommand("insertText",!1,J))});return}if(q.ctrlKey&&!q.metaKey&&(q.key==="PageUp"||q.key==="PageDown")){q.preventDefault();const H=da().tabs,J=uc.filter(rt=>H[rt.id]!==!1&&rt.page!=="admin"),re=f?Py[f]:ae?"slackbot":"home",he=Math.max(0,J.findIndex(rt=>rt.id===re)),be=q.key==="PageDown"?1:-1,Xe=J[(he+be+J.length)%J.length];E(Xe);return}if(q.key==="F6"){q.preventDefault();const H=Ry.map(Xe=>document.querySelector(Xe)).filter(Xe=>!!Xe);if(H.length===0)return;const J=document.activeElement,re=H.findIndex(Xe=>!!J&&Xe.contains(J)),he=q.shiftKey?-1:1,be=re===-1?he===1?0:H.length-1:(re+he+H.length)%H.length;Oy(H[be]);return}if(U&&!q.shiftKey&&!q.altKey&&$==="n"){const H=document.querySelector('[data-qa="composer_button"], [data-qa="sidebar_compose_button"]');if(!H)return;q.preventDefault(),H.click();return}if(q.ctrlKey&&!q.metaKey&&!q.shiftKey&&/^[1-9]$/.test(q.key)){const H=da().tabs,re=uc.filter(he=>H[he.id]!==!1)[Number(q.key)-1];if(!re)return;q.preventDefault(),E(re);return}if(q.key==="Escape"&&q.shiftKey){q.preventDefault(),(!da().confirmMarkAll||window.confirm($y))&&i.markAllRead();return}if(q.key==="Escape"){const H=q.target;if((N=H==null?void 0:H.matches)!=null&&N.call(H,'[data-qa="message_edit_input"], [data-qa="message_edit_container"] *')||document.querySelector('[data-qa="message_actions_menu"], .c-menu[role="menu"]'))return;const J=document.querySelector('[data-qa="create_channel_modal"]');if(J){J.click();return}l?o(!1):u?m(null):y?w(null):k!==null?x(Q.current):v?b(null):j!=null&&j.is_member&&(L.current=null,i.markRead(j.id))}};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[j,u,x,r,ae,E,w,f,v,k,l,e,y,i]);const O=_.useCallback((T,q)=>{const U=(q==null?void 0:q.threadTs)??((v==null?void 0:v.channel)===T.id?v.ts:void 0);return a.jsxs("div",{className:"p-page_conversation","data-qa":"page_conversation","data-channel-id":T.id,children:[a.jsxs("div",{className:"p-page_conversation__main",children:[a.jsx(Xu,{channel:T,onOpenThread:$=>b($?{channel:T.id,ts:$}:null)}),a.jsx(c_,{channel:T,onOpenThread:$=>b({channel:T.id,ts:$}),editingTs:u,onEditingChange:m,onOpenChannel:x},T.id),a.jsx(Di,{channel:T,onEditLast:()=>{}},`composer-${T.id}`)]}),U&&a.jsx(m_,{channel:T,threadTs:U,onClose:()=>b(null),onOpenChannel:x})]})},[u,x,v]);if(i.phase!=="ready")return a.jsx(jh,{phase:i.phase,error:i.error,teamName:i.team.name});const D=T=>{if(!da().upArrowEdits)return;const q=(i.messages[T.id]??[]).filter($=>$.user===i.me&&!$.subtype&&(!$.thread_ts||$.thread_ts===$.ts)),U=q[q.length-1];U&&m(U.ts)},W=T=>T.is_archived?a.jsxs("div",{className:"p-message_pane_input p-message_pane_input--archived","data-qa":"channel_archived_banner","data-twin-unverified":"true",role:"status",children:["You are viewing ",a.jsxs("strong",{children:["#",T.name]}),", an archived channel."]}):T.is_read_only&&T.is_member!==!1?a.jsx("div",{className:"p-message_pane_input p-message_pane_input--restricted","data-qa":"composer_restricted","data-twin-unverified":"true",role:"status",children:"Only certain people can post in this channel"}):a.jsx(Di,{channel:T,onEditLast:()=>D(T)},`composer-${T.id}`);return a.jsx(Sy,{teamId:e,channelId:t,go:x,openThread:(T,q)=>r(`/client/${e}/${T}?thread_ts=${q}`),renderConversation:O,children:T=>a.jsxs("div",{className:`p-client_container sk-client-theme--light-inverted-sidebar${C||T.profileUser?" p-client_container--flexpane_open":""}${f?` p-client_container--page p-client_container--page_${f}`:""}`,"data-qa":"client_container","data-theme":i.theme,"data-page":f??void 0,style:T.themeStyle,children:[a.jsxs("div",{"data-qa":"sk_aria_live_announcer_api_container",className:"sk_aria_live_announcer_api_container",children:[a.jsx("div",{"data-qa":"sk_aria_live_region_assertive","aria-live":"assertive","aria-atomic":"true",style:N_}),a.jsx("div",{"data-qa":"sk_aria_live_region_polite","aria-live":"polite","aria-atomic":"true",style:N_,children:p})]}),a.jsx(db,{}),a.jsx(xh,{teamName:i.team.name,searchQuery:k,onCloseSearch:()=>x(Q.current),onOpenSwitcher:()=>o(!0)}),a.jsxs("div",{className:"p-client_workspace_wrapper",children:[a.jsx(yh,{}),k!==null?a.jsx(r5,{query:k,onOpen:(q,U)=>r(`/client/${e}/${q}${U?`?thread_ts=${U}`:""}`)}):a.jsxs(a.Fragment,{children:[F&&wd[F].replacesSidebar?a.jsx(Ey,{slug:F}):a.jsx(Pb,{activeId:ce,onSelect:x,order:B}),a.jsxs("div",{className:"p-client_workspace",children:[a.jsx("main",{className:"p-view_contents p-view_contents--primary","data-qa":"view_contents",children:F?a.jsx(My,{slug:F}):j&&!h?null:j?a.jsxs(a.Fragment,{children:[a.jsx(Xu,{channel:j,onOpenThread:w}),a.jsx(c_,{channel:{...j,last_read:S.current[j.id]??j.last_read},onOpenThread:q=>w(q),editingTs:u,onEditingChange:m,onOpenChannel:x},`${j.id}:${A}`),W(j)]}):a.jsxs("div",{className:"p-view_contents__missing","data-qa":"channel_not_found","data-twin-unverified":"true",children:[a.jsx("h2",{children:"Channel not found"}),a.jsx("p",{children:"This channel doesn't exist or you don't have permission to view it."}),a.jsx("button",{type:"button",className:"c-button c-button--primary","data-qa":"channel_not_found_go_general",onClick:()=>x(Is),children:"Go to #general"})]})}),(C==null?void 0:C.kind)==="thread"&&j&&a.jsx(m_,{channel:j,threadTs:C.ts,onClose:()=>w(null),onOpenChannel:x}),!C&&a.jsx(qy,{go:x})]})]})]}),c&&a.jsx(d5,{order:B,onClose:()=>o(!1),onSelect:q=>{o(!1),x(q)}})]})})}eo.createRoot(document.getElementById("root")).render(a.jsx(P_.StrictMode,{children:a.jsx(Rg,{children:a.jsx(Ky,{})})}));