@alook/app 0.1.46 → 0.1.47

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 (230) hide show
  1. package/bundled/email-worker/index.js +2 -2
  2. package/bundled/queue-worker/index.js +1 -1
  3. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  4. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  5. package/bundled/web/.open-next/assets/_next/static/chunks/{1thqqd8mgk392.js → 0_vlirz00r9q3.js} +1 -1
  6. package/bundled/web/.open-next/assets/_next/static/chunks/0fhupcu7gw5-g.js +1 -0
  7. package/bundled/web/.open-next/assets/_next/static/chunks/{00nwwh7t3-94u.js → 0t1fkk2aoe46s.js} +2 -2
  8. package/bundled/web/.open-next/assets/_next/static/chunks/{0bbbf3c--s4nt.js → 0xd95q8dh9nth.js} +1 -1
  9. package/bundled/web/.open-next/assets/_next/static/chunks/{0177g_82selwt.js → 0yvh-4_s35xb-.js} +1 -1
  10. package/bundled/web/.open-next/assets/_next/static/chunks/140rz0mf_gln5.js +1 -0
  11. package/bundled/web/.open-next/assets/_next/static/chunks/17_1uj99552co.js +1 -0
  12. package/bundled/web/.open-next/assets/_next/static/chunks/{2lzrcnv3h01ye.js → 188n8dv95gspf.js} +2 -2
  13. package/bundled/web/.open-next/assets/_next/static/chunks/1t1-4gr4g9-gk.js +1 -0
  14. package/bundled/web/.open-next/assets/_next/static/chunks/1vv8sekkn7ca7.js +1 -0
  15. package/bundled/web/.open-next/assets/_next/static/chunks/2009nt3x08t7f.js +1 -0
  16. package/bundled/web/.open-next/assets/_next/static/chunks/{2h4tal5a8ozdj.css → 21hdf3-tpkomr.css} +1 -1
  17. package/bundled/web/.open-next/assets/_next/static/chunks/2axyc5j5bmuu7.js +20 -0
  18. package/bundled/web/.open-next/assets/_next/static/chunks/2cg05psk59acc.css +1 -0
  19. package/bundled/web/.open-next/assets/_next/static/chunks/2l5ipmh5tt-zw.js +1 -0
  20. package/bundled/web/.open-next/assets/_next/static/chunks/{3j04_qzqc8w_l.js → 2mmbu93s7a0m4.js} +1 -1
  21. package/bundled/web/.open-next/assets/_next/static/chunks/2pi74q1djax_j.js +1 -0
  22. package/bundled/web/.open-next/assets/_next/static/chunks/2pup1a3f06cvv.js +1 -0
  23. package/bundled/web/.open-next/assets/_next/static/chunks/2rppouots3wnd.js +1 -0
  24. package/bundled/web/.open-next/assets/_next/static/chunks/2umnqrh2lz20p.js +1 -0
  25. package/bundled/web/.open-next/assets/_next/static/chunks/2wol9tomcwmy-.js +1 -0
  26. package/bundled/web/.open-next/assets/_next/static/chunks/{1nztgrf53ss2o.js → 34ad0gln6p9mc.js} +1 -1
  27. package/bundled/web/.open-next/assets/_next/static/chunks/3678fpz9w9yx7.js +1 -0
  28. package/bundled/web/.open-next/assets/_next/static/chunks/38-2d78030m_h.js +1 -0
  29. package/bundled/web/.open-next/assets/_next/static/chunks/{2uu-vuh4bhmn-.js → 392tyqmzowh4n.js} +1 -1
  30. package/bundled/web/.open-next/assets/_next/static/chunks/{42xemtm1t_inw.js → 3dweor92bn1fg.js} +1 -1
  31. package/bundled/web/.open-next/assets/_next/static/chunks/{0yrjoj6i80b13.js → 3fycjvwvjxxe7.js} +1 -1
  32. package/bundled/web/.open-next/assets/_next/static/chunks/{0a7ly50c0irhh.js → 3kp4-3im11oyn.js} +1 -1
  33. package/bundled/web/.open-next/assets/_next/static/chunks/{1e5hn5ft96mrw.js → 3qwk5pvuky-tc.js} +1 -1
  34. package/bundled/web/.open-next/assets/_next/static/chunks/3ud6196bax4yc.js +2 -0
  35. package/bundled/web/.open-next/assets/_next/static/chunks/{turbopack-3v2fy6lperb7_.js → turbopack-3t97qecmun8ck.js} +1 -1
  36. package/bundled/web/.open-next/assets/sw.js +1 -1
  37. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/_global-error.cache +1 -1
  38. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/_not-found.cache +1 -1
  39. package/bundled/web/.open-next/cache/l7JcQdOJYySajzS1KAORl/contact.cache +1 -0
  40. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/device.cache +1 -1
  41. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/onboarding-preview.cache +1 -1
  42. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/pricing-concept.cache +1 -1
  43. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/pricing.cache +1 -1
  44. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/privacy.cache +1 -1
  45. package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/serwist/sw.js.cache +1 -1
  46. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  47. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  48. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  49. package/bundled/web/.open-next/middleware/handler.mjs +4 -4
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +6 -6
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +4 -4
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +2 -2
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(home)/page_client-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/channels/[serverId]/[channelId]/page_client-reference-manifest.js +1 -1
  58. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/channels/[serverId]/page_client-reference-manifest.js +1 -1
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/channels/[serverId]/settings/page_client-reference-manifest.js +1 -1
  60. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/invite/[token]/page_client-reference-manifest.js +1 -1
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/me/[dmId]/page_client-reference-manifest.js +1 -1
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/me/bots/page_client-reference-manifest.js +1 -1
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/me/friends/page_client-reference-manifest.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/me/machines/page_client-reference-manifest.js +1 -1
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/me/page_client-reference-manifest.js +1 -1
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/onboarding-preview/page_client-reference-manifest.js +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/@sidebar/page_client-reference-manifest.js +1 -1
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/[channelId]/page_client-reference-manifest.js +1 -1
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/page_client-reference-manifest.js +1 -1
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/channels/[serverId]/settings/page_client-reference-manifest.js +1 -1
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/invite/[token]/page_client-reference-manifest.js +1 -1
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/[dmId]/page_client-reference-manifest.js +1 -1
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/bots/page_client-reference-manifest.js +1 -1
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/friends/page_client-reference-manifest.js +1 -1
  75. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/machines/page_client-reference-manifest.js +1 -1
  76. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/page_client-reference-manifest.js +1 -1
  77. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/onboarding-preview/page_client-reference-manifest.js +1 -1
  78. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/page_client-reference-manifest.js +1 -1
  79. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/contact/page_client-reference-manifest.js +1 -1
  80. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
  81. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/landing-legacy/page_client-reference-manifest.js +1 -1
  82. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/onboarding-preview/page_client-reference-manifest.js +1 -1
  83. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/pricing/page_client-reference-manifest.js +1 -1
  84. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/pricing-concept/page_client-reference-manifest.js +1 -1
  85. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  86. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  87. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  88. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +65 -69
  89. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1ct1usd._.js +1 -1
  90. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1-7foy1._.js → 0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_03no4-2._.js} +1 -1
  91. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_ivo7r._.js → 0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0zd2m6u._.js} +1 -1
  92. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1iexmau._.js → 0iuv_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1jq9i9s._.js} +1 -1
  93. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__024hatd._.js +3 -0
  94. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__08bo8pg._.js +3 -0
  95. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0er5w1y._.js +3 -0
  96. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1n1hzgg._.js +3 -0
  97. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +65 -69
  98. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_00cx5e_._.js +3 -0
  99. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_00d19_4._.js +1 -1
  100. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0cogu8j._.js → _06jf8-3._.js} +2 -2
  101. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0819w4u._.js +1 -1
  102. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_086-1v_._.js +1 -1
  103. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_09v7ppp._.js +1 -1
  104. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_127opyy._.js → _0_d2_yz._.js} +2 -2
  105. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0djtnj_._.js +1 -1
  106. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0fgqn7p._.js +22 -0
  107. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0gt3fqd._.js +3 -0
  108. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1m_bb91._.js → _0kjmsuf._.js} +2 -2
  109. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0laj1vh._.js +3 -0
  110. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0a1covk._.js → _0op1s0h._.js} +2 -2
  111. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0tr5tf8._.js +1 -1
  112. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0uinku_._.js +1 -1
  113. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ulh9qf._.js +1 -1
  114. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0xvya63._.js +1 -1
  115. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0zk-6sq._.js +3 -0
  116. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1-1q6bt._.js +3 -0
  117. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1-x1xdl._.js +2 -2
  118. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0xp97b1._.js → _117-2e3._.js} +2 -2
  119. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_11h5qp9._.js +1 -1
  120. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13xipld._.js +1 -1
  121. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_15gov5k._.js +1 -1
  122. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1640_ni._.js +1 -1
  123. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_17fctb6._.js +22 -0
  124. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1ewek2f._.js +1 -1
  125. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0ljlxsv._.js → _1gakrqx._.js} +2 -2
  126. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1gj8gn1._.js +1 -1
  127. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1b2ol5x._.js → _1gytpb_._.js} +2 -2
  128. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1fhm2rs._.js → _1jtz070._.js} +1 -1
  129. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1nm05cr._.js +3 -0
  130. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1nytmku._.js +3 -0
  131. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1us65pi._.js +3 -0
  132. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1w0zw8i._.js +1 -1
  133. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_1cx9ua4._.js → _214ta2t._.js} +1 -1
  134. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0-f4fpm._.js → node_modules__pnpm_0097mmd._.js} +1 -1
  135. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0r6z90r._.js → node_modules__pnpm_00eiak_._.js} +1 -1
  136. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0s-z4zf._.js → node_modules__pnpm_01cia-g._.js} +1 -1
  137. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0m2qxgk._.js → node_modules__pnpm_01yk3fx._.js} +1 -1
  138. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1ayb864._.js → node_modules__pnpm_02smzd_._.js} +1 -1
  139. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_00c11_c._.js → node_modules__pnpm_03rxn2x._.js} +1 -1
  140. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0_nw64v._.js → node_modules__pnpm_03wj0t4._.js} +1 -1
  141. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0cvjw9i._.js → node_modules__pnpm_05c5bgp._.js} +1 -1
  142. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0blbev3._.js → node_modules__pnpm_064o-o_._.js} +1 -1
  143. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_11e-npx._.js → node_modules__pnpm_07l09-d._.js} +1 -1
  144. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_09bvy71._.js → node_modules__pnpm_0dori0l._.js} +1 -1
  145. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1mfsik-._.js → node_modules__pnpm_0fgssuc._.js} +1 -1
  146. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0m-2ca1._.js → node_modules__pnpm_0h31fyp._.js} +1 -1
  147. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_08sh6lq._.js → node_modules__pnpm_0iorffo._.js} +1 -1
  148. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1-c3rlj._.js → node_modules__pnpm_0tx0dz2._.js} +1 -1
  149. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1vs8g1m._.js → node_modules__pnpm_0u3tve4._.js} +1 -1
  150. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0-kb9vk._.js → node_modules__pnpm_0un9z0x._.js} +1 -1
  151. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_070fpt8._.js → node_modules__pnpm_0ux1312._.js} +1 -1
  152. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_157gdig._.js → node_modules__pnpm_0vbkpol._.js} +1 -1
  153. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1asgfic._.js → node_modules__pnpm_0wrv_s9._.js} +1 -1
  154. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0b1vf_7._.js → node_modules__pnpm_0yy67gq._.js} +1 -1
  155. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1nq5wvh._.js → node_modules__pnpm_167ic81._.js} +1 -1
  156. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1mib8iw._.js → node_modules__pnpm_16a71ys._.js} +1 -1
  157. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1_et9ao._.js → node_modules__pnpm_1bj-8tf._.js} +1 -1
  158. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1prm9wo._.js → node_modules__pnpm_1dav1ya._.js} +1 -1
  159. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0m7v0y2._.js → node_modules__pnpm_1edc4wg._.js} +1 -1
  160. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0gqxh94._.js → node_modules__pnpm_1g67_l_._.js} +1 -1
  161. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1orcadd._.js → node_modules__pnpm_1h_4uav._.js} +1 -1
  162. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1-dd625._.js → node_modules__pnpm_1kdkhmj._.js} +1 -1
  163. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1y8nnsd._.js → node_modules__pnpm_1kxm1bx._.js} +1 -1
  164. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0fdef--._.js → node_modules__pnpm_1mu5qb5._.js} +1 -1
  165. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1xhq2ni._.js → node_modules__pnpm_1n0a569._.js} +1 -1
  166. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1wj99ai._.js → node_modules__pnpm_1p-jj1h._.js} +1 -1
  167. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1diq3cq._.js → node_modules__pnpm_1rcn3pb._.js} +1 -1
  168. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_07mqf39._.js → node_modules__pnpm_1uaag00._.js} +1 -1
  169. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0-l2dm_._.js → node_modules__pnpm_1ukw6z6._.js} +1 -1
  170. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_08f9ywz._.js → node_modules__pnpm_1v0qc-p._.js} +1 -1
  171. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_03c-uqx._.js → node_modules__pnpm_1xy4aqy._.js} +1 -1
  172. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1sh8pig._.js → node_modules__pnpm_1xzd_xq._.js} +1 -1
  173. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_09h-4yj._.js +1 -1
  174. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_0yqt0fx._.js +1 -1
  175. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_11g9nod._.js +1 -1
  176. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_1-ostj6._.js +1 -1
  177. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_pricing_127grdu._.js +1 -1
  178. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +6 -6
  179. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  180. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  181. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  182. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +2 -2
  183. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +795 -867
  184. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +4 -4
  185. package/bundled/web/wrangler.toml +1 -1
  186. package/bundled/ws-do/index.js +2 -2
  187. package/dist/daemon/index.js +418 -303
  188. package/dist/index.js +1 -1
  189. package/package.json +1 -1
  190. package/bundled/web/.open-next/assets/_next/static/chunks/0ib9uwa0z-dsz.js +0 -1
  191. package/bundled/web/.open-next/assets/_next/static/chunks/0iwup-jnjrnec.js +0 -1
  192. package/bundled/web/.open-next/assets/_next/static/chunks/0yvr7whfqda3q.js +0 -1
  193. package/bundled/web/.open-next/assets/_next/static/chunks/1zpwi6czw7ai-.js +0 -1
  194. package/bundled/web/.open-next/assets/_next/static/chunks/20loivmezlm5a.js +0 -1
  195. package/bundled/web/.open-next/assets/_next/static/chunks/28pnob-12so6n.js +0 -20
  196. package/bundled/web/.open-next/assets/_next/static/chunks/2i53b9t712-8k.js +0 -2
  197. package/bundled/web/.open-next/assets/_next/static/chunks/2tqh9wwavuxwq.js +0 -1
  198. package/bundled/web/.open-next/assets/_next/static/chunks/2uwi9gt28dg6t.js +0 -1
  199. package/bundled/web/.open-next/assets/_next/static/chunks/3-m490wvnsr-n.js +0 -1
  200. package/bundled/web/.open-next/assets/_next/static/chunks/30gpw8oi502mg.js +0 -1
  201. package/bundled/web/.open-next/assets/_next/static/chunks/3861y4ak8gkfc.js +0 -1
  202. package/bundled/web/.open-next/assets/_next/static/chunks/39-78ukwmmip3.js +0 -1
  203. package/bundled/web/.open-next/assets/_next/static/chunks/3dbjh1gzez-8i.js +0 -1
  204. package/bundled/web/.open-next/assets/_next/static/chunks/3ekglfdj1praq.css +0 -1
  205. package/bundled/web/.open-next/assets/_next/static/chunks/3g8qj_h02jo0x.js +0 -1
  206. package/bundled/web/.open-next/assets/_next/static/chunks/3jtsw1j65-agm.js +0 -1
  207. package/bundled/web/.open-next/cache/EYIUufIdDY9MZnN1L4UIr/contact.cache +0 -1
  208. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__06dwsqz._.js +0 -3
  209. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0a_lhi2._.js +0 -3
  210. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0ag1oov._.js +0 -3
  211. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__1kqvewd._.js +0 -3
  212. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0b6xa_y._.js +0 -3
  213. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0fczp2o._.js +0 -3
  214. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0lkpg4u._.js +0 -3
  215. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0slfbkf._.js +0 -3
  216. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0wm9g4g._.js +0 -3
  217. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0z8ofkn._.js +0 -3
  218. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1213-9m._.js +0 -22
  219. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_19kvvyn._.js +0 -3
  220. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1h0ocvt._.js +0 -3
  221. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1m9xtpd._.js +0 -3
  222. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1pgfzei._.js +0 -3
  223. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1tciap9._.js +0 -3
  224. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_1zfcy06._.js +0 -3
  225. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_08frtr7._.js +0 -22
  226. /package/bundled/web/.open-next/assets/_next/static/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/_buildManifest.js +0 -0
  227. /package/bundled/web/.open-next/assets/_next/static/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/_clientMiddlewareManifest.js +0 -0
  228. /package/bundled/web/.open-next/assets/_next/static/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/_ssgManifest.js +0 -0
  229. /package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/favicon.ico.cache +0 -0
  230. /package/bundled/web/.open-next/cache/{EYIUufIdDY9MZnN1L4UIr → l7JcQdOJYySajzS1KAORl}/robots.txt.cache +0 -0
@@ -1 +1 @@
1
- .pricing-module__NQT7lW__page{--tag-paper:#f4d85b;--tag-ink:#24221e;--tag-muted:color-mix(in oklab, var(--tag-ink) 82%, var(--tag-paper));--tag-border:color-mix(in oklab, var(--tag-ink) 18%, transparent);--house-stock:color-mix(in oklab, var(--foreground) 22%, black);--house-ink:color-mix(in oklab, var(--background) 18%, white);--house-muted:color-mix(in oklab, var(--house-ink) 62%, transparent);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--background);min-height:100svh;color:var(--foreground);font-family:var(--font-sans);overflow:hidden}.pricing-module__NQT7lW__page ::selection{background:var(--foreground);color:var(--background)}.pricing-module__NQT7lW__header{border-bottom:1px solid color-mix(in oklab, var(--border) 68%, transparent);justify-content:space-between;align-items:center;width:min(100% - 64px,1280px);height:80px;margin-inline:auto;display:flex}.pricing-module__NQT7lW__brand,.pricing-module__NQT7lW__backLink{color:inherit;text-decoration:none}.pricing-module__NQT7lW__brand{font-family:var(--font-brand);align-items:center;gap:8px;font-size:26px;font-weight:700;line-height:1;display:inline-flex}.pricing-module__NQT7lW__backLink{min-height:44px;color:var(--muted-foreground);text-underline-offset:4px;align-items:center;padding-inline:8px;font-size:14px;transition:color .15s;display:inline-flex}.pricing-module__NQT7lW__backLink:hover{color:var(--foreground);text-decoration:underline}.pricing-module__NQT7lW__main{width:min(100% - 64px,1280px);margin-inline:auto;padding:64px 0 96px}.pricing-module__NQT7lW__eyebrow{color:var(--muted-foreground);font-family:var(--font-mono);letter-spacing:.14em;text-align:center;text-transform:uppercase;margin:0 0 16px;font-size:10px;line-height:1}.pricing-module__NQT7lW__main h1{max-width:760px;font-family:var(--font-heading);letter-spacing:-.025em;text-align:center;text-wrap:balance;margin:0 auto;font-size:clamp(44px,4.5vw,64px);font-weight:600;line-height:1.05}.pricing-module__NQT7lW__plans{grid-template-columns:minmax(210px,.7fr) minmax(280px,.92fr) minmax(480px,1.48fr);align-items:end;gap:32px;max-width:1260px;margin:64px auto 0;display:grid}.pricing-module__NQT7lW__plan{min-width:0;position:relative}.pricing-module__NQT7lW__plan h2{font-family:var(--font-brand);letter-spacing:0;margin:0;font-size:40px;font-weight:700;line-height:1}.pricing-module__NQT7lW__price{width:fit-content;color:var(--foreground);font-variant-numeric:tabular-nums;grid-template-columns:auto auto 1fr;align-items:end;margin-top:16px;display:grid}.pricing-module__NQT7lW__price[data-inverse]{color:var(--house-ink)}.pricing-module__NQT7lW__currency{margin-right:4px;padding-bottom:8px;font-size:18px;font-weight:600;line-height:1}.pricing-module__NQT7lW__amount{font-family:var(--font-heading);letter-spacing:-.035em;font-size:60px;font-weight:600;line-height:.85}.pricing-module__NQT7lW__cadence{color:var(--muted-foreground);padding:0 0 5px 8px;font-size:13px;line-height:1}.pricing-module__NQT7lW__limit{max-width:23ch;color:var(--muted-foreground);margin:32px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__limit strong{color:var(--foreground);font-weight:600}.pricing-module__NQT7lW__freePlan{isolation:isolate;align-items:flex-end;min-height:352px;padding:0 16px 32px;display:flex}.pricing-module__NQT7lW__ghostMark{z-index:-1;filter:grayscale();opacity:.035;width:240px;height:240px;transition:opacity .22s var(--ease-out), transform .22s var(--ease-out);position:absolute;bottom:48px;left:-56px;transform:rotate(-8deg)}.pricing-module__NQT7lW__freeContent{border-top:1px solid color-mix(in oklab, var(--border) 42%, transparent);width:100%;padding-top:32px}.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan h2,.pricing-module__NQT7lW__ghostButton{opacity:.82;transition:opacity .22s var(--ease-out)}.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__limit{opacity:.9;transition:opacity .22s var(--ease-out)}.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__ghostMark,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__ghostMark{opacity:.075;transform:rotate(-4deg)translateY(-4px)}.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan:hover h2,.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan:focus-within h2,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__ghostButton{opacity:1}.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__studioButton,.pricing-module__NQT7lW__houseButton{border-radius:var(--radius-md);min-height:44px;font:inherit;cursor:pointer;border:0;margin-top:32px;font-size:14px;font-weight:600;transition:background-color .15s,color .15s,transform .15s}.pricing-module__NQT7lW__ghostButton{color:var(--foreground);text-decoration:underline;-webkit-text-decoration-color:color-mix(in oklab, var(--foreground) 28%, transparent);text-decoration-color:color-mix(in oklab, var(--foreground) 28%, transparent);text-underline-offset:6px;background:0 0;padding:0}.pricing-module__NQT7lW__ghostButton:hover{-webkit-text-decoration-color:var(--foreground);text-decoration-color:var(--foreground)}.pricing-module__NQT7lW__studioPlan{justify-content:center;align-items:flex-end;min-height:448px;display:flex}.pricing-module__NQT7lW__hangingTag{transform-origin:50% 0;width:100%;min-height:448px;transition:transform .24s var(--ease-out);will-change:transform;padding-top:56px;position:relative;transform:rotate(-1deg)}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__hangingTag,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__hangingTag{transform:rotate(1deg)translateY(-4px)}.pricing-module__NQT7lW__tagString{z-index:2;background:var(--border);width:1px;height:64px;position:absolute;top:0;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__tagHole{z-index:3;border:1px solid var(--border);background:var(--background);width:14px;height:14px;box-shadow:var(--e1);border-radius:999px;position:absolute;top:54px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__ticketBots{z-index:0;pointer-events:none;width:min(78%,240px);height:40px;position:absolute;top:32px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__ticketBot{--bot-tilt:0deg;border:1px solid var(--tag-border);border-radius:var(--radius-lg);background:var(--tag-paper);width:38px;height:38px;box-shadow:var(--e1);opacity:0;transform:translate(-50%, 20px) rotate(var(--bot-tilt));animation:pricing-module__NQT7lW__studio-bot-peek .68s var(--ease-out) forwards;place-items:center;display:grid;position:absolute;bottom:0;left:50%}.pricing-module__NQT7lW__generatedBotAvatar{border-radius:inherit;width:100%;height:100%}.pricing-module__NQT7lW__ticketBot:first-child{--bot-tilt:-8deg;animation-delay:80ms;left:18%}.pricing-module__NQT7lW__ticketBot:nth-child(2){--bot-tilt:4deg;animation-delay:.15s;left:38%}.pricing-module__NQT7lW__ticketBot:nth-child(3){--bot-tilt:9deg;animation-delay:.21s;left:82%}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__ticketBot,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__ticketBot{animation-name:pricing-module__NQT7lW__studio-bot-peek-again;animation-duration:.52s}.pricing-module__NQT7lW__paperTag{border:1px solid var(--tag-border);border-radius:var(--radius-sm);background:var(--tag-paper);width:min(100%,330px);min-height:392px;color:var(--tag-ink);box-shadow:var(--e2);transition:box-shadow .24s var(--ease-out);z-index:1;margin-inline:auto;padding:48px 32px 24px;position:relative}@keyframes pricing-module__NQT7lW__studio-bot-peek{0%{opacity:0;transform:translate(-50%, 20px) rotate(var(--bot-tilt))}46%{opacity:1;transform:translate(-50%, -12px) rotate(var(--bot-tilt))}72%{transform:translate(-50%, -5px) rotate(var(--bot-tilt))}to{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt))}}@keyframes pricing-module__NQT7lW__studio-bot-peek-again{0%,to{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt))}48%{opacity:1;transform:translate(-50%, -12px) rotate(var(--bot-tilt))}}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__paperTag,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__paperTag{box-shadow:0 18px 34px -16px color-mix(in oklab, var(--foreground) 25%, transparent)}.pricing-module__NQT7lW__monthlyChip{border:1px solid var(--tag-border);border-radius:var(--radius-sm);color:var(--tag-muted);font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;padding:4px 7px;font-size:9px;line-height:1;position:absolute;top:20px;right:24px}.pricing-module__NQT7lW__billing,.pricing-module__NQT7lW__houseBilling{color:var(--muted-foreground);margin:8px 0 0;font-size:12px;line-height:1}.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__limit strong{color:var(--tag-ink)}.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__cadence,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__billing,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__tagFooter{color:var(--tag-muted)}.pricing-module__NQT7lW__tagRule{border-top:1px dashed var(--tag-border);margin-top:32px}.pricing-module__NQT7lW__studioButton{background:var(--tag-ink);color:#fff8e8;width:100%;padding-inline:16px}.pricing-module__NQT7lW__studioButton:hover{background:color-mix(in oklab, var(--tag-ink) 88%, var(--tag-paper))}.pricing-module__NQT7lW__tagFooter{color:var(--muted-foreground);font-family:var(--font-mono);letter-spacing:.08em;justify-content:space-between;align-items:end;gap:16px;margin-top:32px;font-size:8px;display:flex}.pricing-module__NQT7lW__barcode{align-items:stretch;gap:2px;height:25px;display:flex}.pricing-module__NQT7lW__barcode span{opacity:.48;background:currentColor;width:1px}.pricing-module__NQT7lW__barcode span[data-wide]{opacity:.72;width:2px}.pricing-module__NQT7lW__housePlan{--ticket-stub-width:25%;min-height:352px;color:var(--house-ink);transition:transform .24s var(--ease-out);background:0 0;grid-template-columns:minmax(0,3fr) minmax(120px,1fr);display:grid;overflow:visible}.pricing-module__NQT7lW__housePlan:hover,.pricing-module__NQT7lW__housePlan:focus-within{transform:translateY(-4px)}.pricing-module__NQT7lW__ticketMain{border-radius:var(--radius-xl) 0 0 var(--radius-xl);background:var(--house-stock);min-width:0;box-shadow:var(--e2), inset 0 0 0 1px color-mix(in oklab, var(--house-ink) 9%, transparent);padding:32px;position:relative;overflow:hidden;-webkit-mask-image:radial-gradient(10px at 100% 0,#0000 9.5px,#000 10px),radial-gradient(10px at 100% 100%,#0000 9.5px,#000 10px);mask-image:radial-gradient(10px at 100% 0,#0000 9.5px,#000 10px),radial-gradient(10px at 100% 100%,#0000 9.5px,#000 10px);-webkit-mask-position:100% 0,100% 100%;mask-position:100% 0,100% 100%;-webkit-mask-size:100% 50%,100% 50%;mask-size:100% 50%,100% 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.pricing-module__NQT7lW__ticketTopline{justify-content:space-between;align-items:start;gap:16px;display:flex}.pricing-module__NQT7lW__ticketTopline h2{font-size:44px}.pricing-module__NQT7lW__ticketTopline>span{color:color-mix(in oklab, var(--house-ink) 44%, transparent);font-family:var(--font-mono);letter-spacing:.12em;font-size:9px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__price{margin-top:24px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__cadence,.pricing-module__NQT7lW__houseBilling{color:var(--house-muted)}.pricing-module__NQT7lW__houseLimit{color:color-mix(in oklab, var(--house-ink) 72%, transparent);margin:24px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__houseLimit strong{color:var(--house-ink);font-weight:600}.pricing-module__NQT7lW__limit+.pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__houseLimit+.pricing-module__NQT7lW__houseLimit{margin-top:8px}.pricing-module__NQT7lW__houseButton{background:var(--house-ink);width:100%;color:var(--house-stock);margin-top:24px;padding-inline:16px}.pricing-module__NQT7lW__houseButton:hover{background:color-mix(in oklab, var(--house-ink) 90%, var(--house-stock))}.pricing-module__NQT7lW__ticketSerial{color:color-mix(in oklab, var(--house-ink) 34%, transparent);font-family:var(--font-mono);letter-spacing:.12em;margin-top:16px;font-size:8px;display:block}.pricing-module__NQT7lW__ticketStubWrap{transform-origin:0;min-width:0;transition:filter .24s var(--ease-out), transform .24s var(--ease-out);will-change:filter, transform;position:relative}.pricing-module__NQT7lW__ticketStub{border-radius:0 var(--radius-xl) var(--radius-xl) 0;background:color-mix(in oklab, var(--house-stock) 92%, var(--house-ink));height:100%;color:color-mix(in oklab, var(--house-ink) 68%, transparent);box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--house-ink) 9%, transparent);flex-direction:column;justify-content:space-between;align-items:center;padding:32px 10px;display:flex;position:relative;overflow:hidden;-webkit-mask-image:radial-gradient(10px at 0 0,#0000 9.5px,#000 10px),radial-gradient(10px at 0 100%,#0000 9.5px,#000 10px);mask-image:radial-gradient(10px at 0 0,#0000 9.5px,#000 10px),radial-gradient(10px at 0 100%,#0000 9.5px,#000 10px);-webkit-mask-position:0 0,0 100%;mask-position:0 0,0 100%;-webkit-mask-size:100% 50%,100% 50%;mask-size:100% 50%,100% 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.pricing-module__NQT7lW__perforation{z-index:2;background:repeating-linear-gradient(to bottom, color-mix(in oklab, var(--house-ink) 24%, transparent) 0 3px, transparent 3px 7px);pointer-events:none;width:1px;position:absolute;top:10px;bottom:10px;left:0}.pricing-module__NQT7lW__housePlan:hover .pricing-module__NQT7lW__ticketStubWrap,.pricing-module__NQT7lW__housePlan:focus-within .pricing-module__NQT7lW__ticketStubWrap{filter:drop-shadow(10px 18px 18px color-mix(in oklab, var(--foreground) 28%, transparent));transform:translate(32px)rotate(1.5deg)}.pricing-module__NQT7lW__theater{isolation:isolate;flex-direction:column;align-items:center;gap:25px;display:flex;position:relative}.pricing-module__NQT7lW__theater:before{z-index:0;background:radial-gradient(ellipse 74% 102% at 50% 0, color-mix(in oklab, var(--house-ink) 9%, transparent) 0, color-mix(in oklab, var(--house-ink) 5%, transparent) 32%, color-mix(in oklab, var(--house-ink) 2%, transparent) 62%, transparent 90%);content:"";filter:blur(18px);opacity:.72;pointer-events:none;width:140px;height:162px;position:absolute;top:46px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__theater:after{z-index:0;background:radial-gradient(ellipse, color-mix(in oklab, var(--house-ink) 7%, transparent), color-mix(in oklab, var(--house-ink) 2%, transparent) 44%, transparent 72%);content:"";filter:blur(12px);opacity:.72;pointer-events:none;width:126px;height:92px;position:absolute;top:-14px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__theater>*{z-index:1;position:relative}.pricing-module__NQT7lW__theaterScreen{background:url(/alook.svg) center / 50px 50px no-repeat, linear-gradient(180deg, color-mix(in oklab, var(--house-ink) 7%, transparent), color-mix(in oklab, var(--house-ink) 2%, transparent));width:112px;height:60px;box-shadow:0 10px 24px -16px color-mix(in oklab, var(--house-ink) 18%, transparent);filter:grayscale(1) brightness(.78) contrast(1.08) drop-shadow(0 0 9px color-mix(in oklab, var(--house-ink) 12%, transparent));transform-origin:top;place-items:center;display:grid;position:relative;overflow:visible;transform:perspective(140px)rotateX(-18deg)translateY(-2px)scale(1.04)}.pricing-module__NQT7lW__theaterScreen:after{background:color-mix(in oklab, var(--house-ink) 12%, transparent);height:1px;box-shadow:0 3px 9px color-mix(in oklab, var(--house-ink) 10%, transparent);content:"";position:absolute;bottom:-5px;left:12%;right:12%}.pricing-module__NQT7lW__seatGrid{flex-direction:column;align-items:center;gap:1px;padding:4px 2px 8px;display:flex}.pricing-module__NQT7lW__seatRow{--seat-gap:2px;--seat-width:6px;grid-template-columns:repeat(8, var(--seat-width));column-gap:var(--seat-gap);opacity:.76;align-items:end;min-height:9px;display:grid}.pricing-module__NQT7lW__seatRow:nth-child(2){--seat-width:6.5px;--seat-gap:2.75px;opacity:.69;margin-top:1px}.pricing-module__NQT7lW__seatRow:nth-child(3){--seat-width:7px;--seat-gap:3.5px;opacity:.62;margin-top:2px}.pricing-module__NQT7lW__seatRow:nth-child(4){--seat-width:7.5px;--seat-gap:4.25px;opacity:.55;margin-top:4px}.pricing-module__NQT7lW__seatRow:nth-child(5){--seat-width:8px;--seat-gap:5px;opacity:.48;margin-top:6px}.pricing-module__NQT7lW__seat{width:var(--seat-width);height:9px;position:relative}.pricing-module__NQT7lW__seat:before,.pricing-module__NQT7lW__seat:after{content:"";background:currentColor;position:absolute;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__seat:before{border-radius:3px 3px 1px 1px;width:100%;height:6px;top:0}.pricing-module__NQT7lW__seat:after{width:calc(100% + 2px);height:3px;box-shadow:0 2px 0 color-mix(in oklab, currentColor 42%, transparent);border-radius:1px 1px 3px 3px;bottom:0}.pricing-module__NQT7lW__ticketStub .pricing-module__NQT7lW__barcode{gap:1px;width:54px;height:18px}.pricing-module__NQT7lW__sharedLine{border-top:1px solid color-mix(in oklab, var(--border) 60%, transparent);border-bottom:1px solid color-mix(in oklab, var(--border) 60%, transparent);width:fit-content;max-width:100%;color:var(--muted-foreground);text-align:center;margin:64px auto 0;padding:16px 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__faq{max-width:1040px;margin:112px auto 32px}.pricing-module__NQT7lW__faq>h2{max-width:520px;font-family:var(--font-heading);letter-spacing:-.015em;margin:0;font-size:40px;font-weight:600;line-height:1.15}.pricing-module__NQT7lW__faqGrid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;margin:40px 0 0;display:grid}.pricing-module__NQT7lW__faqItem{border-top:1px solid var(--border);padding:32px 0}.pricing-module__NQT7lW__faqItem dt{max-width:32ch;font-size:16px;font-weight:600;line-height:1.4}.pricing-module__NQT7lW__faqItem dd{max-width:54ch;color:var(--muted-foreground);margin:16px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__ghostButton:focus-visible,.pricing-module__NQT7lW__studioButton:focus-visible,.pricing-module__NQT7lW__houseButton:focus-visible,.pricing-module__NQT7lW__brand:focus-visible,.pricing-module__NQT7lW__backLink:focus-visible{outline:2px solid var(--ring);outline-offset:4px}.pricing-module__NQT7lW__ghostButton:active,.pricing-module__NQT7lW__studioButton:active,.pricing-module__NQT7lW__houseButton:active{transform:translateY(1px)}@media (max-width:1100px){.pricing-module__NQT7lW__plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 32px;max-width:720px}.pricing-module__NQT7lW__housePlan{grid-column:1/-1;grid-template-columns:minmax(0,3fr) minmax(120px,1fr)}.pricing-module__NQT7lW__sharedLine{margin-top:64px}.pricing-module__NQT7lW__faq{margin-top:96px}}@media (max-width:639px){.pricing-module__NQT7lW__header,.pricing-module__NQT7lW__main{width:min(100% - 32px,520px)}.pricing-module__NQT7lW__header{height:72px}.pricing-module__NQT7lW__main{padding:48px 0 64px}.pricing-module__NQT7lW__main h1{max-width:12ch;font-size:clamp(40px,12vw,48px)}.pricing-module__NQT7lW__plans{grid-template-columns:1fr;gap:48px;margin-top:64px}.pricing-module__NQT7lW__freePlan{min-height:320px;padding-inline:24px}.pricing-module__NQT7lW__ghostMark{left:auto;right:-24px}.pricing-module__NQT7lW__studioPlan{min-height:448px}.pricing-module__NQT7lW__paperTag{width:min(100% - 32px,348px)}.pricing-module__NQT7lW__housePlan{--ticket-stub-width:80px;grid-column:auto;grid-template-columns:minmax(0,1fr) 80px;min-height:304px}.pricing-module__NQT7lW__ticketMain{padding:24px}.pricing-module__NQT7lW__ticketTopline h2{font-size:38px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__amount{font-size:48px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__houseLimit,.pricing-module__NQT7lW__houseButton{margin-top:16px}.pricing-module__NQT7lW__ticketStub{padding:24px 8px}.pricing-module__NQT7lW__theater{gap:16px}.pricing-module__NQT7lW__theater:before{width:84px;height:104px;top:34px}.pricing-module__NQT7lW__theater:after{width:76px;height:64px;top:-8px}.pricing-module__NQT7lW__theaterScreen{background-size:34px 34px,auto;width:70px;height:44px;transform:perspective(95px)rotateX(-18deg)translateY(-1px)scale(1.03)}.pricing-module__NQT7lW__seatGrid{gap:0;padding:2px 0 6px}.pricing-module__NQT7lW__seatRow{--seat-gap:1px;--seat-width:3.5px;min-height:7px}.pricing-module__NQT7lW__seatRow:nth-child(2){--seat-gap:1.25px;--seat-width:3.75px}.pricing-module__NQT7lW__seatRow:nth-child(3){--seat-gap:1.5px;--seat-width:4.25px}.pricing-module__NQT7lW__seatRow:nth-child(4){--seat-gap:1.75px;--seat-width:4.75px}.pricing-module__NQT7lW__seatRow:nth-child(5){--seat-gap:2px;--seat-width:5.5px}.pricing-module__NQT7lW__seat{height:7px}.pricing-module__NQT7lW__seat:before{border-radius:2px 2px 1px 1px;height:5px}.pricing-module__NQT7lW__seat:after{border-radius:1px 1px 2px 2px;width:calc(100% + 2px);height:2px}.pricing-module__NQT7lW__faq{margin-top:80px}.pricing-module__NQT7lW__faqGrid{grid-template-columns:1fr;margin-top:32px}.pricing-module__NQT7lW__backLink{font-size:13px}}@media (prefers-reduced-motion:reduce){.pricing-module__NQT7lW__ticketBot{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt));animation:none}.pricing-module__NQT7lW__ghostMark,.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan h2,.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__hangingTag,.pricing-module__NQT7lW__paperTag,.pricing-module__NQT7lW__housePlan,.pricing-module__NQT7lW__ticketStubWrap,.pricing-module__NQT7lW__ticketStub,.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__studioButton,.pricing-module__NQT7lW__houseButton,.pricing-module__NQT7lW__backLink{transition:none}}.pricing-module__NQT7lW__status{text-align:center;max-width:70rem;color:var(--muted-foreground);margin:16px auto}.pricing-module__NQT7lW__status:empty{display:none}.pricing-module__NQT7lW__status button{min-height:44px;padding:0 8px;text-decoration:underline}.pricing-module__NQT7lW__plans button:disabled{opacity:.55;cursor:default}
1
+ .pricing-module__NQT7lW__page{--tag-paper:#f4d85b;--tag-ink:#24221e;--tag-muted:color-mix(in oklab, var(--tag-ink) 82%, var(--tag-paper));--tag-border:color-mix(in oklab, var(--tag-ink) 18%, transparent);--house-stock:color-mix(in oklab, var(--foreground) 22%, black);--house-ink:color-mix(in oklab, var(--background) 18%, white);--house-muted:color-mix(in oklab, var(--house-ink) 62%, transparent);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--background);min-height:100svh;color:var(--foreground);font-family:var(--font-sans);overflow:hidden}.pricing-module__NQT7lW__page ::selection{background:var(--foreground);color:var(--background)}.pricing-module__NQT7lW__header{border-bottom:1px solid color-mix(in oklab, var(--border) 68%, transparent);justify-content:space-between;align-items:center;width:min(100% - 64px,1280px);height:80px;margin-inline:auto;display:flex}.pricing-module__NQT7lW__brand,.pricing-module__NQT7lW__backLink{color:inherit;text-decoration:none}.pricing-module__NQT7lW__brand{font-family:var(--font-brand);align-items:center;gap:8px;font-size:26px;font-weight:700;line-height:1;display:inline-flex}.pricing-module__NQT7lW__backLink{min-height:44px;color:var(--muted-foreground);text-underline-offset:4px;align-items:center;padding-inline:8px;font-size:14px;transition:color .15s;display:inline-flex}.pricing-module__NQT7lW__backLink:hover{color:var(--foreground);text-decoration:underline}.pricing-module__NQT7lW__main{width:min(100% - 64px,1280px);margin-inline:auto;padding:64px 0 96px}.pricing-module__NQT7lW__eyebrow{color:var(--muted-foreground);font-family:var(--font-mono);letter-spacing:.14em;text-align:center;text-transform:uppercase;margin:0 0 16px;font-size:10px;line-height:1}.pricing-module__NQT7lW__main h1{max-width:760px;font-family:var(--font-heading);letter-spacing:-.025em;text-align:center;text-wrap:balance;margin:0 auto;font-size:clamp(44px,4.5vw,64px);font-weight:600;line-height:1.05}.pricing-module__NQT7lW__plans{grid-template-columns:minmax(210px,.7fr) minmax(280px,.92fr) minmax(480px,1.48fr);align-items:end;gap:32px;max-width:1260px;margin:64px auto 0;display:grid}.pricing-module__NQT7lW__plan{min-width:0;position:relative}.pricing-module__NQT7lW__plan h2{font-family:var(--font-brand);letter-spacing:0;margin:0;font-size:40px;font-weight:700;line-height:1}.pricing-module__NQT7lW__price{width:fit-content;color:var(--foreground);font-variant-numeric:tabular-nums;grid-template-columns:auto auto 1fr;align-items:end;margin-top:16px;display:grid}.pricing-module__NQT7lW__price[data-inverse]{color:var(--house-ink)}.pricing-module__NQT7lW__currency{margin-right:4px;padding-bottom:8px;font-size:18px;font-weight:600;line-height:1}.pricing-module__NQT7lW__amount{font-family:var(--font-heading);letter-spacing:-.035em;font-size:60px;font-weight:600;line-height:.85}.pricing-module__NQT7lW__cadence{color:var(--muted-foreground);padding:0 0 5px 8px;font-size:13px;line-height:1}.pricing-module__NQT7lW__limit{max-width:23ch;color:var(--muted-foreground);margin:32px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__limit strong{color:var(--foreground);font-weight:600}.pricing-module__NQT7lW__freePlan{isolation:isolate;align-items:flex-end;min-height:352px;padding:0 16px 32px;display:flex}.pricing-module__NQT7lW__ghostMark{z-index:-1;filter:grayscale();opacity:.035;width:240px;height:240px;transition:opacity .22s var(--ease-out), transform .22s var(--ease-out);position:absolute;bottom:48px;left:-56px;transform:rotate(-8deg)}.pricing-module__NQT7lW__freeContent{border-top:1px solid color-mix(in oklab, var(--border) 42%, transparent);width:100%;padding-top:32px}.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan h2,.pricing-module__NQT7lW__ghostButton{opacity:.82;transition:opacity .22s var(--ease-out)}.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__limit{opacity:.9;transition:opacity .22s var(--ease-out)}.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__ghostMark,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__ghostMark{opacity:.075;transform:rotate(-4deg)translateY(-4px)}.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan:hover h2,.pricing-module__NQT7lW__freePlan:hover .pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan:focus-within h2,.pricing-module__NQT7lW__freePlan:focus-within .pricing-module__NQT7lW__ghostButton{opacity:1}.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__studioButton,.pricing-module__NQT7lW__houseButton{border-radius:var(--radius-md);min-height:44px;font:inherit;cursor:pointer;border:0;margin-top:32px;font-size:14px;font-weight:600;transition:background-color .15s,color .15s,transform .15s}.pricing-module__NQT7lW__ghostButton{color:var(--foreground);text-decoration:underline;-webkit-text-decoration-color:color-mix(in oklab, var(--foreground) 28%, transparent);text-decoration-color:color-mix(in oklab, var(--foreground) 28%, transparent);text-underline-offset:6px;background:0 0;padding:0}.pricing-module__NQT7lW__ghostButton:hover{-webkit-text-decoration-color:var(--foreground);text-decoration-color:var(--foreground)}.pricing-module__NQT7lW__studioPlan{justify-content:center;align-items:flex-end;min-height:448px;display:flex}.pricing-module__NQT7lW__hangingTag{transform-origin:50% 0;width:100%;min-height:448px;transition:transform .24s var(--ease-out);will-change:transform;padding-top:56px;position:relative;transform:rotate(-1deg)}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__hangingTag,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__hangingTag{transform:rotate(1deg)translateY(-4px)}.pricing-module__NQT7lW__tagString{z-index:2;background:var(--border);width:1px;height:64px;position:absolute;top:0;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__tagHole{z-index:3;border:1px solid var(--border);background:var(--background);width:14px;height:14px;box-shadow:var(--e1);border-radius:999px;position:absolute;top:54px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__ticketBots{z-index:0;pointer-events:none;width:min(78%,240px);height:40px;position:absolute;top:32px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__ticketBot{--bot-tilt:0deg;border:1px solid var(--tag-border);border-radius:var(--radius-lg);background:var(--tag-paper);width:38px;height:38px;box-shadow:var(--e1);opacity:0;transform:translate(-50%, 20px) rotate(var(--bot-tilt));animation:pricing-module__NQT7lW__studio-bot-peek .68s var(--ease-out) forwards;place-items:center;display:grid;position:absolute;bottom:0;left:50%}.pricing-module__NQT7lW__generatedBotAvatar{border-radius:inherit;width:100%;height:100%}.pricing-module__NQT7lW__ticketBot:first-child{--bot-tilt:-8deg;animation-delay:80ms;left:18%}.pricing-module__NQT7lW__ticketBot:nth-child(2){--bot-tilt:4deg;animation-delay:.15s;left:38%}.pricing-module__NQT7lW__ticketBot:nth-child(3){--bot-tilt:9deg;animation-delay:.21s;left:82%}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__ticketBot,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__ticketBot{animation-name:pricing-module__NQT7lW__studio-bot-peek-again;animation-duration:.52s}.pricing-module__NQT7lW__paperTag{border:1px solid var(--tag-border);border-radius:var(--radius-sm);background:var(--tag-paper);width:min(100%,330px);min-height:392px;color:var(--tag-ink);box-shadow:var(--e2);transition:box-shadow .24s var(--ease-out);z-index:1;margin-inline:auto;padding:48px 32px 24px;position:relative}@keyframes pricing-module__NQT7lW__studio-bot-peek{0%{opacity:0;transform:translate(-50%, 20px) rotate(var(--bot-tilt))}46%{opacity:1;transform:translate(-50%, -12px) rotate(var(--bot-tilt))}72%{transform:translate(-50%, -5px) rotate(var(--bot-tilt))}to{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt))}}@keyframes pricing-module__NQT7lW__studio-bot-peek-again{0%,to{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt))}48%{opacity:1;transform:translate(-50%, -12px) rotate(var(--bot-tilt))}}.pricing-module__NQT7lW__studioPlan:hover .pricing-module__NQT7lW__paperTag,.pricing-module__NQT7lW__studioPlan:focus-within .pricing-module__NQT7lW__paperTag{box-shadow:0 18px 34px -16px color-mix(in oklab, var(--foreground) 25%, transparent)}.pricing-module__NQT7lW__monthlyChip{border:1px solid var(--tag-border);border-radius:var(--radius-sm);color:var(--tag-muted);font-family:var(--font-mono);letter-spacing:.08em;text-transform:uppercase;padding:4px 7px;font-size:9px;line-height:1;position:absolute;top:20px;right:24px}.pricing-module__NQT7lW__billing,.pricing-module__NQT7lW__houseBilling{color:var(--muted-foreground);margin:8px 0 0;font-size:12px;line-height:1}.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__limit strong{color:var(--tag-ink)}.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__cadence,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__billing,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__paperTag .pricing-module__NQT7lW__tagFooter{color:var(--tag-muted)}.pricing-module__NQT7lW__tagRule{border-top:1px dashed var(--tag-border);margin-top:32px}.pricing-module__NQT7lW__studioButton{background:var(--tag-ink);color:#fff8e8;width:100%;padding-inline:16px}.pricing-module__NQT7lW__studioButton:hover{background:color-mix(in oklab, var(--tag-ink) 88%, var(--tag-paper))}.pricing-module__NQT7lW__tagFooter{color:var(--muted-foreground);font-family:var(--font-mono);letter-spacing:.08em;justify-content:space-between;align-items:end;gap:16px;margin-top:32px;font-size:8px;display:flex}.pricing-module__NQT7lW__barcode{align-items:stretch;gap:2px;height:25px;display:flex}.pricing-module__NQT7lW__barcode span{opacity:.48;background:currentColor;width:1px}.pricing-module__NQT7lW__barcode span[data-wide]{opacity:.72;width:2px}.pricing-module__NQT7lW__housePlan{--ticket-stub-width:25%;min-height:352px;color:var(--house-ink);transition:transform .24s var(--ease-out);background:0 0;grid-template-columns:minmax(0,3fr) minmax(120px,1fr);display:grid;overflow:visible}.pricing-module__NQT7lW__housePlan:hover,.pricing-module__NQT7lW__housePlan:focus-within{transform:translateY(-4px)}.pricing-module__NQT7lW__ticketMain{border-radius:var(--radius-xl) 0 0 var(--radius-xl);background:var(--house-stock);min-width:0;box-shadow:var(--e2), inset 0 0 0 1px color-mix(in oklab, var(--house-ink) 9%, transparent);padding:32px;position:relative;overflow:hidden;-webkit-mask-image:radial-gradient(10px at 100% 0,#0000 9.5px,#000 10px),radial-gradient(10px at 100% 100%,#0000 9.5px,#000 10px);mask-image:radial-gradient(10px at 100% 0,#0000 9.5px,#000 10px),radial-gradient(10px at 100% 100%,#0000 9.5px,#000 10px);-webkit-mask-position:100% 0,100% 100%;mask-position:100% 0,100% 100%;-webkit-mask-size:100% 50%,100% 50%;mask-size:100% 50%,100% 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.pricing-module__NQT7lW__ticketTopline{justify-content:space-between;align-items:start;gap:16px;display:flex}.pricing-module__NQT7lW__ticketTopline h2{font-size:44px}.pricing-module__NQT7lW__ticketTopline>span{color:color-mix(in oklab, var(--house-ink) 44%, transparent);font-family:var(--font-mono);letter-spacing:.12em;font-size:9px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__price{margin-top:24px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__cadence,.pricing-module__NQT7lW__houseBilling{color:var(--house-muted)}.pricing-module__NQT7lW__houseLimit{color:color-mix(in oklab, var(--house-ink) 72%, transparent);margin:24px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__houseLimit strong{color:var(--house-ink);font-weight:600}.pricing-module__NQT7lW__limit+.pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__houseLimit+.pricing-module__NQT7lW__houseLimit{margin-top:8px}.pricing-module__NQT7lW__houseButton{background:var(--house-ink);width:100%;color:var(--house-stock);margin-top:24px;padding-inline:16px}.pricing-module__NQT7lW__houseButton:hover{background:color-mix(in oklab, var(--house-ink) 90%, var(--house-stock))}.pricing-module__NQT7lW__ticketSerial{color:color-mix(in oklab, var(--house-ink) 34%, transparent);font-family:var(--font-mono);letter-spacing:.12em;margin-top:16px;font-size:8px;display:block}.pricing-module__NQT7lW__ticketStubWrap{transform-origin:0;min-width:0;transition:filter .24s var(--ease-out), transform .24s var(--ease-out);will-change:filter, transform;position:relative}.pricing-module__NQT7lW__ticketStub{border-radius:0 var(--radius-xl) var(--radius-xl) 0;background:color-mix(in oklab, var(--house-stock) 92%, var(--house-ink));height:100%;color:color-mix(in oklab, var(--house-ink) 68%, transparent);box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--house-ink) 9%, transparent);flex-direction:column;justify-content:space-between;align-items:center;padding:32px 10px;display:flex;position:relative;overflow:hidden;-webkit-mask-image:radial-gradient(10px at 0 0,#0000 9.5px,#000 10px),radial-gradient(10px at 0 100%,#0000 9.5px,#000 10px);mask-image:radial-gradient(10px at 0 0,#0000 9.5px,#000 10px),radial-gradient(10px at 0 100%,#0000 9.5px,#000 10px);-webkit-mask-position:0 0,0 100%;mask-position:0 0,0 100%;-webkit-mask-size:100% 50%,100% 50%;mask-size:100% 50%,100% 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.pricing-module__NQT7lW__perforation{z-index:2;background:repeating-linear-gradient(to bottom, color-mix(in oklab, var(--house-ink) 24%, transparent) 0 3px, transparent 3px 7px);pointer-events:none;width:1px;position:absolute;top:10px;bottom:10px;left:0}.pricing-module__NQT7lW__housePlan:hover .pricing-module__NQT7lW__ticketStubWrap,.pricing-module__NQT7lW__housePlan:focus-within .pricing-module__NQT7lW__ticketStubWrap{filter:drop-shadow(10px 18px 18px color-mix(in oklab, var(--foreground) 28%, transparent));transform:translate(32px)rotate(1.5deg)}.pricing-module__NQT7lW__theater{isolation:isolate;flex-direction:column;align-items:center;gap:25px;display:flex;position:relative}.pricing-module__NQT7lW__theater:before{z-index:0;background:radial-gradient(ellipse 74% 102% at 50% 0, color-mix(in oklab, var(--house-ink) 9%, transparent) 0, color-mix(in oklab, var(--house-ink) 5%, transparent) 32%, color-mix(in oklab, var(--house-ink) 2%, transparent) 62%, transparent 90%);content:"";filter:blur(18px);opacity:.72;pointer-events:none;width:140px;height:162px;position:absolute;top:46px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__theater:after{z-index:0;background:radial-gradient(ellipse, color-mix(in oklab, var(--house-ink) 7%, transparent), color-mix(in oklab, var(--house-ink) 2%, transparent) 44%, transparent 72%);content:"";filter:blur(12px);opacity:.72;pointer-events:none;width:126px;height:92px;position:absolute;top:-14px;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__theater>*{z-index:1;position:relative}.pricing-module__NQT7lW__theaterScreen{background:url(/alook.svg) center / 50px 50px no-repeat, linear-gradient(180deg, color-mix(in oklab, var(--house-ink) 7%, transparent), color-mix(in oklab, var(--house-ink) 2%, transparent));width:112px;height:60px;box-shadow:0 10px 24px -16px color-mix(in oklab, var(--house-ink) 18%, transparent);filter:grayscale(1) brightness(.78) contrast(1.08) drop-shadow(0 0 9px color-mix(in oklab, var(--house-ink) 12%, transparent));transform-origin:top;place-items:center;display:grid;position:relative;overflow:visible;transform:perspective(140px)rotateX(-18deg)translateY(-2px)scale(1.04)}.pricing-module__NQT7lW__theaterScreen:after{background:color-mix(in oklab, var(--house-ink) 12%, transparent);height:1px;box-shadow:0 3px 9px color-mix(in oklab, var(--house-ink) 10%, transparent);content:"";position:absolute;bottom:-5px;left:12%;right:12%}.pricing-module__NQT7lW__seatGrid{flex-direction:column;align-items:center;gap:1px;padding:4px 2px 8px;display:flex}.pricing-module__NQT7lW__seatRow{--seat-gap:2px;--seat-width:6px;grid-template-columns:repeat(8, var(--seat-width));column-gap:var(--seat-gap);opacity:.76;align-items:end;min-height:9px;display:grid}.pricing-module__NQT7lW__seatRow:nth-child(2){--seat-width:6.5px;--seat-gap:2.75px;opacity:.69;margin-top:1px}.pricing-module__NQT7lW__seatRow:nth-child(3){--seat-width:7px;--seat-gap:3.5px;opacity:.62;margin-top:2px}.pricing-module__NQT7lW__seatRow:nth-child(4){--seat-width:7.5px;--seat-gap:4.25px;opacity:.55;margin-top:4px}.pricing-module__NQT7lW__seatRow:nth-child(5){--seat-width:8px;--seat-gap:5px;opacity:.48;margin-top:6px}.pricing-module__NQT7lW__seat{width:var(--seat-width);height:9px;position:relative}.pricing-module__NQT7lW__seat:before,.pricing-module__NQT7lW__seat:after{content:"";background:currentColor;position:absolute;left:50%;transform:translate(-50%)}.pricing-module__NQT7lW__seat:before{border-radius:3px 3px 1px 1px;width:100%;height:6px;top:0}.pricing-module__NQT7lW__seat:after{width:calc(100% + 2px);height:3px;box-shadow:0 2px 0 color-mix(in oklab, currentColor 42%, transparent);border-radius:1px 1px 3px 3px;bottom:0}.pricing-module__NQT7lW__ticketStub .pricing-module__NQT7lW__barcode{gap:1px;width:54px;height:18px}.pricing-module__NQT7lW__sharedLine{border-top:1px solid color-mix(in oklab, var(--border) 60%, transparent);border-bottom:1px solid color-mix(in oklab, var(--border) 60%, transparent);width:fit-content;max-width:100%;color:var(--muted-foreground);text-align:center;margin:64px auto 0;padding:16px 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__faq{max-width:1040px;margin:112px auto 32px}.pricing-module__NQT7lW__faq>h2{max-width:520px;font-family:var(--font-heading);letter-spacing:-.015em;margin:0;font-size:40px;font-weight:600;line-height:1.15}.pricing-module__NQT7lW__faqGrid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px;margin:40px 0 0;display:grid}.pricing-module__NQT7lW__faqItem{border-top:1px solid var(--border);padding:32px 0}.pricing-module__NQT7lW__faqItem dt{max-width:32ch;font-size:16px;font-weight:600;line-height:1.4}.pricing-module__NQT7lW__faqItem dd{max-width:54ch;color:var(--muted-foreground);margin:16px 0 0;font-size:15px;line-height:1.6}.pricing-module__NQT7lW__ghostButton:focus-visible,.pricing-module__NQT7lW__studioButton:focus-visible,.pricing-module__NQT7lW__houseButton:focus-visible,.pricing-module__NQT7lW__brand:focus-visible,.pricing-module__NQT7lW__backLink:focus-visible{outline:2px solid var(--ring);outline-offset:4px}.pricing-module__NQT7lW__ghostButton:active,.pricing-module__NQT7lW__studioButton:active,.pricing-module__NQT7lW__houseButton:active{transform:translateY(1px)}@media (max-width:1100px){.pricing-module__NQT7lW__plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 32px;max-width:720px}.pricing-module__NQT7lW__housePlan{grid-column:1/-1;grid-template-columns:minmax(0,3fr) minmax(120px,1fr)}.pricing-module__NQT7lW__sharedLine{margin-top:64px}.pricing-module__NQT7lW__faq{margin-top:96px}}@media (max-width:639px){.pricing-module__NQT7lW__header,.pricing-module__NQT7lW__main{width:min(100% - 32px,520px)}.pricing-module__NQT7lW__header{height:72px}.pricing-module__NQT7lW__main{padding:48px 0 64px}.pricing-module__NQT7lW__main h1{max-width:12ch;font-size:clamp(40px,12vw,48px)}.pricing-module__NQT7lW__plans{grid-template-columns:1fr;gap:48px;margin-top:64px}.pricing-module__NQT7lW__freePlan{min-height:320px;padding-inline:24px}.pricing-module__NQT7lW__ghostMark{left:auto;right:-24px}.pricing-module__NQT7lW__studioPlan{min-height:448px}.pricing-module__NQT7lW__paperTag{width:min(100% - 32px,348px)}.pricing-module__NQT7lW__housePlan{--ticket-stub-width:80px;grid-column:auto;grid-template-columns:minmax(0,1fr) 80px;min-height:304px}.pricing-module__NQT7lW__ticketMain{padding:24px}.pricing-module__NQT7lW__ticketTopline h2{font-size:38px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__amount{font-size:48px}.pricing-module__NQT7lW__housePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__houseLimit,.pricing-module__NQT7lW__houseButton{margin-top:16px}.pricing-module__NQT7lW__ticketStub{padding:24px 8px}.pricing-module__NQT7lW__theater{gap:16px}.pricing-module__NQT7lW__theater:before{width:84px;height:104px;top:34px}.pricing-module__NQT7lW__theater:after{width:76px;height:64px;top:-8px}.pricing-module__NQT7lW__theaterScreen{background-size:34px 34px,auto;width:70px;height:44px;transform:perspective(95px)rotateX(-18deg)translateY(-1px)scale(1.03)}.pricing-module__NQT7lW__seatGrid{gap:0;padding:2px 0 6px}.pricing-module__NQT7lW__seatRow{--seat-gap:1px;--seat-width:3.5px;min-height:7px}.pricing-module__NQT7lW__seatRow:nth-child(2){--seat-gap:1.25px;--seat-width:3.75px}.pricing-module__NQT7lW__seatRow:nth-child(3){--seat-gap:1.5px;--seat-width:4.25px}.pricing-module__NQT7lW__seatRow:nth-child(4){--seat-gap:1.75px;--seat-width:4.75px}.pricing-module__NQT7lW__seatRow:nth-child(5){--seat-gap:2px;--seat-width:5.5px}.pricing-module__NQT7lW__seat{height:7px}.pricing-module__NQT7lW__seat:before{border-radius:2px 2px 1px 1px;height:5px}.pricing-module__NQT7lW__seat:after{border-radius:1px 1px 2px 2px;width:calc(100% + 2px);height:2px}.pricing-module__NQT7lW__faq{margin-top:80px}.pricing-module__NQT7lW__faqGrid{grid-template-columns:1fr;margin-top:32px}.pricing-module__NQT7lW__backLink{font-size:13px}}@media (prefers-reduced-motion:reduce){.pricing-module__NQT7lW__ticketBot{opacity:1;transform:translate(-50%, 0) rotate(var(--bot-tilt));animation:none}.pricing-module__NQT7lW__ghostMark,.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__price,.pricing-module__NQT7lW__freePlan .pricing-module__NQT7lW__limit,.pricing-module__NQT7lW__freePlan h2,.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__hangingTag,.pricing-module__NQT7lW__paperTag,.pricing-module__NQT7lW__housePlan,.pricing-module__NQT7lW__ticketStubWrap,.pricing-module__NQT7lW__ticketStub,.pricing-module__NQT7lW__ghostButton,.pricing-module__NQT7lW__studioButton,.pricing-module__NQT7lW__houseButton,.pricing-module__NQT7lW__backLink{transition:none}}.pricing-module__NQT7lW__contactLine{text-align:center;color:var(--muted-foreground);margin:16px auto 0;font-size:14px}.pricing-module__NQT7lW__contactLine a{min-height:44px;color:var(--foreground);text-underline-offset:4px;align-items:center;text-decoration:underline;display:inline-flex}.pricing-module__NQT7lW__contactLine a:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:2px}.pricing-module__NQT7lW__status{text-align:center;max-width:70rem;color:var(--muted-foreground);margin:16px auto}.pricing-module__NQT7lW__status:empty{display:none}.pricing-module__NQT7lW__status button{min-height:44px;padding:0 8px;text-decoration:underline}.pricing-module__NQT7lW__plans button:disabled{opacity:.55;cursor:default}
@@ -0,0 +1,20 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,799518,e=>{"use strict";var t=e.i(1087);let n={name:"house",size:24,node:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],aliases:["home"]};n.node;let a=(0,t.default)(n);e.s(["default",0,a])},272090,31163,e=>{"use strict";var t=e.i(1087);let n={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};n.node;let a=(0,t.default)(n);e.s(["LogOut",0,a],272090);var r=e.i(382416),i=e.i(290139),s=e.i(159514),o=e.i(183899),l=e.i(622435),c=e.i(919391),u=e.i(975210);let d="inboxThreadOpener",m=0;e.s(["THREAD_OPENER_HANDOFF_PARAM",0,d,"armThreadOpenerReadHandoff",0,function(e,t){let n="u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():(m+=1,`opener-${m}`);(0,u.armThreadOpenerReservationHandoff)(e,{...t,nonce:n});let a=(0,l.channelHref)(t.serverId,t.childChannelId);return`${a}?${d}=${encodeURIComponent(n)}`},"clearThreadOpenerReadHandoff",0,function(e){(0,u.clearThreadOpenerReservationHandoff)(e)},"useClaimThreadOpenerReadHandoff",0,function(e){let t=(0,s.useQueryClient)(),n=(0,o.useCurrentUser)(),a=(0,i.useRouter)(),m=(0,i.useSearchParams)(),h=(0,r.useRef)(null),p=(0,r.useRef)(null),f=(0,r.useRef)(0);(0,r.useLayoutEffect)(()=>{if(!e||p.current===e.nonce)return;h.current&&((0,c.releaseReadSurface)(h.current),h.current=null,p.current=null);let r=(0,u.getThreadOpenerReservationHandoff)(t,e.nonce);if(!r||r.serverId!==e.serverId||r.parentChannelId!==e.parentChannelId||r.childChannelId!==e.childChannelId||r.openerMessageId!==e.openerMessageId||r.openerSeq!==e.openerSeq)return void(0,u.terminateThreadOpenerReservationHandoff)(t,e.nonce);let i=(0,c.registerReadSurface)(t,n.id,{kind:"timeline",channelId:r.parentChannelId},0,"cancel-uncommitted"),s=(0,c.submitReadIntentGeneration)(i,{kind:"timeline",channelId:r.parentChannelId,messageId:r.openerMessageId,seq:r.openerSeq});if(null===s){(0,c.releaseReadSurface)(i),(0,u.terminateThreadOpenerReservationHandoff)(t,r.nonce);return}h.current=i,p.current=r.nonce,(0,u.completeThreadOpenerReservationHandoff)(t,r.nonce,s);let o=m.toString(),f=`${(0,l.channelHref)(r.serverId,r.childChannelId)}${o?`?${o}`:""}`;a.replace((0,l.removeCommunityParam)(f,d),{scroll:!1})},[n.id,t,a,m,e]),(0,r.useLayoutEffect)(()=>(f.current+=1,()=>{let e=++f.current,t=h.current;t&&queueMicrotask(()=>{f.current===e&&h.current===t&&(h.current=null,p.current=null,(0,c.releaseReadSurface)(t))})}),[t])},"useThreadOpenerRouteGate",0,function({serverId:e,childChannelId:t,parentChannelId:n,openerMessageId:a,lifecycle:o}){let c=(0,s.useQueryClient)(),m=(0,i.useRouter)(),h=(0,i.usePathname)(),p=(0,i.useSearchParams)(),f=p.get(d),g=f?(0,u.getThreadOpenerReservationHandoff)(c,f):null,v=(0,r.useCallback)(()=>{if(!f)return;let n=p.toString(),a=`${(0,l.channelHref)(e,t)}${n?`?${n}`:""}`;m.replace((0,l.removeCommunityParam)(a,d),{scroll:!1})},[t,f,m,p,e]),y=!!g&&g.serverId===e&&g.childChannelId===t,b=h===(0,l.channelHref)(e,t),x=y&&"ready"===o&&g.parentChannelId===n&&g.openerMessageId===a;return(0,r.useLayoutEffect)(()=>{if(!f||!b)return;let n=(0,u.registerThreadOpenerRouteLease)(c,f,e,t);return()=>(0,u.releaseThreadOpenerRouteLease)(n)},[t,f,c,b,e]),(0,r.useLayoutEffect)(()=>{if(f&&b&&(!y||"terminal-error"===o||"ready"===o&&!x)){(0,u.terminateThreadOpenerReservationHandoff)(c,f),v();return}},[x,v,o,f,c,b,y]),b&&x&&g?g:null}],31163)},523264,e=>{"use strict";var t=e.i(1087);let n={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};n.node;let a=(0,t.default)(n);e.s(["Shield",0,a],523264)},739475,414297,e=>{"use strict";var t=e.i(1087);let n={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};n.node;let a=(0,t.default)(n);e.s(["Sun",0,a],739475);let r={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};r.node;let i=(0,t.default)(r);e.s(["Moon",0,i],414297)},696166,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return u}};for(var r in a)Object.defineProperty(n,r,{enumerable:!0,get:a[r]});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return o?new o:new s}function c(e){return o?o.bind(e):s.bind(e)}function u(){return o?o.snapshot():function(e,...t){return e(...t)}}},402724,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,e.r(696166).createAsyncLocalStorage)()},103679,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=e.r(402724)},562975,(e,t,n)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return a}})},116916,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let a=e.r(184748);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},674789,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let a=e.r(237649),r=e.r(382416),i=e.r(116916),s=e.r(984862);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},n=(0,r.lazy)(()=>t.loader().then(o)),c=t.loading;function u(e){let o=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,u=l?r.Suspense:r.Fragment,d=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(n,{...e})]}):(0,a.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(n,{...e})});return(0,a.jsx)(u,{...l?{fallback:o}:{},children:d})}return u.displayName="LoadableComponent",u}},719728,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let a=e.r(836437)._(e.r(674789));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,a.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},984862,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return l}});let a=e.r(237649),r=e.r(929554),i=e.r(103679),s=e.r(562975),o=e.r(253332);function l({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;n.push(...e)}}if(0===n.length)return null;let c=(0,o.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},200069,e=>{"use strict";var t=e.i(237649),n=e.i(382416),a=e.i(290139),r=e.i(695230),i=e.i(557922),s=e.i(159514),o=e.i(777104),l=e.i(561261),c=e.i(374402),u=e.i(474707),d=e.i(152845),m=e.i(514649),h=e.i(343699);function p(e){return e.state.isPaused}function f(e){return"success"===e.state.status}let g=["added","removed","updated"];function v(e){return g.includes(e)}async function y({queryClient:e,persister:t,maxAge:n=864e5,buster:a="",hydrateOptions:r}){try{let s=await t.restoreClient();if(s)if(!s.timestamp)return t.removeClient();else{var i;let o,l,c,u=Date.now()-s.timestamp>n,d=s.buster!==a;if(u||d)return t.removeClient();i=s.clientState,o=e.getMutationCache(),l=e.getQueryCache(),c=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData,i.mutations?.forEach(({state:t,...n})=>{o.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...n},t)}),i.queries?.forEach(({queryKey:t,state:n,queryHash:a,meta:i,promise:s,dehydratedAt:o,queryType:u})=>{let d=s?function(e){let t;if(e.then(e=>(t=e,e),h.noop)?.catch?.(h.noop),void 0!==t)return{data:t}}(s):void 0,m=void 0===n.data?d?.data:n.data,p=void 0===m?m:c?c(m):m,f=l.get(a),g=f?.state.status==="pending",v=f?.state.fetchStatus==="fetching";if(f){let e=d&&o>f.state.dataUpdatedAt;if(n.dataUpdatedAt>f.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=n;f.setState({...t,data:p,..."pending"===n.status&&void 0!==p&&{status:"success",dataUpdatedAt:o,...!v&&{fetchStatus:"idle"}}})}}else f=l.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:a,meta:i,_type:u},{...n,data:p,fetchStatus:"idle",status:"pending"===n.status&&void 0!==p?"success":n.status,..."pending"===n.status&&void 0!==p&&{dataUpdatedAt:o}});!s||d||g||v||!(o>f.state.dataUpdatedAt)||f.fetch(void 0,{initialPromise:Promise.resolve(s).then(c)}).catch(h.noop)})}}catch(e){throw await t.removeClient(),e}}async function b({queryClient:e,persister:t,buster:n="",dehydrateOptions:a}){let r={buster:n,timestamp:Date.now(),clientState:function(e,t={}){let n=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??p,a=e.getMutationCache().getAll().flatMap(e=>n(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),r=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??f,i=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors,s=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData;return{mutations:a,queries:e.getQueryCache().getAll().flatMap(e=>{let t;return r(e)?[{dehydratedAt:Date.now(),state:{...e.state,...void 0!==e.state.data&&{data:s?s(e.state.data):e.state.data}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:(t=e.promise?.then(s).catch(e=>i?.(e)===!1?Promise.reject(e):Promise.reject(Error("redacted"))),t?.catch(h.noop),t)},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}]:[]})}}(e,a)};await t.persistClient(r)}let x=({children:e,persistOptions:a,onSuccess:r,onError:i,...o})=>{let[l,c]=n.useState(!0),u=n.useRef({persistOptions:a,onSuccess:r,onError:i}),d=n.useRef(!1);return n.useEffect(()=>{u.current={persistOptions:a,onSuccess:r,onError:i}}),n.useEffect(()=>{let e,t,n={...u.current.persistOptions,queryClient:o.client};return d.current||(d.current=!0,y(n).then(()=>u.current.onSuccess?.()).catch(()=>u.current.onError?.()).finally(()=>{c(!1)})),l?void 0:(e=n.queryClient.getQueryCache().subscribe(e=>{v(e.type)&&b(n)}),t=n.queryClient.getMutationCache().subscribe(e=>{v(e.type)&&b(n)}),()=>{e(),t()})},[o.client,l]),(0,t.jsx)(s.QueryClientProvider,{...o,children:(0,t.jsx)(m.IsRestoringProvider,{value:l,children:e})})};var w=e.i(583262),C=e.i(636557),k=e.i(423360),S=e.i(526822),j=e.i(919391),I=e.i(177519),A=e.i(152961),P=e.i(23055),E=e.i(556125),R=e.i(204779),M=e.i(86694),N=e.i(323512),T=e.i(279389),O=e.i(334016),D=e.i(645980);function L(){let e;return{ready:new Promise(t=>{e=t}),release:e}}function _({children:e,onRestoreComplete:a,queryClient:i,registry:s}){let o=(0,m.useIsRestoring)(),l=(0,n.useRef)(null);return(0,n.useEffect)(()=>{null!==l.current&&(clearTimeout(l.current),l.current=null);let e=(0,r.registerCommunityDbRegistry)(s);return()=>{l.current=setTimeout(()=>{l.current=null,e(),i.cancelQueries().catch(e=>{(0,C.isAbortError)(e)||console.error("Community query cancellation failed",e)}),(0,j.disposeReadCoordinator)(i),(0,S.disposeAccountReadStateReconciliation)(i),(0,I.disposeAccountUnreadProjection)(i),s.cleanup().finally(()=>i.clear()).catch(e=>{(0,C.isAbortError)(e)||console.error("Community collection cleanup failed",e)})},0)}},[i,s]),(0,n.useLayoutEffect)(()=>{if(!o)return a(),(0,N.installCommunityDbSync)(i,s)},[o,a,i,s]),(0,t.jsx)(M.CommunityDbProvider,{registry:s,children:e})}function U(e){let n=(0,P.useSession)();return(0,t.jsx)(z,{...e,session:n,sessionViewer:P.currentSessionViewer},e.userId??"anon")}function z({children:e,userId:i,initialUser:s,session:o,sessionViewer:l}){let[u]=(0,n.useState)(()=>{let e=(0,w.createQueryClient)();return s&&s.id===i&&e.setQueryData(c.communityKeys.communityDbCollection(i,"profiles"),[T.profileSchema.parse({userId:i,name:s.name,discriminator:s.discriminator??"",avatar:s.avatar,avatarVersion:s.avatarVersion??0,aboutMe:s.aboutMe,statusEmoji:s.statusEmoji,statusText:s.statusText})],{updatedAt:0}),e}),[d]=(0,n.useState)(L),[m]=(0,n.useState)(()=>(0,r.createCommunityDbRegistry)(u,i,{waitForRestore:d.ready})),h=(0,n.useMemo)(()=>i?(0,I.getAccountUnreadProjection)(u,i):null,[u,i]);(0,n.useEffect)(()=>{if(h)return h.setReconcileScheduler(()=>{u.invalidateQueries({queryKey:c.communityKeys.inboxUnreads(),exact:!0}),u.invalidateQueries({queryKey:c.communityKeys.inboxMentions(),exact:!0}),u.invalidateQueries({queryKey:c.communityKeys.dms(),exact:!0}),u.invalidateQueries({queryKey:c.communityKeys.servers(),exact:!0}),u.invalidateQueries({predicate:({queryKey:e})=>(0,c.isCommunityServerDetailQueryKey)(e)})}),()=>h.setReconcileScheduler(null)},[u,h]);let[p]=(0,n.useState)(()=>(0,k.createIdbPersister)(i)),f=(0,A.useSelector)(m.runtime.lifecycle,e=>e.active),g=(0,a.useRouter)();(0,n.useLayoutEffect)(()=>{m.bindAuthentication(l,p.retireAccount,p.retireChannels)},[m,l,p]);let v=(0,n.useRef)(()=>void 0);(0,n.useLayoutEffect)(()=>{(0,D.setTelemetryUser)(i),v.current=(0,D.captureTelemetryIdentityRetirement)()},[i]);let y=(0,n.useRef)(!1),b=!o.isPending&&!o.error&&o.data?.user.id!==i;(0,n.useLayoutEffect)(()=>(m.authenticationView.setState(e=>({...e,active:!0})),()=>{m.authenticationView.setState(e=>({active:!1,generation:e.generation+1}));let e=m.sessionViewer();void 0!==e&&e!==m.accountId&&((0,R.retireCommunityAccount)(m),d.release(),m.retireDisk().catch(()=>void 0))}),[m,d]),(0,n.useLayoutEffect)(()=>{!b||(o.data?.user.id||l?.()!==null||v.current(),y.current||(y.current=!0,d.release(),(0,R.retireCommunityAccount)(m),m.retireDisk().catch(()=>void 0),o.data?.user.id?g.refresh():g.replace("/sign-in")))},[m,b,d,g,o.data?.user.id,l,i]);let C=(0,n.useCallback)(()=>{m.runtime.lifecycle.get().active&&((0,R.retireCommunityAccount)(m),window.location.reload())},[m]);(0,E.usePersistedAccountLifecycle)(p,C);let S=()=>{(d.release(),m.runtime.lifecycle.get().active)?(m.captureRestoredCollections(),m.runtime.ws.get().profileViewerId!==i&&m.runtime.ws.actions.activateProfileAccount(i)):u.clear()};return(0,t.jsx)(x,{client:u,onSuccess:()=>{m.runtime.lifecycle.get().active?(0,O.observeHydration)(p,u):(0,O.discardHydration)(p),S(),m.runtime.lifecycle.get().active&&Promise.all([u.invalidateQueries({queryKey:c.communityKeys.servers(),exact:!0,refetchType:"active"}),u.invalidateQueries({queryKey:c.communityKeys.folders(),exact:!0,refetchType:"active"}),u.invalidateQueries({queryKey:c.communityKeys.dms(),exact:!0,refetchType:"active"}),u.invalidateQueries({predicate:({queryKey:e})=>(0,c.isCommunityServerDetailQueryKey)(e),refetchType:"active"})])},onError:()=>{(0,O.discardHydration)(p),S()},persistOptions:{persister:p,maxAge:k.PERSIST_MAX_AGE_MS,buster:k.PERSIST_BUSTER,dehydrateOptions:{shouldDehydrateQuery:e=>"success"===e.state.status&&(0,k.shouldPersistQuery)(e.queryKey,e.state.data)}},children:f&&!b?(0,t.jsxs)(_,{onRestoreComplete:d.release,queryClient:u,registry:m,children:[e,null]}):null})}var F=e.i(183899),K=e.i(956832),q=e.i(718877),B=e.i(130826),H=e.i(50271),$=e.i(115870),Q=e.i(239706);function V(){return(0,n.useEffect)(()=>{(0,$.perfTraceEnabled)()&&(0,Q.installReactScan)().catch(()=>{})},[]),null}var W=e.i(923750),Y=e.i(362790),G=e.i(601688),X=e.i(193497),J=e.i(51201),Z=e.i(344920),ee=e.i(366020),et=e.i(597574),en=e.i(1087);let ea={name:"briefcase-business",size:24,node:[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};ea.node;let er=(0,en.default)(ea),ei={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};ei.node;let es=(0,en.default)(ei);var eo=e.i(799518),eo=eo;let el={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};el.node;let ec=(0,en.default)(el),eu=[{value:"claude",label:"Claude Code",provider:"claude"},{value:"codex",label:"Codex",provider:"codex"},{value:"grok",label:"Grok Build",provider:"grok"},{value:"cursor",label:"Cursor",provider:"cursor"},{value:"opencode",label:"OpenCode",provider:"opencode"},{value:"pi",label:"Pi",provider:"pi"}],ed=[{value:"office",label:"Work",icon:er,accentKey:"work"},{value:"developer",label:"Software development",icon:es,accentKey:"code"},{value:"founder",label:"Building a company",icon:ec,accentKey:"rocket"},{value:"home",label:"Home and family",icon:eo.default,accentKey:"coral"}];var em=e.i(174629),eh=e.i(381153),ep=e.i(60115),ef=e.i(490367);function eg(){let e=(0,u.useCommunityRuntime)(),r=(0,a.usePathname)(),i=(0,F.useCurrentUser)(),m=(0,ee.useCommunityOnboarding)(),h=(0,s.useQueryClient)(),p=(0,X.useCommunityMutationOrigin)(),f=JSON.stringify([m?.machineId,m?.harness,m?.identity]),g=(0,J.useCommunityViewSource)(`onboarding:${f}`,m?.stage==="initializing"),[v,y]=(0,o.useAtom)((0,l.useCreateAtom)("")),[b,x]=(0,o.useAtom)((0,l.useCreateAtom)("")),[w,C]=(0,o.useAtom)((0,l.useCreateAtom)("")),k=["community","onboarding-initialization",f],S=(0,G.useMutationState)({filters:{mutationKey:k,status:"pending"},select:e=>e.mutationId}),j=(0,Y.useMutation)({meta:{observabilityAction:"community.onboarding.initialize"},mutationKey:k,scope:{id:JSON.stringify(k)},mutationFn:async({token:t,profileSnapshot:n,assert:a,input:r})=>{a();let i=(0,ee.readCommunityOnboardingState)(e),s=await (0,em.initializeCommunityOnboarding)({...r,checkpoint:i?.initialization?.checkpoint,onCheckpoint:t=>{a(),(0,ee.updateCommunityOnboardingInitialization)(e,e=>({...e,checkpoint:t}))},onProgress:t=>{a(),(0,ee.updateCommunityOnboardingInitialization)(e,e=>({...e,step:t}))},services:{assert:a,request:(e,n)=>p.request(t,e,{...n,signal:a.signal,assertActive:a}),publishBot:(e,t)=>{a(),(0,d.writeCommunityProfilePatches)([{id:e.id,identityAbout:{name:e.name??t.name,discriminator:e.discriminator,kind:"bot"},avatar:{avatar:e.image??t.image,avatarVersion:e.avatarVersion}}],p.registry,{snapshot:n})},resolveBot:e=>p.registry?.collections.profiles.get(e),readChannels:async e=>{a(),await h.invalidateQueries({queryKey:c.communityKeys.servers(),exact:!0}),a();let t={queryKey:c.communityKeys.server(e),queryFn:({signal:t})=>(0,Z.serverProjectedQueryFn)(h,e,t)(),staleTime:0},n=new W.QueryObserver(h,{...t,enabled:!1}).subscribe(()=>void 0);a.signal.addEventListener("abort",n,{once:!0});try{return a(),await h.query({...t,select:void 0}),a(),[...p.registry.collections.channels.values()].filter(t=>t.serverId===e&&!t.parentChannelId).map(({id:e,name:t,type:n,categoryId:a})=>({id:e,name:t,type:n,categoryId:a??null}))}finally{a.signal.removeEventListener("abort",n),n()}}}});return a(),(0,ee.updateCommunityOnboardingInitialization)(e,e=>({...e,result:s})),await h.invalidateQueries({queryKey:c.communityKeys.bots(),exact:!0}),p.assert(t),s}}),I=m?.initialization,A=I?.checkpoint??{},P=I?.step??"creating-bots",E=I?.result??null,R=j.variables?.assert.signal===g.signal?j.error:null,M=R instanceof Error?R.message:"We couldn’t finish setting up your room.",N=E?"success":S.length?"loading":R&&!(R instanceof DOMException&&"AbortError"===R.name)?"error":"idle";(0,n.useEffect)(()=>{let t=I?.pendingDestination;t&&r===t&&(0,ee.completeCommunityOnboarding)(e)},[r,I?.pendingDestination,e]);let T=j.mutateAsync,O=(0,n.useCallback)(async()=>{if(S.length||m?.stage!=="initializing"||!m.machineId||!m.harness||!m.identity)return;let e=p.begin(),t=g.capture();t();try{await T({...e,assert:t,input:{machineId:m.machineId,runtime:m.harness,identity:m.identity,userName:i.name,userDiscriminator:i.discriminator}})}catch{}},[S.length,m,p,g,T,i.name,i.discriminator]);if((0,n.useEffect)(()=>{m?.stage==="initializing"&&"idle"===N&&O()},[N,f,m?.stage,g.signal,O]),!m)return null;if("harness"===m.stage)return(0,t.jsx)(ep.OnboardingSelectDialog,{open:!0,onOpenChange:()=>void 0,step:{current:1,total:3},stepLabel:"Your harness",title:"Which harness do you already use?",description:"Pick the setup that already runs your bots.",options:[...eu],value:v,onValueChange:y,submitLabel:"Continue",onSubmit:t=>{(0,ee.advanceCommunityOnboarding)(e,"harness","machine",{harness:t})},testId:eh.tid.onboardingHarnessDialog,optionTestId:eh.tid.onboardingHarnessOption});if("machine"===m.stage){var D;return(0,t.jsx)(et.OnboardingMachineDialog,{open:!0,harness:m.harness??"",harnessLabel:(D=m.harness,eu.find(e=>e.value===D)?.label??"your harness"),onConnected:t=>{(0,ee.advanceCommunityOnboarding)(e,"machine","identity",{machineId:t})},onChooseAnotherHarness:()=>{y(""),(0,ee.recoverCommunityOnboardingHarness)(e)},onManageMachines:()=>{(0,ee.skipCommunityOnboarding)(e)}})}return"identity"===m.stage?(0,t.jsx)(ep.OnboardingSelectDialog,{open:!0,onOpenChange:()=>void 0,step:{current:3,total:3},stepLabel:"About you",title:"Which best describes you?",description:"We’ll shape the room around your work.",options:[...ed],value:b,onValueChange:x,customOption:{value:"custom",label:"Something else",placeholder:"Your role"},customValue:w,onCustomValueChange:C,submitLabel:"Finish setup",onSubmit:t=>{(0,ee.advanceCommunityOnboarding)(e,"identity","initializing",{identity:t})},testId:eh.tid.onboardingIdentityDialog,optionTestId:eh.tid.onboardingIdentityOption}):"initializing"===m.stage?(0,t.jsx)(ef.OnboardingStatusDialog,{status:"idle"===N?"loading":N,currentStep:P,checkpoint:A,detail:"error"===N?M:"success"===N?`${E?.bots.length??0} bots are in your room and ready to work.`:"Follow along as your room comes together.",onRetry:()=>void O(),onContinue:()=>{if(!E)return;let t=`/c/channels/${E.serverId}/${E.publicChannelId}`,n=e.ui.get().uiHandlers.navigate;n&&(g.capture()(),(0,ee.updateCommunityOnboardingInitialization)(e,e=>({...e,pendingDestination:t})),n(E.serverId,E.publicChannelId))}}):null}let ev={name:"wifi-off",size:24,node:[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};ev.node;let ey=(0,en.default)(ev);var eb=e.i(186339),ex=e.i(381338);function ew({children:e}){let n=(0,ex.useCommunityWsStore)(e=>e.connectionStatus),a=(0,ex.useCommunityWsStore)(e=>e.reconnectNow);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"contents",children:e}),"failed"===n&&(0,t.jsxs)("div",{role:"status","aria-live":"polite","aria-atomic":"true","data-testid":eh.tid.wsReconnectOverlay,"data-ws-status":n,className:"fixed bottom-4 right-4 z-50 flex max-w-xs items-center gap-3 rounded-lg border bg-popover p-3 text-popover-foreground shadow-(--e2)",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"grid size-9 shrink-0 place-items-center rounded-md bg-warning/10 text-warning",children:(0,t.jsx)(ey,{className:"size-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"font-heading text-sm font-medium",children:"Connection lost"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Cached content is still available."})]}),(0,t.jsx)(eb.Button,{type:"button",variant:"secondary","data-testid":eh.tid.wsRetry,onClick:a,className:"h-11 shrink-0 sm:h-9",children:"Retry"})]})]})}var eC=e.i(506607),ek=e.i(622435),eS=e.i(636686),ej=e.i(312462);function eI(){let e=(0,a.usePathname)(),t=(0,a.useRouter)(),r=(0,F.useCurrentUser)(),i=(0,s.useQueryClient)(),o=(0,Z.useServers)(),l=(0,ek.communityServerId)(e),c=(0,A.useSelector)((0,u.getCommunityRuntime)(i).serverEject,e=>!!l&&e.flushedServerIds.has(l));return(0,n.useEffect)(()=>{l&&c&&(0,eS.runAuthoritativeServerEject)({serverId:l,servers:o.servers,isSuccess:o.isSuccess,isFetching:o.isFetching,consumeVoluntaryLeave:e=>(0,eS.consumeVoluntaryLeave)(i,e),clearLastChannel:ej.clearLastChannel,toast:eC.toast,accountId:r.id,routeHref:e,replace:e=>t.replace(e)})},[c,r.id,e,i,t,l,o.servers,o.isSuccess,o.isFetching]),null}function eA({children:e}){let t=(0,m.useIsRestoring)(),a=(0,M.useOptionalCommunityDbRegistry)(),r=(0,n.useRef)(!1);return(0,n.useLayoutEffect)(()=>{if(t&&!r.current){r.current=!0,performance.mark("alook:restore:start");return}if(t||!r.current)return;performance.mark("alook:restore:complete"),a?.hasRestoredData()===!0&&performance.mark("alook:restore:first-cached-paint");let e=requestAnimationFrame(()=>performance.mark("alook:restore:stable"));return()=>cancelAnimationFrame(e)},[a,t]),e}var eP=e.i(215932);function eE({currentUser:e,children:n}){return(0,t.jsx)(U,{userId:e.id,initialUser:e,children:(0,t.jsx)(eA,{children:(0,t.jsx)(eR,{viewerId:e.id,children:(0,t.jsx)(F.CurrentUserProvider,{initialUser:e,children:(0,t.jsx)(eM,{children:n})})})})})}function eR({children:e,viewerId:r}){let i=(0,u.useCommunityRuntime)(),[s,c]=(0,o.useAtom)((0,l.useCreateAtom)(!1)),d=(0,ex.useCommunityWsStore)(e=>e.profileViewerId),m=(0,a.usePathname)();return(0,n.useLayoutEffect)(()=>{d!==r&&i.ws.actions.activateProfileAccount(r),c(!0)},[d,i.ws.actions,c,r]),s&&d===r?e:(0,t.jsx)(eP.CommunitySessionPendingFrame,{pathname:m})}function eM({children:e}){let n=(0,s.useQueryClient)(),a=(0,F.useCurrentUser)();(0,q.useNotificationSettings)(),(0,H.useAccountAttention)(),(0,B.useNativeSystemNotifications)(a.id),(0,K.useCommunityWs)({viewerUserId:a.id});let o=(0,r.getCommunityDbRegistry)(n);return(0,i.useQuery)({queryKey:c.communityKeys.selfProfile(),queryFn:async({signal:e})=>({id:(await (0,d.apiFetchProfiles)("/api/community/users/me/profile",e=>[{id:e.id,identityAbout:{name:e.name,discriminator:e.discriminator,aboutMe:e.aboutMe},avatar:{avatar:e.avatar,avatarVersion:e.avatarVersion},status:{statusEmoji:e.statusEmoji,statusText:e.statusText}}],{signal:e},o)).id}),enabled:o?.accountId===a.id,staleTime:3e5}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V,{}),(0,t.jsxs)(ew,{children:[(0,t.jsx)(eI,{}),(0,t.jsx)(eg,{}),e]})]})}var eN=e.i(932135),eT=e.i(996718),eO=e.i(729979),eD=e.i(164237),eL=e.i(250569),e_=e.i(800989),eU=e.i(274762),ez=e.i(804),eF=e.i(294656),eK=e.i(779646),eq=e.i(392965),eB=e.i(561668),eH=e.i(328076),e$=e.i(849050);let eQ={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};eQ.node;let eV=(0,en.default)(eQ);var eW=e.i(272090);let eY={name:"palette",size:24,node:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]};eY.node;let eG=(0,en.default)(eY);var eX=e.i(739475),eJ=e.i(414297),eZ=e.i(48920);let e0={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};e0.node;let e1=(0,en.default)(e0);var e2=e.i(928765),e4=e.i(523264);let e5={name:"credit-card",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}],["path",{d:"M6 14h2",key:"mk7k0u"}]]};e5.node;let e9=(0,en.default)(e5);var e6=e.i(518071),e7=e.i(520582),e3=e.i(393153),e8=e.i(613349),te=e.i(58231);let tt="September 17, 2026",tn="underline decoration-foreground/30 underline-offset-3 transition-colors hover:decoration-foreground/60";function ta({className:e}){return(0,t.jsxs)("div",{className:(0,e8.cn)(e),"data-privacy-policy":tt,children:[(0,t.jsxs)("p",{className:"mb-12 text-sm text-muted-foreground",children:["Last updated: ",tt]}),(0,t.jsxs)("div",{className:"prose prose-neutral max-w-none space-y-8 text-[1.0625rem] leading-relaxed dark:prose-invert",children:[(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Interpretation and Definitions"}),(0,t.jsxs)("p",{className:"text-foreground/80",children:['In this Privacy Policy, "Company" (referred to as "We", "Us", or "Our") refers to Alook AI. "Service" refers to the Alook platform accessible at'," ",(0,t.jsx)("a",{href:"https://alook.ai",className:tn,children:"alook.ai"}),'. "You" means the individual accessing or using our Service. "Personal Data" is any information that relates to an identified or identifiable individual.']})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Collecting and Using Your Personal Data"}),(0,t.jsx)("h3",{className:"mt-8 mb-3 text-lg font-medium",children:"Types of Data Collected"}),(0,t.jsx)("h4",{className:"mt-6 mb-2 text-base font-medium",children:"Personal Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"While using Our Service, We may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You, including but not limited to:"}),(0,t.jsxs)("ul",{className:"mt-3 list-disc space-y-2 pl-6 text-foreground/80",children:[(0,t.jsx)("li",{children:"Email address"}),(0,t.jsx)("li",{children:"Name"}),(0,t.jsx)("li",{children:"Usage data"})]}),(0,t.jsx)("h4",{className:"mt-6 mb-2 text-base font-medium",children:"Usage Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"Necessary diagnostic data may be processed to keep the Service secure and reliable. Optional analytics, such as the pages You visit and how You interact with product features, is collected only after You choose to allow analytics in this browser."}),(0,t.jsx)("h4",{className:"mt-6 mb-2 text-base font-medium",children:"Information from Third-Party Social Login"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"Alook allows You to create an account and log in through third-party services including Google and GitHub. If You decide to register through or grant us access to a third-party service, We may collect Personal Data already associated with Your account, such as Your name and email address."}),(0,t.jsx)("h4",{className:"mt-6 mb-2 text-base font-medium",children:"Tracking Technologies and Cookies"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"We use necessary cookies to provide sign-in, security, and saved preferences. We use optional analytics cookies only after You allow them. Your analytics choice is saved in a first-party cookie for 180 days and can be changed using the preference control below at any time. Choosing only necessary cookies keeps Google Tag Manager and optional analytics disabled."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Use of Your Personal Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"We may use Your Personal Data for the following purposes:"}),(0,t.jsxs)("ul",{className:"mt-3 list-disc space-y-2 pl-6 text-foreground/80",children:[(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"To provide and maintain our Service"}),", including processing and delivering AI agent tasks on your behalf."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"To manage Your Account"})," and provide You with access to functionalities of the Service available to registered users."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"To contact You"})," by email or other equivalent forms of electronic communication regarding updates or informative communications related to the Service."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"To manage Your requests"})," and attend to any requests You make to Us."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"For business transfers"})," in connection with any merger, sale of company assets, financing, or acquisition of all or a portion of Our business."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"For other purposes"})," such as data analysis, identifying usage trends, and improving our Service."]})]})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Sharing Your Personal Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"We may share Your personal information in the following situations:"}),(0,t.jsxs)("ul",{className:"mt-3 list-disc space-y-2 pl-6 text-foreground/80",children:[(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"With Service Providers:"})," We share data with third-party AI model providers to power agent capabilities. Data sent to these providers is governed by their respective privacy policies. We minimize the data shared and only send what is necessary to fulfill Your requests."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"For business transfers:"})," In connection with a merger, acquisition, or asset sale, Your Personal Data may be transferred."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"With Your consent:"})," We may disclose Your personal information for any other purpose with Your consent."]})]}),(0,t.jsx)("p",{className:"mt-4 text-foreground/80",children:"We do not sell Your Personal Data to third parties."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Retention of Your Personal Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"We will retain Your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use Your data to the extent necessary to comply with our legal obligations, resolve disputes, and enforce our agreements."}),(0,t.jsx)("p",{className:"mt-4 text-foreground/80",children:"Usage Data is generally retained for a shorter period of time, except when it is used to strengthen security or improve the functionality of Our Service."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Security of Your Personal Data"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"The security of Your Personal Data is important to Us. Your data is stored securely using industry-standard encryption. Agent workspaces are isolated per user. However, no method of transmission over the Internet or method of electronic storage is 100% secure. While We strive to use commercially acceptable means to protect Your Personal Data, We cannot guarantee its absolute security."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Children's Privacy"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"Our Service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from anyone under the age of 13. If You are a parent or guardian and You are aware that Your child has provided Us with Personal Data, please contact Us. If We become aware that We have collected Personal Data from anyone under the age of 13 without verification of parental consent, We will take steps to remove that information."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Your Data Rights"}),(0,t.jsx)("p",{className:"text-foreground/80",children:"You have the right to access, update, or delete Your Personal Data at any time. You can manage certain information through Your Account settings, or contact Us directly to request assistance with these actions."})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Changes to This Privacy Policy"}),(0,t.jsx)("p",{className:"text-foreground/80",children:'We may update Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page and updating the "Last updated" date at the top. You are advised to review this Privacy Policy periodically for any changes.'})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"mt-10 mb-4 text-xl font-semibold",children:"Contact Us"}),(0,t.jsxs)("p",{className:"text-foreground/80",children:["If you have any questions about this Privacy Policy, You can contact us at"," ",(0,t.jsx)("a",{href:"mailto:support@alook.ai",className:tn,children:"support@alook.ai"}),"."]})]})]}),(0,t.jsx)("div",{className:"mt-12",children:(0,t.jsx)(te.AnalyticsPreferenceControl,{})})]})}var tr=e.i(531342);function ti({label:e,children:n}){return(0,t.jsxs)("fieldset",{className:"min-w-0",children:[(0,t.jsx)("legend",{className:"mb-1.5 text-xs text-muted-foreground",children:e}),n]})}var ts=e.i(751041),to=e.i(228918),tl=e.i(527668),tc=e.i(109762),tu=e.i(690887),td=e.i(791978);let tm={name:"mail-warning",size:24,node:[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]};tm.node;let th=(0,en.default)(tm);var tp=e.i(783524),tf=e.i(182149),tg=e.i(577992);async function tv(e){try{switch((await e.json()).error){case"INVALID_OTP":return"That code is incorrect. Try again.";case"OTP_EXPIRED":return"That code expired. Send a new code.";case"TOO_MANY_ATTEMPTS":return"Too many incorrect attempts. Send a new code.";case"RATE_LIMITED":return"Too many requests. Try again when the timer ends.";case"CODE_SEND_FAILED":return"We couldn’t send the code. Try again.";case"ACCOUNT_DELETION_FAILED":return"Your account wasn’t deleted. Try again."}}catch{}return"Something went wrong. Try again."}function ty({email:e,onCancel:a,onDeleted:i}){let[c,u]=(0,o.useAtom)((0,l.useCreateAtom)("notice")),[d,m]=(0,o.useAtom)((0,l.useCreateAtom)("")),[h,p]=(0,o.useAtom)((0,l.useCreateAtom)(0)),[f,g]=(0,o.useAtom)((0,l.useCreateAtom)("")),v=(0,n.useRef)(null),y=(0,n.useRef)(null),b=(0,n.useRef)(null);(0,n.useEffect)(()=>{"code"===c?y.current?.focus():v.current?.focus()},[c]),(0,n.useEffect)(()=>{f&&("code"===c?y.current?.focus():b.current?.focus())},[f,c]),(0,n.useEffect)(()=>{if(h<=0)return;let e=window.setTimeout(()=>{p(e=>Math.max(0,e-1))},1e3);return()=>window.clearTimeout(e)},[h,p]);let x=(0,s.useQueryClient)(),w=(0,r.getCommunityDbRegistry)(x),S=(0,eH.useCreateStore)({active:!0,generation:0}),j=(0,n.useRef)(!1),I=(0,n.useRef)(void 0);(0,n.useLayoutEffect)(()=>(S.setState(e=>({...e,active:!0})),()=>{S.setState(e=>({active:!1,generation:e.generation+1})),!j.current&&I.current&&(0,e$.cancelAccountDeletionAuthTransition)(I.current)}),[S]);let A=()=>{if(!w)throw new DOMException("Missing deletion account","AbortError");let e=(0,N.captureCommunityLiveSnapshotToken)(x),t=S.get().generation,n=new AbortController,a=()=>{(0,N.assertCommunityLiveSnapshotTokenCurrent)(x,e,n.signal);let a=S.get();if(!a.active||a.generation!==t)throw new DOMException("Retired deletion view","AbortError")};a();let r=()=>{try{a()}catch{n.abort()}},i=S.subscribe(r),s=w.runtime.lifecycle.subscribe(r);return{registry:w,generation:t,controller:n,assertActive:a,options:(0,R.communityRequestOptions)(x,e,n.signal,a),release:()=>{i.unsubscribe(),s.unsubscribe()}}},P=(0,Y.useMutation)({meta:{observabilityAction:"account.deletion.command"},mutationFn:async({action:e,body:t,source:n})=>{n.assertActive();let a=await fetch(`/api/community/users/me/account-deletion${"code"===e?"/code":""}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:t,signal:n.controller.signal});return"code"!==e&&a.ok||n.assertActive(),a}}),E=P.isPending&&P.variables?.action==="code",M=P.isPending&&P.variables?.action==="delete",T=async()=>{let e=A();g("");try{let t=await P.mutateAsync({action:"code",body:"{}",source:e});if(e.assertActive(),401===t.status){await e.options.onUnauthorized?.()&&(0,e$.redirectToSignIn)(e.registry.accountId);return}if(!t.ok){let n=429===t.status?(0,tg.parseRetryAfterSeconds)(t.headers):null,a=await tv(t);e.assertActive(),n&&p(n),g(a);return}let n=await t.json();e.assertActive(),m(""),p(n.resend_after),u("code")}catch(t){if((0,C.isAbortError)(t))return;try{e.assertActive()}catch{return}g("We couldn’t send the code. Check your connection and try again.")}finally{e.release()}},O=async()=>{if(!/^\d{6}$/u.test(d))return;let e=A(),t=e.registry.authenticationView.get().generation,n=()=>{let n=e.registry.sessionViewer();return e.registry.authenticationView.get().active&&e.registry.authenticationView.get().generation===t&&(null==n||n===e.registry.accountId)};g("");let a=(0,e$.beginAccountDeletionAuthTransition)(e.registry.accountId);I.current=a;try{let t=await P.mutateAsync({action:"delete",body:JSON.stringify({otp:d}),source:e});if(!t.ok){let n=await tv(t);e.assertActive(),(0,e$.cancelAccountDeletionAuthTransition)(a),I.current=void 0,m(""),g(n);return}let r=!0;try{e.assertActive()}catch{r=!1}if(j.current=!0,(0,R.retireCommunityAccount)(e.registry),await (0,k.clearPersistedCache)(e.registry.accountId).catch(()=>void 0),!r||!n()){(0,e$.cancelAccountDeletionAuthTransition)(a),I.current=void 0;return}try{await i()}catch{}n()&&globalThis.location.replace(e$.ACCOUNT_DELETED_SIGN_IN_PATH)}catch(t){if((0,e$.cancelAccountDeletionAuthTransition)(a),I.current=void 0,(0,C.isAbortError)(t))return;try{e.assertActive()}catch{return}m(""),g("Your account wasn’t deleted. Check your connection and try again.")}finally{e.release()}};return(0,t.jsx)("div",{className:"mx-auto w-full max-w-md animate-in fade-in duration-150 motion-reduce:animate-none","data-testid":eh.tid.accountDeletionFlow,children:"notice"===c?(0,t.jsxs)("section",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("span",{className:"flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:(0,t.jsx)(tp.Trash2,{className:"size-5"})}),(0,t.jsx)("h2",{ref:v,tabIndex:-1,className:"text-xl font-medium tracking-tight outline-none",children:"Delete your account?"}),(0,t.jsx)("p",{className:"text-sm leading-6 text-muted-foreground",children:"Your profile, messages, agents, and account data will be permanently removed."}),(0,t.jsx)("p",{className:"text-sm font-medium",children:"This can’t be undone."})]}),(0,t.jsxs)("div",{className:"rounded-xl bg-muted/60 p-4",children:[(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Deletion code will be sent to"}),(0,t.jsx)("div",{className:"mt-1 break-all text-sm font-medium",children:e})]}),f?(0,t.jsx)("p",{ref:b,tabIndex:-1,role:"alert",className:"text-sm text-destructive outline-none",children:f}):null,(0,t.jsxs)("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[(0,t.jsx)(eb.Button,{variant:"ghost",className:"h-11 sm:h-9",onClick:a,disabled:E,children:"Cancel"}),(0,t.jsx)(eb.Button,{className:"h-11 sm:h-9",onClick:T,disabled:E||h>0,"data-testid":eh.tid.accountDeletionSendCode,children:E?"Sending code…":h>0?`Send deletion code in ${h}s`:"Send deletion code"})]})]}):(0,t.jsxs)("section",{className:"space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("span",{className:"flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive",children:(0,t.jsx)(th,{className:"size-5"})}),(0,t.jsx)("h2",{ref:v,tabIndex:-1,className:"text-xl font-medium tracking-tight outline-none",children:"Enter deletion code"}),(0,t.jsxs)("p",{className:"text-sm leading-6 text-muted-foreground",children:["We sent a 6-digit code to ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:e}),"."]})]}),(0,t.jsx)(tf.InputOTP,{ref:y,value:d,onChange:e=>{m(e),g("")},maxLength:6,autoFocus:!0,disabled:M,"aria-label":"Deletion code","aria-invalid":!!f,containerClassName:"justify-center sm:justify-start","data-testid":eh.tid.accountDeletionOtp,children:(0,t.jsx)(tf.InputOTPGroup,{children:Array.from({length:6},(e,n)=>(0,t.jsx)(tf.InputOTPSlot,{index:n,className:"size-11 text-base"},n))})}),f?(0,t.jsx)("p",{ref:b,tabIndex:-1,role:"alert",className:"text-sm text-destructive outline-none",children:f}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1 sm:flex-row",children:[(0,t.jsx)(eb.Button,{variant:"ghost",className:"h-11 sm:h-9",onClick:()=>{g(""),u("notice")},disabled:M,children:"Back"}),(0,t.jsx)(eb.Button,{variant:"ghost",className:"h-11 sm:h-9",onClick:T,disabled:M||E||h>0,children:E?"Sending…":h>0?`Resend code in ${h}s`:"Resend code"})]}),(0,t.jsx)(eb.Button,{variant:"destructive",className:"h-11 sm:h-9",onClick:O,disabled:M||6!==d.length,"data-testid":eh.tid.accountDeletionSubmit,children:M?"Deleting account…":"Delete account"})]})]})})}let tb=[{value:"light",label:"Light",icon:eX.Sun},{value:"dark",label:"Dark",icon:eJ.Moon},{value:"system",label:"System",icon:eZ.Monitor}],tx=[{value:"profile",label:"My Profile",icon:eV},{value:"billing",label:"Subscription & billing",icon:e9},{value:"appearance",label:"Appearance",icon:eG},{value:"advanced",label:"Advanced",icon:e1},{value:"privacy",label:"Privacy",icon:e4.Shield}];function tw(){let{theme:e,setTheme:a}=(0,e6.useTheme)(),[r,i]=(0,o.useAtom)((0,l.useCreateAtom)(!1));(0,n.useEffect)(()=>i(!0),[i]);let s=r?e??"system":void 0;return(0,t.jsx)("div",{className:"mx-auto w-full max-w-md space-y-4",children:(0,t.jsx)(ti,{label:"Theme",children:(0,t.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-xl bg-muted/60 p-1",children:tb.map(({value:e,label:n,icon:r})=>{let i=s===e;return(0,t.jsxs)("button",{onClick:()=>a(e),"aria-pressed":i,className:["flex min-h-16 flex-col items-center justify-center gap-2 rounded-lg px-2 text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",i?"bg-background text-foreground shadow-(--e1)":"text-muted-foreground hover:bg-background/60 hover:text-foreground"].join(" "),children:[(0,t.jsx)(r,{className:"size-5"}),n]},e)})})})})}let tC=["device","cache","size"];function tk(){let[e,a]=(0,o.useAtom)((0,l.useCreateAtom)(!1)),[r,c]=(0,o.useAtom)((0,l.useCreateAtom)(null)),u=(0,s.useQueryClient)(),d=(0,i.useQuery)({queryKey:tC,queryFn:({signal:e})=>(0,k.getPersistedCacheSizeBytes)(e),retry:!1,staleTime:0}),m=(0,Y.useMutation)({meta:{observabilityAction:"cache.clear"},mutationFn:k.clearAllPersistedCaches}),h=m.isPending;(0,eB.useObservedQueryRegion)("settings",d,1);let p=d.isPending?"loading":d.isError?"unavailable":d.data,f=(0,eH.useCreateStore)({active:!0,generation:0});return(0,n.useLayoutEffect)(()=>(f.setState(e=>({...e,active:!0})),()=>f.setState(e=>({active:!1,generation:e.generation+1}))),[f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e3.ConfirmDialog,{open:e,onOpenChange:e=>{e||a(!1)},title:"Clear local cache?",description:"This removes locally cached messages and public files for every account used on this device. The next channel or DM you open will refetch from the server. Nothing on the server is deleted.",confirmLabel:"Clear cache",loadingLabel:"Clearing...",loading:h,onConfirm:async()=>{c(null);let e=f.get().generation,t=u.getQueryCache().find({queryKey:tC,exact:!0}),n=()=>{let t=f.get();if(!t.active||t.generation!==e)throw new DOMException("Retired cache settings view","AbortError")};try{await u.cancelQueries({queryKey:tC,exact:!0}),n(),await m.mutateAsync(),n(),t&&u.getQueryCache().find({queryKey:tC,exact:!0})===t&&await u.refetchQueries({queryKey:tC,exact:!0}),n(),a(!1)}catch(e){try{n()}catch{return}c(e instanceof Error?e.message:"Device cache has not been fully cleared. Please try again."),(0,e$.toastApiError)(e,"Failed to clear cache",n),a(!1)}}}),(0,t.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-md flex-col",children:[(0,t.jsxs)("section",{className:"space-y-2",children:[(0,t.jsx)("h2",{className:"text-base font-medium tracking-tight",children:"Clear local cache"}),r&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:r}),(0,t.jsxs)("p",{className:"flex items-baseline justify-between gap-4 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Cached messages and public files"}),(0,t.jsx)("span",{"data-testid":eh.tid.settingsCacheSize,className:"font-mono tabular-nums text-foreground",children:"loading"===p?"Calculating…":"unavailable"===p?"Unavailable":(0,k.formatBytes)(p)})]}),(0,t.jsx)("p",{className:"max-w-[65ch] text-sm leading-6 text-muted-foreground",children:"Removes locally cached messages and public files for every account used on this device. The next channel or DM you open will refetch from the server. Nothing on the server is deleted."}),(0,t.jsx)(eb.Button,{variant:"destructive",size:"sm",className:"mt-2 h-11 sm:h-8",onClick:()=>a(!0),children:"Clear local cache"})]}),(0,t.jsxs)("footer",{"data-testid":eh.tid.settingsWebVersion,className:"mt-auto pt-8 font-mono text-xs tabular-nums text-muted-foreground",children:["Web v","0.1.47"]})]})]})}function tS({initialTab:e="profile",billingReturn:a=null,onClose:r,userId:i,userName:s,userEmail:c,aboutMe:u,avatar:d,statusEmoji:m,statusText:h,onSave:p,onLogout:f,onAccountDeleted:g,onUploadAvatar:v}){let[y,b]=(0,o.useAtom)((0,l.useCreateAtom)(s)),[x,w]=(0,o.useAtom)((0,l.useCreateAtom)(u)),[C,k]=(0,o.useAtom)((0,l.useCreateAtom)({emoji:m??null,text:h??null})),[S,j]=(0,o.useAtom)((0,l.useCreateAtom)({name:s,aboutMe:u,emoji:m??null,text:h??null})),[I,A]=(0,o.useAtom)((0,l.useCreateAtom)(e));(0,n.useEffect)(()=>{A(e)},[e,A]);let P=(0,td.useBilling)(a,"billing"===I),[E,R]=(0,o.useAtom)((0,l.useCreateAtom)(!1));(0,eq.useObservedRegion)("settings","billing"!==I&&"advanced"!==I,{source:"unknown",version:"settings_"+I,freshness:"unknown",count:1});let M=y!==S.name||x!==S.aboutMe||C.emoji!==S.emoji||C.text!==S.text;return(0,t.jsx)(tc.SettingsShell,{value:I,onValueChange:A,label:"User Settings",title:"billing"===I?"Subscription & billing":E?"Delete account":"appearance"===I?"Appearance":"advanced"===I?"Advanced":"privacy"===I?"Privacy Policy":"My Profile",tabs:tx,onClose:r,disabled:E,navFooter:(0,t.jsxs)(eb.Button,{variant:"ghost",className:tl.SETTINGS_LOGOUT_CLASS,size:"sm",onClick:f,"aria-label":"Log out",disabled:E,children:[(0,t.jsx)(eW.LogOut,{className:"size-4"})," ",(0,t.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Log Out"})]}),children:E?(0,t.jsx)(ty,{email:c,onCancel:()=>R(!1),onDeleted:g}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tc.SettingsShellPanel,{value:"billing",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-xl",children:(0,t.jsx)(tu.BillingContent,{billing:P})})}),(0,t.jsx)(tc.SettingsShellPanel,{value:"profile",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-md space-y-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsx)("span",{className:"block size-24 overflow-hidden rounded-full ring-1 ring-border/50",children:(0,t.jsx)(tr.Avatar,{label:d,seed:i??void 0,size:96})}),(0,t.jsxs)("button",{type:"button",onClick:v,className:"flex min-h-11 items-center gap-2 rounded-full border border-border/50 px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:min-h-8",children:[(0,t.jsx)(e2.Camera,{className:"size-3.5"})," Change photo"]})]}),(0,t.jsx)("input",{value:y,onChange:e=>b(e.target.value),placeholder:"Your name","aria-label":"Display name",className:"min-h-11 w-full rounded-sm border-0 bg-transparent px-0 py-1 text-xl font-medium leading-[1.2] tracking-tight shadow-none outline-none placeholder:font-normal placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-4 focus-visible:ring-offset-background sm:text-2xl"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"About"}),(0,t.jsx)(e7.AutoResizeTextarea,{value:x,onChange:e=>w(e.target.value),placeholder:"Add a bit about yourself…",className:"min-h-11 w-full rounded-sm border-0 bg-transparent px-0 py-1 text-sm leading-6 text-foreground shadow-none outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-4 focus-visible:ring-offset-background"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Status"}),(0,t.jsx)(ts.StatusEditor,{emoji:C.emoji,text:C.text,onChange:(e,t)=>k({emoji:e,text:t}),children:(0,t.jsx)("button",{className:"inline-flex min-h-11 items-center gap-2 rounded-full border border-border/50 px-3 text-sm transition-colors hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:min-h-8",children:(0,to.hasStatus)(C.emoji,C.text)?(0,t.jsxs)("span",{children:[C.emoji," ",C.text]}):(0,t.jsx)("span",{className:"text-muted-foreground",children:"Set a status"})})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,t.jsx)(eb.Button,{variant:"ghost",size:"sm",className:"h-11 shrink-0 px-3 text-destructive hover:text-destructive sm:h-8",onClick:()=>R(!0),"aria-label":"Delete account","data-testid":eh.tid.accountDeletionOpen,children:"Delete account"}),(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[(0,t.jsx)(eb.Button,{variant:"ghost",size:"sm",className:"h-11 sm:h-8",onClick:()=>{b(S.name),w(S.aboutMe),k({emoji:S.emoji,text:S.text})},disabled:!M,children:"Cancel"}),(0,t.jsx)(eb.Button,{size:"sm",className:"h-11 sm:h-8",onClick:()=>{if(!M)return;let e=y.trim(),t=x.trim();p({name:e,aboutMe:t,statusEmoji:C.emoji,statusText:C.text}),j({name:e,aboutMe:t,emoji:C.emoji,text:C.text}),b(e),w(t)},disabled:!M,children:"Save changes"})]})]})]})}),(0,t.jsx)(tc.SettingsShellPanel,{value:"appearance",children:(0,t.jsx)(tw,{})}),(0,t.jsx)(tc.SettingsShellPanel,{value:"advanced",className:"h-full",children:(0,t.jsx)(tk,{})}),(0,t.jsx)(tc.SettingsShellPanel,{value:"privacy",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-2xl pb-8",children:(0,t.jsx)(ta,{})})})]})})}var tj=e.i(393085),tI=e.i(774144),tA=e.i(286684),tA=tA,tP=e.i(509763),tP=tP,tE=e.i(873120);function tR(e){return Number(e.toFixed(6)).toString()}function tM(e,t){if(void 0!==e&&void 0!==t&&Number.isFinite(e)&&Number.isFinite(t)&&!(e<=0)&&!(t<=0))return{width:e,height:t}}var tN=e.i(677204);let tT={scale:1,x:0,y:0};function tO(e,t){let n=Math.max(1,Math.min(8,e.scale)),a=t.width*(n-1)/2,r=t.height*(n-1)/2;return{scale:n,x:Math.max(-a,Math.min(a,e.x)),y:Math.max(-r,Math.min(r,e.y))}}function tD(e,t,n,a){let r=Math.max(1,Math.min(8,t)),i=r/e.scale;return tO({scale:r,x:n.x-(n.x-e.x)*i,y:n.y-(n.y-e.y)*i},a)}function tL(e){return 1===e.length?e[0]:{x:(e[0].x+e[1].x)/2,y:(e[0].y+e[1].y)/2}}function t_(e){return Math.hypot(e[1].x-e[0].x,e[1].y-e[0].y)}function tU({image:e,onClose:a}){let r=(0,n.useMemo)(()=>tM(e.width,e.height),[e.height,e.width]),[i,s]=(0,o.useAtom)((0,l.useCreateAtom)(r)),[c,u]=(0,o.useAtom)((0,l.useCreateAtom)(null)),[d,m,,h,p,f]=(0,tN.useRemoteImageAttempt)(),[g,v,y,b,x,w,C]=(0,tN.useRemoteImageAttempt)(),k=function(e){if(!e)return{width:"min(200px, 90vw, 85vh, max(1px, calc(100vh - 144px)))",aspectRatio:"1 / 1"};let t=85*(e.width/e.height);return{width:`min(${tR(e.width)}px, 90vw, ${tR(t)}vh, calc(max(1px, calc(100vh - 144px)) * ${tR(e.width/e.height)}))`,aspectRatio:`${tR(e.width)} / ${tR(e.height)}`}}(i),S=!!e.thumbnailUrl&&"ready"===d,j="ready"===g&&c===v,{frameRef:I,view:A,reset:P,zoomIn:E,zoomOut:R,handlers:M}=function(e){let t=(0,n.useRef)(null),a=(0,n.useRef)(new Map),[r,i]=(0,o.useAtom)((0,l.useCreateAtom)(tT)),s=(0,n.useRef)(tT),c=(0,n.useCallback)(e=>{let n=t.current?.getBoundingClientRect(),a=n?tO(e,n):tT;s.current=a,i(a)},[i]),u=(0,n.useCallback)(()=>{a.current.clear(),c(tT)},[c]),d=(0,n.useCallback)((e,n)=>{let a=t.current?.getBoundingClientRect();if(!a)return;let r=n?{x:n.x-a.left-a.width/2,y:n.y-a.top-a.height/2}:{x:0,y:0};c(tD(s.current,e,r,a))},[c]);(0,n.useEffect)(()=>{if(!e)return void u();let n=t.current;if(!n)return;let r=e=>{e.preventDefault();let t=1===e.deltaMode?16:2===e.deltaMode?n.clientHeight:1,a=e.ctrlKey?.005:.002;d(s.current.scale*Math.exp(-e.deltaY*t*a),{x:e.clientX,y:e.clientY})},i=a.current;n.addEventListener("wheel",r,{passive:!1});let o="function"==typeof ResizeObserver?new ResizeObserver(()=>{a.current.clear(),c(s.current)}):void 0;return o?.observe(n),()=>{n.removeEventListener("wheel",r),o?.disconnect(),i.clear()}},[c,e,u,d]);let m=e=>{a.current.delete(e.pointerId),e.currentTarget.hasPointerCapture?.(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)};return{frameRef:t,view:r,reset:u,zoomIn:()=>d(1.5*s.current.scale),zoomOut:()=>d(s.current.scale/1.5),handlers:{onPointerDown:t=>{e&&0===t.button&&!(a.current.size>=2)&&(a.current.set(t.pointerId,{x:t.clientX,y:t.clientY}),t.currentTarget.setPointerCapture?.(t.pointerId))},onPointerMove:e=>{if(!a.current.has(e.pointerId))return;let t=[...a.current.values()];a.current.set(e.pointerId,{x:e.clientX,y:e.clientY});let n=[...a.current.values()],r=tL(t),i=tL(n),o=e.currentTarget.getBoundingClientRect(),l={x:r.x-o.left-o.width/2,y:r.y-o.top-o.height/2},u=2===t.length?t_(n)/Math.max(1,t_(t)):1,d=tD(s.current,s.current.scale*u,l,o);c({...d,x:d.x+i.x-r.x,y:d.y+i.y-r.y})},onPointerUp:m,onPointerCancel:m,onLostPointerCapture:m,onKeyDown:t=>{if(e&&!t.ctrlKey&&!t.metaKey&&!t.altKey){if("+"===t.key||"="===t.key)d(1.5*s.current.scale);else if("-"===t.key)d(s.current.scale/1.5);else if("0"===t.key)u();else{if(!t.key.startsWith("Arrow"))return;let e=s.current;c({...e,x:e.x+("ArrowLeft"===t.key?40:"ArrowRight"===t.key?-40:0),y:e.y+("ArrowUp"===t.key?40:"ArrowDown"===t.key?-40:0)})}t.preventDefault()}},onDoubleClick:t=>{e&&d(s.current.scale>1?1:2,{x:t.clientX,y:t.clientY})}}}}(j),N={transform:`translate(${A.x}px, ${A.y}px) scale(${A.scale})`};return(0,n.useEffect)(()=>{if("ready"!==g||!y)return;let e=tM(y.naturalWidth,y.naturalHeight),t=()=>{s(r??e),u(v)};if("function"!=typeof requestAnimationFrame)return void t();let n=requestAnimationFrame(t);return()=>cancelAnimationFrame(n)},[r,v,y,g,s,u]),(0,t.jsxs)("div",{className:"relative w-fit",children:[(0,t.jsxs)("div",{ref:I,"data-testid":eh.tid.imageLightbox,"data-zoom-scale":A.scale,"data-native-context-menu":"true",role:"region","aria-label":"Image preview. Use plus and minus to zoom, arrow keys to pan, and zero to fit.",tabIndex:j?0:-1,className:`relative select-none overflow-hidden rounded-lg bg-background ${A.scale>1?"cursor-grab active:cursor-grabbing":"cursor-default"}`,style:{...k,touchAction:j?"none":void 0},...M,children:[e.thumbnailUrl&&(0,t.jsx)("img",{ref:h,"data-testid":eh.tid.imageLightboxThumbnail,"data-remote-image-kind":"content","data-remote-image-state":d,src:e.thumbnailUrl,alt:e.name,draggable:!1,style:N,onLoad:p,onError:f,className:`absolute inset-0 size-full rounded-lg object-contain transition-opacity duration-150 ease-out motion-reduce:transition-none ${S&&!j?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`},`thumbnail-${m}`),!S&&!j&&"pending"===g&&(0,t.jsx)("div",{"data-testid":eh.tid.imageLightboxLoading,role:"status",className:"absolute inset-0 flex animate-pulse items-center justify-center bg-muted/70 px-4 text-sm text-muted-foreground motion-reduce:animate-none",children:"Loading original image"}),"error"!==g&&(0,t.jsx)("img",{ref:b,"data-testid":eh.tid.imageLightboxOriginal,"data-remote-image-kind":"content","data-remote-image-state":g,src:e.originalUrl,alt:e.name,draggable:!1,style:N,onLoad:x,onError:w,className:`absolute inset-0 size-full rounded-lg object-contain transition-opacity duration-150 ease-out motion-reduce:transition-none ${j?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`},`original-${v}`)]}),(0,t.jsxs)("div",{role:"toolbar","aria-label":"Image controls",className:"absolute left-1/2 z-20 flex -translate-x-1/2 items-center gap-1 rounded-lg border border-border bg-background p-1",style:{top:"calc(50% - 50vh + 12px)"},children:[(0,t.jsx)(eb.Button,{variant:"ghost",size:"icon",className:"size-11 sm:size-9","aria-label":"Zoom out",title:"Zoom out",disabled:!j||A.scale<=1,onClick:R,children:(0,t.jsx)(tI.MinusIcon,{})}),(0,t.jsx)(eb.Button,{variant:"ghost",size:"icon",className:"size-11 sm:size-9","aria-label":"Fit image",title:"Fit image",disabled:!j||1===A.scale,onClick:P,children:(0,t.jsx)(tP.default,{})}),(0,t.jsx)(eb.Button,{variant:"ghost",size:"icon",className:"size-11 sm:size-9","aria-label":"Zoom in",title:"Zoom in",disabled:!j||A.scale>=8,onClick:E,children:(0,t.jsx)(tA.default,{})}),(0,t.jsx)(eb.Button,{variant:"ghost",size:"icon",className:"size-11 sm:size-9","aria-label":"Close image preview",title:"Close",onClick:a,children:(0,t.jsx)(tE.XIcon,{})})]}),"error"===g&&(0,t.jsxs)("div",{"data-testid":eh.tid.imageLightboxError,role:"status",className:"absolute bottom-3 left-1/2 z-10 flex min-h-11 w-max max-w-[min(90vw,24rem)] -translate-x-1/2 items-center justify-between gap-2 rounded-md border border-border bg-background px-3 py-2 text-sm shadow-sm",children:[(0,t.jsx)("span",{children:"Failed to load original image"}),(0,t.jsx)("button",{type:"button","data-testid":eh.tid.imageLightboxRetry,onClick:C,className:"h-12 min-w-12 rounded-md px-3 font-medium text-foreground transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:h-9 sm:min-w-0",children:"Retry"})]})]})}function tz({image:e,onClose:n}){return(0,t.jsx)(eK.Dialog,{open:!0,onOpenChange:e=>{e||n()},children:(0,t.jsx)(eK.DialogContent,{"aria-label":e.name,className:"flex max-h-[90vh] w-auto items-center justify-center border-none bg-transparent p-0 shadow-none sm:max-w-none",showCloseButton:!1,children:(0,t.jsx)(tU,{image:e,onClose:n},`${e.originalUrl}\u0000${e.thumbnailUrl??""}\u0000${e.width??""}\u0000${e.height??""}`)})})}var tF=e.i(549712),tK=e.i(719728),tq=e.i(564658),tB=e.i(607378),tH=e.i(265142),t$=e.i(49980),tQ=e.i(972525),tV=e.i(655041),tW=e.i(986087);e.i(43729);var tY=e.i(786637),tG=e.i(43345);let tX=(0,tK.default)(()=>e.A(762162).then(e=>e.CodePreview),{loadableGenerated:{modules:[145142]},ssr:!1,loading:()=>(0,t.jsxs)("div",{"data-testid":eh.tid.codePreview,role:"status",className:"flex min-h-40 items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(tH.Loader2,{className:"size-4 animate-spin"}),"Loading syntax highlighter…"]})}),tJ=(0,tK.default)(()=>e.A(911974).then(e=>e.PdfPreview),{loadableGenerated:{modules:[144402]},ssr:!1,loading:()=>(0,t.jsxs)("div",{"data-testid":eh.tid.pdfPreviewStatus,role:"status",className:"flex min-h-40 items-center justify-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(tH.Loader2,{className:"size-4 animate-spin motion-reduce:animate-none"}),"Loading PDF renderer…"]})}),tZ={status:"idle",content:null,error:null};function t0({attachment:e}){let n=(0,tG.useAttachmentDownload)(e),a=(0,tY.attachmentDownloadStatusText)(n.state),r="downloading"===n.state.status?tH.Loader2:"saved"===n.state.status||"started"===n.state.status?tq.CircleCheck:"error"===n.state.status?t$.RefreshCw:tB.Download;return(0,t.jsxs)("button",{type:"button","data-testid":eh.tid.attachmentPreviewDownload,onClick:()=>"downloading"===n.state.status?n.cancel():void n.start(),"aria-busy":"downloading"===n.state.status,className:(0,eb.buttonVariants)({variant:"outline",size:"sm",className:"h-11 disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground sm:h-7"}),children:[(0,t.jsx)(r,{className:`size-3.5 ${"downloading"===n.state.status?"animate-spin motion-reduce:animate-none":""}`}),"downloading"===n.state.status?"Cancel download":a??"Download"]})}async function t1(e,t=tW.MAX_TEXT_ATTACHMENT_PREVIEW_BYTES,n){return new TextDecoder().decode(await t2(e,t,n))}async function t2(e,t,n){if(!e.ok)throw Error(`Couldn’t load this attachment (${e.status})`);let a=Number(e.headers.get("content-length"));if(Number.isFinite(a)&&a>t)throw Error("This file is too large to preview");if(!e.body){let a=new Uint8Array(await e.arrayBuffer());if(n?.aborted)throw new DOMException("Aborted","AbortError");if(a.byteLength>t)throw Error("This file is too large to preview");return a}let r=e.body.getReader(),i=0,s=[];try{for(;;){if(n?.aborted)throw new DOMException("Aborted","AbortError");let{done:e,value:a}=await r.read();if(n?.aborted)throw new DOMException("Aborted","AbortError");if(e)break;if((i+=a.byteLength)>t)throw await r.cancel(),Error("This file is too large to preview");s.push(a)}let e=new Uint8Array(i),a=0;for(let t of s)e.set(t,a),a+=t.byteLength;return e}finally{n?.aborted&&await r.cancel().catch(()=>void 0),r.releaseLock()}}function t4({attachment:e,open:n,onOpenChange:a}){let r=(0,tF.useApplicationOwner)(),s=e?(0,tW.resolveAttachmentPresentation)(e.name,e.contentType):null,o=s?.previewKind==="pdf"?tW.MAX_PDF_ATTACHMENT_PREVIEW_BYTES:tW.MAX_TEXT_ATTACHMENT_PREVIEW_BYTES,l=s?.previewKind?e?.sizeBytes!==void 0&&e.sizeBytes>o?"This file is too large to preview":null:"This file type can’t be previewed",c=(0,i.useQuery)({queryKey:(0,tF.applicationKey)(r,"attachment-preview",n?e?.url??null:null,s?.previewKind??null,o),enabled:n&&null!==e&&null===l,gcTime:0,staleTime:1/0,retry:!1,queryFn:async({signal:t})=>{let n=(0,tF.captureApplicationOwner)(r),a=()=>(0,tF.assertApplicationOwner)(n,t);if(a(),!e||!s?.previewKind)throw Error("No attachment selected");try{let n=await fetch(e.url,{credentials:"same-origin",signal:t});a();let r="pdf"===s.previewKind?{status:"ready",kind:"pdf",content:await t2(n,o,t),error:null}:{status:"ready",kind:"text",content:await t1(n,o,t),error:null};return a(),r}catch(e){throw a(),e}}},r.queryClient),u=n&&e?l?{status:"error",content:null,error:l}:c.isError?{status:"error",content:null,error:c.error instanceof Error?c.error.message:"Couldn’t load this attachment"}:c.data??{status:"loading",content:null,error:null}:tZ;(0,eB.useObservedQueryRegion)("file_preview",c,void 0,n&&"ready"===u.status&&s?.previewKind==="text");let d=e?(0,tW.formatAttachmentSize)(e.sizeBytes)||e.size:"";return(0,t.jsxs)(tQ.CommunitySheet,{open:n,onOpenChange:a,title:e?.name??"Attachment",description:[e?.contentType||s?.category,d].filter(Boolean).join(" · "),footer:e&&(0,t.jsx)(t0,{attachment:e}),resizable:!0,closeLabel:"Close attachment preview",contentTestId:eh.tid.attachmentPreviewSheet,bodyTestId:eh.tid.attachmentPreviewContent,bodyClassName:(0,e8.cn)("flex min-h-0 flex-col",s?.previewKind==="pdf"&&"overflow-hidden",(s?.previewKind==="code"||s?.previewKind==="text"||s?.previewKind==="pdf")&&"p-0 sm:p-0"),children:["loading"===u.status&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-8 text-sm text-muted-foreground",children:[(0,t.jsx)(tH.Loader2,{className:"size-4 animate-spin"}),"Loading preview…"]}),"error"===u.status&&(0,t.jsxs)("div",{className:"flex min-h-40 flex-col items-center justify-center gap-2 text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:"Preview unavailable"}),(0,t.jsx)("p",{className:"max-w-72 text-sm text-muted-foreground",children:u.error})]}),"ready"===u.status&&"text"===u.kind&&s?.previewKind==="markdown"&&(0,t.jsx)(tV.MessageBody,{text:u.content}),"ready"===u.status&&"text"===u.kind&&s?.previewKind!=="markdown"&&(0,t.jsx)(tX,{content:u.content,language:s?.shikiLanguage??null}),"ready"===u.status&&"pdf"===u.kind&&(0,t.jsx)(tJ,{data:u.content})]})}var t5=e.i(369546);function t9({controller:e,breakpoint:n,extraDialogs:a,suppressProfileCard:r=!1}){let{profile:i,currentUser:s}=e,o=e.pendingAvatarCrop;return(0,t.jsxs)(t.Fragment,{children:[i&&!r&&(0,t.jsx)(tj.ProfileCard,{data:i.data,x:i.x,y:i.y,bp:n,onClose:e.closeProfile,onMessage:e.profileMessage,isSelf:!!i.data.userId&&i.data.userId===s.id,onUpdateStatus:e.updateOwnStatus,onOpenOwnerProfile:e.openOwnerProfile,onOpenBotAudit:e.openBotAudit},`${i.data.userId??i.data.name}:${i.x}:${i.y}`),e.preview&&(0,t.jsx)(tz,{image:e.preview,onClose:e.closePreview}),(0,t.jsx)(t4,{attachment:e.attachmentPreview,open:!!e.attachmentPreview,onOpenChange:e.onAttachmentPreviewOpenChange}),(0,t.jsx)(eK.Dialog,{open:e.editingProfile,onOpenChange:e.onUserSettingsOpenChange,children:(0,t.jsx)(eK.DialogContent,{className:"flex h-dvh max-h-dvh w-screen max-w-none flex-col gap-0 overflow-hidden rounded-none p-0 sm:h-[calc(100vh-4rem)] sm:max-h-180 sm:w-[calc(100vw-4rem)] sm:max-w-4xl sm:rounded-xl",showCloseButton:!1,children:(0,t.jsx)(tS,{...e.userSettingsProps})})}),o&&(0,t.jsx)(t5.ImageCropDialog,{...o,maskShape:"circle"}),a]})}var t6=e.i(52622);let t7={active:"none",update:null};function t3(e){return[...new Set(e)]}function t8(e,t){return e.filter(e=>!t.has(e))}function ne(e,t){return e.filter(e=>t.has(e))}function nt(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function nn(e,t){if(!e.update)return e;let n=new Set(t),a=t3(t);if(0===a.length)return{active:"update"===e.active?"none":e.active,update:null};let r=ne(e.update.acceptedMachineIds,n),i=ne(e.update.failedMachineIds,n),s=ne(e.update.pendingMachineIds,n),o=i.length>0?"retry":r.length>0||s.length>0?"updating":"update"===e.active?"expanded":"collapsedBadge";return o===e.update.phase&&nt(a,e.update.targetMachineIds)&&nt(r,e.update.acceptedMachineIds)&&nt(i,e.update.failedMachineIds)&&nt(s,e.update.pendingMachineIds)?e:{...e,update:{phase:o,targetMachineIds:a,acceptedMachineIds:r,failedMachineIds:i,pendingMachineIds:s}}}var na=e.i(692462),nr=e.i(708717);function ni({breakpoint:e,checkpoint:n,sidebar:a,children:r,extraDialogs:i,rail:s,profile:o,inbox:l,userBarExtension:c,daemonUpdate:u,onUserBarInboxOpenChange:d,onUserBarOpenProfile:m,onUserBarOpenUpdate:h,dismissUserBarExtension:p}){let{surface:f}=n,{runningBots:g}=(0,na.useRunningOwnedBots)(),v=(0,t.jsx)(eF.InboxPopover,{...l.popoverProps,surface:"extension"}),y={id:o.currentUser.id,name:o.currentUser.name,avatar:o.currentUser.avatar,runningBotCount:g.length},b="unknown"===e,x="profile"===c.active&&o.profile?.data.userId===o.currentUser.id,w=x&&o.profile?(0,t.jsx)(tj.ProfileCard,{data:o.profile.data,x:o.profile.x,y:o.profile.y,bp:e,onClose:o.closeProfile,onMessage:o.profileMessage,isSelf:!0,onUpdateStatus:o.updateOwnStatus,onOpenOwnerProfile:o.openOwnerProfile,onOpenBotAudit:o.openBotAudit,extension:!0}):null,C=x&&g.length>0?(0,t.jsx)(nr.ProfileRunningBotsCard,{onOpenBotAudit:o.openBotAudit,showShadow:"mobile"!==e}):null;return(0,t.jsx)(t6.CommunityShellLayout,{breakpoint:e,surface:f,rail:(0,t.jsx)(eU.ServerRail,{...s.railProps,bottomInset:60}),preserveHiddenMobileModules:!0,sidebar:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{hidden:"keep"!==n.sidebar.kind,inert:"keep"!==n.sidebar.kind,"aria-hidden":"keep"!==n.sidebar.kind||void 0,className:"flex min-h-0 flex-1 flex-col",children:"desktop"===e?a():a({noHeader:!1})}),"server-skeleton"===n.sidebar.kind?(0,t.jsx)(eD.ChannelSidebarSkeleton,{targetServerId:n.sidebar.serverId}):"me-skeleton"===n.sidebar.kind?(0,t.jsx)(eL.DmSidebarSkeleton,{}):null]}),main:"target-skeleton"===n.main.kind?(0,t.jsx)(e_.CommunityPendingFrame,{href:n.targetHref,reserveBackSlot:"detail"===f,conversationSubtype:n.main.conversationSubtype}):r,userBar:(0,t.jsx)(ez.UserBar,{breakpoint:e,user:y,onOpenProfile:m,onEditProfile:o.openUserSettings,inbox:v,hasUnread:l.hasUnread,unreadCount:l.unreadCount,unreadCountPartial:l.unreadCountPartial,inboxOpen:"inbox"===c.active,onInboxOpenChange:d,extension:{active:c.active,inbox:v,profile:w,profileCompanion:C,update:u.update,updateBadgePhase:c.update&&"update"!==c.active?"expanded"===c.update.phase?"collapsedBadge":c.update.phase:null,eligibleMachines:u.eligibleMachines,onOpenUpdate:h,onRequestUpdate:u.request,onDismiss:p}}),overlays:!b&&(0,t.jsx)(t9,{controller:o,breakpoint:e,extraDialogs:i,suppressProfileCard:x})})}var ns=e.i(876986),no=e.i(280958);let nl=Object.freeze([]),nc=async(e={})=>{let t=(0,N.captureCommunityLiveSnapshotToken)(e.client);return{folders:(await (0,e$.apiFetch)("/api/community/users/me/server-folders",(0,R.communityRequestOptions)(e.client,t,e.signal))).folders.map(e=>({id:e.id,name:e.name,position:e.position??0,servers:e.servers.map(e=>({id:e.id,name:e.name,initial:(0,no.avatarInitial)(e.name),icon:e.icon??null}))}))}};e.i(384302);var nu=e.i(462553),nd=e.i(333671);function nm({targetServerId:e,activeServerId:t,overlay:n,hasActiveOpener:a,publishedHref:r}){if(e===t&&a)return{kind:"open-active"};if(e===t&&r&&(0,ek.communityServerId)(r)===e){let e=new URL(r,"https://alook.local");return e.searchParams.set(n,"1"),{kind:"navigate",href:`${e.pathname}${e.search}${e.hash}`}}return{kind:"navigate",href:`/c/channels/${e}?${n}=1`}}var nh=e.i(138906);function np(e,t,n,a,r){let i=e?.collections.servers.get(t)?.detailComplete===!0,s=e&&i?r??Array.from(e.collections.channels.values()).filter(e=>e.serverId===t&&"thread"!==e.type&&!e.pending).map(e=>e.id):[];return(0,ej.resolveCommunityLandingHref)({serverId:t,channelIds:s,last:n,breakpoint:a})}e.i(954194);var nf=e.i(686988),ng=e.i(354139),nv=e.i(217372);function ny(e,t){if(e&&t&&"role"in t)return t.role.charAt(0).toUpperCase()+t.role.slice(1)}var nb=e.i(47749),nx=e.i(725521),nw=e.i(776152),nC=e.i(939098),nk=e.i(459663);e.i(463690);var nS=e.i(251829),nj=e.i(4674),nI=e.i(248933),nA=e.i(975210);let nP=new WeakMap;function nE(e,t){e.value.setState(e=>({...e,lease:t}))}function nR(e,t){if(e===t)return!0;if(!e)return!1;let n=e=>{let[t,n=""]=e.split("?"),a=new URLSearchParams(n);a.delete("inboxThreadOpener");let r=a.toString();return`${t}${r?`?${r}`:""}`};return n(e)===n(t)}var nM=e.i(387170),nN=e.i(797473),nT=e.i(588732),nO=e.i(595072),nD=e.i(31163),nL=e.i(631931),n_=e.i(214997),nU=e.i(850441),nz=e.i(874697),nF=e.i(42420);function nK(e,t,n,a=0){(0,u.getCommunityRuntime)(e).ws.actions.isChannelAccessRevoked(t.channelId,t.serverId??null)&&(0,nj.startChannelRouteVerification)(e,t.serverId??null,t.channelId).catch(()=>void 0);let{epoch:r,signal:i}=(0,nF.beginConversationNavigationProof)(e,t,n,a);(0,nF.registerConversationNavigationRecovery)(e,r,(n,a)=>{nK(e,t,n,a)});let s=t.anchorMessageId?{mode:"anchor",anchor:t.anchorMessageId}:{mode:"newest"},o=c.communityKeys.channelMessages(t.channelId),l="dm"===t.scopeKind?(0,nU.dmMessagesQueryFn)(t.channelId,{queryClient:e,onSurfaceReceipt:t=>{(0,nF.recordConversationNavigationReceipt)(e,t,n,r)}}):(0,nU.channelMessagesQueryFn)(t.channelId,null,{queryClient:e,onSurfaceReceipt:t=>{(0,nF.recordConversationNavigationReceipt)(e,t,n,r)}});e.cancelQueries({queryKey:o,exact:!0}),e.setQueryData(o,e=>e?{...e,pageParams:[s,...e.pageParams.slice(1)]}:e);let d={queryKey:o,queryFn:l,initialPageParam:s,pages:1,getNextPageParam:()=>void 0,retry:(0,n_.conversationReadRetryPolicy)(e.defaultQueryOptions({queryKey:o}).retry),networkMode:"always",staleTime:0},m=new nL.InfiniteQueryObserver(e,{...d,enabled:!1}).subscribe(()=>void 0);e.infiniteQuery({...d,select:void 0}).then(()=>{(0,nF.isCurrentConversationNavigation)(e,r,n)&&((0,nF.commitConversationNavigationProof)(e,t.channelId,n),(0,nF.getConversationNavigationProof)(e)?.status==="warming"&&(0,nF.failConversationNavigationProof)(e,r,n,!1,!0))}).catch(a=>{let s,o;if(i.aborted||!(0,nF.isCurrentConversationNavigation)(e,r,n))return;let l=a instanceof C.ApiError&&(403===a.status||404===a.status);l&&(s=c.communityKeys.channelMessages(t.channelId),o=c.communityKeys.channelReadStateSnapshot(t.channelId),e.removeQueries({queryKey:s}),e.removeQueries({queryKey:o}),e.removeQueries({queryKey:c.communityKeys.channelMeta(t.serverId??null,t.channelId)}),(0,u.getCommunityRuntime)(e).messageStream.actions.removeScope("dm"===t.scopeKind?{kind:"dm",id:t.channelId}:{kind:"channel",id:t.channelId,serverId:t.serverId})),(0,nF.failConversationNavigationProof)(e,r,n,l,!0)}).finally(m);let h=c.communityKeys.channelReadStateSnapshot(t.channelId);if(e.query({queryKey:h,staleTime:0,retry:!1,networkMode:"always",queryFn:(0,nz.channelReadStateSnapshotQueryFn)(t.channelId,t.scopeKind,{waitForRegistryReady:!0,assertNavigationCurrent:()=>{if(!(0,nF.isCurrentConversationNavigation)(e,r,n))throw new DOMException("Retired conversation warmup","AbortError")}}),select:void 0}).catch(()=>void 0),t.serverId){let n=t.serverId,a=c.communityKeys.server(n),r={queryKey:a,queryFn:({signal:t})=>(0,Z.serverProjectedQueryFn)(e,n,t)(),staleTime:1/0,networkMode:"always",retry:(0,n_.conversationReadRetryPolicy)(e.defaultQueryOptions({queryKey:a}).retry)},i=new W.QueryObserver(e,{...r,enabled:!1}).subscribe(()=>void 0);e.query({...r,select:void 0}).finally(i).catch(()=>void 0)}return r}var nq=e.i(929554);function nB(e){e.revision+=1}async function nH(e,t,n){let a=++e.revision,r=await t();return a===e.revision&&(n(r),!0)}var n$=e.i(907903);e.i(972115);var nQ=e.i(908967),nV=e.i(846367);e.i(678523);var nW=e.i(840429);async function nY(e,t){await (0,e$.apiFetch)(`/api/community/machines/${e}/update`,{...t,method:"POST"})}var nG=e.i(617527);function nX(e,t){return`alook:daemon-update-collapsed:${e}:${t}`}function nJ(e,t,n){try{let a=nX(e,t);n?window.localStorage.setItem(a,"1"):window.localStorage.removeItem(a)}catch{}}async function nZ(e,t){let n=await Promise.allSettled(e.map(async e=>(await t(e),e))),a=[],r=[];return n.forEach((t,n)=>{let i=e[n];"fulfilled"===t.status?a.push(i):r.push(i)}),{acceptedMachineIds:a,failedMachineIds:r}}var n0=e.i(251535);let n1="alook:native-back";function n2(e){let{view:d,activeServerId:m,frameHref:h,sidebar:p,children:f,extraDialogs:g,onOpenActiveServerSettings:v,onOpenActiveServerInvite:y,ownerDeleteRouteScope:b}=e,x=(0,s.useQueryClient)(),w=(0,F.useCurrentUser)(),C=(0,ex.useCommunityWsStore)(e=>e.accessEpoch),k=(0,eT.useBreakpoint)(),I=(0,ee.useCommunityOnboarding)(),E={...(0,ek.normalizeCommunityHref)(h),revision:0},T=(0,n.useRef)(E),[O,D]=(0,o.useAtom)((0,l.useCreateAtom)(E)),L=(0,n.useCallback)(e=>{let t=T.current,n=(0,ek.advanceCommunityCommittedFrame)(t,e);n!==t&&(T.current=n,D(n))},[D]);(0,n.useLayoutEffect)(()=>{L(h),(0,eN.commitNavigation)(h),b&&(0,eS.registerOwnerServerDeleteRoute)(x,b.serverId,b.token),(0,eS.observeOwnerServerDeleteRouteCommit)(x,h)},[L,h,b,x]),(0,n.useEffect)(()=>{(0,n0.flushOwnerServerDeleteRouteCommit)(x)},[h,x]);let _=function(e){let t=(0,a.useRouter)(),r=(0,a.usePathname)(),i=(0,a.useSearchParams)().toString(),c=i?`${r}?${i}`:r,u=(0,s.useQueryClient)(),d=(0,n.useRef)({revision:0}),m=(0,n.useRef)(!1);(0,n.useLayoutEffect)(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=(0,n.useRef)(e);(0,n.useLayoutEffect)(()=>{h.current=e},[e]);let p=(0,n.useCallback)(()=>{let e=d.current.revision,t=h.current.revision;return()=>m.current&&e===d.current.revision&&t===h.current.revision},[]),f=(0,n.useRef)(e.revision),g=(0,n.useRef)(e.leafKey),[v,y]=(0,o.useAtom)((0,l.useCreateAtom)(!1)),[b,x]=(0,o.useAtom)((0,l.useCreateAtom)(null)),w=(0,n.useCallback)(()=>{nB(d.current),(0,nF.cancelActiveConversationNavigationProof)(u),y(!1),x(null)},[u,y,x]);(0,n.useEffect)(()=>{null===b||((0,ek.normalizeCommunityHref)(b).leafKey===g.current?(0,ek.isPublishedNonStructuralCommit)(e,c,b):(0,ek.isStructuralFrameCommit)({committedFrame:e,targetHref:b,baselineRevision:f.current}))&&(nB(d.current),y(!1),x(null))},[e,b,c,y,x]),(0,n.useEffect)(()=>{let e=()=>w();return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[w]);let C=(0,n.useCallback)(n=>{n!==c||v?((0,eN.beginNavigation)(n),nB(d.current),(0,nF.cancelActiveConversationNavigationProof)(u),f.current=e.revision,g.current=e.leafKey,(0,nq.flushSync)(()=>{y(!0),x(n)}),t.push(n)):(0,eN.navigationNoop)(n)},[e.leafKey,e.revision,v,c,u,t,y,x]),k=(0,n.useCallback)(n=>{n!==c||v?((0,eN.beginNavigation)(n),nB(d.current),f.current=e.revision,g.current=e.leafKey,(0,nq.flushSync)(()=>{y(!0),x(n)}),t.push(n)):(0,eN.navigationNoop)(n)},[e.leafKey,e.revision,v,c,t,y,x]),S=(0,n.useCallback)(n=>{n!==c||v?((0,eN.beginNavigation)(n),nB(d.current),(0,nF.cancelActiveConversationNavigationProof)(u),f.current=e.revision,g.current=e.leafKey,y(!0),x(n),t.replace(n)):(0,eN.navigationNoop)(n)},[e.leafKey,e.revision,v,c,u,t,y,x]),j=(0,n.useCallback)(async n=>{(0,nF.cancelActiveConversationNavigationProof)(u),f.current=e.revision,g.current=e.leafKey,y(!0),x(null);let a=nH(d.current,n,e=>{if(e===c){(0,eN.navigationNoop)(e),y(!1),x(null);return}(0,eN.beginNavigation)(e),x(e),t.push(e)}),r=d.current.revision;try{return await a}catch(e){throw d.current.revision===r&&(y(!1),x(null)),e}},[e.leafKey,e.revision,c,u,t,y,x]);return{captureIntent:p,publishedHref:c,navigationPending:v,pendingHref:b,push:C,pushImmediate:k,replace:S,resolveAndPush:j,cancelPendingNavigation:w}}(O),U=_.replace,z=(0,ek.resolveCommunityRoute)(O.pathname),K=_.pendingHref?(0,ek.normalizeCommunityHref)(_.pendingHref):null,q=K?.scope.kind==="server"?K.scope.serverId:null,B=_.pendingHref?(0,ek.resolveCommunityModulePlan)(_.pendingHref):null,H=B?.main.kind==="server-conversation"?B.main.leafId:null,$=(0,M.useServerTreeProjection)(q),Q=(0,M.useRouteChannelProjection)(H),V=$?.categories?.flatMap(e=>e.channels).find(e=>e.id===H)??Q,W=V?.type==="text"||V?.type==="forum"||V?.type==="thread"?V.type:void 0,G=q?void 0!==x.getQueryData(c.communityKeys.server(q))||void 0!==$:K?.scope.kind==="me"&&void 0!==x.getQueryData(c.communityKeys.dms()),et=(0,ek.resolveCommunityCheckpointPlan)({committedFrame:O,targetHref:_.pendingHref,pending:_.navigationPending,targetReady:G,targetConversationSubtype:W}),en="target"===et.rail.kind?et.rail.view:d,ea="target"===et.rail.kind?et.rail.activeServerId:m,er=function({navigation:e,queryClient:t,breakpoint:a,view:o,projectedView:u=o,activeServerId:d,projectedActiveServerId:m,onOpenActiveServerSettings:h,onOpenActiveServerInvite:p,accountId:f}){let g,v,y,b,x,w,C,k=(0,M.useOptionalCommunityDbRegistry)(),S=(0,X.useCommunityMutationOrigin)(),j=(0,Z.useServers)(),I=(g=(0,M.useServerRailProjection)(),v=(0,s.useQueryClient)(),{...(0,i.useQuery)({queryKey:c.communityKeys.folders(),queryFn:async(e={})=>{let t=(0,N.captureCommunityLiveSnapshotToken)(v),n=await nc(e);return(0,N.publishCommunityLiveSnapshot)(v,{snapshot:{kind:"folders",data:n},proof:{kind:"structural",token:t,signal:e.signal}}),n.folders.map(e=>e.id)}}),folders:g?.folders??nl}),A=j.servers,P=I.folders,E=A.length>0||void 0!==j.data||!f,R=(0,l.useCreateAtom)({active:!1,generation:0,navigation:null});(0,n.useLayoutEffect)(()=>(R.set(e=>({...e,active:!0,generation:e.generation+1})),()=>R.set(e=>({...e,active:!1,generation:e.generation+1}))),[k,R]),(0,n.useLayoutEffect)(()=>{R.set(t=>({...t,navigation:e}))},[e,R]);let T=(0,n.useCallback)(e=>R.get().active&&R.get().generation===e&&!!k?.runtime.lifecycle.get().active&&(0,r.getCommunityDbRegistry)(t)===k,[k,t,R]),O=(0,n.useCallback)(()=>{let t=R.get().generation,n=S.begin().token,a=k.authenticationView.get(),r=e.captureIntent(),i=()=>{S.assertOwner(n);let e=k.authenticationView.get();if(!T(t)||!e.active||e.generation!==a.generation)throw new DOMException("Retired rail account","AbortError")};return{assertAccount:i,assertUi:()=>{if(i(),!r())throw new DOMException("Retired rail intent","AbortError")}}},[k,e,S,T,R]),{mutateAsync:D}=(0,nu.useCreateServer)(),{mutate:L}=(0,nu.useLeaveServer)(),{mutate:_}=(0,nu.useUploadServerIcon)(),U=(0,n.useMemo)(()=>A.map(e=>({...e,active:e.id===m})),[m,A]),{homeHref:z,serverHrefs:F}=(y=(0,M.useOptionalCommunityDbRegistry)(),b=(0,n.useCallback)(e=>{let t=(0,nh.subscribeNavigationMemory)(e),n=y?.collections.servers.subscribeChanges(e),a=y?.collections.channels.subscribeChanges(e);return()=>{t(),n?.unsubscribe(),a?.unsubscribe()}},[y]),x=(0,n.useCallback)(()=>{let e=new Map;for(let t of y?.collections.channels.values()??[]){if(!t.serverId||"thread"===t.type||t.pending)continue;let n=e.get(t.serverId)??[];n.push(t.id),e.set(t.serverId,n)}return JSON.stringify({homeHref:(0,ej.resolveCommunityLandingHref)({serverId:null,last:(0,nh.readNavigationMemory)((0,nd.lastMeLocationKey)()),breakpoint:a}),serverHrefs:Object.fromEntries(A.map(({id:t})=>[t,np(y,t,(0,nh.readNavigationMemory)((0,ej.lastChannelKey)(t)),a,e.get(t)??[])]))})},[y,A,a]),w=(0,n.useCallback)(()=>JSON.stringify({homeHref:(0,ej.resolveCommunityLandingHref)({serverId:null,last:null,breakpoint:a}),serverHrefs:Object.fromEntries(A.map(({id:e})=>[e,(0,ej.resolveCommunityLandingHref)({serverId:e,last:null,breakpoint:a})]))}),[A,a]),C=(0,n.useSyncExternalStore)(b,x,w),(0,n.useMemo)(()=>JSON.parse(C),[C])),K=(0,n.useCallback)(e=>np(k,e,(0,ej.getLastChannel)(e),a),[a,k]),q=(0,n.useCallback)(t=>{(0,ns.markSwitch)("server",t),e.push(K(t))},[e,K]),B=(0,n.useCallback)(()=>(0,ej.resolveCommunityLandingHref)({serverId:null,last:(0,nd.getLastMeLeaf)(),breakpoint:a}),[a]),H=(0,n.useCallback)(()=>{e.push(B())},[B,e]),$=(0,n.useCallback)(async(t,n)=>{if(!T(R.get().generation))return;let{assertAccount:a,assertUi:r}=O();try{a();let i=await D({name:t});r();let s=i.server.id;(0,eC.toast)(`Server "${t}" created`),n&&_({serverId:s,file:n},{onError:e=>(0,e$.toastApiError)(e,"Server created, but the icon failed to upload",r)}),e.push(`/c/channels/${s}`)}catch(e){(0,e$.toastApiError)(e,"Failed to create server",r)}},[O,D,e,_,R,T]),Q=(0,n.useCallback)(e=>{if(!T(R.get().generation))return;let{assertAccount:n,assertUi:a}=O();try{n()}catch{return}(0,eS.markVoluntaryLeave)(t,e),L({serverId:e},{onSuccess:()=>{try{n()}catch{return}try{a(),(0,eC.toast)("Left server")}catch{}let t=R.get().navigation;if(t&&(0,ek.communityServerId)(t.navigationPending?t.pendingHref??"":t.publishedHref)===e){let n=new Set([...k.collections.serverMemberships.values()].filter(e=>e.viewer&&e.userId===k.accountId).map(e=>e.serverId)),a=[...k.collections.servers.values()].filter(e=>n.has(e.id)).sort((e,t)=>(e.position??0)-(t.position??0));t.replace((0,eS.pickPostEjectDestination)(a,e))}},onError:e=>(0,e$.toastApiError)(e,"Failed to leave server",a)})},[O,k,L,t,T,R]),V=(0,n.useCallback)(t=>{if(!t)return;let n=nm({targetServerId:t,activeServerId:d,overlay:"settings",hasActiveOpener:!!h,publishedHref:e.publishedHref});"open-active"===n.kind?h?.():e.push(n.href)},[d,e,h]),W=(0,n.useCallback)(t=>{if(!t)return;let n=nm({targetServerId:t,activeServerId:d,overlay:"invite",hasActiveOpener:!!p,publishedHref:e.publishedHref});"open-active"===n.kind?p?.():e.push(n.href)},[d,e,p]),Y=(0,n.useCallback)((t,n)=>{((0,ns.markSwitch)(n?"channel":"server",n??t),n)?e.push(`/c/channels/${t}/${n}`):e.push(K(t))},[e,K]);return{railProps:{servers:U,homeHref:z,serverHrefs:F,folders:P,activeServerId:m,serversLoading:j.isPending&&0===A.length,view:u,onHome:H,onServerNavigate:q,onCreateServer:$,onLeaveServer:E?Q:void 0,onOpenSettings:E?V:void 0,onOpenInvitePopover:E?W:void 0},navigate:Y}}({navigation:_,queryClient:x,breakpoint:k,view:d,activeServerId:m,projectedView:en,projectedActiveServerId:ea,onOpenActiveServerSettings:v,onOpenActiveServerInvite:y,accountId:w.id}),ei=function({router:e,queryClient:t,cancelPendingNavigation:d,view:m,activeServerId:h}){let p,f,g,v,y,b,x,w,C,k=(0,u.useCommunityRuntime)(),I=(0,J.useCommunityViewSource)(JSON.stringify(["shell-profile",m,h])),A=(0,a.usePathname)(),E=(0,a.useSearchParams)(),T=(0,td.readBillingReturn)(E.get("billing")),O="billing"===E.get("settings")||!!T,D=()=>{if(Q(!1),O){let e=new URLSearchParams(E.toString());e.delete("settings"),e.delete("billing"),window.history.replaceState(null,"",`${A}${e.size?`?${e}`:""}${window.location.hash}`)}},L=(0,F.useCurrentUser)(),{friends:_}=(0,nb.useFriends)(),U="server"===m?h??null:null,{members:z}=(0,nx.useServerMembers)(U),K=(0,nw.useCreateOrGetDm)(),{accept:q}=(0,nk.useDmMessageSender)(),B=(0,nC.useUpdateProfile)(),H=(0,nC.useUploadUserAvatar)(),[$,Q]=(0,o.useAtom)((0,l.useCreateAtom)(!1)),[V,W]=(0,o.useAtom)((0,l.useCreateAtom)(null)),[G,X]=(0,o.useAtom)((0,l.useCreateAtom)(null)),[Z,ee]=(0,o.useAtom)((0,l.useCreateAtom)(null)),et=(0,l.useCreateAtom)(null),[en,ea]=(0,o.useAtom)(et),er=(0,n.useCallback)(e=>{e.release(),ea(t=>t===e?null:t)},[ea]);(0,n.useLayoutEffect)(()=>{if(!en)return;let e=()=>er(en);return en.assertActive.signal.aborted?e():en.assertActive.signal.addEventListener("abort",e,{once:!0}),()=>{en.assertActive.signal.removeEventListener("abort",e),en.release()}},[er,en]);let ei=V?.data.userId,es=(0,M.useCanonicalCommunityProfile)(ei);(0,i.useQuery)({queryKey:c.communityKeys.profile(ei??"__none__"),enabled:!!ei&&ei!==L.id,queryFn:(0,ng.userProfileQueryFn)(ei??""),staleTime:ng.PROFILE_STALE_TIME_MS});let eo=(0,n.useMemo)(()=>V?{...V,data:{...V.data,contextLabel:ny(U,z.find(e=>e.userId===ei)),mutual:es?.mutualServers??0,identity:es?.kind==="bot"&&es.ownerUserId&&es.ownerHandle?{kind:"bot",ownerProfile:{id:es.ownerUserId,handle:es.ownerHandle},ownedByViewer:es.ownedByViewer??!1}:es?.kind==="human"||ei===L.id?{kind:"human"}:void 0}}:null,[V,U,z,ei,es,L.id]),el=(0,n.useCallback)((e,t,n,a,r)=>{if(r&&r===L.id){let e=U?z.find(e=>e.userId===L.id):void 0;W({data:{userId:L.id,contextLabel:ny(U,e),mutual:0,identity:{kind:"human"}},x:t,y:n});return}let i=function(e,t,n){let{name:a,discriminator:r,userId:i}=n;return(i?(e??[]).find(e=>e.userId===i)??(t??[]).find(e=>e.userId===i):void 0)??(r?(e??[]).find(e=>e.name===a&&e.discriminator===r)??(t??[]).find(e=>e.name===a&&e.discriminator===r):void 0)??(e??[]).find(e=>e.name===a)??(t??[]).find(e=>e.name===a)}(z,_,{name:e,discriminator:a,userId:r}),s=i?.userId??r;W({data:{...s?{userId:s}:{name:e,discriminator:a},contextLabel:ny(U,i),mutual:0},x:t,y:n})},[L.id,_,z,U,W]),ec=(0,n.useCallback)((e,t,n,a)=>{el(e,t.clientX,t.clientY,n,a)},[el]),eu=(0,n.useCallback)(e=>{if(!eo)return;let t=(0,nf.parseNameAndTag)(e.handle);t&&el(t.name,eo.x,eo.y,t.discriminator,e.id)},[el,eo]),ed=(0,n.useCallback)(t=>{d(),e.push(`/c/me/bots?audit=${encodeURIComponent(t)}`),W(null)},[d,e,W]),em=(0,n.useCallback)(e=>X(e),[X]),eh=(0,n.useCallback)(e=>ee(e),[ee]),ep=async(e,t)=>{let n=I.capture();try{await B.mutateAsync({statusEmoji:e,statusText:t,assertActive:n}),n()}catch(e){(0,e$.toastApiError)(e,"Failed to update status",n)}},ef=async(t,n)=>{let a,r=I.capture();if(r(),!t)return void(0,eC.toast)("Could not find user");d();let i=e.captureIntent?.()??(()=>!0),s=()=>{if(r(),!i())throw new DOMException("Retired profile navigation","AbortError")};try{let e=await K.mutateAsync({userId:t,assertActive:r});s(),a=e.conversation.id}catch(e){(0,e$.toastApiError)(e,"Failed to open DM",s);return}let o=n.trim();if(o){let e=q({assertActive:r,dmId:a,content:o,author:{id:L.id,name:L.name,avatar:L.avatar}});if(!e.accepted)return void(0,eC.toast)("Failed to send message");e.committed}e.push(`/c/me/${a}`)},eg=async e=>{let t=I.capture();try{await B.mutateAsync({...e,assertActive:t}),t()}catch(e){(0,e$.toastApiError)(e,"Failed to save profile",t)}},ev=(p=(0,s.useQueryClient)(),f=(0,r.getCommunityDbRegistry)(p),g=(0,n.useCallback)(()=>{if(!f)throw new DOMException("Missing sign-out account","AbortError");if((0,r.getCommunityDbRegistry)(p)!==f)throw new DOMException("Retired sign-out account","AbortError");let e=(0,N.captureCommunityLiveSnapshotToken)(p);return(0,N.assertCommunityLiveSnapshotTokenCurrent)(p,e,void 0),{registry:f,token:e,authenticationGeneration:f.authenticationView.get().generation}},[p,f]),v=(0,Y.useMutation)({meta:{observabilityAction:"account.sign_out"},mutationKey:["community","sign-out"],scope:{id:"account-sign-out"},gcTime:0,mutationFn:async({registry:e,token:t})=>{let n=()=>(0,N.assertCommunityLiveSnapshotTokenCurrent)(p,t,void 0);n();let a=e.authenticationView.get().generation,r=new AbortController,i=e.runtime.lifecycle.subscribe(()=>{try{n()}catch{r.abort()}});try{let t=await (0,P.signOutWithOrigin)(n,{fetchOptions:{signal:r.signal,onRequest:n,onSuccess:n}});if(t?.error)throw n(),Error(t.error.message||"Failed to log out");(0,R.retireCommunityAccount)(e),await e.retireDisk().catch(e=>{console.error("Account disk cache retirement failed",e)});let i=e.sessionViewer();return e.authenticationView.get().active&&e.authenticationView.get().generation===a&&(null==i||i===e.accountId)}catch(e){throw n(),e}finally{i.unsubscribe()}}}),y=(0,n.useCallback)(e=>{if(!e)return;let t=e=>{let t=e.registry.authenticationView.get(),n=e.registry.sessionViewer();return(0,r.getCommunityDbRegistry)(p)===e.registry&&t.active&&t.generation===e.authenticationGeneration&&(null==n||n===e.registry.accountId)},n=e=>{try{return(0,N.assertCommunityLiveSnapshotTokenCurrent)(p,e.token,void 0),!0}catch{return!1}};return{onSuccess:(n,a,r,i)=>{n&&t(a)&&e.onSuccess?.(n,void 0,r,i)},onError:(t,a,r,i)=>{n(a)&&e.onError?.(t,void 0,r,i)},onSettled:(a,r,i,s,o)=>{(r?n(i):a&&t(i))&&e.onSettled?.(a,r,void 0,s,o)}}},[p]),b=v.mutate,x=v.mutateAsync,w=(0,n.useCallback)((e,t)=>b(g(),y(t)),[b,g,y]),C=(0,n.useCallback)((e,t)=>x(g(),y(t)),[x,g,y]),{...v,mutate:w,mutateAsync:C}),ey=async()=>{let e=(0,N.captureCommunityLiveSnapshotToken)(t);try{await ev.mutateAsync()&&globalThis.location.replace("/sign-in")}catch(n){(0,e$.toastApiError)(n,"Failed to log out",()=>(0,N.assertCommunityLiveSnapshotTokenCurrent)(t,e,void 0))}},eb=async()=>{d(),k.ui.actions.reset(),k.ws.actions.reset(),k.messageStream.actions.resetAll(),(0,j.disposeReadCoordinator)(t),(0,S.disposeAccountReadStateReconciliation)(t),t.clear(),Q(!1)},ex={onClose:D,initialTab:O?"billing":"profile",billingReturn:T,userId:L.id,userName:L.name,userEmail:L.email,aboutMe:L.aboutMe??"",avatar:L.avatar,statusEmoji:L.statusEmoji,statusText:L.statusText,onUploadAvatar:()=>{let e=I.capture(),t=document.createElement("input");t.type="file",t.accept="image/png,image/jpeg,image/webp",t.onchange=()=>{try{e()}catch{return}let n=t.files?.[0];if(!n)return;let a=(0,nv.validateIconSourceFile)(n);if(!a.ok)return void(0,eC.toast)(a.error);let r=URL.createObjectURL(n),i=!1;et.get()?.release(),ea({src:r,fileName:n.name,assertActive:e,release:()=>{i||(i=!0,URL.revokeObjectURL(r))}})},t.click()},onSave:eg,onLogout:ey,onAccountDeleted:eb},ew=null;return en&&(ew={imageSrc:en.src,originalFileName:en.fileName,onCropped:e=>{let t=en.assertActive;if(et.get()!==en)return void en.release();try{t()}catch{er(en);return}H.mutate({file:e,assertActive:t},{onSuccess:()=>{try{t()}catch{return}(0,eC.toast)("Avatar updated")},onError:e=>(0,e$.toastApiError)(e,"Failed to upload avatar",t)}),er(en)},onCancel:()=>{er(en)}}),{currentUser:L,openProfile:ec,openOwnerProfile:eu,openBotAudit:ed,previewImage:em,previewAttachment:eh,profile:eo,closeProfile:()=>W(null),profileMessage:ef,updateOwnStatus:ep,preview:G,closePreview:()=>X(null),attachmentPreview:Z,onAttachmentPreviewOpenChange:e=>{e||ee(null)},editingProfile:$||O,openUserSettings:()=>Q(!0),onUserSettingsOpenChange:e=>{e||D()},userSettingsProps:ex,pendingAvatarCrop:ew}}({router:_,queryClient:x,cancelPendingNavigation:_.cancelPendingNavigation,view:d,activeServerId:m}),es=function({router:e,queryClient:t,cancelPendingNavigation:a,publishedHref:r,navigationPending:i,pendingHref:s,viewerId:c,accessEpoch:u}){let d=(0,n.useCallback)(t=>{e.pushImmediate?e.pushImmediate(t):e.push(t)},[e]),m=(0,nS.useInboxAttention)(),h=m.servers,p=m.dms,f=m.mentions,g=m.isLoading,[v,y]=(0,o.useAtom)((0,l.useCreateAtom)(!1)),[b,x]=(0,o.useAtom)((0,l.useCreateAtom)("unreads")),w=(0,n.useRef)({unreads:0,mentions:0,marked:0}),C=(0,nS.useInboxMarked)(v),{mutate:k}=(0,nT.useUnmarkMessage)(),S=(0,nM.useMarkAllInboxRead)(),j=(0,nM.useDeleteMention)(),I=(0,nN.useAcceptFriendRequest)(),P=(0,nN.useRejectFriendRequest)(),E=function({queryClient:e,publishedHref:t,navigationPending:a,pendingHref:r}){let i,s=(0,l.useCreateAtom)(!1),[c,u]=(0,o.useAtom)(s),d=((i=nP.get(e))||(i={value:(0,nI.createStore)({lease:null,nextEpoch:0})},nP.set(e,i)),i),m=(0,A.useSelector)(d.value,e=>e.lease),h=m?.target??null,p=(0,l.useCreateAtom)(t),f=(0,n.useCallback)(e=>{d.value.get().lease?.epoch!==e.epoch||(nE(d,{...e,phase:"committed"}),(0,nA.activateInboxProjectionTicket)(e.ticket))},[d]),g=(0,n.useCallback)((e,t=!1)=>{let n=d.value.get().lease;return!!n&&n.epoch===e&&((0,nA.cancelInboxProjectionTicket)(n.ticket),nE(d,null),t&&u(n.previousOpen),!0)},[d,u]),v=(0,n.useCallback)((n,a)=>{let r=d.value.get().lease;r&&(0,nA.cancelInboxProjectionTicket)(r.ticket);let i=(d.value.setState(e=>({...e,nextEpoch:e.nextEpoch+1})),d.value.get().nextEpoch),o=s.get(),l=(0,nA.registerInboxProjectionTicket)(e,i,n,e=>{let t=d.value.get().lease;t&&t.epoch===e.epoch&&nE(d,null)});return nE(d,{epoch:i,target:n,destinationHref:a,originHref:t,previousOpen:o,phase:"submitting",submitted:!1,navigationObserved:!1,ticket:l}),u(!1),i},[d,s,e,t,u]),y=(0,n.useCallback)(e=>{let n=d.value.get().lease;if(!n||n.epoch!==e)return!1;let a={...n,submitted:!0};return nE(d,a),nR(t,n.destinationHref)&&f(a),!0},[f,t,d]),b=(0,n.useCallback)(()=>{let e=d.value.get().lease;e&&(0,nA.cancelInboxProjectionTicket)(e.ticket),nE(d,null);let t=s.get();return u(!1),t},[d,s,u]),x=(0,n.useCallback)(e=>{u(e)},[u]),w=(0,n.useCallback)(e=>!!e&&!!h&&h.identity===e.identity&&h.fingerprint===e.fingerprint,[h]),C=(0,n.useCallback)(e=>d.value.get().lease?.epoch===e,[d]);return(0,n.useEffect)(()=>{let e=d.value.get().lease;if(e&&e.submitted&&"submitting"===e.phase){if(nR(t,e.destinationHref))return void f(e);if(a&&nR(r,e.destinationHref)){e.navigationObserved||nE(d,{...e,navigationObserved:!0});return}(e.navigationObserved||t!==e.originHref||a&&null!==r)&&g(e.epoch)}},[f,a,r,m,t,g,d]),(0,n.useEffect)(()=>{let e=p.get();p.set(t),!nR(e,t)&&s.get()&&u(!1)},[t,p,s,u]),{open:c,projectionTarget:h,onOpenChange:x,beginProjection:v,markProjectionSubmitted:y,rollbackProjection:g,closeWithoutProjection:b,isProjected:w,isLatestProjection:C}}({queryClient:t,publishedHref:r,navigationPending:i,pendingHref:s}),R=(0,n.useCallback)(e=>{x(e),"marked"===e&&y(!0)},[x,y]),M=(0,n.useCallback)(e=>w.current[e],[]),T=(0,n.useCallback)((e,t)=>{w.current[e]=t},[]),O=(0,n.useCallback)(e=>I.mutateAsync({friendshipId:e}),[I]),D=(0,n.useCallback)(e=>P.mutateAsync({friendshipId:e}),[P]),L=(0,nO.useFriendRequestActionState)({rows:m.friendRequests,onAccept:O,onReject:D,surface:"inbox"}),_=(0,n.useCallback)((e,n,r,i,s)=>{let o=E.beginProjection(e,n);a(),(0,nD.clearThreadOpenerReadHandoff)(t);let l=nK(t,{...r,href:n,viewerId:c},u),m=n;try{m=i?.()??n,d(m),E.markProjectionSubmitted(o)&&s?.()}catch(n){(0,nF.cancelConversationNavigationProof)(t,l);let e=new URLSearchParams(m.split("?")[1]??"").get("inboxThreadOpener");throw e&&(0,nA.terminateThreadOpenerReservationHandoff)(t,e),E.isLatestProjection(o)&&(a(),E.rollbackProjection(o,!0)),n}},[u,a,E,d,t,c]),U=(0,n.useCallback)((e,n,r)=>{let i=(0,ek.channelHref)(e.serverId,n.channelId),s=r?(0,nA.inboxChannelRowTarget)(e,n):null;if(!s){let r=E.closeWithoutProjection();a(),(0,nD.clearThreadOpenerReadHandoff)(t);let s=nK(t,{href:i,viewerId:c,channelId:n.channelId,serverId:e.serverId,scopeKind:"channel",expectedSurfaceKind:"forum"===n.type?"forum":"channel"},u);try{d(i)}catch(e){throw(0,nF.cancelConversationNavigationProof)(t,s),a(),E.onOpenChange(r),e}return}_(s,i,{channelId:n.channelId,serverId:e.serverId,scopeKind:"channel",expectedSurfaceKind:"forum"===n.type?"forum":"channel"})},[u,a,E,d,_,t,c]),z=(0,n.useCallback)((e,n,a)=>{let r=(0,nA.inboxThreadRowTarget)(e,n,a),i=(0,ek.channelHref)(e.serverId,a.channelId);_(r,i,{channelId:a.channelId,serverId:e.serverId,scopeKind:"channel",expectedSurfaceKind:"thread"},()=>a.openerMessageId&&!0===a.openerUnread&&void 0!==a.openerSeq?(0,nD.armThreadOpenerReadHandoff)(t,{serverId:e.serverId,parentChannelId:a.parentChannelId??n.channelId,childChannelId:a.channelId,openerMessageId:a.openerMessageId,openerSeq:a.openerSeq}):i)},[_,t]),F=(0,n.useCallback)(e=>{let n=E.closeWithoutProjection();a(),(0,nD.clearThreadOpenerReadHandoff)(t);let r=null!=e.m.seq?`?seq=${e.m.seq}`:"",i=e.serverId?`${(0,ek.channelHref)(e.serverId,e.channelId)}${r}`:`/c/me/${e.channelId}${r}`,s=nK(t,{href:i,viewerId:c,channelId:e.channelId,...e.serverId?{serverId:e.serverId}:{},scopeKind:e.serverId?"channel":"dm",...e.serverId?{anchorMessageId:e.m.id}:{},...!e.serverId?{expectedSurfaceKind:"dm"}:{}},u);try{d(i)}catch(e){throw(0,nF.cancelConversationNavigationProof)(t,s),a(),E.onOpenChange(n),e}},[u,a,E,d,t,c]),K=(0,n.useCallback)(e=>{let n=e.channelId;_((0,nA.inboxDmRowTarget)(e),`/c/me/${n}`,{channelId:n,scopeKind:"dm",expectedSurfaceKind:"dm"},()=>{let n={id:e.channelId,userId:e.otherUserId,name:e.otherUserName,discriminator:e.otherUserDiscriminator,avatar:e.otherUserAvatar,avatarVersion:e.otherUserAvatarVersion,status:"offline",preview:"",activityAt:e.lastMessageAt,unread:!1};(0,N.publishCommunityDmSummary)(t,n)},()=>{(0,nj.startChannelRouteVerification)(t,null,n).catch(()=>void 0)})},[_,t]),q=(0,n.useCallback)(e=>{let t=(0,nA.inboxMentionRowTarget)(e);t&&e.serverId&&e.channelId&&_(t,`${(0,ek.channelHref)(e.serverId,e.channelId)}?msg=${e.m.id}`,{channelId:e.channelId,serverId:e.serverId,scopeKind:"channel",anchorMessageId:e.m.id})},[_]),B=(0,n.useCallback)(()=>{let e=E.closeWithoutProjection();a();try{d("/c/me/friends?tab=new")}catch(t){throw a(),E.onOpenChange(e),t}},[a,E,d]),H={friendRequests:L.items,unreads:h,unreadDms:p,mentions:f,marked:C.marked,markedLoading:C.isLoading,loading:g,attentionError:m.isInitialError,onRetryAttention:()=>{m.refetch()},hasProjectedUnreads:m.hasUnread,hasProjectedMentions:m.hasMention,onOpenChannel:U,onOpenThread:z,onOpenDm:K,onOpenMention:q,onOpenMarked:F,onOpenFriendRequests:B,onAcceptFriendRequest:e=>{L.act(e,"accept")},onRejectFriendRequest:e=>{L.act(e,"reject")},onRetryFriendRequest:e=>{L.retry(e)},activeTab:b,onActiveTabChange:R,onMarkedTabSelected:()=>y(!0),getScrollOffset:M,onScrollOffsetChange:T,onMarkAllRead:()=>{S.mutate()},onDeleteMention:e=>j.mutate({mentionId:e}),onUnmark:e=>k({messageId:e})},$=m.exactAttentionCount;return{popoverProps:H,unreadCount:$,unreadCountPartial:!1,hasUnread:$>0,open:E.open,onOpenChange:E.onOpenChange}}({router:_,queryClient:x,cancelPendingNavigation:_.cancelPendingNavigation,publishedHref:_.publishedHref,navigationPending:_.navigationPending,pendingHref:_.pendingHref,viewerId:w.id,accessEpoch:C}),[eo,el]=(0,o.useAtom)((0,l.useCreateAtom)(t7)),ec=(0,n.useCallback)(e=>{el(t=>(function(e,t){switch(t.type){case"update.sync":{if(e.update)return nn(e,t.eligibleMachineIds);if(0===t.eligibleMachineIds.length)return e;let n=t.collapsed||"none"!==e.active;return{active:n?e.active:"update",update:{phase:n?"collapsedBadge":"expanded",targetMachineIds:t3(t.eligibleMachineIds),acceptedMachineIds:[],failedMachineIds:[],pendingMachineIds:[]}}}case"update.eligibility":return nn(e,t.eligibleMachineIds);case"update.clear":return{active:"update"===e.active?"none":e.active,update:null};case"update.open":if(!e.update)return e;return{active:"update",update:{...e.update,phase:"collapsedBadge"===e.update.phase?"expanded":e.update.phase}};case"update.collapse":if(!e.update)return"update"===e.active?{...e,active:"none"}:e;return{active:"update"===e.active?"none":e.active,update:{...e.update,phase:"expanded"===e.update.phase?"collapsedBadge":e.update.phase}};case"update.dispatch":{if(!e.update)return e;let n=new Set(t.machineIds);return{active:"update",update:{...e.update,phase:"updating",failedMachineIds:t8(e.update.failedMachineIds,n),pendingMachineIds:t3([...e.update.pendingMachineIds,...t.machineIds])}}}case"update.settle":{if(!e.update)return e;let n=new Set(e.update.targetMachineIds),a=t.acceptedMachineIds.filter(e=>n.has(e)),r=t.failedMachineIds.filter(e=>n.has(e)),i=new Set(a),s=new Set(r),o=new Set([...i,...s]),l=t3([...t8(e.update.acceptedMachineIds,s),...a]),c=t3([...t8(e.update.failedMachineIds,i),...r]);return{active:e.active,update:{...e.update,phase:c.length>0?"retry":"updating",acceptedMachineIds:l,failedMachineIds:c,pendingMachineIds:t8(e.update.pendingMachineIds,o)}}}case"extension.open":return{active:t.extension,update:e.update?.phase==="expanded"?{...e.update,phase:"collapsedBadge"}:e.update};case"extension.close":if(t.extension&&e.active!==t.extension)return e;return{active:"none",update:e.update?.phase==="expanded"?{...e.update,phase:"collapsedBadge"}:e.update}}})(t,e))},[el]),eu=function({userId:e,extensionState:t,dispatch:a,latestDaemonVersion:r="0.1.47",requestUpdate:i=nY}){let s=(0,X.useCommunityMutationOrigin)(),o=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>()=>{o.current=null},[s.registry,e,r]);let l=(0,nG.useMachines)(),c=(0,n.useMemo)(()=>{var e;return r?(e=l.machines,(0,n$.parseReleaseVersion)(r)?e.filter(e=>{let t=e.daemonVersion;return!!(0,nV.isPresenceOnline)(e.status)&&!!t&&!!(0,n$.parseReleaseVersion)(t)&&(0,n$.releaseVersionGte)(t,nQ.SELF_UPDATE_MIN_DAEMON_VERSION)&&!(0,n$.releaseVersionGte)(t,r)}):[]):[]},[r,l.machines]),u=(0,n.useMemo)(()=>c.map(e=>e.id),[c]);(0,n.useLayoutEffect)(()=>{let e=new Set(u);for(let t of o.current?.machineIds??[])e.has(t)||o.current?.machineIds.delete(t)},[u]);let d=(0,n.useMemo)(()=>({registry:s.registry,userId:e,latestDaemonVersion:r}),[s.registry,e,r]),m=(0,n.useRef)(d);(0,n.useEffect)(()=>{m.current!==d&&(m.current=d,a({type:"update.clear"}))},[a,d]);let h=t.update;(0,n.useEffect)(()=>{if(r&&(0,n$.parseReleaseVersion)(r)&&l.isSuccess){if(0===u.length){nJ(e,r,!1),a({type:"update.clear"});return}if(!h)return void a({type:"update.sync",collapsed:function(e,t){try{return"1"===window.localStorage.getItem(nX(e,t))}catch{return!1}}(e,r),eligibleMachineIds:u});a({type:"update.eligibility",eligibleMachineIds:u})}},[a,u,r,l.isSuccess,h,e]);let p=(0,n.useCallback)(()=>{r&&t.update&&(nJ(e,r,!0),a({type:"update.collapse"}))},[a,t.update,r,e]),f=(0,n.useCallback)(()=>{r&&t.update&&(nJ(e,r,!1),a({type:"update.open"}))},[a,t.update,r,e]),g=(0,n.useCallback)(async()=>{let e=t.update;if(!e||e.pendingMachineIds.length>0)return;let n=function(e,t){let n=new Set(t);if("retry"===e.phase)return e.failedMachineIds.filter(e=>n.has(e));let a=new Set(e.acceptedMachineIds),r=new Set(e.pendingMachineIds);return e.targetMachineIds.filter(e=>n.has(e)&&!a.has(e)&&!r.has(e))}(e,u);if(0===n.length)return;let r=s.begin().token,l=s.registry.authenticationView.get();s.assertOwner(r);let c={machineIds:new Set(n)};o.current=c,a({type:"update.dispatch",machineIds:n});let d=await nZ(n,i);try{s.assertOwner(r)}catch{return}let m=s.registry.authenticationView.get();if(!m.active||m.generation!==l.generation||o.current!==c)return;let h=c.machineIds;for(let e of(d.acceptedMachineIds=d.acceptedMachineIds.filter(e=>h.has(e)),d.failedMachineIds=d.failedMachineIds.filter(e=>h.has(e)),d.failedMachineIds))nW.log.warn("daemon update request failed",{machineId:e});a({type:"update.settle",...d})},[a,u,t.update,i,s]);return{eligibleMachines:c,eligibleMachineIds:u,update:h,collapse:p,open:f,request:g}}({userId:w.id,extensionState:eo,dispatch:ec}),ed=(0,n.useCallback)(e=>{if(!e){es.onOpenChange(!1),ec({type:"extension.close",extension:"inbox"});return}"profile"===eo.active&&ei.closeProfile(),"update"===eo.active&&eu.collapse(),es.onOpenChange(!0),ec({type:"extension.open",extension:"inbox"})},[eu,ec,es,ei,eo.active]),em=(0,n.useCallback)((e,t,n,a)=>{if("profile"===eo.active){ei.closeProfile(),ec({type:"extension.close",extension:"profile"});return}"inbox"===eo.active&&es.onOpenChange(!1),"update"===eo.active&&eu.collapse(),ei.openProfile(e,t,n,a),ec({type:"extension.open",extension:"profile"})},[eu,ec,es,ei,eo.active]),eh=(0,n.useCallback)(()=>{"inbox"===eo.active&&es.onOpenChange(!1),"profile"===eo.active&&ei.closeProfile(),eu.open()},[eu,es,ei,eo.active]),ep=(0,n.useCallback)(()=>{"inbox"===eo.active&&es.onOpenChange(!1),"profile"===eo.active&&ei.closeProfile(),"update"===eo.active&&eu.collapse(),ec({type:"extension.close",extension:eo.active})},[eu,ec,es,ei,eo.active]);(0,n.useEffect)(()=>{"mobile"===k&&"detail"===et.surface&&"none"!==eo.active&&ep()},[k,et.surface,ep,eo.active]);let ef=(0,n.useCallback)(()=>("mobile"!==k||"detail"!==et.surface)&&"none"!==eo.active&&(ep(),!0),[k,et.surface,ep,eo.active]),eg=(0,n.useCallback)(()=>{z.parentPath&&_.replace(z.parentPath)},[_,z.parentPath]);return!function({dismissShellOverlay:e,parentPath:t,replacePath:a}){(0,n.useEffect)(()=>{let n=n=>{!n.cancelable||(0!==document.querySelectorAll('[data-slot="dialog-content"],[data-slot="alert-dialog-content"],[data-slot="sheet-content"]').length&&(document.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape",code:"Escape",bubbles:!0,cancelable:!0})),1)||e()?n.preventDefault():t&&(n.preventDefault(),a(t)))};return window.addEventListener(n1,n),()=>window.removeEventListener(n1,n)},[e,t,a])}({dismissShellOverlay:ef,parentPath:z.parentPath,replacePath:U}),(0,n.useEffect)(()=>{"inbox"!==eo.active||es.open||ec({type:"extension.close",extension:"inbox"})},[ec,es.open,eo.active]),(0,n.useEffect)(()=>{"profile"!==eo.active||ei.profile?.data.userId!==w.id&&ec({type:"extension.close",extension:"profile"})},[w.id,ec,ei.profile,eo.active]),(0,n.useEffect)(()=>{"mobile"===k&&I?.status==="active"&&"server"===I.stage&&"detail"===z.surface&&z.parentPath&&U(z.parentPath)},[k,I,U,z.parentPath,z.surface]),(0,n.useEffect)(()=>{(0,u.getCommunityRuntime)(x).ui.actions.registerUiHandlers({previewImage:ei.previewImage,previewAttachment:ei.previewAttachment,openProfile:ei.openProfile,goBackMobile:eg,navigatePath:_.push,replacePath:_.replace,navigate:er.navigate,cancelPendingNavigation:_.cancelPendingNavigation})},[eg,ei.openProfile,ei.previewAttachment,ei.previewImage,er.navigate,_.cancelPendingNavigation,_.push,_.replace,x]),(0,t.jsx)(eO.CommunityRouteContext,{value:{frame:O,navigation:_,ownerDeleteRouteScope:b},children:(0,t.jsx)(ni,{breakpoint:k,checkpoint:et,sidebar:p,extraDialogs:g,rail:er,profile:ei,inbox:es,userBarExtension:eo,daemonUpdate:eu,onUserBarInboxOpenChange:ed,onUserBarOpenProfile:em,onUserBarOpenUpdate:eh,dismissUserBarExtension:ep,children:f})})}function n4({sidebar:e,children:r}){let i=(0,a.useSelectedLayoutSegments)(),o=i.length?`/c/${i.join("/")}`:"/c",l=(0,ek.communityServerId)(o),c=(0,s.useQueryClient)(),d=(0,F.useCurrentUser)(),m=(0,n.useMemo)(()=>l?{serverId:l,token:(0,eS.createOwnerServerDeleteRouteToken)(c)}:void 0,[c,l]),h=(0,n.useCallback)(()=>e,[e]);return(0,n.useLayoutEffect)(()=>{(0,u.getCommunityRuntime)(c).ui.actions.setCurrentServerId(l)},[c,l]),(0,t.jsx)(n2,{view:l?"server":"dm",activeServerId:l??void 0,frameHref:o,sidebar:h,ownerDeleteRouteScope:m,children:r},d.id)}var n5=e.i(205189);function n9({redirectTo:e}={}){let t=(0,a.useRouter)(),r=(0,eT.useBreakpoint)(),i=(0,M.useOptionalCommunityDbRegistry)();return(0,n.useEffect)(()=>{if("unknown"===r)return;let n=document.cookie.match(/(?:^|; )is_new_signup=([^;]*)/);if(!n)return;let a=decodeURIComponent(n[1]);if((0,n5.trackSignUp)(a),document.cookie="is_new_signup=; max-age=0; path=/","mobile"!==r&&e){if(e.startsWith("/c/")){if(!i?.runtime.lifecycle.get().active)return;(0,ee.startCommunityOnboarding)(i.runtime),t.replace(e);return}window.location.replace(e)}},[r,e,t,i]),null}var n6=e.i(181402),n7=e.i(824863),n3=e.i(88723),n8=e.i(395207);let ae={isDesktopTauri:()=>(0,n7.isTauri)()&&(0,n7.isDesktop)(),invoke:n7.tauriInvoke,postCancel:e=>fetch("/api/auth/native/cancel",{method:"POST",credentials:"same-origin",cache:"no-store",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:AbortSignal.timeout(15e3)})};async function at(e=ae){if(!e.isDesktopTauri())return;let t=n8.nativeOauthSnapshotSchema.nullable().parse(await e.invoke("native_oauth_snapshot"));if(!t)return;let n=n3.nativeOauthProofSchema.nullable().parse(await e.invoke("native_oauth_cancel",{attemptId:t.attemptId}));n&&await e.postCancel(n).catch(()=>{})}function an(){return(0,n.useEffect)(()=>{at().catch(()=>{})},[]),null}var aa=e.i(455393);e.s(["CommunityLayoutClient",0,function({children:e,sidebar:r,currentUser:i}){let s=(0,a.useRouter)(),o=(0,a.usePathname)(),l="public-invite"===(0,ek.resolveCommunityModulePlan)(o).route;return((0,n.useEffect)(()=>{l||i||s.replace("/sign-in")},[i,l,s]),(0,n.useEffect)(()=>{i?(0,aa.retireCommunityColdEntryAttempt)(i.id,o):(0,aa.clearCommunityColdEntryAttempts)()},[i,o]),l)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n9,{}),e]}):i?(0,t.jsxs)(n6.AuthenticatedContextMenuBoundary,{children:[(0,t.jsx)(an,{}),(0,t.jsxs)(eE,{currentUser:i,children:[(0,t.jsx)(n9,{redirectTo:"/c/me/machines"}),(0,t.jsx)(n4,{sidebar:r,children:e})]})]}):(0,t.jsx)(eP.CommunitySessionPendingFrame,{pathname:o})}],200069)},401462,e=>{"use strict";var t=e.i(237649),n=e.i(290139),a=e.i(215932);e.s(["CommunitySessionFallback",0,function(){let e=(0,n.usePathname)();return(0,t.jsx)(a.CommunitySessionPendingFrame,{pathname:e})}])},974802,e=>{e.v({shell:"settings-shell-module__Gd188q__shell"})},109762,527668,e=>{"use strict";var t=e.i(237649),n=e.i(731517),a=e.i(974802),r=e.i(186339),i=e.i(255334),s=e.i(996718),o=e.i(381153);let l="col-start-1 row-start-2 flex min-w-0 items-center gap-1 px-2 thin-scrollbar sm:row-span-2 sm:row-start-1 sm:flex-col sm:items-stretch sm:gap-2 sm:overflow-y-auto sm:p-4",c="h-11 min-w-0 flex-1 flex-row justify-start gap-1 overflow-hidden p-0 group-data-horizontal/tabs:h-11 sm:h-auto sm:w-full sm:flex-none sm:flex-col",u="size-11 justify-center gap-2 px-0 sm:h-9 sm:w-full sm:justify-start sm:px-2",d="sr-only sm:not-sr-only sm:min-w-0 sm:truncate sm:px-2 sm:pt-1 sm:text-xs sm:font-medium sm:text-muted-foreground",m="flex shrink-0 gap-1 sm:mt-auto sm:w-full sm:flex-col sm:border-t sm:border-border/60 sm:pt-2";e.s(["SETTINGS_LOGOUT_CLASS",0,"size-11 shrink-0 justify-center text-destructive hover:text-destructive sm:h-9 sm:w-full sm:justify-start","SETTINGS_NAV_CLASS",0,l,"SETTINGS_NAV_FOOTER_CLASS",0,m,"SETTINGS_NAV_LABEL_CLASS",0,d,"SETTINGS_TABS_LIST_CLASS",0,c,"SETTINGS_TAB_CLASS",0,u],527668),e.s(["SettingsShell",0,function({value:e,onValueChange:h,label:p,title:f,tabs:g,onClose:v,navFooter:y,disabled:b=!1,children:x}){let w=(0,s.useBreakpoint)();return(0,t.jsxs)(i.Tabs,{orientation:"mobile"===w?"horizontal":"vertical",value:e,onValueChange:e=>h(e),className:`grid min-h-0 w-full flex-1 gap-0 ${a.default.shell}`,"data-testid":o.tid.settingsShell,children:[(0,t.jsxs)("header",{className:"col-start-1 row-start-1 flex h-16 min-w-0 items-center px-4 sm:col-start-2 sm:px-8",children:[(0,t.jsx)("h1",{className:"min-w-0 flex-1 truncate text-lg font-medium tracking-tight",children:f}),(0,t.jsx)(r.Button,{variant:"ghost",size:"icon-sm",className:"size-11 sm:size-8",onClick:v,disabled:b,"aria-label":"Close settings","data-testid":o.tid.settingsClose,children:(0,t.jsx)(n.X,{className:"size-4"})})]}),(0,t.jsxs)("nav",{className:l,style:{background:"var(--d-rail)"},"data-testid":o.tid.settingsNav,children:[(0,t.jsx)("div",{className:d,"data-testid":o.tid.settingsLabel,children:p}),(0,t.jsx)(i.TabsList,{variant:"line",className:c,children:g.map(({value:e,label:n,icon:a})=>(0,t.jsxs)(i.TabsTrigger,{value:e,disabled:b,className:u,"data-testid":o.tid.settingsTab(e),children:[(0,t.jsx)(a,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only whitespace-nowrap sm:not-sr-only",children:n})]},e))}),y?(0,t.jsx)("div",{className:m,children:y}):null]}),(0,t.jsx)("div",{className:"col-start-1 row-start-3 min-h-0 min-w-0 overflow-y-auto rounded-tl-xl bg-background px-4 pt-6 pb-4 thin-scrollbar sm:col-start-2 sm:row-start-2 sm:p-8 sm:pt-4","data-testid":o.tid.settingsContent,children:x})]})},"SettingsShellPanel",0,function(e){return(0,t.jsx)(i.TabsContent,{...e,keepMounted:!0})}],109762)},729979,e=>{"use strict";var t=e.i(382416);let n=(0,t.createContext)(null),a=(0,t.createContext)(null);e.s(["CommunityRouteContext",0,n,"CommunityServerRouteContext",0,a,"useCommunityRouteFrame",0,function(){let e=(0,t.useContext)(n);if(!e)throw Error("Missing community route frame");return e},"useCommunityServerRoute",0,function(){let e=(0,t.useContext)(a);if(!e)throw Error("Missing server content route");return e}])},215932,52622,e=>{"use strict";var t=e.i(237649),n=e.i(164237),a=e.i(250569),r=e.i(708884),i=e.i(996718),s=e.i(622435),o=e.i(381153),l=e.i(800989),c=e.i(382416),u=e.i(929554),d=e.i(384755),m=e.i(888917),h=e.i(613349),p=e.i(259728),f=e.i(190209);let g=()=>()=>{},v="(min-width: 640px)",y={getItem:e=>"u"<typeof localStorage?null:localStorage.getItem(e),setItem:(e,t)=>{"u">typeof localStorage&&localStorage.setItem(e,t)}},b=1+1/64;function x(e){let t=document.documentElement;"number"==typeof e&&(t.style.setProperty(p.COMMUNITY_LAYOUT_PREPAINT_SIDEBAR_WIDTH,`${e}px`),t.style.setProperty(p.COMMUNITY_LAYOUT_PREPAINT_USER_BAR_WIDTH,`${(0,p.desktopUserBarOverlayWidth)(e)}px`)),t.setAttribute(p.COMMUNITY_LAYOUT_PREPAINT_ATTRIBUTE,"")}function w(){document.documentElement.removeAttribute(p.COMMUNITY_LAYOUT_PREPAINT_ATTRIBUTE)}function C({breakpoint:e,surface:n,rail:a,sidebar:i,main:s,userBar:o,overlays:l,busy:k,label:S,routeKind:j,testId:I,preserveHiddenMobileModules:A=!1}){let{defaultLayout:P,onLayoutChanged:E}=(0,d.useDefaultLayout)({id:"community-shell",onlySaveAfterUserInteractions:!0,storage:y}),R=(0,c.useSyncExternalStore)(g,()=>!0,()=>!1),M=R?P?.sidebar:void 0,N=(0,c.useRef)(null),T=(0,c.useRef)(null),O=(0,c.useRef)(null),D=(0,c.useRef)(null),L=(0,c.useRef)(null),_=(0,c.useRef)(e),U=(0,c.useRef)(e),z=(0,c.useRef)(void 0),F=(0,c.useRef)(null),K=(0,c.useRef)(!1);(0,c.useInsertionEffect)(()=>{if(U.current=e,"mobile"===e&&null!==F.current){let{animationFrame:e}=F.current;null!==e&&cancelAnimationFrame(e),F.current=null,w()}"mobile"===_.current&&"desktop"===e&&null===F.current&&(F.current={target:(0,p.desktopSidebarRestoreTarget)(z.current,M),animationFrame:null},x(F.current.target))},[e,M]);let q=(0,c.useCallback)(e=>{L.current?.style.setProperty("--community-desktop-user-bar-width",`${(0,p.desktopUserBarOverlayWidth)(e)}px`)},[]),B=(0,c.useCallback)(e=>{if("desktop"!==U.current||null!==F.current)return;let t=N.current?.getBoundingClientRect().width,n=t&&t>0?t:e.inPixels;z.current=n,q(n)},[q]),H=(0,c.useCallback)(()=>{let e=O.current;e&&(e.resize(p.COMMUNITY_SIDEBAR_DEFAULT_WIDTH),queueMicrotask(()=>{let e=T.current?.getLayout();e&&0!==Object.keys(e).length&&E(e,{isUserInteraction:!0})}))},[E]);(0,c.useLayoutEffect)(()=>{let e=e=>{let t=D.current;if(!t)return;let n=t.getBoundingClientRect();e.clientX>=n.left-10&&e.clientX<=n.right+10&&e.clientY>=n.top&&e.clientY<=n.bottom&&H()};return document.addEventListener("dblclick",e,!0),()=>document.removeEventListener("dblclick",e,!0)},[H]),(0,c.useLayoutEffect)(()=>{if(void 0===P||K.current)return;let t=T.current;if(!t)return;let n=document.documentElement.hasAttribute(p.COMMUNITY_LAYOUT_PREPAINT_ATTRIBUTE)&&window.matchMedia(v).matches?N.current?.getBoundingClientRect().width:void 0,a="desktop"===e?N.current?.closest('[data-slot="resizable-panel-group"]')?.getBoundingClientRect().width:void 0,r=a&&a>p.COMMUNITY_SEPARATOR_WIDTH?Math.min(p.COMMUNITY_SIDEBAR_MAX_WIDTH,Math.max(p.COMMUNITY_SIDEBAR_MIN_WIDTH,P.sidebar/100*(a-p.COMMUNITY_SEPARATOR_WIDTH))):n;K.current=!0,t.setLayout(P),r&&r>0?(O.current?.resize(r),z.current=r,q(r)):L.current?.style.setProperty("--community-desktop-user-bar-width",(0,p.desktopUserBarInitialOverlayCssWidth)(P.sidebar))},[e,P,q]),(0,c.useLayoutEffect)(()=>{!k&&void 0!==P&&K.current&&null===F.current&&window.matchMedia(v).matches&&requestAnimationFrame(()=>{w()})},[e,k,P]),(0,c.useLayoutEffect)(()=>{_.current=e;let t=F.current;if("desktop"!==e||null===t)return;let n=O.current;if(!n)return;let a=!1,r=()=>{if(a||F.current!==t||"desktop"!==U.current)return;let e=N.current?.closest('[data-slot="resizable-panel-group"]')?.getBoundingClientRect().width,i=e&&e>p.COMMUNITY_SEPARATOR_WIDTH?e-p.COMMUNITY_SEPARATOR_WIDTH:void 0,s="string"==typeof t.target?Number.parseFloat(t.target):i?t.target/i*100:void 0;(0,u.flushSync)(()=>{if(w(),void 0!==s){let e=T.current,t=Object.keys(e?.getLayout()??{});for(let n of 2===t.length?[t,t.toReversed()]:[["main","sidebar"],["sidebar","main"]]){let t=Object.fromEntries(n.map(e=>[e,"sidebar"===e?s:100-s])),a=e?.setLayout(t);if(a?.sidebar!==void 0&&.01>=Math.abs(a.sidebar-s))break}}else n.resize(t.target)});let o=n.getSize(),l="number"==typeof t.target?t.target:i&&void 0!==s?Math.min(p.COMMUNITY_SIDEBAR_MAX_WIDTH,Math.max(p.COMMUNITY_SIDEBAR_MIN_WIDTH,s/100*i)):void 0,c=T.current?.getLayout()?.sidebar??o.asPercentage;if(!(void 0===s?void 0!==l&&Math.abs(o.inPixels-l)<=b:.01>=Math.abs(c-s))){x(t.target),t.animationFrame=requestAnimationFrame(r);return}let d=N.current?.getBoundingClientRect().width,m=d&&d>0?d:o.inPixels;if(void 0!==l&&Math.abs(m-l)>b){x(t.target),t.animationFrame=requestAnimationFrame(r);return}z.current=m,q(m),F.current=null};return queueMicrotask(r),()=>{a=!0,null!==t.animationFrame&&cancelAnimationFrame(t.animationFrame),F.current===t&&(F.current=null,w())}},[e,P,q]);let $="desktop"===e,Q="mobile"===e&&"list"===n,V="mobile"===e&&"detail"===n,W="unknown"===e,Y=W&&"detail"===n,G=Q||W&&"list"===n,X=V||Y,J=V||Y,Z=Q||W&&"list"===n,ee=$||Q||W||A,et={"--community-desktop-user-bar-width":(0,p.desktopUserBarInitialOverlayCssWidth)(M),marginLeft:-p.COMMUNITY_RAIL_WIDTH};return(0,t.jsxs)(f.Shell,{"aria-busy":k?"true":void 0,"aria-label":S,"data-community-route-kind":j,"data-testid":I,"data-slot":"community-shell-root",children:[(!V||A)&&(0,t.jsx)("div",{inert:V,"aria-hidden":V||void 0,className:(0,h.cn)("flex min-h-0",Y&&"hidden sm:contents",V&&A&&"hidden"),children:a}),(0,t.jsxs)("div",{className:(0,h.cn)("relative flex min-h-0 min-w-0 flex-1 flex-col",!V&&!Y&&"pt-2",Y&&"pt-0 sm:pt-2"),children:[(0,t.jsx)(r.AppSurface,{"data-slot":"community-app-surface",className:(0,h.cn)("rounded-tl-xl rounded-tr-none rounded-br-none rounded-bl-none ring-0 border-l border-t border-border/40 shadow-none",V&&"rounded-none border-0 bg-background shadow-none ring-0",Y&&"max-sm:rounded-none max-sm:border-0 max-sm:bg-background max-sm:shadow-none max-sm:ring-0"),children:(0,t.jsxs)(m.ResizablePanelGroup,{id:"community-shell",groupRef:T,orientation:"horizontal",disabled:!$,className:(0,h.cn)("min-h-0 flex-1",!$&&["max-sm:*:data-[mobile-active=true]:flex-1!","max-sm:*:data-[mobile-hidden=true]:flex-none!","max-sm:*:data-[mobile-hidden=true]:w-0!","max-sm:*:data-[mobile-hidden=true]:min-w-0!","max-sm:*:data-[mobile-hidden=true]:max-w-0!","max-sm:*:data-[mobile-hidden=true]:overflow-hidden!"]),defaultLayout:R?P:void 0,onLayoutChanged:E,children:[(0,t.jsx)(m.ResizablePanel,{id:"sidebar",panelRef:O,defaultSize:p.COMMUNITY_SIDEBAR_DEFAULT_WIDTH,minSize:p.COMMUNITY_SIDEBAR_MIN_WIDTH,maxSize:p.COMMUNITY_SIDEBAR_MAX_WIDTH,groupResizeBehavior:"preserve-pixel-size",onResize:B,disabled:!$,"data-mobile-active":G||void 0,"data-mobile-hidden":X||void 0,className:(0,h.cn)("flex flex-col bg-sidebar",($||Q||W)&&"pb-[calc(3.75rem+var(--app-safe-area-bottom))] sm:pb-15"),children:(0,t.jsx)("div",{ref:N,"data-slot":"community-sidebar-panel-content","data-community-mobile-surface":Q?"list":void 0,hidden:V,inert:V,"aria-hidden":V||void 0,className:(0,h.cn)("flex min-h-0 min-w-0 flex-1 flex-col",Y&&"max-sm:hidden"),children:i})}),(0,t.jsx)(m.ResizableHandle,{disabled:!$,className:(0,h.cn)("bg-transparent",!$&&"max-sm:w-0! max-sm:min-w-0! max-sm:max-w-0! max-sm:overflow-hidden"),disableDoubleClick:!0,elementRef:D}),(0,t.jsx)(m.ResizablePanel,{id:"main",groupResizeBehavior:"preserve-relative-size",disabled:!$,"data-mobile-active":J||void 0,"data-mobile-hidden":Z||void 0,className:"flex min-w-0 flex-col bg-background",children:(0,t.jsx)("div",{"data-slot":"community-main-panel-content","data-community-mobile-surface":V?"detail":void 0,hidden:Q,inert:Q,"aria-hidden":Q||void 0,className:(0,h.cn)("flex min-h-0 flex-1 flex-col",W&&"list"===n&&"max-sm:hidden"),children:s})})]})}),ee&&(0,t.jsxs)("div",{ref:L,"data-slot":"community-user-bar-overlay",inert:V,"aria-hidden":V||void 0,className:(0,h.cn)("absolute bottom-0 left-0 z-10",$&&"w-(--community-desktop-user-bar-width)",W&&"w-[calc(100%+3.5rem)] sm:w-(--community-desktop-user-bar-width)",Y&&"max-sm:hidden",V&&A&&"hidden"),style:Q?{width:`calc(100% + ${p.COMMUNITY_RAIL_WIDTH}px)`,marginLeft:-p.COMMUNITY_RAIL_WIDTH}:et,children:[(0,t.jsx)("div",{"data-slot":"community-user-bar-underlay","aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 -z-10 bg-linear-to-t from-(--app-bg) to-transparent",style:{height:p.COMMUNITY_USER_BAR_HEIGHT_CSS}}),o]})]}),l]})}e.s(["CommunityShellLayout",0,C],52622);var k=e.i(274762),S=e.i(804);e.s(["CommunitySessionPendingFrame",0,function({pathname:e}){let c=(0,i.useBreakpoint)(),u=(0,s.resolveCommunityModulePlan)(e);return"community"!==u.rail?(0,t.jsx)(f.Shell,{"data-testid":o.tid.initialFrame,"data-community-route-kind":u.route,"aria-busy":"true","aria-label":"Loading community",children:(0,t.jsx)("div",{className:"relative flex min-h-0 min-w-0 flex-1 flex-col",children:(0,t.jsx)(r.AppSurface,{className:"rounded-none border-0 bg-background",children:"none"!==u.main.kind&&(0,t.jsx)(l.CommunityPendingFrame,{href:e,plan:u})})})}):(0,t.jsx)(C,{breakpoint:c,surface:"list"===u.surface?"list":"detail",rail:(0,t.jsx)(k.ServerRailPending,{bottomInset:60}),sidebar:"server"===u.sidebar.kind?(0,t.jsx)(n.ChannelSidebarSkeleton,{targetServerId:u.sidebar.serverId}):(0,t.jsx)(a.DmSidebarSkeleton,{}),main:(0,t.jsx)(l.CommunityPendingFrame,{href:e,plan:u,reserveBackSlot:"detail"===u.surface}),userBar:(0,t.jsx)(S.UserBarSkeleton,{}),testId:o.tid.initialFrame,routeKind:u.route,busy:!0,label:"Loading community",preserveHiddenMobileModules:!0})}],215932)},875061,e=>{"use strict";var t=e.i(782844),n=e.i(11897),a=e.i(294237),r=e.i(613349);let i=(0,a.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-1 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:a="default",render:s,...o}){var l;return l={defaultTagName:"span",props:(0,t.mergeProps)({className:(0,r.cn)(i({variant:a}),e)},o),render:s,state:{slot:"badge",variant:a}},(0,n.useRenderElement)(l.defaultTagName??"div",l,l)},"badgeVariants",0,i],875061)},410763,e=>{"use strict";var t=e.i(237649),n=e.i(382416),a=e.i(294237),r=e.i(613349),i=e.i(473131),s=e.i(434433);let o=(0,a.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});e.s(["Field",0,function({className:e,orientation:n="vertical",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":n,className:(0,r.cn)(o({orientation:n}),e),...a})},"FieldContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-content",className:(0,r.cn)("group/field-content flex flex-1 flex-col gap-1 leading-snug",e),...n})},"FieldDescription",0,function({className:e,...n}){return(0,t.jsx)("p",{"data-slot":"field-description",className:(0,r.cn)("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-2","last:mt-0 nth-last-2:-mt-1","[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...n})},"FieldError",0,function({className:e,children:a,errors:i,...s}){let o=(0,n.useMemo)(()=>{if(a)return a;if(!i?.length)return null;let e=[...new Map(i.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,t.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:e.map((e,n)=>e?.message&&(0,t.jsx)("li",{children:e.message},n))})},[a,i]);return o?(0,t.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,r.cn)("text-sm font-normal text-destructive",e),...s,children:o}):null},"FieldGroup",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-group",className:(0,r.cn)("group/field-group @container/field-group flex w-full flex-col gap-4 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",e),...n})},"FieldLabel",0,function({className:e,...n}){return(0,t.jsx)(i.Label,{"data-slot":"field-label",className:(0,r.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...n})},"FieldSeparator",0,function({children:e,className:n,...a}){return(0,t.jsxs)("div",{"data-slot":"field-separator","data-content":!!e,className:(0,r.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",n),...a,children:[(0,t.jsx)(s.Separator,{className:"absolute inset-0 top-1/2"}),e&&(0,t.jsx)("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:e})]})},"FieldSet",0,function({className:e,...n}){return(0,t.jsx)("fieldset",{"data-slot":"field-set",className:(0,r.cn)("flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...n})},"FieldTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"field-label",className:(0,r.cn)("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",e),...n})}])},182149,774144,e=>{"use strict";var t=e.i(237649),n=e.i(382416),a=Object.defineProperty,r=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function u(e){let t=e.getBoundingClientRect().right,n=e;for(;n;){if("visible"!==getComputedStyle(n).overflowX)return n.getBoundingClientRect().left+n.clientLeft+n.clientWidth-t;n=n.parentElement}return document.documentElement.clientWidth-t}var d=n.createContext({}),m=n.forwardRef((e,t)=>{let a;var m,f,g,v,y,{value:b,onChange:x,maxLength:w,textAlign:C="left",pattern:k,placeholder:S,inputMode:j="numeric",onComplete:I,pushPasswordManagerStrategy:A="increase-width",pasteTransformer:P,containerClassName:E,noScriptCSSFallback:R=p,nonce:M,render:N,children:T}=e,O=((e,t)=>{var n={};for(var a in e)o.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&s)for(var a of s(e))0>t.indexOf(a)&&l.call(e,a)&&(n[a]=e[a]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","nonce","render","children"]);let[D,L]=n.useState("string"==typeof O.defaultValue?O.defaultValue:""),_=null!=b?b:D,U=(a=n.useRef(),n.useEffect(()=>{a.current=_}),a.current),z=n.useCallback(e=>{null==x||x(e),L(e)},[x]),F=n.useMemo(()=>k?"string"==typeof k?new RegExp(k):k:null,[k]),K=n.useRef(null),q=n.useRef(null),B=n.useRef({value:_,onChange:z,isIOS:"u">typeof window&&(null==(f=null==(m=null==window?void 0:window.CSS)?void 0:m.supports)?void 0:f.call(m,"-webkit-touch-callout","none"))}),H=n.useRef({prev:[null==(g=K.current)?void 0:g.selectionStart,null==(v=K.current)?void 0:v.selectionEnd,null==(y=K.current)?void 0:y.selectionDirection]});n.useImperativeHandle(t,()=>K.current,[]),n.useEffect(()=>{let e=K.current,t=q.current;if(!e||!t)return;function n(){if(document.activeElement!==e){G(null),J(null);return}let t=e.selectionStart,n=e.selectionEnd,a=e.selectionDirection,r=e.maxLength,i=e.value,s=H.current.prev,o=-1,l=-1,c;if(0!==i.length&&null!==t&&null!==n){let a=t===n,u=t===i.length&&i.length<r;if(a&&!u){if(0===t)o=0,l=1,c="forward";else if(t===r)o=t-1,l=t,c="backward";else if(r>1&&i.length>1){let e=0;if(null!==s[0]&&null!==s[1]){c=t<s[1]?"backward":"forward";let n=s[0]===s[1]&&s[0]<r;"backward"!==c||n||(e=-1)}o=e+t,l=e+t+1}}-1!==o&&-1!==l&&o!==l&&e.setSelectionRange(o,l,c)}let u=-1!==o?o:t,d=-1!==l?l:n,m=null!=c?c:a;G(u),J(d),H.current.prev=[u,d,m]}if(B.current.value!==e.value&&B.current.onChange(e.value),H.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&W(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",M&&e.setAttribute("nonce",M),document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";h(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),h(e.sheet,`[data-input-otp]:autofill { ${t} }`),h(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),h(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),h(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let a=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};a();let r="u"<typeof ResizeObserver?null:new ResizeObserver(a);return null==r||r.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),null==r||r.disconnect()}},[]);let[$,Q]=n.useState(!1),[V,W]=n.useState(!1),[Y,G]=n.useState(null),[X,J]=n.useState(null);n.useEffect(()=>{var e;let t=[setTimeout(e=()=>{var e,t,n,a;null==(e=K.current)||e.dispatchEvent(new Event("input"));let r=null==(t=K.current)?void 0:t.selectionStart,i=null==(n=K.current)?void 0:n.selectionEnd,s=null==(a=K.current)?void 0:a.selectionDirection;null!==r&&null!==i&&(G(r),J(i),H.current.prev=[r,i,s])},0),setTimeout(e,10),setTimeout(e,50)];return()=>{t.forEach(e=>clearTimeout(e))}},[_,V]),n.useEffect(()=>{void 0!==U&&_!==U&&U.length<w&&_.length===w&&(null==I||I(_))},[w,I,U,_]);let Z=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:a,isFocused:r}){let[i,s]=n.useState(!1),[o,l]=n.useState(!1),[c,d]=n.useState(!1),m=n.useMemo(()=>"none"!==a&&("increase-width"===a||"experimental-no-flickering"===a)&&i&&o,[i,o,a]),h=n.useCallback(()=>{let n=e.current,r=t.current;if(!n||!r||c||"none"===a)return;let i=n.getBoundingClientRect().left+n.offsetWidth,o=n.getBoundingClientRect().top+n.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,o)===n||(l(u(n)>=40),s(!0),d(!0))},[e,t,c,a]);return n.useEffect(()=>{let t=e.current;if(!t||"none"===a)return;function n(){l(u(t)>=40)}n();let r=setInterval(n,1e3);return()=>{clearInterval(r)}},[e,a]),n.useEffect(()=>{let e=r||document.activeElement===t.current;if("none"===a||!e)return;let n=setTimeout(h,0),i=setTimeout(h,2e3),s=setTimeout(h,5e3),o=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(n),clearTimeout(i),clearTimeout(s),clearTimeout(o)}},[t,r,a,h]),{hasPWMBadge:i,willPushPWMBadge:m,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:q,inputRef:K,pushPasswordManagerStrategy:A,isFocused:V}),ee=n.useCallback(e=>{let t=e.currentTarget.value.slice(0,w);t.length>0&&F&&!F.test(t)?e.preventDefault():("string"==typeof U&&t.length<U.length&&document.dispatchEvent(new Event("selectionchange")),z(t))},[w,z,U,F]),et=n.useCallback(()=>{var e;if(K.current){let t=Math.min(K.current.value.length,w-1),n=K.current.value.length;null==(e=K.current)||e.setSelectionRange(t,n),G(t),J(n)}W(!0)},[w]),en=n.useCallback(e=>{var t,n;let a=K.current;if(!P&&(!B.current.isIOS||!e.clipboardData||!a))return;let r=e.clipboardData.getData("text/plain"),i=P?P(r):r;e.preventDefault();let s=null==(t=K.current)?void 0:t.selectionStart,o=null==(n=K.current)?void 0:n.selectionEnd,l=(s!==o?_.slice(0,s)+i+_.slice(o):_.slice(0,s)+i+_.slice(s)).slice(0,w);if(l.length>0&&F&&!F.test(l))return;a.value=l,z(l);let c=Math.min(l.length,w-1),u=l.length;a.setSelectionRange(c,u),G(c),J(u)},[w,z,P,F,_]),ea=n.useMemo(()=>({position:"relative",cursor:O.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[O.disabled]),er=n.useMemo(()=>({position:"absolute",inset:0,width:Z.willPushPWMBadge?`calc(100% + ${Z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Z.willPushPWMBadge?`inset(0 ${Z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:C,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height, 16px)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Z.PWM_BADGE_SPACE_WIDTH,Z.willPushPWMBadge,C]),ei=n.useMemo(()=>{var e;return n.createElement("input",r(((e,t)=>{for(var n in t||(t={}))o.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&c(e,n,t[n]);return e})({autoComplete:O.autoComplete||"one-time-code"},O),i({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===_.length||void 0,"data-input-otp-mss":Y,"data-input-otp-mse":X,inputMode:j,pattern:null==F?void 0:F.source,"aria-placeholder":S,style:er,maxLength:w,value:_,ref:K,spellCheck:null!=(e=O.spellCheck)&&e,onPaste:e=>{var t;en(e),null==(t=O.onPaste)||t.call(O,e)},onChange:ee,onMouseOver:e=>{var t;Q(!0),null==(t=O.onMouseOver)||t.call(O,e)},onMouseLeave:e=>{var t;Q(!1),null==(t=O.onMouseLeave)||t.call(O,e)},onFocus:e=>{var t;et(),null==(t=O.onFocus)||t.call(O,e)},onBlur:e=>{var t;W(!1),null==(t=O.onBlur)||t.call(O,e)}})))},[ee,et,en,j,er,w,X,Y,S,O,null==F?void 0:F.source,_]),es=n.useMemo(()=>({slots:Array.from({length:w}).map((e,t)=>{var n;let a=V&&null!==Y&&null!==X&&(Y===X&&t===Y||t>=Y&&t<X),r=void 0!==_[t]?_[t]:null;return{char:r,placeholderChar:void 0!==_[0]?null:null!=(n=null==S?void 0:S[t])?n:null,isActive:a,hasFakeCaret:a&&null===r}}),isFocused:V,isHovering:!O.disabled&&$}),[V,$,w,X,Y,S,O.disabled,_]),eo=n.useMemo(()=>N?N(es):n.createElement(d.Provider,{value:es},T),[T,es,N]);return n.createElement(n.Fragment,null,null!==R&&n.createElement("noscript",null,n.createElement("style",null,R)),n.createElement("div",{ref:q,"data-input-otp-container":!0,translate:"no",style:ea,className:E},eo,n.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ei)))});function h(e,t){try{e.insertRule(t)}catch(e){console.warn("input-otp could not insert CSS rule:",t)}}m.displayName="Input";var p=`
2
+ [data-input-otp] {
3
+ --nojs-bg: white !important;
4
+ --nojs-fg: black !important;
5
+
6
+ background-color: var(--nojs-bg) !important;
7
+ color: var(--nojs-fg) !important;
8
+ caret-color: var(--nojs-fg) !important;
9
+ letter-spacing: .25em !important;
10
+ text-align: center !important;
11
+ border: 1px solid var(--nojs-fg) !important;
12
+ border-radius: 4px !important;
13
+ width: 100% !important;
14
+ }
15
+ @media (prefers-color-scheme: dark) {
16
+ [data-input-otp] {
17
+ --nojs-bg: black !important;
18
+ --nojs-fg: white !important;
19
+ }
20
+ }`,f=e.i(613349),g=e.i(1087);let v={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};v.node;let y=(0,g.default)(v);e.s(["MinusIcon",0,y],774144),e.s(["InputOTP",0,function({className:e,containerClassName:n,...a}){return(0,t.jsx)(m,{"data-slot":"input-otp",containerClassName:(0,f.cn)("cn-input-otp flex items-center has-disabled:opacity-50",n),spellCheck:!1,className:(0,f.cn)("disabled:cursor-not-allowed",e),...a})},"InputOTPGroup",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"input-otp-group",className:(0,f.cn)("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",e),...n})},"InputOTPSlot",0,function({index:e,className:a,...r}){let i=n.useContext(d),{char:s,hasFakeCaret:o,isActive:l}=i?.slots[e]??{};return(0,t.jsxs)("div",{"data-slot":"input-otp-slot","data-active":l,className:(0,f.cn)("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",a),...r,children:[s,o&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}],182149)},791978,e=>{"use strict";var t=e.i(561668),n=e.i(140851),a=e.i(382416),r=e.i(362790),i=e.i(557922),s=e.i(159514);e.i(954194);var o=e.i(735217),l=e.i(193497),c=e.i(328076),u=e.i(152961),d=e.i(549712),m=e.i(636557),h=e.i(849050),p=e.i(374402),f=e.i(205189);let g=new Set(["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","vnd","vuv","xaf","xof","xpf"]),v=new Set(Intl.supportedValuesOf("currency"));e.s(["readBillingReturn",0,function(e){return"checkout"===e||"cancel"===e||"portal"===e?e:null},"useBilling",0,function(e=null,y=!1,b){let x=(0,s.useQueryClient)(),w=(0,l.useCommunityMutationOrigin)(),C=w.registry,k=(0,a.useMemo)(()=>b?(0,d.applicationKey)(b,"billing"):p.communityKeys.billing(),[b]),S=(0,a.useCallback)(()=>{if(b){let e=(0,d.captureApplicationOwner)(b);return{assert:()=>(0,d.assertApplicationOwner)(e),request:(t,n)=>(0,h.apiFetch)(t,{...n,authenticationAccount:b.userId,assertActive:()=>{(0,d.assertApplicationOwner)(e,n?.signal??void 0),n?.assertActive?.()},onUnauthorized:()=>(0,d.invalidateApplicationAuthentication)(e,n?.signal??void 0)})}}let e=w.begin().token;return{assert:()=>w.assert(e),request:(t,n)=>w.request(e,t,n)}},[b,w]),j=(0,c.useCreateStore)({active:y,generation:0,lock:null,redirecting:!1,actionError:null,polling:!1,observedPlan:null,handledReturn:null,returnStartedAt:0,returnComplete:!1}),I=(0,u.useSelector)(j,e=>e);(0,a.useLayoutEffect)(()=>(j.setState(e=>({...e,active:y,...!e.active&&y?{lock:null,redirecting:!1}:{}})),()=>j.setState(e=>({...e,active:!1,generation:e.generation+1}))),[j,y]);let A=(0,a.useCallback)(()=>{let e=S(),t=j.get().generation;return{...e,assertView:()=>{e.assert();let n=j.get();if(!n.active||n.generation!==t)throw new DOMException("Retired billing view","AbortError")}}},[S,j]),P=(0,i.useQuery)({queryKey:k,enabled:y,subscribed:y,queryFn:async({signal:e})=>{let t=S(),n=o.BillingSummarySchema.parse(await t.request("/api/community/billing",{signal:e}));return t.assert(),n},staleTime:3e4,refetchOnWindowFocus:!0,refetchInterval:!!I.polling&&2e3,retry:!1});(0,t.useObservedQueryRegion)("billing",P,void 0,y);let E=(0,a.useCallback)(()=>{C&&(x.invalidateQueries({queryKey:p.communityKeys.bots()}),x.invalidateQueries({queryKey:p.communityKeys.machines()}))},[x,C]);(0,a.useEffect)(()=>{let e=e=>{e.persisted&&(j.setState(e=>({...e,lock:null,redirecting:!1})),y&&(S().assert(),x.invalidateQueries({queryKey:k,exact:!0}),E()))};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[S,y,E,k,x,j]),(0,a.useEffect)(()=>{let t=j.get();if(!e||!y)return void j.setState(t=>({...t,polling:!1,handledReturn:e?t.handledReturn:null}));if(t.handledReturn===e){!t.returnComplete&&"cancel"!==e&&Date.now()-t.returnStartedAt<3e4&&j.setState(e=>({...e,polling:!0}));return}S().assert(),(0,n.emitTelemetry)("business.result",{action_name:"billing_return",phase:"auth",outcome:"cancel"===e?"cancelled":"observed",capability:"limited"}),j.setState(t=>({...t,handledReturn:e,returnComplete:!1,returnStartedAt:Date.now(),polling:"cancel"!==e})),x.invalidateQueries({queryKey:k,exact:!0}),E()},[y,e,x,j,S,k,E]),(0,a.useEffect)(()=>{if(!y||!I.polling)return;let e=A(),t=setTimeout(()=>{try{e.assertView()}catch{return}j.setState(e=>({...e,returnComplete:!0,polling:!1}))},Math.max(0,3e4-(Date.now()-I.returnStartedAt)));return()=>clearTimeout(t)},[A,y,I.polling,I.returnStartedAt,j]),(0,a.useEffect)(()=>{if(!y||!P.data)return;S().assert();let t=`${P.data.plan.id}:${P.data.isFounder}`,a=C?x.getQueryData(p.communityKeys.bots()):void 0,r=j.get().observedPlan??(a?`${a.plan.id}:${a.isFounder}`:null);null!==r&&r!==t&&E();let i="checkout"===e&&!P.data.isFounder&&P.dataUpdatedAt>=j.get().returnStartedAt&&P.data.subscription?.status==="active"&&P.data.subscription.plan.id===P.data.plan.id;i&&!j.get().returnComplete&&(0,n.emitTelemetry)("business.result",{action_name:"billing_return",outcome:"success",phase:"primary"}),j.setState(e=>({...e,observedPlan:t,...i?{returnComplete:!0,polling:!1}:{}}))},[y,e,P.data,P.dataUpdatedAt,x,j,S,C,E]);let R=(0,r.useMutation)({meta:{observabilityAction:"billing.redirect"},mutationKey:[...k,"redirect"],retry:!1,mutationFn:async({action:e,original:t})=>{t.assertView();let n=o.BillingRedirectResponseSchema.parse(await t.request(`/api/community/billing/${e.kind}`,{method:"POST",assertActive:t.assertView,...e.priceId?{body:JSON.stringify({priceId:e.priceId,..."checkout"===e.kind&&e.founderAcknowledged?{founderAcknowledged:!0}:{}})}:{}}));t.assertView();let a=new URL(n.url);if("https:"!==a.protocol)throw Error("INVALID_BILLING_URL");return a.href}}),M=async e=>{if(j.get().lock||!P.data||P.data.isFounder&&("checkout"!==e.kind||!e.founderAcknowledged))return;let t=A(),n=Symbol("billing-action");t.assertView();let a="checkout"===e.kind?P.data.offers.find(t=>t.priceId===e.priceId):void 0;j.setState(e=>({...e,lock:n,actionError:null}));try{let i=await R.mutateAsync({action:e,original:t});if(t.assertView(),j.get().lock!==n)return;let s=a?(0,f.toAnalyticsPlanId)(a.plan.id):null;if(a&&s&&"free"!==s&&"checkout"===e.kind){var r;let t,n=(r=a.unitAmount,t=a.currency.toUpperCase(),Number.isSafeInteger(r)&&!(r<0)&&v.has(t)?r/(g.has(t.toLowerCase())?1:100):null);null!==n&&(0,f.trackBeginCheckout)({plan_id:s,currency:a.currency,value:n,entry_point:e.entryPoint})}j.setState(e=>({...e,redirecting:!0})),window.location.assign(i)}catch(a){try{t.assertView()}catch{return}if((0,m.isAbortError)(a)||j.get().lock!==n)return;j.setState(t=>({...t,lock:null,redirecting:!1,actionError:"checkout"===e.kind?"Couldn't open checkout. Try again to resume your purchase.":"Couldn't open billing management. Try again."})),P.refetch({cancelRefetch:!1})}},N=(0,r.useMutation)({meta:{observabilityAction:"billing.change.cancel"},mutationKey:[...k,"cancel-change"],retry:!1,mutationFn:async e=>{e.assertView(),await x.cancelQueries({queryKey:k,exact:!0}),e.assertView();let t=x.getQueryCache().find({queryKey:k,exact:!0}),n=t?.state.data,a=o.BillingSummarySchema.parse(await e.request("/api/community/billing/cancel-change",{method:"POST",assertActive:e.assertView}));return e.assert(),t&&x.getQueryCache().find({queryKey:k,exact:!0})===t&&x.setQueryData(k,e=>e===n?a:e),e.assert(),await x.invalidateQueries({queryKey:k,exact:!0}),e.assert(),a}}),T=async()=>{if(j.get().lock||!P.data?.subscription?.scheduledChange||P.data.isFounder)return;let e=A(),t=Symbol("billing-cancel");e.assertView(),j.setState(e=>({...e,lock:t,actionError:null}));try{await N.mutateAsync(e),e.assertView()}catch(n){try{e.assertView()}catch{return}(0,m.isAbortError)(n)||j.get().lock!==t||(j.setState(e=>({...e,actionError:"Couldn't cancel the scheduled plan change. Refresh status and try again."})),P.refetch({cancelRefetch:!1}))}finally{try{e.assertView(),j.get().lock===t&&j.setState(e=>({...e,lock:null}))}catch{}}};return{...P,returnFrom:e,polling:I.polling,actionError:I.actionError,isBusy:R.isPending||I.redirecting||N.isPending,isCancelingChange:N.isPending,cancelChange:T,checkout:(e,t,n)=>M({kind:"checkout",priceId:e,founderAcknowledged:t,entryPoint:n}),portal:e=>M({kind:"portal",priceId:e}),refresh:()=>{A().assertView(),P.refetch({cancelRefetch:!1}),E()}}}],791978)},595072,e=>{"use strict";var t=e.i(382416),n=e.i(601688),a=e.i(159514),r=e.i(636557);let i=["community","friend-request"];e.s(["useFriendRequestActionState",0,function({rows:e,onAccept:s,onReject:o,surface:l}){let c=(0,a.useQueryClient)(),u=(0,n.useMutationState)({filters:{mutationKey:i},select:e=>({id:e.state.variables?.friendshipId,action:e.options.mutationKey?.[2],status:e.state.status,error:e.state.error,at:e.state.submittedAt,mutationId:e.mutationId})}),d=e.map(e=>{let t=u.filter(t=>t.id===e.id).sort((e,t)=>t.at-e.at||t.mutationId-e.mutationId)[0];if(!t||"success"===t.status||(0,r.isAbortError)(t.error))return{row:e};let n="pending"===t.status?"pending":"error"===t.status?"error":void 0;return{row:e,action:t.action,status:n,..."error"===n?{error:`Couldn’t ${t.action} this request. Try again.`}:{}}}),m=(0,t.useCallback)((e,t,n)=>{let a=c.getMutationCache().find({mutationKey:i,exact:!1,status:"pending",predicate:t=>t.state.variables?.friendshipId===e.row.id});if(a)return a.continue().then(()=>void 0,()=>void 0);if(n&&"error"!==e.status)return Promise.resolve();let r="accept"===t?s:o;return r?r(e.row.id).then(()=>void 0,()=>void 0):Promise.resolve()},[c,s,o]);return{items:d,act:(e,t)=>m(e,t,!1),retry:e=>e.action?m(e,e.action,!0):Promise.resolve()}}])},718877,e=>{"use strict";var t=e.i(902429),n=e.i(204779),a=e.i(362790),r=e.i(557922),i=e.i(159514),s=e.i(923750);e.i(954194);var o=e.i(908967),l=e.i(849050),c=e.i(374402),u=e.i(382416),d=e.i(193497),m=e.i(51201),h=e.i(279389),p=e.i(177519),f=e.i(86694),g=e.i(323512);let v=Object.freeze({}),y=Object.freeze({}),b=o.notifLevelDisplay,x=(0,o.notifLevelDisplay)("all"),w=async(e={})=>{let t=(0,g.captureCommunityLiveSnapshotToken)(e.client),a=t.registry;if(!a)throw new DOMException("Missing notification owner","AbortError");await a.ready,(0,g.assertCommunityLiveSnapshotTokenCurrent)(e.client,t,e.signal),await a.collections.notificationSettings.preload(),(0,g.assertCommunityLiveSnapshotTokenCurrent)(e.client,t,e.signal);let r=await (0,l.apiFetch)("/api/community/users/me/notifications",(0,n.communityRequestOptions)(e.client,t,e.signal)),i={},s={};for(let e of r){let t=b(e.level);e.channelId?s[e.channelId]=t:e.serverId&&(i[e.serverId]=t)}return e.client&&t&&(0,g.publishCommunityLiveSnapshot)(e.client,{snapshot:{kind:"notification-settings",data:{raw:r,server:i,channel:s}},proof:{kind:"structural",token:t,signal:e.signal}}),{ids:r.filter(e=>!!e.serverId!=!!e.channelId).map(e=>(0,h.notificationSettingKey)(e))}};function C(e,t){e.setNotificationPolicy({server:t?.server??{},channel:t?.channel??{}})}async function k(e){let t=(0,g.captureCommunityLiveSnapshotToken)(e);(0,g.assertCommunityLiveSnapshotTokenCurrent)(e,t,void 0);let n=c.communityKeys.notificationSettings();await e.cancelQueries({queryKey:n,exact:!0}),(0,g.assertCommunityLiveSnapshotTokenCurrent)(e,t,void 0);let a={queryKey:n,queryFn:w,staleTime:0},r=new s.QueryObserver(e,{...a,enabled:!1}).subscribe(()=>void 0);try{await e.query({...a,select:void 0})}finally{r()}(0,g.assertCommunityLiveSnapshotTokenCurrent)(e,t,void 0);let i={raw:[...t.registry.collections.notificationSettings.values()],server:{},channel:{}};for(let e of i.raw)e.channelId?i.channel[e.channelId]=b(e.level):e.serverId&&(i.server[e.serverId]=b(e.level));return C((0,p.getActiveAccountUnreadProjection)(e),i),i}e.s(["reconcileNotificationSettings",0,k,"resolveServerNotificationDisplayLevel",0,function(e){return e??x},"useBotNotificationSetting",0,function(e,t){return(0,r.useQuery)({queryKey:c.communityKeys.botNotificationSetting(e??"",t.kind,t.id),queryFn:({client:a,signal:r})=>(0,l.apiFetch)(`/api/community/bots/${e}/notifications/${t.kind}/${t.id}`,(0,n.communityRequestOptions)(a,(0,g.captureCommunityLiveSnapshotToken)(a),r)),enabled:!!e,subscribed:!!e})},"useNotificationSettings",0,function(){let e=(0,f.useNotificationSettingsProjection)(),t=(0,i.useQueryClient)(),n=(0,u.useMemo)(()=>(0,p.getActiveAccountUnreadProjection)(t),[t]),a=(0,r.useQuery)({queryKey:c.communityKeys.notificationSettings(),queryFn:w});return(0,u.useEffect)(()=>{e&&C(n,e)},[e,n]),{...a,data:e,server:e?.server??v,channel:e?.channel??y}},"useSetBotNotificationSetting",0,function(){let e=(0,i.useQueryClient)(),n=(0,d.useCommunityMutationOrigin)(),r=(0,m.useCommunityViewSource)("bot-notification-setting"),s=(0,a.useMutation)({meta:{observabilityAction:"bot.notification.update"},mutationKey:["community","bot-notification-setting-command"],scope:{id:"community-bot-notification-setting-commands"},gcTime:0,mutationFn:async({botId:t,scope:a,level:r,original:i,view:s,resources:o,assertActive:l})=>{let c=()=>{n.assert(i),s(),l?.()};c();let u=`/api/community/bots/${t}/notifications/${a.kind}/${a.id}`;for(let t of(await n.request(i,u,{method:null===r?"DELETE":"PUT",signal:l?.signal?AbortSignal.any([l.signal,s.signal]):s.signal,assertActive:c,...null===r?{}:{body:JSON.stringify({level:r})}}),c(),o))e.getQueryCache().find({queryKey:t.queryKey,exact:!0})===t&&e.invalidateQueries({queryKey:t.queryKey,exact:!0},{cancelRefetch:!1}).catch(()=>void 0)}}),o=(0,u.useCallback)(t=>{t.assertActive?.();let a=r.capture();return a(),{...t,view:a,original:n.begin().token,resources:e.getQueryCache().findAll({predicate:e=>[c.communityKeys.botNotificationSetting(t.botId,t.scope.kind,t.scope.id),c.communityKeys.inbox()].some(t=>t.length<=e.queryKey.length&&t.every((t,n)=>Object.is(t,e.queryKey[n])))||e.queryKey.includes("read-state-snapshot")})}},[n,r,e]),l=(0,u.useCallback)(e=>{n.assert(e.original),e.view(),e.assertActive?.()},[n]);return(0,t.useNativeMutationFacade)(s,o,l)}])},395207,e=>{"use strict";e.i(954194);var t=e.i(568294),n=e.i(88723),a=e.i(77829);let r=a.z.object({attemptId:a.z.string(),provider:n.nativeOauthProviderSchema,redirectPath:a.z.string().refine(t.isSafeRedirectPath),expiresAt:a.z.number(),waiting:a.z.boolean()}).strict();e.s(["nativeOauthSnapshotSchema",0,r])},561668,e=>{"use strict";var t=e.i(159514),n=e.i(693760),a=e.i(392965);e.s(["useObservedQueryRegion",0,function(e,r,i,s=!0){let o=(0,t.useQueryClient)(),l=r.data&&"object"==typeof r.data?(0,n.valueEvidence)(o,r.data):{source:"unknown",version:"query_"+String(r.dataUpdatedAt??0),freshness:"unknown",count:+(null!=r.data)};(0,a.useObservedRegion)(e,s&&!r.isPending&&void 0!==r.data,{...l,...void 0===i?{}:{count:i}})}])},115870,e=>{"use strict";var t=e.i(72227);e.s(["perfTraceEnabled",0,function(){return"1"===t.default.env.NEXT_PUBLIC_PERF_TRACE&&!1}])},876986,e=>{"use strict";var t=e.i(115870);e.s(["markSwitch",0,function(e,n){if(!(0,t.perfTraceEnabled)()||"u"<typeof performance)return;let a=`alook:switch:${e}:${n}`;performance.mark(a);let r={kind:e,id:n,ts:performance.now(),markName:a};(window.__ALOOK_PERF_MARKS__??(window.__ALOOK_PERF_MARKS__=[])).push(r)}])},577992,e=>{"use strict";e.s(["parseRetryAfterSeconds",0,function(e){let t=e.get("X-Retry-After")??e.get("Retry-After");if(!t)return null;let n=Number.parseInt(t,10);return Number.isFinite(n)&&n>0?n:null}])}]);