@alook/app 0.1.13 → 0.1.14

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 (120) hide show
  1. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  2. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  3. package/bundled/web/.open-next/assets/_next/static/chunks/0689_howe9r8w.js +1 -0
  4. package/bundled/web/.open-next/assets/_next/static/chunks/{3qjq6unr3_6zh.js → 1dhdj9k7esa01.js} +1 -1
  5. package/bundled/web/.open-next/assets/_next/static/chunks/{1f4gx6ss03t8p.js → 1sr2s86q3q3ym.js} +1 -1
  6. package/bundled/web/.open-next/assets/_next/static/chunks/1wbsy2cyw8it0.js +1 -0
  7. package/bundled/web/.open-next/assets/_next/static/chunks/2cad_ipsdoena.js +3 -0
  8. package/bundled/web/.open-next/assets/_next/static/chunks/2gfkwzxzteqhj.js +1 -0
  9. package/bundled/web/.open-next/assets/_next/static/chunks/372jk5rjn6j78.js +3 -0
  10. package/bundled/web/.open-next/assets/_next/static/chunks/3e96p59cyz74j.css +1 -0
  11. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/_global-error.cache +1 -1
  12. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/_not-found.cache +1 -1
  13. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/blog/feed.xml.cache +1 -1
  14. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/blog.cache +1 -1
  15. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/c/me/bots.cache +1 -1
  16. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/c/me/machines.cache +1 -1
  17. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/c/me.cache +1 -1
  18. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/c.cache +1 -1
  19. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/device.cache +1 -1
  20. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/privacy.cache +1 -1
  21. package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/sitemap.xml.cache +1 -1
  22. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  23. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  24. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  25. package/bundled/web/.open-next/middleware/handler.mjs +4 -4
  26. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  27. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  28. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  31. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  32. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  33. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  34. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/blog/[slug]/page_client-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/blog/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/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/channels/[serverId]/page_client-reference-manifest.js +1 -1
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/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/invite/[token]/page_client-reference-manifest.js +1 -1
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/[dmId]/page_client-reference-manifest.js +1 -1
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/bots/page_client-reference-manifest.js +1 -1
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/machines/page_client-reference-manifest.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/me/page_client-reference-manifest.js +1 -1
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/c/page_client-reference-manifest.js +1 -1
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/landing-legacy/page_client-reference-manifest.js +1 -1
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +21 -21
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__03h9fml._.js → [root-of-the-server]__08_wx1z._.js} +2 -2
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +21 -21
  75. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0w_xjb3._.js → _01mpw9e._.js} +1 -1
  76. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0-71fzu._.js → _0_xatyk._.js} +1 -1
  77. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0a2_w4y._.js → _0uu4l16._.js} +2 -2
  78. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0hc0ylf._.js → _1xew-at._.js} +1 -1
  79. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1071vrn._.js → node_modules__pnpm_0ksf9mp._.js} +1 -1
  80. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0sir-i2._.js → node_modules__pnpm_0lb3o08._.js} +1 -1
  81. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0syfy8c._.js → node_modules__pnpm_0m12va9._.js} +1 -1
  82. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0dgaeef._.js → node_modules__pnpm_0sstc2x._.js} +1 -1
  83. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_02qa66o._.js → node_modules__pnpm_0sur5d2._.js} +1 -1
  84. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1hekpxx._.js → node_modules__pnpm_0t0286e._.js} +1 -1
  85. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1bzpz9y._.js → node_modules__pnpm_0tmwrl0._.js} +1 -1
  86. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0m5a_ca._.js → node_modules__pnpm_0ytz4gl._.js} +1 -1
  87. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_07g_cjo._.js → node_modules__pnpm_11z1ecf._.js} +1 -1
  88. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0yx-x0b._.js → node_modules__pnpm_134gkx6._.js} +1 -1
  89. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1wag6jn._.js → node_modules__pnpm_16tz6mu._.js} +1 -1
  90. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0uvm1gv._.js → node_modules__pnpm_1jdfo8i._.js} +1 -1
  91. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_1e9xte7._.js → node_modules__pnpm_1ngdb96._.js} +1 -1
  92. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0vlzxdm._.js → node_modules__pnpm_1puvp7j._.js} +1 -1
  93. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_20-iep6._.js → node_modules__pnpm_1wqp9kx._.js} +1 -1
  94. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{node_modules__pnpm_0_9ypic._.js → node_modules__pnpm_1xo4ew9._.js} +1 -1
  95. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_settings_0ag2edj._.js +1 -1
  96. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_machines_machine-card_tsx_0b11c0k._.js +1 -1
  97. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_messages_message-list_tsx_152pgjg._.js +1 -1
  98. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_community_messages_message_tsx_1ij_lax._.js +1 -1
  99. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_home_1vluxxn._.js +1 -1
  100. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  101. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  102. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  103. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  104. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +101 -101
  105. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +254 -254
  106. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +4 -4
  107. package/dist/daemon/index.js +5 -7
  108. package/package.json +1 -1
  109. package/bundled/web/.open-next/assets/_next/static/chunks/171w9ziua75pc.js +0 -3
  110. package/bundled/web/.open-next/assets/_next/static/chunks/1ba2i14ficz1n.css +0 -1
  111. package/bundled/web/.open-next/assets/_next/static/chunks/1blkytltvz6wh.js +0 -1
  112. package/bundled/web/.open-next/assets/_next/static/chunks/1ztd4b7x0f3ma.js +0 -3
  113. package/bundled/web/.open-next/assets/_next/static/chunks/2r8ucgbpj0aj5.js +0 -1
  114. package/bundled/web/.open-next/assets/_next/static/chunks/3scjok5e-_g_v.js +0 -1
  115. /package/bundled/web/.open-next/assets/_next/static/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/_buildManifest.js +0 -0
  116. /package/bundled/web/.open-next/assets/_next/static/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/_clientMiddlewareManifest.js +0 -0
  117. /package/bundled/web/.open-next/assets/_next/static/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/_ssgManifest.js +0 -0
  118. /package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/favicon.ico.cache +0 -0
  119. /package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/llms.txt.cache +0 -0
  120. /package/bundled/web/.open-next/cache/{WzFwGURMqI_7y4mlZt8go → RijueMWWtDXbmjaeEVsuX}/robots.txt.cache +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,570916,e=>{"use strict";e.i(213054),e.s(["restrictToHorizontalAxis",0,e=>{let{transform:t}=e;return{...t,y:0}},"restrictToVerticalAxis",0,e=>{let{transform:t}=e;return{...t,x:0}}])},140252,e=>{"use strict";var t=e.i(579848),a=e.i(785188),n=e.i(213054);function s(e,t,a){let n=e.slice();return n.splice(a<0?n.length+a:a,0,n.splice(t,1)[0]),n}function i(e){return null!==e&&e>=0}let r={scaleX:1,scaleY:1},l=e=>{let{rects:t,activeIndex:a,overIndex:n,index:i}=e,r=s(t,n,a),l=t[i],o=r[i];return o&&l?{x:o.left-l.left,y:o.top-l.top,scaleX:o.width/l.width,scaleY:o.height/l.height}:null},o={scaleX:1,scaleY:1},d="Sortable",c=t.default.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}}),u=e=>{let{id:t,items:a,activeIndex:n,overIndex:i}=e;return s(a,n,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:a,wasDragging:n,index:s,items:i,newIndex:r,previousItems:l,previousContainerId:o,transition:d}=e;return!!d&&!!n&&(l===i||s!==r)&&(!!a||r!==s&&t===o)},h={duration:200,easing:"ease"},f="transform",x=n.CSS.Transition.toString({property:f,duration:0,easing:"linear"}),p={roleDescription:"sortable"};a.KeyboardCode.Down,a.KeyboardCode.Right,a.KeyboardCode.Up,a.KeyboardCode.Left,e.s(["SortableContext",0,function(e){let{children:s,id:i,items:r,strategy:o=l,disabled:u=!1}=e,{active:m,dragOverlay:h,droppableRects:f,over:x,measureDroppableContainers:p}=(0,a.useDndContext)(),g=(0,n.useUniqueId)(d,i),y=null!==h.rect,v=(0,t.useMemo)(()=>r.map(e=>"object"==typeof e&&"id"in e?e.id:e),[r]),b=null!=m,j=m?v.indexOf(m.id):-1,N=x?v.indexOf(x.id):-1,w=(0,t.useRef)(v),k=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}(v,w.current),M=-1!==N&&-1===j||k,_="boolean"==typeof u?{draggable:u,droppable:u}:u;(0,n.useIsomorphicLayoutEffect)(()=>{k&&b&&p(v)},[k,v,b,p]),(0,t.useEffect)(()=>{w.current=v},[v]);let C=(0,t.useMemo)(()=>({activeIndex:j,containerId:g,disabled:_,disableTransforms:M,items:v,overIndex:N,useDragOverlay:y,sortedRects:v.reduce((e,t,a)=>{let n=f.get(t);return n&&(e[a]=n),e},Array(v.length)),strategy:o}),[j,g,_.draggable,_.droppable,M,v,N,f,y,o]);return t.default.createElement(c.Provider,{value:C},s)},"arrayMove",0,s,"horizontalListSortingStrategy",0,e=>{var t,a,n,s;let i,l,o,{rects:d,activeNodeRect:c,activeIndex:u,overIndex:m,index:h}=e,f=null!=(t=d[u])?t:c;if(!f)return null;let x=(a=d,n=h,s=u,i=a[n],l=a[n-1],o=a[n+1],i&&(l||o)?s<n?l?i.left-(l.left+l.width):o.left-(i.left+i.width):o?o.left-(i.left+i.width):i.left-(l.left+l.width):0);if(h===u){let e=d[m];return e?{x:u<m?e.left+e.width-(f.left+f.width):e.left-f.left,y:0,...r}:null}return h>u&&h<=m?{x:-f.width-x,y:0,...r}:h<u&&h>=m?{x:f.width+x,y:0,...r}:{x:0,y:0,...r}},"useSortable",0,function(e){var s,r,l,o;let{animateLayoutChanges:d=m,attributes:g,disabled:y,data:v,getNewIndex:b=u,id:j,strategy:N,resizeObserverConfig:w,transition:k=h}=e,{items:M,containerId:_,activeIndex:C,disabled:S,disableTransforms:A,sortedRects:O,overIndex:T,useDragOverlay:E,strategy:I}=(0,t.useContext)(c),z=(s=y,r=S,"boolean"==typeof s?{draggable:s,droppable:!1}:{draggable:null!=(l=null==s?void 0:s.draggable)?l:r.draggable,droppable:null!=(o=null==s?void 0:s.droppable)?o:r.droppable}),D=M.indexOf(j),q=(0,t.useMemo)(()=>({sortable:{containerId:_,index:D,items:M},...v}),[_,v,D,M]),P=(0,t.useMemo)(()=>M.slice(M.indexOf(j)),[M,j]),{rect:R,node:$,isOver:B,setNodeRef:G}=(0,a.useDroppable)({id:j,data:q,disabled:z.droppable,resizeObserverConfig:{updateMeasurementsFor:P,...w}}),{active:F,activatorEvent:L,activeNodeRect:H,attributes:Q,setNodeRef:U,listeners:K,isDragging:V,over:Z,setActivatorNodeRef:Y,transform:W}=(0,a.useDraggable)({id:j,data:q,attributes:{...p,...g},disabled:z.draggable}),X=(0,n.useCombinedRefs)(G,U),J=!!F,ee=J&&!A&&i(C)&&i(T),et=!E&&V,ea=et&&ee?W:null,en=ee?null!=ea?ea:(null!=N?N:I)({rects:O,activeNodeRect:H,activeIndex:C,overIndex:T,index:D}):null,es=i(C)&&i(T)?b({id:j,items:M,activeIndex:C,overIndex:T}):D,ei=null==F?void 0:F.id,er=(0,t.useRef)({activeId:ei,items:M,newIndex:es,containerId:_}),el=M!==er.current.items,eo=d({active:F,containerId:_,isDragging:V,isSorting:J,id:j,index:D,items:M,newIndex:er.current.newIndex,previousItems:er.current.items,previousContainerId:er.current.containerId,transition:k,wasDragging:null!=er.current.activeId}),ed=function(e){let{disabled:s,index:i,node:r,rect:l}=e,[o,d]=(0,t.useState)(null),c=(0,t.useRef)(i);return(0,n.useIsomorphicLayoutEffect)(()=>{if(!s&&i!==c.current&&r.current){let e=l.current;if(e){let t=(0,a.getClientRect)(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&d(n)}}i!==c.current&&(c.current=i)},[s,i,r,l]),(0,t.useEffect)(()=>{o&&d(null)},[o]),o}({disabled:!eo,index:D,node:$,rect:R});return(0,t.useEffect)(()=>{J&&er.current.newIndex!==es&&(er.current.newIndex=es),_!==er.current.containerId&&(er.current.containerId=_),M!==er.current.items&&(er.current.items=M)},[J,es,_,M]),(0,t.useEffect)(()=>{if(ei===er.current.activeId)return;if(null!=ei&&null==er.current.activeId){er.current.activeId=ei;return}let e=setTimeout(()=>{er.current.activeId=ei},50);return()=>clearTimeout(e)},[ei]),{active:F,activeIndex:C,attributes:Q,data:q,rect:R,index:D,newIndex:es,items:M,isOver:B,isSorting:J,isDragging:V,listeners:K,node:$,overIndex:T,over:Z,setNodeRef:X,setActivatorNodeRef:Y,setDroppableNodeRef:G,setDraggableNodeRef:U,transform:null!=ed?ed:en,transition:ed||el&&er.current.newIndex===D?x:(!et||(0,n.isKeyboardEvent)(L))&&k&&(J||eo)?n.CSS.Transition.toString({...k,property:f}):void 0}},"verticalListSortingStrategy",0,e=>{var t,a,n,s;let i,r,l,{activeIndex:d,activeNodeRect:c,index:u,rects:m,overIndex:h}=e,f=null!=(t=m[d])?t:c;if(!f)return null;if(u===d){let e=m[h];return e?{x:0,y:d<h?e.top+e.height-(f.top+f.height):e.top-f.top,...o}:null}let x=(a=m,n=u,s=d,i=a[n],r=a[n-1],l=a[n+1],i?s<n?r?i.top-(r.top+r.height):l?l.top-(i.top+i.height):0:l?l.top-(i.top+i.height):r?i.top-(r.top+r.height):0:0);return u>d&&u<=h?{x:0,y:-f.height-x,...o}:u<d&&u>=h?{x:0,y:f.height+x,...o}:{x:0,y:0,...o}}])},150381,(e,t,a)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){let{apiKey:t,...a}=e,n={...a,key:t},{html:l}=(0,i.GoogleMapsEmbed)(n);return(0,s.jsx)(r.default,{height:n.height||null,width:n.width||null,html:l,dataNtpc:"GoogleMapsEmbed"})};let s=e.r(633940),i=e.r(508751),r=n(e.r(677113))},163712,(e,t,a)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.sendGAEvent=a.GoogleAnalytics=a.sendGTMEvent=a.GoogleTagManager=a.YouTubeEmbed=a.GoogleMapsEmbed=void 0;var s=e.r(150381);Object.defineProperty(a,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(s).default}});var i=e.r(916337);Object.defineProperty(a,"YouTubeEmbed",{enumerable:!0,get:function(){return n(i).default}});var r=e.r(88469);Object.defineProperty(a,"GoogleTagManager",{enumerable:!0,get:function(){return r.GoogleTagManager}}),Object.defineProperty(a,"sendGTMEvent",{enumerable:!0,get:function(){return r.sendGTMEvent}});var l=e.r(991553);Object.defineProperty(a,"GoogleAnalytics",{enumerable:!0,get:function(){return l.GoogleAnalytics}}),Object.defineProperty(a,"sendGAEvent",{enumerable:!0,get:function(){return l.sendGAEvent}})},205189,e=>{"use strict";var t=e.i(163712);function a(e){try{(0,t.sendGTMEvent)(e)}catch{return}}e.s(["trackAgentChatOpened",0,function(e){(0,t.sendGTMEvent)({event:"agent_chat_opened",...e})},"trackAgentCreated",0,function(e){(0,t.sendGTMEvent)({event:"agent_created",...e})},"trackAgentLinkCreated",0,function(e){(0,t.sendGTMEvent)({event:"agent_link_created",...e})},"trackCalendarEventCreated",0,function(e){(0,t.sendGTMEvent)({event:"calendar_event_created",...e})},"trackCanvasLayoutChanged",0,function(e){(0,t.sendGTMEvent)({event:"canvas_layout_changed",...e})},"trackCommunityOnboardingCompleted",0,function(){(0,t.sendGTMEvent)({event:"community_onboarding_completed"})},"trackCommunityOnboardingSkipped",0,function(e){(0,t.sendGTMEvent)({event:"community_onboarding_skipped",stage:e})},"trackCommunityOnboardingStageCompleted",0,function(e){(0,t.sendGTMEvent)({event:"community_onboarding_stage_completed",stage:e})},"trackCommunityOnboardingStarted",0,function(){(0,t.sendGTMEvent)({event:"community_onboarding_started"})},"trackCommunityWsFrameDropped",0,function(e){a({event:"community_ws_frame_dropped",reason:e.reason,type:e.type,...void 0===e.contractVersion?{}:{contractVersion:e.contractVersion},...void 0===e.byteCount?{}:{byteCount:e.byteCount}})},"trackCommunityWsReconcileComplete",0,function(e){a({event:"community_ws_reconcile_complete",policyCount:e.policyCount,successCount:e.successCount,failureCount:e.failureCount,durationMs:e.durationMs,reconnectDurationMs:e.reconnectDurationMs})},"trackCommunityWsReconcileFailure",0,function(e){a({event:"community_ws_reconcile_failure",policy:e.policy,reason:e.reason})},"trackCustomEmailConnected",0,function(e){(0,t.sendGTMEvent)({event:"custom_email_connected",...e})},"trackEmailComposed",0,function(e){(0,t.sendGTMEvent)({event:"email_composed",...e})},"trackEmailReceived",0,function(e){(0,t.sendGTMEvent)({event:"email_received",...e})},"trackInviteAccepted",0,function(e){(0,t.sendGTMEvent)({event:"invite_accepted",...e})},"trackIssueCreated",0,function(e){(0,t.sendGTMEvent)({event:"issue_created",...e})},"trackIssueStatusChanged",0,function(e){(0,t.sendGTMEvent)({event:"issue_status_changed",...e})},"trackLandingCtaClicked",0,function(e){(0,t.sendGTMEvent)({event:"landing_cta_clicked",...e})},"trackMessageSent",0,function(e){(0,t.sendGTMEvent)({event:"message_sent",...e})},"trackOnboardingCompleted",0,function(e){(0,t.sendGTMEvent)({event:"onboarding_completed",...e})},"trackRuntimeConnected",0,function(e){(0,t.sendGTMEvent)({event:"runtime_connected",...e})},"trackSecondAgentCreated",0,function(e){(0,t.sendGTMEvent)({event:"second_agent_created",...e})},"trackSettingsUpdated",0,function(e){(0,t.sendGTMEvent)({event:"settings_updated",...e})},"trackSignInSuccess",0,function(e){(0,t.sendGTMEvent)({event:"sign_in_success",method:e})},"trackSignUp",0,function(e){(0,t.sendGTMEvent)({event:"sign_up",method:e})},"trackTeamMemberInvited",0,function(e){(0,t.sendGTMEvent)({event:"team_member_invited",...e})},"trackTemplateUsed",0,function(e){(0,t.sendGTMEvent)({event:"template_used",...e})},"trackTemplatesBrowsed",0,function(e){(0,t.sendGTMEvent)({event:"templates_browsed",...e})},"trackThreadViewed",0,function(e){(0,t.sendGTMEvent)({event:"thread_viewed",...e})},"trackWorkspaceCreated",0,function(e){(0,t.sendGTMEvent)({event:"workspace_created",source:e})}])},916337,(e,t,a)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(e){let{html:t,scripts:a,stylesheets:n}=(0,r.YouTubeEmbed)(e);return(0,s.jsx)(l.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==a?void 0:a.map(e=>(0,s.jsx)(i.default,{src:e.url,strategy:o[e.strategy],stylesheets:n},e.url))})};let s=e.r(633940),i=n(e.r(541463)),r=e.r(508751),l=n(e.r(677113)),o={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},522318,e=>{"use strict";var t=e.i(700519),a=e.i(31616),n=e.i(647854),s=e.i(610934),i=class extends s.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,s){let i=n.queryKey,r=n.queryHash??(0,t.hashQueryKeyByOptions)(i,n),l=this.get(r);return l||(l=new a.Query({client:e,queryKey:i,queryHash:r,options:e.defaultQueryOptions(n),state:s,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let a={exact:!0,...e};return this.getAll().find(e=>(0,t.matchQuery)(a,e))}findAll(e={}){let a=this.getAll();return Object.keys(e).length>0?a.filter(a=>(0,t.matchQuery)(e,a)):a}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},r=e.i(403351),l=s,o=class extends l.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#a=new Map,this.#n=0}#t;#a;#n;build(e,t,a){let n=new r.Mutation({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:a});return this.add(n),n}add(e){this.#t.add(e);let t=d(e);if("string"==typeof t){let a=this.#a.get(t);a?a.push(e):this.#a.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=d(e);if("string"==typeof t){let a=this.#a.get(t);if(a)if(a.length>1){let t=a.indexOf(e);-1!==t&&a.splice(t,1)}else a[0]===e&&this.#a.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=d(e);if("string"!=typeof t)return!0;{let a=this.#a.get(t),n=a?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=d(e);if("string"!=typeof t)return Promise.resolve();{let a=this.#a.get(t)?.find(t=>t!==e&&t.state.isPaused);return a?.continue()??Promise.resolve()}}clear(){n.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#a.clear()})}getAll(){return Array.from(this.#t)}find(e){let a={exact:!0,...e};return this.getAll().find(e=>(0,t.matchMutation)(a,e))}findAll(e={}){return this.getAll().filter(a=>(0,t.matchMutation)(e,a))}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return n.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(t.noop))))}};function d(e){return e.options.scope?.id}var c=e.i(593558),u=e.i(917767),m=class{#s;#i;#r;#l;#o;#d;#c;#u;constructor(e={}){this.#s=e.queryCache||new i,this.#i=e.mutationCache||new o,this.#r=e.defaultOptions||{},this.#l=new Map,this.#o=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#c=c.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onFocus())}),this.#u=u.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#c?.(),this.#c=void 0,this.#u?.(),this.#u=void 0)}isFetching(e){return this.#s.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state.data}ensureQueryData(e){let a=this.defaultQueryOptions(e),n=this.#s.build(this,a),s=n.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,t.resolveStaleTime)(a.staleTime,n))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(e){return this.#s.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,a,n){let s=this.defaultQueryOptions({queryKey:e}),i=this.#s.get(s.queryHash),r=i?.state.data,l=(0,t.functionalUpdate)(a,r);if(void 0!==l)return this.#s.build(this,s).setData(l,{...n,manual:!0})}setQueriesData(e,t,a){return n.notifyManager.batch(()=>this.#s.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,a)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state}removeQueries(e){let t=this.#s;n.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let a=this.#s;return n.notifyManager.batch(()=>(a.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,a={}){let s={revert:!0,...a};return Promise.all(n.notifyManager.batch(()=>this.#s.findAll(e).map(e=>e.cancel(s)))).then(t.noop).catch(t.noop)}invalidateQueries(e,t={}){return n.notifyManager.batch(()=>(this.#s.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,a={}){let s={...a,cancelRefetch:a.cancelRefetch??!0};return Promise.all(n.notifyManager.batch(()=>this.#s.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let a=e.fetch(void 0,s);return s.throwOnError||(a=a.catch(t.noop)),"paused"===e.state.fetchStatus?Promise.resolve():a}))).then(t.noop)}fetchQuery(e){let a=this.defaultQueryOptions(e);void 0===a.retry&&(a.retry=!1);let n=this.#s.build(this,a);return n.isStaleByTime((0,t.resolveStaleTime)(a.staleTime,n))?n.fetch(a):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(t.noop).catch(t.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(t.noop).catch(t.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return u.onlineManager.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#s}getMutationCache(){return this.#i}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,a){this.#l.set((0,t.hashKey)(e),{queryKey:e,defaultOptions:a})}getQueryDefaults(e){let a=[...this.#l.values()],n={};return a.forEach(a=>{(0,t.partialMatchKey)(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,a){this.#o.set((0,t.hashKey)(e),{mutationKey:e,defaultOptions:a})}getMutationDefaults(e){let a=[...this.#o.values()],n={};return a.forEach(a=>{(0,t.partialMatchKey)(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let a={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return a.queryHash||(a.queryHash=(0,t.hashQueryKeyByOptions)(a.queryKey,a)),void 0===a.refetchOnReconnect&&(a.refetchOnReconnect="always"!==a.networkMode),void 0===a.throwOnError&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===t.skipToken&&(a.enabled=!1),a}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#s.clear(),this.#i.clear()}};e.s(["QueryClient",0,m],522318)},246380,e=>{"use strict";let t=(0,e.i(281277).default)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);e.s(["Ban",0,t],246380)},922733,310900,e=>{"use strict";var t=e.i(281277);let a=(0,t.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,a],922733);let n=(0,t.default)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);e.s(["BellOff",0,n],310900)},322292,e=>{"use strict";let t=(0,e.i(281277).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],322292)},631135,e=>{"use strict";let t=(0,e.i(281277).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],631135)},617428,e=>{"use strict";var t=e.i(602934);e.s(["ChevronRight",()=>t.default])},406146,e=>{"use strict";let t=(0,e.i(281277).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",0,t])},124141,e=>{"use strict";var t=e.i(406146);e.s(["CircleAlert",()=>t.default])},978219,282782,e=>{"use strict";var t=e.i(281277);let a=(0,t.default)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);e.s(["PlusCircle",0,a],978219);let n=(0,t.default)("face-slightly-smiling",[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M16.472 15a6 6 0 01-8.943 0",key:"7qomzy"}],["path",{d:"M9 10V9",key:"1lazqi"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Smile",0,n],282782)},908180,723695,e=>{"use strict";let t=(0,e.i(281277).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t],723695),e.s(["Loader2",0,t],908180)},330941,e=>{"use strict";let t=(0,e.i(281277).default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);e.s(["MessagesSquare",0,t],330941)},847668,e=>{"use strict";let t=(0,e.i(281277).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",0,t],847668)},555725,e=>{"use strict";let t=(0,e.i(281277).default)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);e.s(["default",0,t])},64412,e=>{"use strict";let t=(0,e.i(281277).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],64412)},79610,e=>{"use strict";let t=(0,e.i(281277).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],79610)},458009,e=>{"use strict";let t=(0,e.i(281277).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],458009)},271297,e=>{"use strict";let t=(0,e.i(281277).default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,t],271297)},418704,(e,t,a)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},6154,(e,t,a)=>{"use strict";function n(e,t,a=!1){return t?Object.keys(e).filter(e=>a?!t.includes(e):t.includes(e)).reduce((t,a)=>(t[a]=e[a],t),{}):{}}function s(e,t,a,n){let s=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&a&&t.forEach(e=>{a[e]&&s.searchParams.set(e,a[e])}),s.toString()}function i(e,t,a,n,i){var r;if(!t)return`<${e}></${e}>`;let l=(null==(r=t.src)?void 0:r.url)?Object.assign(Object.assign({},t),{src:s(t.src.url,t.src.params,n,i)}):t,o=Object.keys(Object.assign(Object.assign({},l),a)).reduce((e,t)=>{let n=null==a?void 0:a[t],s=l[t],i=null!=n?n:s,r=!0===i?t:`${t}="${i}"`;return i?e+` ${r}`:e},"");return`<${e}${o}></${e}>`}Object.defineProperty(a,"__esModule",{value:!0}),a.formatData=a.createHtml=a.formatUrl=void 0,a.formatUrl=s,a.createHtml=i,a.formatData=function(e,t){var a,r,l,o,d;let c=n(t,null==(a=e.scripts)?void 0:a.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),u=n(t,null==(l=null==(r=e.html)?void 0:r.attributes.src)?void 0:l.params),m=n(t,[null==(d=null==(o=e.html)?void 0:o.attributes.src)?void 0:d.slugParam]),h=n(t,[...Object.keys(c),...Object.keys(u),...Object.keys(m)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,h,u,m):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:s(e.url,e.params,c)})):null})}},880092,(e,t,a)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)0>t.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(a[n[s]]=e[n[s]]);return a},s=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.GoogleAnalytics=void 0;let i=s(e.r(418704)),r=e.r(6154);a.GoogleAnalytics=e=>{var t=n(e,[]);return(0,r.formatData)(i.default,t)}},731292,(e,t,a)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},490057,(e,t,a)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)0>t.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(a[n[s]]=e[n[s]]);return a},s=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.GoogleMapsEmbed=void 0;let i=s(e.r(731292)),r=e.r(6154);a.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,r.formatData)(i.default,t)}},447716,(e,t,a)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},761564,(e,t,a)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)0>t.indexOf(n[s])&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(a[n[s]]=e[n[s]]);return a},s=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.YouTubeEmbed=void 0;let i=s(e.r(447716)),r=e.r(6154);a.YouTubeEmbed=e=>{var t=n(e,[]);return(0,r.formatData)(i.default,t)}},508751,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.YouTubeEmbed=a.GoogleMapsEmbed=a.GoogleAnalytics=void 0;var n=e.r(880092);Object.defineProperty(a,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var s=e.r(490057);Object.defineProperty(a,"GoogleMapsEmbed",{enumerable:!0,get:function(){return s.GoogleMapsEmbed}});var i=e.r(761564);Object.defineProperty(a,"YouTubeEmbed",{enumerable:!0,get:function(){return i.YouTubeEmbed}})},531342,e=>{"use strict";var t=e.i(633940),a=e.i(651186);e.i(400175);var n=e.i(209274);let s={online:"var(--status-online)",offline:"var(--muted-foreground)"};e.s(["Avatar",0,function({label:e,seed:i,src:r,size:l=40,dim:o=!1,presence:d,ringColor:c="var(--background)"}){return(0,t.jsx)(n.ProfileAvatar,{label:e,seed:i,src:r,size:l,dim:o,alt:"",children:d&&(0,t.jsx)(a.AvatarBadge,{"data-presence":d,style:{background:s[d],width:Math.round(.22*l),height:Math.round(.22*l),boxShadow:`0 0 0 ${Math.max(2,Math.round(.0625*l))}px ${c}`}})})}])},4762,284508,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(922733),s=e.i(310900),i=e.i(555725);e.s(["Pin",()=>i.default],284508);var i=i,r=e.i(355640),l=e.i(330941),o=e.i(631135),d=e.i(423009),c=e.i(847668),u=e.i(411634);e.i(954194);var m=e.i(908967),h=e.i(186339),f=e.i(280958),x=e.i(903477),p=e.i(513166),g=e.i(779646),y=e.i(89164),v=e.i(728886),b=e.i(323086),j=e.i(670544),N=e.i(450576),w=e.i(388026);e.i(400175);var k=e.i(226318),M=e.i(262009);function _({rightPanel:e,onToggle:a,showThreads:n,showPinned:s}){let r="threads"===e&&n||"pinned"===e&&s;return(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm","aria-label":"More channel options",className:`text-muted-foreground hover:text-foreground ${r?"bg-accent text-foreground":""}`}),children:(0,t.jsx)(u.MoreHorizontal,{className:"size-4"})}),(0,t.jsxs)(y.DropdownMenuContent,{align:"end",className:"w-48",children:[n&&(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>a("threads"),children:[(0,t.jsx)(l.MessagesSquare,{className:"size-4"}),(0,t.jsx)("span",{className:"flex-1",children:"Threads"}),"threads"===e&&(0,t.jsx)(d.Check,{className:"size-4 shrink-0 text-primary"})]}),s&&(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>a("pinned"),children:[(0,t.jsx)(i.default,{className:"size-4"}),(0,t.jsx)("span",{className:"flex-1",children:"Pinned messages"}),"pinned"===e&&(0,t.jsx)(d.Check,{className:"size-4 shrink-0 text-primary"})]})]})]})}function C({id:e,name:a,icon:n,size:s=5,className:i=""}){return(0,t.jsx)("span",{className:`relative grid shrink-0 place-items-center overflow-hidden rounded-md ${n?`font-semibold ${7===s?"text-xs":6===s?"text-[0.6875rem]":"text-[0.625rem]"} bg-secondary text-foreground`:`font-brand font-bold ${7===s?"text-base":6===s?"text-sm":"text-xs"} text-white [text-shadow:0_1px_2px_rgb(0_0_0/0.35)]`} ${7===s?"size-7":6===s?"size-6":"size-5"} ${i}`,"aria-label":a,title:a,children:n?(0,t.jsx)("img",{src:n,alt:"",className:"size-full object-cover"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k.SeededBackdrop,{seed:e}),(0,t.jsx)("span",{className:"relative -translate-x-px [-webkit-text-stroke:0.5px_currentColor]",children:(0,f.avatarInitial)(a)})]})})}let S=[{value:m.USE_SERVER_DEFAULT,label:"Use server default",hint:"Inherit this server's setting"},...m.NOTIF_LEVELS.map(e=>({value:e.display,label:e.label,hint:e.hint}))],A=m.NOTIF_LEVELS.find(e=>"nothing"===e.value).display;function O({level:e,onSetLevel:a}){let i=e===A;return(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",className:`text-muted-foreground hover:text-foreground ${i?"text-destructive":""}`,"aria-label":"Channel notifications"}),children:i?(0,t.jsx)(s.BellOff,{className:"size-4"}):(0,t.jsx)(n.Bell,{className:"size-4"})}),(0,t.jsxs)(y.DropdownMenuContent,{align:"end",className:"w-60",children:[(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>a?.(i?m.USE_SERVER_DEFAULT:A),children:[i?(0,t.jsx)(n.Bell,{className:"size-4"}):(0,t.jsx)(s.BellOff,{className:"size-4"}),i?"Unmute channel":"Mute channel"]}),(0,t.jsx)(y.DropdownMenuSeparator,{}),S.map(n=>(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>a?.(n.value),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-sm",children:n.label}),e===n.value&&(0,t.jsx)(d.Check,{className:"size-4 shrink-0 text-primary"})]},n.value))]})]})}function T({label:e,onRename:n,titleMode:s=!1}){let[i,r]=(0,a.useState)(!1),[l,o]=(0,a.useState)(e),[d,u]=(0,a.useState)(!1),m=(0,a.useRef)(!1);(0,a.useEffect)(()=>{i||o(e)},[e,i]);let f=(0,w.previewSlug)(l),y=s?!!l.trim():!!f.slug,v=async()=>{if(m.current)return;let t=l.trim();if(!y||t===e)return void r(!1);m.current=!0,u(!0);try{await n(t),r(!1)}catch{}finally{m.current=!1,u(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:()=>{o(e),r(!0)},className:"text-muted-foreground hover:text-foreground","aria-label":s?"Edit post title":"Rename",children:(0,t.jsx)(c.Pencil,{className:"size-3.5"})}),i&&(s?(0,t.jsx)(M.CreateDialogShell,{onClose:()=>r(!1),title:"Edit post title",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"sm",onClick:()=>r(!1),disabled:d,children:"Cancel"}),(0,t.jsx)(h.Button,{size:"sm",onClick:()=>void v(),disabled:!y||d,children:"Save"})]}),children:(0,t.jsx)("div",{className:"px-5 pb-5 pt-2",children:(0,t.jsx)("input",{value:l,onChange:e=>o(e.target.value),onKeyDown:e=>(0,p.onEnterSubmit)(v)(e),placeholder:"Post title","aria-label":"Post title",disabled:d,className:"w-full border-0 bg-transparent p-0 text-[30px] font-medium leading-tight tracking-tight shadow-none outline-none placeholder:font-normal placeholder:text-muted-foreground/40 focus-visible:ring-0",autoFocus:!0})})}):(0,t.jsx)(g.Dialog,{open:!0,onOpenChange:e=>{e||r(!1)},children:(0,t.jsxs)(g.DialogContent,{className:"w-105 max-w-[calc(100vw-2rem)] p-0",children:[(0,t.jsx)(g.DialogHeader,{className:"border-b border-border px-4 py-4",children:(0,t.jsx)(g.DialogTitle,{children:"Rename Thread"})}),(0,t.jsx)("div",{className:"px-4 pb-5 pt-4",children:(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("div",{className:"mb-2 text-xs font-semibold text-muted-foreground",children:"Name"}),(0,t.jsx)(x.Input,{value:l,onChange:e=>o(e.target.value),onKeyDown:e=>(0,p.onEnterSubmit)(v)(e),placeholder:"thread-name","aria-label":"Thread name",className:"h-10",autoFocus:!0}),(0,t.jsx)(N.SlugHint,{...f})]})}),(0,t.jsxs)(g.DialogFooter,{className:"mx-0 mb-0 flex-row items-center justify-end gap-2 rounded-b-xl border-t border-border bg-card px-4 py-3",children:[(0,t.jsx)(h.Button,{variant:"ghost",size:"sm",onClick:()=>r(!1),disabled:d,children:"Cancel"}),(0,t.jsx)(h.Button,{size:"sm",onClick:()=>void v(),disabled:!y||d,children:"Save"})]})]})}))]})}e.s(["ChannelHeader",0,function({channel:e,rightPanel:a,onToggle:n,notifLevel:s,onSetNotifLevel:i,onBack:l,breadcrumb:d,forum:c,server:u,tools:f}){let x,p,g=c?"forum":"text";return(0,t.jsxs)("header",{className:"flex h-12 shrink-0 items-center gap-1 border-b border-border/40 px-3",children:[l&&(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:l,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:(0,t.jsx)(o.ChevronLeft,{className:"size-5"})}),u&&(0,t.jsx)(C,{id:u.id,name:u.name,icon:u.icon,size:6,className:"ml-1"}),d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{onClick:d.onNavigateBack,className:`flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors ${u?"":"ml-1"}`,children:[(0,t.jsx)(j.EntityIcon,{kind:g,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"truncate text-base font-medium",children:e})]}),(0,t.jsx)(b.ChannelIcon,{className:"shrink-0 text-base text-muted-foreground/60"}),(0,t.jsx)("span",{className:"min-w-0 truncate text-base font-medium",title:d.label,children:d.label}),d.onRename&&(0,t.jsx)(T,{label:d.label,onRename:d.onRename,titleMode:d.titleRename})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`grid size-6 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground ${u?"":"ml-1"}`,children:(0,t.jsx)(j.EntityIcon,{kind:g,className:"size-4"})}),(0,t.jsx)("span",{className:"truncate text-base font-semibold",children:e})]}),(0,t.jsxs)("div",{className:"ml-auto flex items-center text-muted-foreground",children:[f?.members!==!1&&(x="members",p=r.Users,(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:()=>n(x),"aria-label":"Member list",className:`text-muted-foreground hover:text-foreground ${a===x?"bg-accent text-foreground":""}`,children:(0,t.jsx)(p,{className:"size-4"})})),(0,t.jsx)("span",{className:"mx-1 h-5 w-px bg-border/60","aria-hidden":!0}),(0,t.jsx)(O,{level:s??m.USE_SERVER_DEFAULT,onSetLevel:i}),(f?.threads!==!1||f?.pinned!==!1)&&(0,t.jsx)(_,{rightPanel:a,onToggle:n,showThreads:f?.threads!==!1,showPinned:f?.pinned!==!1})]})]})},"ChannelHeaderSkeleton",0,function({onBack:e}){return(0,t.jsxs)("header",{className:"flex h-12 shrink-0 items-center gap-1 border-b border-border/40 px-3",children:[e&&(0,t.jsx)(h.Button,{variant:"ghost",size:"icon-sm",onClick:e,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:(0,t.jsx)(o.ChevronLeft,{className:"size-5"})}),(0,t.jsx)(v.Skeleton,{className:"ml-1 size-6 rounded-md"}),(0,t.jsx)(v.Skeleton,{className:"h-4 w-32 rounded"}),(0,t.jsxs)("div",{className:"ml-auto flex items-center text-muted-foreground",children:[(0,t.jsx)(v.Skeleton,{className:"size-7 rounded-md"}),(0,t.jsx)("span",{className:"mx-1 h-5 w-px bg-border/60","aria-hidden":!0}),(0,t.jsx)(v.Skeleton,{className:"size-7 rounded-md"}),(0,t.jsx)(v.Skeleton,{className:"size-7 rounded-md"})]})]})}],4762)},927299,e=>{"use strict";var t=e.i(633940),a=e.i(922733),n=e.i(310900),s=e.i(423009),i=e.i(631135);e.i(954194);var r=e.i(908967),l=e.i(186339),o=e.i(89164),d=e.i(728886),c=e.i(531342);function u({level:e,onSetLevel:i}){let d="Nothing"===e;return(0,t.jsxs)(o.DropdownMenu,{children:[(0,t.jsx)(o.DropdownMenuTrigger,{render:(0,t.jsx)(l.Button,{variant:"ghost",size:"icon-sm",className:`ml-auto ${d?"text-destructive":"text-muted-foreground"}`,"aria-label":"Direct message notifications"}),children:d?(0,t.jsx)(n.BellOff,{className:"size-4"}):(0,t.jsx)(a.Bell,{className:"size-4"})}),(0,t.jsxs)(o.DropdownMenuContent,{align:"end",className:"w-60",children:[r.NOTIF_LEVELS.map(a=>(0,t.jsxs)(o.DropdownMenuItem,{onClick:()=>i?.(a.display),children:[(0,t.jsx)("span",{className:"min-w-0 flex-1",children:a.label}),e===a.display&&(0,t.jsx)(s.Check,{className:"size-4 text-primary"})]},a.value)),(0,t.jsx)("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"Changes clear existing unread in this conversation."})]})]})}e.s(["DmHeader",0,function({dm:e,onBack:a,titleAs:n="h1",notifLevel:s,onSetNotifLevel:r}){return(0,t.jsxs)("header",{className:"flex h-12 shrink-0 items-center gap-2 border-b border-border/40 px-3",children:[a&&(0,t.jsx)(l.Button,{variant:"ghost",size:"icon-sm",onClick:a,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:(0,t.jsx)(i.ChevronLeft,{className:"size-5"})}),(0,t.jsx)(c.Avatar,{label:e.avatar,seed:e.userId,size:24,presence:e.status}),(0,t.jsxs)(n,{className:"min-w-0 truncate font-heading text-base font-medium leading-[1.15] tracking-[-0.015em]",children:[e.name,e.discriminator&&(0,t.jsxs)("span",{className:"ml-1 text-xs font-normal tracking-wide text-muted-foreground",children:["#",e.discriminator]})]}),s&&(0,t.jsx)(u,{level:s,onSetLevel:r})]})},"DmHeaderSkeleton",0,function({onBack:e}){return(0,t.jsxs)("header",{className:"flex h-12 shrink-0 items-center gap-2 border-b border-border/40 px-3",children:[e&&(0,t.jsx)(l.Button,{variant:"ghost",size:"icon-sm",onClick:e,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:(0,t.jsx)(i.ChevronLeft,{className:"size-5"})}),(0,t.jsx)(d.Skeleton,{className:"size-6 rounded-full"}),(0,t.jsx)(d.Skeleton,{className:"h-4 w-32 rounded"})]})}])},250569,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(355640),s=e.i(246380),i=e.i(957730),r=e.i(322292),l=e.i(531342),o=e.i(728886),d=e.i(381153);let c=(0,a.memo)(function({dms:e,activeDm:a,blockedUserIds:o,loading:c,onPickDm:m,onShowFriends:h,onShowMachines:f,onShowBots:x,onPrefetchDm:p,onPrefetchFriends:g,onPrefetchMachines:y,onPrefetchBots:v,friendsActive:b,machinesActive:j,botsActive:N}){return(0,t.jsx)("aside",{className:"flex min-w-0 flex-1 flex-col",children:(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto thin-scrollbar px-2 py-4",children:[(0,t.jsxs)("button",{onClick:h,onPointerEnter:g,onFocus:g,className:["mb-1 flex h-9 w-full items-center gap-2 rounded-md px-2 text-sm font-medium",b??(null===a&&!j&&!N)?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"].join(" "),children:[(0,t.jsx)(n.Users,{className:"size-5"})," Friends"]}),f&&(0,t.jsxs)("button",{onClick:f,onPointerEnter:y,onFocus:y,className:["mb-1 flex h-9 w-full items-center gap-2 rounded-md px-2 text-sm font-medium",j?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"].join(" "),children:[(0,t.jsx)(i.Monitor,{className:"size-5"})," Machines"]}),x&&(0,t.jsxs)("button",{onClick:x,onPointerEnter:v,onFocus:v,className:["mb-2 flex h-9 w-full items-center gap-2 rounded-md px-2 text-sm font-medium",N?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"].join(" "),children:[(0,t.jsx)(r.Bot,{className:"size-5"})," My Bots"]}),(0,t.jsx)("div",{className:"my-2 h-px bg-border"}),(0,t.jsx)("div",{className:"mb-2 px-2 text-xs font-semibold text-muted-foreground",children:"Direct Messages"}),c&&0===e.length?(0,t.jsx)(u,{}):0===e.length?(0,t.jsx)("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"Your direct messages will appear here."}):null,e.map(e=>{let n=e.id===a,i=o?.has(e.userId);return(0,t.jsxs)("button",{"data-testid":d.tid.dmRow(e.id),onClick:()=>m(e.id),onPointerEnter:()=>p?.(e.id),onFocus:()=>p?.(e.id),className:["flex w-full items-center gap-3 rounded-md px-2 py-2",n?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"].join(" "),children:[(0,t.jsx)(l.Avatar,{label:e.avatar,seed:e.userId,size:32,presence:i?void 0:e.status,ringColor:"var(--sidebar)"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,t.jsx)("div",{className:"truncate text-sm leading-tight text-foreground",children:e.name}),(0,t.jsx)("div",{className:"truncate text-xs leading-tight text-muted-foreground",children:e.preview})]}),i&&(0,t.jsx)(s.Ban,{className:"size-4 shrink-0 text-destructive"}),!i&&e.unread&&(0,t.jsx)("span",{className:"size-2 shrink-0 rounded-full bg-primary"})]},e.id)})]})})});function u(){return(0,t.jsx)(t.Fragment,{children:Array.from({length:5}).map((e,a)=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md px-2 py-2",children:[(0,t.jsx)(o.Skeleton,{className:"size-8 shrink-0 rounded-full"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsx)(o.Skeleton,{className:"h-3.5 w-3/5 rounded"}),(0,t.jsx)(o.Skeleton,{className:"h-3 w-4/5 rounded"})]})]},a))})}e.s(["DmSidebar",0,c])},978913,e=>{"use strict";var t=e.i(633940);e.s(["EmptyState",0,function({icon:e,label:a}){return(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-12 text-center",children:[(0,t.jsx)("div",{className:"grid size-14 place-items-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(e,{className:"size-7"})}),(0,t.jsx)("p",{className:"max-w-65 text-sm text-muted-foreground",children:a})]})}])},670544,484382,e=>{"use strict";var t=e.i(633940),a=e.i(281277);let n=(0,a.default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),s=(0,a.default)("list-chevrons-up-down",[["path",{d:"M3 5h8",key:"18g2rq"}],["path",{d:"M3 12h8",key:"1xfjp6"}],["path",{d:"M3 19h8",key:"fpbke4"}],["path",{d:"m15 8 3-3 3 3",key:"bc4io6"}],["path",{d:"m15 16 3 3 3-3",key:"9wmg1l"}]]);e.s(["ListChevronsUpDown",0,s],484382);var i=e.i(323086);e.s(["EntityIcon",0,function({kind:e,className:a}){switch(e){case"forum":return(0,t.jsx)(s,{className:a});case"thread":return(0,t.jsx)(n,{className:a});default:return(0,t.jsx)(i.ChannelIcon,{className:a})}}],670544)},407478,110696,468099,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(957730),s=e.i(288052);e.i(954194);var i=e.i(846367),r=e.i(934351),l=e.i(186339),o=e.i(329686),d=e.i(89164),c=e.i(450463),u=e.i(130901),m=e.i(381153),h=e.i(124141),f=e.i(855372),x=e.i(613349);let p="inline-flex max-w-[160px] items-center gap-2 rounded-md border border-border bg-card px-2 py-1 text-[11px]";function g({runtimes:e}){let a=e??[];if(0===a.length)return null;let n=a.toSorted((e,t)=>Number("unhealthy"===e.status)-Number("unhealthy"===t.status));return(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:n.map(e=>(0,t.jsx)(y,{runtime:e},e.id))})}function y({runtime:e}){let a="unhealthy"===e.status,n=a?e.lastError?`Unavailable (${e.lastError}) — check daemon logs`:"Unavailable — check daemon logs":e.version,s=(0,t.jsxs)(t.Fragment,{children:[a?(0,t.jsx)(h.CircleAlert,{className:"size-3 shrink-0","aria-hidden":!0}):(0,t.jsx)(f.ProviderLogo,{provider:e.id,className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"truncate font-medium text-foreground",children:e.id})]});return n?(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button","aria-label":a?`${e.id} unavailable`:`${e.id} ${e.version}`,className:(0,x.cn)(p,a&&"opacity-40 cursor-not-allowed",!a&&"transition-colors hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:s})}),(0,t.jsx)(o.TooltipContent,{side:"top",sideOffset:4,children:n})]}):(0,t.jsx)("span",{className:(0,x.cn)(p,a&&"opacity-40"),children:s})}e.s(["MachineCard",0,function({machine:e,onDelete:h,onReconnect:f,onUpdate:x}){let p=(0,i.isPresenceOnline)(e.status),y=(0,a.useMemo)(()=>e.lastSeenAt?`Last seen \xb7 ${(0,c.timeAgo)(e.lastSeenAt)}`:"Never seen",[e.lastSeenAt]);return(0,t.jsxs)(r.Card,{className:"flex flex-col gap-3 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"grid size-10 place-items-center rounded-xl bg-secondary text-muted-foreground",children:(0,t.jsx)(n.Monitor,{className:"size-5"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[15px] font-medium text-foreground",children:(0,u.machineName)(e)}),(0,t.jsxs)("span",{className:["inline-flex items-center gap-1 rounded-full px-2 py-1 text-[11px] font-medium",p?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-muted text-muted-foreground"].join(" "),children:[(0,t.jsx)("span",{className:["inline-block size-1.5 rounded-full",p?"bg-status-online":"bg-muted-foreground"].join(" ")}),p?"Online":"Offline"]})]}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[[e.platform,e.arch].filter(Boolean).join(" · "),e.daemonVersion?` \xb7 v${e.daemonVersion}`:""]}),(0,t.jsx)(g,{runtimes:e.availableRuntimes}),(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{render:(0,t.jsx)("span",{className:"text-xs text-muted-foreground"}),children:y}),(0,t.jsx)(o.TooltipContent,{side:"bottom",sideOffset:4,children:e.lastSeenAt??"—"})]}),e.lastRuntimeError&&(0,t.jsxs)("div",{className:"mt-2 rounded-md border border-destructive/20 bg-destructive/5 p-2 text-xs text-destructive",children:[(0,t.jsx)("span",{className:"font-medium",children:"Runtime not available"}),(0,t.jsxs)("span",{className:"ml-1 text-destructive/80",children:["— requested ",e.lastRuntimeError.requested||"runtime",", installed:"," ",e.lastRuntimeError.available.length>0?e.lastRuntimeError.available.join(", "):"none"]})]})]})]}),(0,t.jsxs)(d.DropdownMenu,{children:[(0,t.jsx)(d.DropdownMenuTrigger,{render:(0,t.jsx)("button",{"aria-label":"Machine actions","data-testid":m.tid.machineActions(e.id),className:"grid size-8 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground",children:(0,t.jsx)(s.MoreVertical,{className:"size-4"})})}),(0,t.jsxs)(d.DropdownMenuContent,{align:"end",children:[x&&(0,t.jsx)(d.DropdownMenuItem,{"data-testid":m.tid.machineUpdate(e.id),onClick:x,children:"Update daemon…"}),(0,t.jsx)(d.DropdownMenuItem,{onClick:f,children:"Reconnect…"}),(0,t.jsx)(d.DropdownMenuItem,{onClick:h,className:"text-destructive",children:"Delete"})]})]})]}),!p&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(l.Button,{variant:"outline",size:"sm","data-onboarding-target":"reconnect-machine","data-onboarding-id":e.id,onClick:f,children:"Reconnect"})})]})}],407478);var v=e.i(998808),b=e.i(285754),j=e.i(908180),N=e.i(824863),w=e.i(332680),k=e.i(849050),M=e.i(603408);let _=(0,x.isLocalMode)();function C(e,t){return"string"==typeof e&&e.trim()?e.trim():e instanceof Error&&e.message?e.message:t}function S({command:e,generating:a,onCopy:n,connectedHostname:s,step1MotionTarget:i,step2MotionTarget:r,step1ClassName:l,step2ClassName:o,headingAs:d="h3",desktopNative:c=!1,checkingRuntime:u=!1,runtimeCapability:m=null,launchError:h=null,connecting:f=!1,started:x=!1,onConnectDesktop:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-motion-target":i,className:l,children:(0,t.jsx)(A,{command:e,generating:a,onCopy:n,headingAs:d,desktopNative:c,checkingRuntime:u,runtimeCapability:m,launchError:h,connecting:f,started:x,onConnectDesktop:p})}),(0,t.jsx)("div",{"data-motion-target":r,className:o,children:(0,t.jsx)(O,{ready:c&&m?.available?x:!!e,connectedHostname:s,headingAs:d})})]})}function A({command:e,generating:a,onCopy:n,headingAs:s,desktopNative:i,checkingRuntime:r,runtimeCapability:o,launchError:d,connecting:c,started:u,onConnectDesktop:h}){return(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(T,{n:1,done:!a}),(0,t.jsx)(s,{className:"font-heading text-sm font-medium leading-tight tracking-[-0.015em] text-foreground",children:"Run this on your machine"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Open a terminal on the computer you want to connect, paste the command, and hit enter. Node.js with npm is required."}),a?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border bg-muted/30 p-3 text-sm text-muted-foreground",children:[(0,t.jsx)(j.Loader2,{className:"size-4 animate-spin"}),"Preparing your command…"]}):(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[o?.available&&(0,t.jsxs)(l.Button,{"data-testid":m.tid.machinePairDesktopConnect,onClick:h,disabled:c||u,className:"w-full",children:[c&&(0,t.jsx)(j.Loader2,{className:"size-4 animate-spin"}),c?"Connecting…":u?"Daemon started":"Connect this computer"]}),(r||!o?.available||d)&&(0,t.jsx)("p",{"data-testid":m.tid.machinePairRuntimeHint,role:d||o?.reason?"status":void 0,className:"text-sm text-muted-foreground",children:d?`${d} The terminal command remains available below.`:r?"Checking this computer for Node.js and npm…":o?.reason??"Node.js and npm are required for one-click connection."})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border bg-muted/30 p-3 font-mono text-xs",children:[(0,t.jsx)("code",{"data-testid":m.tid.machinePairCommand,className:"flex-1 break-all",children:e}),(0,t.jsx)("button",{"data-testid":m.tid.machinePairCopy,onClick:n,className:"grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Copy command",children:(0,t.jsx)(b.Copy,{className:"size-3.5"})})]})]})]})}function O({ready:e,connectedHostname:a,headingAs:n}){return a?(0,t.jsxs)("section",{"data-testid":m.tid.machinePairStatus,className:"flex flex-col gap-3",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(T,{n:2,done:!0}),(0,t.jsx)(n,{className:"font-heading text-sm font-medium leading-tight tracking-[-0.015em] text-foreground",children:"Connected"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-sm",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[15px] font-medium text-foreground",children:a}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-1 text-[11px] font-medium text-emerald-600 dark:text-emerald-400",children:[(0,t.jsx)("span",{className:"inline-block size-1.5 rounded-full bg-status-online"}),"Online"]})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"is ready for your agent friends."})]})]}):(0,t.jsx)("section",{"data-testid":m.tid.machinePairStatus,className:"flex flex-col gap-3",children:(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(T,{n:2,muted:!e,spinning:e}),(0,t.jsx)(n,{className:["font-heading text-sm font-medium leading-tight tracking-[-0.015em]",e?"text-foreground":"text-muted-foreground"].join(" "),children:"Waiting for the daemon…"})]})})}function T({n:e,muted:a,done:n,spinning:s}){return(0,t.jsxs)("span",{className:["relative grid size-6 place-items-center rounded-full text-xs font-medium",n?"bg-emerald-500 text-white":a?"bg-muted text-muted-foreground":"bg-primary text-primary-foreground"].join(" "),children:[s&&(0,t.jsx)("span",{className:"absolute -inset-0.75 rounded-full border-2 border-primary/30 border-t-primary animate-spin"}),e]})}e.s(["PairMachineSheet",0,function({open:e,onOpenChange:n,pendingTokenId:s,setPendingTokenId:i,connectedHostname:r,mode:o={kind:"pair"}}){let d="reconnect"===o.kind,[c,u]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[b,j]=(0,a.useState)(null),[A,O]=(0,a.useState)(null),T=(0,a.useRef)(null),E=(0,a.useRef)(!1),I=(0,N.isTauri)()&&(0,N.isDesktop)(),z=(0,a.useCallback)(async()=>{u(!0);try{let e="reconnect"===o.kind?`/api/community/machines/${o.machineId}/reconnect`:"/api/community/machines/pair",t=await (0,k.apiFetch)(e,{method:"POST"});i(t.tokenId)}catch(e){(0,k.toastApiError)(e,"Couldn't generate a key — try again."),console.error(e)}finally{u(!1)}},[i,o]),D=e?"reconnect"===o.kind?`reconnect:${o.machineId}`:"pair":null;(0,a.useEffect)(()=>{if(!D){T.current=null;return}T.current!==D&&(T.current=D,p(!1),i(null),z())},[D,z,i]),(0,a.useEffect)(()=>{if(!e||!I){y(!1),j(null);return}let t=!0;return y(!0),j(null),O(null),(0,N.tauriInvoke)("daemon_runtime_capability").then(e=>{t&&j(e)}).catch(e=>{t&&j({available:!1,reason:C(e,"Alook couldn't check Node.js and npm on this computer."),nodeVersion:null})}).finally(()=>{t&&y(!1)}),()=>{t=!1}},[e,I]);let q=s?function(e,t){let a,{serverUrl:n,wsUrl:s}=(a=_?(0,M.websocketUrl)("community-daemon",{local:!0,port:x.WS_DO_PORT_DEFAULT}):(0,M.websocketUrl)("community-daemon",{local:!1,origin:location.origin}),{serverUrl:location.origin,wsUrl:a}),i=t?`reconnect --id ${t} --machine-key ${e}`:`start --machine-key ${e}`;return`${_?"pnpm daemon":"npm exec --yes --package=@alook/daemon@latest -- alook-daemon daemon"} ${i} --server-url ${n} --ws-url ${s}`}(s,"reconnect"===o.kind?o.machineId:void 0):"",P=(0,a.useCallback)(async()=>{if(q)try{await navigator.clipboard.writeText(q),v.toast.success("Command copied")}catch{v.toast.error("Copy failed")}},[q]),R=(0,a.useCallback)(async()=>{if(s&&!E.current&&b?.available){E.current=!0,h(!0),O(null);try{let e=await (0,N.tauriInvoke)("daemon_pair",{machineKey:s,machineId:"reconnect"===o.kind?o.machineId:null});if(!e.success)throw Error(e.message||"The daemon did not start");p(!0),v.toast.success(d?"Machine reconnected":"This computer is connecting")}catch(t){let e=C(t,"Couldn't start the daemon. Run the command below in a terminal instead.");O(e),v.toast.error(e)}finally{E.current=!1,h(!1)}}},[s,b?.available,d,o]);return(0,t.jsx)(w.Sheet,{open:e,onOpenChange:n,children:(0,t.jsxs)(w.SheetContent,{side:"right",className:"data-[side=right]:sm:inset-y-2 data-[side=right]:sm:right-2 data-[side=right]:sm:h-auto data-[side=right]:sm:rounded-xl data-[side=right]:sm:border",children:[(0,t.jsxs)(w.SheetHeader,{children:[(0,t.jsx)(w.SheetTitle,{children:d?`Reconnect ${o.hostname||"machine"}`:"Connect a machine"}),(0,t.jsx)(w.SheetDescription,{children:d?"Run this command before it expires. It safely replaces the running daemon, then rotates its key.":"Run this on the computer you want to connect. The key is good for 15 minutes."})]}),(0,t.jsx)(w.SheetBody,{className:"flex flex-col gap-6",children:(0,t.jsx)(S,{command:q,generating:c||!q,onCopy:P,desktopNative:I,checkingRuntime:g,runtimeCapability:b,launchError:A,connecting:m,started:f,onConnectDesktop:R,connectedHostname:r})}),(0,t.jsx)(w.SheetFooter,{children:(0,t.jsx)(w.SheetClose,{render:(0,t.jsx)(l.Button,{variant:"secondary",children:"Done"})})})]})})},"PairMachineSteps",0,S],110696);var E=e.i(732919),I=e.i(848937),z=e.i(909850),D=e.i(621202);let q={x:100,y:32},P={x:57,y:96},R={x:143,y:96};e.s(["ConnectTile",0,function({idPrefix:e="ot-connect"}){let n=(0,a.useRef)(null),s=(0,z.tileIds)(e);return(0,I.useGSAP)(()=>{if(!n.current)return;let e=(e,t,a,n)=>{var s,i;e.set(".ot-packet",{attr:{cx:t.x,cy:t.y,r:4},opacity:0}).to(".ot-packet",{opacity:1,duration:.2}).to(".ot-packet",{attr:{cx:a.x,cy:a.y},duration:.85,ease:"power1.inOut"}).to(".ot-packet",{opacity:0,duration:.14}),s=a.x,i=a.y,e.set(".ot-flare",{attr:{cx:s,cy:i,r:3},opacity:.9}).to(".ot-flare",{attr:{r:12},opacity:0,duration:.7,ease:"power2.out"}).to(n,{filter:"brightness(1.7)",duration:.14,ease:"power2.out"},"<").to(n,{filter:"brightness(1)",duration:.6,ease:"power1.out"},"<0.14"),e.to({},{duration:.25})},t=E.default.timeline({repeat:-1,defaults:{ease:D.OT_EASE}});e(t,P,q,".ot-alook"),e(t,q,R,".ot-phone"),e(t,R,q,".ot-alook"),e(t,q,P,".ot-machine"),t.to({},{duration:.3})},{scope:n}),(0,t.jsxs)("svg",{ref:n,viewBox:"0 0 200 130",className:"ot-svg h-full w-full",children:[(0,t.jsx)(z.TileDefs,{idPrefix:e}),(0,t.jsx)("line",{className:"ot-art",x1:"83.7",y1:"56.3",x2:"70.1",y2:"76.8",opacity:"0.28"}),(0,t.jsx)("line",{className:"ot-art",x1:"116.3",y1:"56.3",x2:"129.9",y2:"76.8",opacity:"0.28"}),(0,t.jsx)("image",{className:"ot-alook ot-center",href:"/alook.svg",x:"83",y:"15",width:"34",height:"34"}),(0,t.jsx)("g",{className:"ot-machine ot-center",children:(0,t.jsx)("svg",{x:"40",y:"79",width:"34",height:"34",viewBox:"0 0 24 24",children:(0,t.jsx)("use",{href:`#${s.monitor}`})})}),(0,t.jsx)("g",{className:"ot-phone ot-center",children:(0,t.jsx)("svg",{x:"130",y:"83",width:"26",height:"26",viewBox:"0 0 24 24",children:(0,t.jsx)("use",{href:`#${s.phone}`})})}),(0,t.jsx)("circle",{className:"ot-art ot-accent ot-flare",cx:"100",cy:"32",r:"4",opacity:"0",strokeWidth:"2.5"}),(0,t.jsx)("circle",{className:"ot-art-fill ot-accent ot-packet",cx:"100",cy:"32",r:"4",opacity:"0"})]})}],468099)},455547,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(79610),s=e.i(908180),i=e.i(779646),r=e.i(903477),l=e.i(186339),o=e.i(531342),d=e.i(132977),c=e.i(849050);function u({candidate:e,adding:a,onAdd:n}){return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md px-2 py-2 hover:bg-accent/40",children:[(0,t.jsx)(o.Avatar,{label:e.avatar||e.name||"",seed:e.userId,size:32}),(0,t.jsx)("div",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:(0,d.displayName)(e)}),(0,t.jsx)(l.Button,{size:"sm",disabled:a,onClick:()=>n(e.userId),children:a?(0,t.jsx)(s.Loader2,{className:"size-4 animate-spin"}):"Add"})]})}async function m(e,t,a){a(t=>new Set(t).add(e));try{await t(e)}catch(t){(0,c.toastApiError)(t,"Couldn't add member"),a(t=>{let a=new Set(t);return a.delete(e),a})}}e.s(["AddMembersDialog",0,function({title:e,subtitle:s,candidates:l,onAdd:o,onClose:d}){let[c,h]=(0,a.useState)(""),[f,x]=(0,a.useState)(new Set),p=(0,a.useMemo)(()=>{let e=c.trim().toLowerCase();return e?l.filter(t=>(t.name??"").toLowerCase().includes(e)):l},[l,c]),g=e=>void m(e,o,x);return(0,t.jsx)(i.Dialog,{open:!0,onOpenChange:e=>{e||d()},children:(0,t.jsxs)(i.DialogContent,{className:"flex max-h-[80vh] w-full flex-col gap-0 p-0 sm:max-w-md",children:[(0,t.jsxs)("header",{className:"border-b border-border/50 px-4 py-3",children:[(0,t.jsx)("h2",{className:"truncate text-sm font-semibold",children:e}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:s})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto thin-scrollbar px-2 py-2",children:[(0,t.jsxs)("label",{className:"relative mx-2 mb-2 block",children:[(0,t.jsx)(n.Search,{"aria-hidden":!0,className:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(r.Input,{value:c,onChange:e=>h(e.target.value),placeholder:"Search members",className:"pl-9"})]}),0===p.length?(0,t.jsx)("p",{className:"py-4 text-center text-sm text-muted-foreground",children:c?"No matches.":"Everyone is already here."}):p.map(e=>(0,t.jsx)(u,{candidate:e,adding:f.has(e.userId),onAdd:g},e.userId))]})]})})}])},450576,e=>{"use strict";var t=e.i(633940);e.s(["SlugHint",0,function({slug:e,invalid:a,changed:n}){return a?(0,t.jsx)("p",{className:"mt-1.5 text-xs text-destructive",children:"Add a character other than space, / or # to save this name"}):n?(0,t.jsxs)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:["Will be saved as ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:e})]}):null}])},228918,e=>{"use strict";let t=[{emoji:"🎧",text:"Vibing"},{emoji:"🎮",text:"Gaming"},{emoji:"🦥",text:"Chillin'"},{emoji:"🍟",text:"Snack break"},{emoji:"📞",text:"On a call"},{emoji:"🚪",text:"Afk"},{emoji:"😴",text:"Do not disturb"}];e.s(["STATUS_PRESETS",0,t,"hasStatus",0,function(e,t){return!!(e||t)},"matchingPreset",0,function(e,a){return t.find(t=>t.emoji===e&&t.text===a)}])},39716,e=>{e.v({botMenu:"landing-shell-motion-module__zN3MOq__botMenu",camera:"landing-shell-motion-module__zN3MOq__camera",canvas:"landing-shell-motion-module__zN3MOq__canvas",composerLayer:"landing-shell-motion-module__zN3MOq__composerLayer",cursor:"landing-shell-motion-module__zN3MOq__cursor",focus:"landing-shell-motion-module__zN3MOq__focus",galleryContainer:"landing-shell-motion-module__zN3MOq__galleryContainer",galleryFooter:"landing-shell-motion-module__zN3MOq__galleryFooter",galleryFrame:"landing-shell-motion-module__zN3MOq__galleryFrame",gallerySwitcher:"landing-shell-motion-module__zN3MOq__gallerySwitcher","inbox-enter":"landing-shell-motion-module__zN3MOq__inbox-enter",inboxSurface:"landing-shell-motion-module__zN3MOq__inboxSurface",inviteSurface:"landing-shell-motion-module__zN3MOq__inviteSurface",messageSlot:"landing-shell-motion-module__zN3MOq__messageSlot",mobileCanvas:"landing-shell-motion-module__zN3MOq__mobileCanvas",mobileMessages:"landing-shell-motion-module__zN3MOq__mobileMessages",mobileStage:"landing-shell-motion-module__zN3MOq__mobileStage",mobileSurface:"landing-shell-motion-module__zN3MOq__mobileSurface",mobileTop:"landing-shell-motion-module__zN3MOq__mobileTop",motionTarget:"landing-shell-motion-module__zN3MOq__motionTarget",productShell:"landing-shell-motion-module__zN3MOq__productShell",recede:"landing-shell-motion-module__zN3MOq__recede",resultReveal:"landing-shell-motion-module__zN3MOq__resultReveal",root:"landing-shell-motion-module__zN3MOq__root","scene-enter":"landing-shell-motion-module__zN3MOq__scene-enter",sceneEnter:"landing-shell-motion-module__zN3MOq__sceneEnter",sheetSurface:"landing-shell-motion-module__zN3MOq__sheetSurface",stage:"landing-shell-motion-module__zN3MOq__stage",stateLayer:"landing-shell-motion-module__zN3MOq__stateLayer",stateStack:"landing-shell-motion-module__zN3MOq__stateStack",typing:"landing-shell-motion-module__zN3MOq__typing",typingText:"landing-shell-motion-module__zN3MOq__typingText"})},726514,364803,598781,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(522318),s=e.i(838181),i=e.i(430511),r=e.i(423009),l=e.i(288052);let o=(0,e.i(281277).default)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var d=e.i(978219),c=e.i(327040),u=e.i(79610),m=e.i(282782),h=e.i(271297);e.i(400175);var f=e.i(261819),x=e.i(855372),p=e.i(186339),g=e.i(934351),y=e.i(903477),v=e.i(708884),b=e.i(332680),j=e.i(190209),N=e.i(274762),w=e.i(8497),k=e.i(250569),M=e.i(927299),_=e.i(4762),C=e.i(531342),S=e.i(830028),A=e.i(294656),O=e.i(407478),T=e.i(110696),E=e.i(468099),I=e.i(551095),z=e.i(521073),D=e.i(804),q=e.i(582813),P=e.i(435355),R=e.i(381153);let $=["claude","codex","cursor","opencode","pi"],B={authorId:"maya",authorName:"Maya",authorAvatar:"avatar:beam:maya",content:"I’m here."},G={server:6,machine:7,provider:9,spaces:12,identity:12,continuity:14};function F(e,t){var a;let n=(a=e.scale)<=1?a:1.6;if(n<=1)return{...e,scale:n};if(!t)return{...e,scale:1};let s=Math.min(Math.max(t.x,313.6),806.4),i=Math.min(Math.max(t.y,158.4),488.4);return{scale:n,x:(n*t.x-s)/(n-1),y:(n*t.y-i)/(n-1)}}let L={scale:1,x:560,y:330},H=[L,{scale:1.22,x:700,y:570},{scale:1.18,x:620,y:110},{scale:1.18,x:620,y:190},{scale:1.18,x:620,y:270},{scale:1.18,x:620,y:350},L],Q=[L,{scale:1.2,x:900,y:90},{scale:1.22,x:900,y:180},{scale:1.22,x:900,y:360},{scale:1.22,x:900,y:510},{scale:1.18,x:620,y:160},{scale:1.18,x:620,y:360},L],U=[L,{scale:1.18,x:980,y:170},{scale:1.2,x:950,y:300},{scale:1.22,x:900,y:360},{scale:1.22,x:930,y:600},L,{scale:1.18,x:700,y:570},{scale:1.18,x:620,y:140},{scale:1.18,x:620,y:230},L],K=[L,{scale:1.18,x:84,y:190},{scale:1.18,x:160,y:28},{scale:1.18,x:200,y:105},{scale:1.18,x:210,y:45},{scale:1.2,x:610,y:340},{scale:1.2,x:610,y:340},{scale:1.18,x:650,y:240},{scale:1.18,x:84,y:250},{scale:1.18,x:160,y:28},{scale:1.18,x:200,y:105},{scale:1.18,x:650,y:180},L],V=[L,{scale:1.18,x:160,y:28},{scale:1.18,x:200,y:105},{scale:1.18,x:650,y:180},{scale:1.18,x:84,y:190},{scale:1.18,x:160,y:28},{scale:1.18,x:200,y:105},{scale:1.18,x:650,y:180},{scale:1.18,x:84,y:250},{scale:1.18,x:160,y:28},{scale:1.18,x:200,y:105},{scale:1.18,x:650,y:180},L],Z=[L,{scale:1.22,x:680,y:570},{scale:1.18,x:660,y:170},{scale:1.18,x:660,y:250},L,{scale:1.18,x:210,y:610},{scale:1.2,x:190,y:410},{scale:1.18,x:660,y:180},{scale:1.18,x:660,y:270},L,{scale:1.18,x:210,y:610},{scale:1.2,x:190,y:410},{scale:1.18,x:660,y:180},{scale:1.18,x:660,y:270},L];function Y(e,t){let a=Math.max(0,Math.min(t,G[e]));if("server"===e)return{beat:a,visibleMessages:a<2?0:Math.min(4,a-1),composerText:1===a?"hello world":"",machineState:"empty",pairSheet:"closed",runtime:"claude",model:null,room:"work",inviteOpen:!1,inviteSent:!1,focus:[null,"composer","message-gus","message-alli","message-ruth","message-shelly"][a]??null,camera:H[a]??L};if("machine"===e)return{beat:a,visibleMessages:0,composerText:"",machineState:a<2?"empty":a<4?"connecting":a<6?"online":"bot-born",pairSheet:2===a?"command":3===a?"waiting":4===a?"connected":"closed",runtime:"claude",model:null,room:"work",inviteOpen:!1,inviteSent:!1,focus:[null,"connect","pair-step-1","pair-step-2","pair-connected","machine","born-bot"][a]??null,camera:Q[a]??L};if("provider"===e)return{beat:a,visibleMessages:a>=8?2:+(a>=7),composerText:6===a?"hello Alli":"",machineState:"online",pairSheet:"closed",runtime:a>=4?"codex":"claude",model:null,room:"work",inviteOpen:!1,inviteSent:!1,focus:[null,"bot-actions","bot-edit","runtime-codex","save-provider","dm-alli","dm-composer","dm-message-gus","dm-message-alli"][a]??null,camera:U[a]??L};if("continuity"===e){let e=a<7,t=a>=7&&a<12;return{beat:a,visibleMessages:e?a>=3?2:+(a>=2):t?a>=8?2:1:2,composerText:1===a?"Alli, please move today’s priorities forward.":"",machineState:"online",pairSheet:"closed",runtime:"claude",model:null,room:a>=12?"life":"work",inviteOpen:!1,inviteSent:!1,focus:[null,"continuity-dm-composer","continuity-dm-gus","continuity-dm-alli",null,"continuity-inbox","continuity-inbox-row-work","continuity-work-alli","continuity-work-shelly",null,"continuity-inbox","continuity-inbox-row-life","continuity-life-alli","continuity-life-tracy",null][a]??null,camera:Z[a]??L}}if("identity"===e){let e=a>=9?"play":a>=5?"life":"work";return{beat:a,visibleMessages:+!![3,4,7,8,11,12].includes(a),composerText:"",machineState:"online",pairSheet:"closed",runtime:"claude",model:null,room:e,inviteOpen:!1,inviteSent:!1,focus:[null,"space-server-name-work","space-channel-work","identity-message-maya","server-life","space-server-name-life","space-channel-life","identity-message-maya","server-play","space-server-name-play","space-channel-play","identity-message-maya",null][a]??null,camera:V[a]??L}}return{beat:a,visibleMessages:a>=9||a>=7?3:2,composerText:"",machineState:"online",pairSheet:"closed",runtime:"claude",model:null,room:a>=9?"play":a>=2?"life":"work",inviteOpen:5===a||6===a,inviteSent:a>=6,focus:[null,"server-life","space-server-name-life","space-channel-life","invite-life","invite-maya","invite-maya","space-message-maya","server-play","space-server-name-play","space-channel-play","space-message-quest",null][a]??null,camera:K[a]??L}}e.s(["LANDING_IDENTITY_MAYA",0,B,"LANDING_MACHINE_RUNTIMES",0,$,"SCENE_BEAT_DURATION_MS",0,1500,"SCENE_FINAL_HOLD_MS",0,2400,"SCENE_MAX_BEAT",0,G,"galleryCameraTransform",0,F,"sceneDurationMs",0,function(e){return 1500*G[e]+2400},"sceneSnapshot",0,Y],364803);var W=e.i(39716);function X(){let e=(0,a.useRef)(null),[t,n]=(0,a.useState)("hidden");return(0,a.useEffect)(()=>{let t=e.current;if(!t)return;if(!("IntersectionObserver"in window))return void n("playing");let a=new IntersectionObserver(([e])=>n(e?!e.isIntersecting||e.intersectionRatio<=0?"hidden":e.intersectionRatio<.3?"paused":"playing":"hidden"),{threshold:[0,.3]});return a.observe(t),()=>a.disconnect()},[]),{targetRef:e,visibility:t,isPlaying:"playing"===t,shouldReset:"hidden"===t}}e.s(["useLandingMotionPlayback",0,X],598781);let J=[{id:"gus",name:"Gus",initial:"G",active:!0,mentions:0,isOwner:!0,icon:null}],ee=[{id:"work",name:"Studio",initial:"S",active:!0,mentions:0,isOwner:!0,icon:null},{id:"life",name:"Home",initial:"H",active:!1,mentions:0,isOwner:!0,icon:null},{id:"play",name:"Game Night",initial:"G",active:!1,mentions:0,isOwner:!0,icon:null}],et=[{id:"cat_public",name:"Public",channels:[{id:"general",name:"general",active:!0,unread:!1,type:"text"}]},{id:"cat_private",name:"Private",private:!0,channels:[{id:"launch",name:"launch-room",active:!1,unread:!1,type:"text"}]}],ea={work:[{id:"cat_work_public",name:"Public",channels:[{id:"work-general",name:"general",active:!0,unread:!1,type:"text"},{id:"work-design",name:"design-review",active:!1,unread:!1,type:"text"}]},{id:"cat_work_private",name:"Private",private:!0,channels:[{id:"work-launch",name:"launch-room",active:!1,unread:!1,type:"text"},{id:"work-release",name:"release-notes",active:!1,unread:!1,type:"text"}]}],life:[{id:"cat_life_public",name:"Public",channels:[{id:"life-kitchen",name:"kitchen",active:!0,unread:!1,type:"text"},{id:"life-photos",name:"photos",active:!1,unread:!1,type:"text"}]},{id:"cat_life_private",name:"Private",private:!0,channels:[{id:"life-plans",name:"family-plans",active:!1,unread:!1,type:"text"},{id:"life-travel",name:"travel",active:!1,unread:!1,type:"text"}]}],play:[{id:"cat_play_public",name:"Public",channels:[{id:"play-lobby",name:"lobby",active:!0,unread:!1,type:"text"},{id:"play-clips",name:"clips",active:!1,unread:!1,type:"text"}]},{id:"cat_play_private",name:"Private",private:!0,channels:[{id:"play-party",name:"party-chat",active:!1,unread:!1,type:"text"},{id:"play-strategy",name:"strategy",active:!1,unread:!1,type:"text"}]}]},en={work:[{id:"cat_continuity_work",name:"Public",channels:[{id:"continuity-frontend-design",name:"frontend-design",active:!0,unread:!1,type:"text"},{id:"continuity-launch",name:"launch",active:!1,unread:!1,type:"text"}]}],life:[{id:"cat_continuity_life",name:"Private",private:!0,channels:[{id:"continuity-family",name:"family",active:!0,unread:!1,type:"text"},{id:"continuity-travel",name:"travel",active:!1,unread:!1,type:"text"}]}],play:ea.play},es=[{id:"dm-alli",userId:"alli",name:"Alli",discriminator:"8145",avatar:"avatar:beam:alli",status:"online",preview:"Available"}],ei=[{id:"m-gus",type:"chat",authorId:"gus",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"hello world",createdAt:"2026-08-06T04:20:00.000Z",seq:425,grouped:!1},{id:"m-alli",type:"chat",authorId:"alli",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"On it.",createdAt:"2026-08-06T04:20:04.000Z",seq:426,grouped:!1},{id:"m-ruth",type:"chat",authorId:"ruth",authorName:"Ruthann",authorAvatar:"avatar:beam:ruth",content:"I’ll review the flow.",createdAt:"2026-08-06T04:20:07.000Z",seq:427,grouped:!1},{id:"m-shelly",type:"chat",authorId:"shelly",authorName:"Shelly",authorAvatar:"avatar:beam:shelly",content:"Ready to ship.",createdAt:"2026-08-06T04:20:11.000Z",seq:428,grouped:!1}],er={work:[{id:"space-work-gus",type:"chat",authorId:"gus",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"The new gallery story is ready.",createdAt:"2026-08-06T06:00:00.000Z",seq:501,grouped:!1},{id:"space-work-shelly",type:"chat",authorId:"shelly",authorName:"Shelly",authorAvatar:"avatar:beam:shelly",content:"I’ll ship it after review.",createdAt:"2026-08-06T06:00:05.000Z",seq:502,grouped:!1}],life:[{id:"space-life-gus",type:"chat",authorId:"gus-life",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"Dinner at seven?",createdAt:"2026-08-06T06:01:00.000Z",seq:503,grouped:!1},{id:"space-life-alli",type:"chat",authorId:"alli-life",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"I’ll remind everyone.",createdAt:"2026-08-06T06:01:04.000Z",seq:504,grouped:!1},{id:"space-life-maya",type:"chat",authorId:"maya",authorName:"Maya",authorAvatar:"avatar:beam:maya",content:"I’m in — I’ll bring dessert.",createdAt:"2026-08-06T06:01:08.000Z",seq:505,grouped:!1}],play:[{id:"space-play-noah",type:"chat",authorId:"noah",authorName:"Noah",authorAvatar:"avatar:beam:noah",content:"Game night at eight.",createdAt:"2026-08-06T06:02:00.000Z",seq:506,grouped:!1},{id:"space-play-quest",type:"chat",authorId:"quest",authorName:"Quest Bot",authorAvatar:"avatar:beam:quest",content:"The room and teams are ready.",createdAt:"2026-08-06T06:02:04.000Z",seq:507,grouped:!1},{id:"space-play-gus",type:"chat",authorId:"gus-play",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"Let’s go.",createdAt:"2026-08-06T06:02:08.000Z",seq:508,grouped:!1}]},el=Object.fromEntries(["work","life","play"].map((e,t)=>[e,[{id:`identity-${e}-maya`,type:"chat",...B,createdAt:`2026-08-06T06:0${t}:08.000Z`,seq:520+t,grouped:!1}]])),eo=[{id:"dm-message-gus",type:"chat",authorId:"gus",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"hello Alli",createdAt:"2026-08-06T04:21:00.000Z",seq:429,grouped:!1},{id:"dm-message-alli",type:"chat",authorId:"alli",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"Hi Gus — I’m running on Codex.",createdAt:"2026-08-06T04:21:04.000Z",seq:430,grouped:!1}],ed=[{id:"continuity-dm-gus",type:"chat",authorId:"gus",authorName:"Gus",authorAvatar:"avatar:beam:gus",content:"Alli, please move today’s priorities forward.",createdAt:"2026-08-07T08:30:00.000Z",seq:610,grouped:!1},{id:"continuity-dm-alli",type:"chat",authorId:"alli",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"Got it. I’ll ask Shelly for today’s A/B conversion update, then check with Tracy about the home router.",createdAt:"2026-08-07T08:30:04.000Z",seq:611,grouped:!1}],ec=[{id:"continuity-work-alli",type:"chat",authorId:"alli",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"@Shelly#3863 How are Gus’s A/B landing pages converting today?",createdAt:"2026-08-07T08:31:00.000Z",seq:612,grouped:!1},{id:"continuity-work-shelly",type:"chat",authorId:"shelly",authorName:"Shelly",authorAvatar:"avatar:beam:shelly",content:"B is ahead on sign-ups. I’m checking the mobile drop-off.",createdAt:"2026-08-07T08:31:05.000Z",seq:613,grouped:!1}],eu=[{id:"continuity-life-alli",type:"chat",authorId:"alli",authorName:"Alli",authorAvatar:"avatar:beam:alli",content:"@Tracy#2048 Is the router at home still dropping out?",createdAt:"2026-08-07T08:32:00.000Z",seq:614,grouped:!1},{id:"continuity-life-tracy",type:"chat",authorId:"tracy",authorName:"Tracy",authorAvatar:"avatar:beam:tracy",content:"Yes — it dropped twice this morning.",createdAt:"2026-08-07T08:32:05.000Z",seq:615,grouped:!1}],em=[{serverId:"work",serverName:"Studio",channels:[{channelId:"continuity-frontend-design",channelName:"frontend-design",type:"text",lastMessageAt:"2026-08-07T08:31:05.000Z",mentionCount:0,children:[]}]}],eh=[{serverId:"life",serverName:"Home",channels:[{channelId:"continuity-family",channelName:"family",type:"text",lastMessageAt:"2026-08-07T08:32:05.000Z",mentionCount:0,children:[]}]}],ef={id:"machine-studio",hostname:"gus-macbook",displayName:"Gus’s MacBook Pro",platform:"darwin",arch:"arm64",osRelease:"15.6",daemonVersion:"0.0.160",lastSeenAt:"2026-08-06T04:20:00.000Z",status:"online",availableRuntimes:[{id:$[0],status:"healthy",version:"2.1.220 (Claude Code)"},{id:$[1],status:"healthy",version:"codex-cli 0.146.0"},{id:$[2],status:"healthy",version:"2026.08.04-aaa8809"},{id:$[3],status:"healthy",version:"1.17.20"},{id:$[4],status:"healthy",version:"0.80.3"}],createdAt:"2026-08-06T04:20:00.000Z",updatedAt:"2026-08-06T04:20:00.000Z"},ex=ef.availableRuntimes.map(e=>({id:e.id,unhealthy:"healthy"!==e.status})),ep={kind:"procedural",image:(0,P.serializeBeamSeed)("alli")};function eg({scene:e,snapshot:a,machineIntroDescription:n}){let s="continuity"===e&&a.beat>=7?a.room:null,i="server"===e||"spaces"===e||"identity"===e||null!==s,r="spaces"===e||"identity"===e?a.room:s,l=r?ee.map(e=>({...e,active:e.id===r})):J;return(0,t.jsxs)(j.Shell,{className:W.default.productShell,children:[(0,t.jsx)(ev,{servers:l,activeServerId:r??"gus",serverView:i}),(0,t.jsxs)("div",{className:"relative flex min-w-0 flex-1 flex-col pt-2",children:[(0,t.jsx)(v.AppSurface,{className:"rounded-tl-xl rounded-tr-none rounded-br-none rounded-bl-none border-l border-t border-border/40 shadow-none ring-0",children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,t.jsx)("div",{className:`flex w-60 shrink-0 flex-col bg-sidebar pb-14 ${W.default.sceneEnter}`,children:i?(0,t.jsx)(eb,{room:r,channels:"continuity"===e?en:ea}):(0,t.jsx)(ej,{scene:e,snapshot:a})},`sidebar-${e}-${r??"default"}`),(0,t.jsxs)("div",{className:`flex min-w-0 flex-1 flex-col bg-background ${W.default.sceneEnter}`,children:["server"===e&&(0,t.jsx)(ek,{snapshot:a}),"machine"===e&&(0,t.jsx)(eO,{snapshot:a,introDescription:n}),"provider"===e&&(0,t.jsx)(eT,{snapshot:a}),"spaces"===e&&(0,t.jsx)(eM,{snapshot:a}),"identity"===e&&(0,t.jsx)(e_,{snapshot:a}),"continuity"===e&&(0,t.jsx)(eC,{snapshot:a})]},`content-${e}-${r??"default"}`)]})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 z-10 -ml-14 w-74",children:(0,t.jsx)(ey,{scene:e,snapshot:a})})]})]})}function ey({scene:e,snapshot:n}){let s=(0,a.useRef)(null),i="continuity"===e?n.beat:-1,r=5===i||6===i,l=6===i||11===i,o=r?"continuity-inbox-row-work":"continuity-inbox-row-life",d=r?"frontend-design":"family";return(0,a.useLayoutEffect)(()=>{let e=s.current,t=e?.querySelector('button[aria-label="Inbox"]');t?.setAttribute("data-motion-target","continuity-inbox");let a=Array.from(e?.querySelectorAll("button")??[]).find(e=>e.textContent?.includes(d));return a?.setAttribute("data-motion-target",o),()=>{t?.removeAttribute("data-motion-target"),a?.removeAttribute("data-motion-target")}},[d,l,o]),(0,t.jsxs)("div",{ref:s,className:"relative",children:[l&&(0,t.jsx)("div",{className:W.default.inboxSurface,children:(0,t.jsx)(A.InboxPopover,{unreads:r?em:eh,unreadDms:[],mentions:[],marked:[],onOpenForumThread:()=>{}})}),(0,t.jsx)(D.UserBar,{user:{id:"gus",name:"Gus",avatar:"avatar:beam:gus"},onEditProfile:()=>{},inbox:"continuity"===e?(0,t.jsx)("span",{}):void 0,hasUnread:r||10===i||11===i,inboxOpen:!1,onInboxOpenChange:()=>{}})]})}function ev({servers:e,activeServerId:n,serverView:s}){let i=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{let e=i.current,t=["life","play"];for(let a of t)e?.querySelector(`[data-testid="${R.tid.serverIcon(a)}"]`)?.setAttribute("data-motion-target",`server-${a}`);return()=>{for(let a of t)e?.querySelector(`[data-testid="${R.tid.serverIcon(a)}"]`)?.removeAttribute("data-motion-target")}},[e]),(0,t.jsx)("div",{ref:i,className:"contents",children:(0,t.jsx)(N.ServerRail,{servers:e,folders:[],activeServerId:n,view:s?"server":"dm",bottomInset:60,onHome:()=>{},onServer:()=>{},onServerNavigate:()=>{}})})}function eb({room:e,channels:n=ea}){let s=e?n[e]:et,i=(0,q.useChannelTree)(s),r=e?ee.find(t=>t.id===e)?.name??"":"Gus",l=s[0]?.channels[0]?.id??"general",o=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{if(!e)return;let t=o.current,a=Array.from(t?.querySelectorAll("header span")??[]).find(e=>e.textContent?.trim()===r),n=t?.querySelector(`[data-testid="${R.tid.channelRow(l)}"]`);return a?.setAttribute("data-motion-target",`space-server-name-${e}`),n?.setAttribute("data-motion-target",`space-channel-${e}`),()=>{a?.removeAttribute("data-motion-target"),n?.removeAttribute("data-motion-target")}},[l,e,r]),(0,t.jsxs)("div",{ref:o,className:"relative flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)(w.ChannelSidebar,{tree:i,serverName:r,activeChannel:l,setActiveChannel:()=>{},isAdmin:!1,currentUserId:"gus"}),e&&(0,t.jsx)("button",{"data-motion-target":"invite-life",className:"absolute right-2 top-2 grid size-7 place-items-center rounded-md text-muted-foreground","aria-label":"Invite to server",children:(0,t.jsx)(h.UserPlus,{className:"size-4"})})]})}function ej({scene:e,snapshot:n}){let s=(0,a.useRef)(null),i="provider"===e&&n.beat>=6||"continuity"===e&&n.beat<5;return(0,a.useLayoutEffect)(()=>{let e=s.current?.querySelector(`[data-testid="${R.tid.dmRow("dm-alli")}"]`);return e?.setAttribute("data-motion-target","dm-alli"),()=>{e?.removeAttribute("data-motion-target")}},[]),(0,t.jsx)("div",{ref:s,className:"flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(k.DmSidebar,{dms:es,activeDm:i?"dm-alli":null,onPickDm:()=>{},onShowFriends:()=>{},onShowMachines:()=>{},onShowBots:()=>{},machinesActive:"machine"===e,botsActive:"provider"===e&&!i})})}function eN(e,t,a){return[W.default.motionTarget,e.focus===t?W.default.focus:e.focus?W.default.recede:void 0,a].filter(Boolean).join(" ")}function ew({children:e,label:a,open:n=!0}){return(0,t.jsx)("aside",{"aria-label":a,"aria-hidden":!n,"data-slot":"sheet-content","data-open":n,className:W.default.sheetSurface,children:e})}function ek({snapshot:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.ChannelHeader,{channel:"general",rightPanel:null,onToggle:()=>{},server:{id:"gus",name:"Gus",icon:null}}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:ei.map((a,n)=>(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":`message-${a.authorId}`,className:eN(e,`message-${a.authorId}`),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id))}),(0,t.jsx)(eA,{snapshot:e,target:"composer",placeholder:"Message /general"})]})]})}function eM({snapshot:e}){let a=e.room,n=ee.find(e=>e.id===a)??ee[0],s=ea[a][0]?.channels[0],i=er[a];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.ChannelHeader,{channel:s?.name??"general",rightPanel:null,onToggle:()=>{},server:{id:n.id,name:n.name,icon:n.icon??null}}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:i.map((a,n)=>{let s=`space-message-${a.authorId}`;return(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":s,className:eN(e,s),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id)})}),(0,t.jsx)(eA,{snapshot:e,target:"spaces-composer",placeholder:`Message /${s?.name??"general"}`})]}),(0,t.jsx)(eS,{snapshot:e})]})}function e_({snapshot:e}){let a=e.room,n=ee.find(e=>e.id===a)??ee[0],s=ea[a][0]?.channels[0];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.ChannelHeader,{channel:s?.name??"general",rightPanel:null,onToggle:()=>{},server:{id:n.id,name:n.name,icon:n.icon??null}}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:el[a].map((a,n)=>(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":"identity-message-maya",className:eN(e,"identity-message-maya"),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id))}),(0,t.jsx)(eA,{snapshot:e,target:"identity-composer",placeholder:`Message /${s?.name??"general"}`})]})]})}function eC({snapshot:e}){if(e.beat<7)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.DmHeader,{dm:es[0],titleAs:"div"}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:ed.map((a,n)=>(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":a.id,className:eN(e,a.id),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id))}),(0,t.jsx)(eA,{snapshot:e,target:"continuity-dm-composer",placeholder:"Message @Alli"})]})]});let a=e.room,n=ee.find(e=>e.id===a)??ee[0],s=en[a][0]?.channels[0];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.ChannelHeader,{channel:s?.name??"general",rightPanel:null,onToggle:()=>{},server:{id:n.id,name:n.name,icon:n.icon??null}}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:("life"===a?eu:ec).map((a,n)=>(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":a.id,className:eN(e,a.id),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id))})})]})}function eS({snapshot:e}){return(0,t.jsxs)("aside",{"aria-label":"Invite friends to Home","aria-hidden":!e.inviteOpen,"data-open":e.inviteOpen,className:W.default.inviteSurface,children:[(0,t.jsx)("header",{className:"border-b border-border/50 px-4 py-3",children:(0,t.jsx)("div",{className:"truncate font-heading text-sm font-semibold leading-[1.2] tracking-[-0.015em]",children:"Invite friends to Home"})}),(0,t.jsx)("div",{className:"px-4 pt-3",children:(0,t.jsxs)("label",{className:"relative block",children:[(0,t.jsx)(u.Search,{"aria-hidden":!0,className:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(y.Input,{readOnly:!0,placeholder:"Search for friends",className:"pl-9"})]})}),(0,t.jsx)("div",{className:"px-2 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md px-2 py-2",children:[(0,t.jsx)(C.Avatar,{label:"Maya",seed:"maya",size:32,presence:"online",ringColor:"var(--popover)"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium",children:"Maya"}),(0,t.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:"Free for dinner"})]}),(0,t.jsx)(p.Button,{size:"sm",variant:e.inviteSent?"secondary":"default","data-motion-target":"invite-maya",className:eN(e,"invite-maya"),children:e.inviteSent?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Check,{className:"size-3.5"}),"Invited"]}):"Invite"})]})}),(0,t.jsxs)("footer",{className:"border-t border-border/50 px-4 py-3",children:[(0,t.jsx)("div",{className:"text-xs font-medium text-muted-foreground",children:"Or, send a server invite link to a friend"}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,t.jsx)(y.Input,{readOnly:!0,value:"alook.ai/c/invite/home",className:"font-mono text-xs"}),(0,t.jsx)(p.Button,{size:"sm",children:"Copy"})]})]})]})}function eA({snapshot:e,target:a,placeholder:n}){return(0,t.jsx)("div",{className:"relative px-3 pb-3 pt-0",children:(0,t.jsxs)("div",{className:eN(e,a,"relative rounded-xl bg-muted shadow-(--e1) ring-1 ring-border/40 transition-shadow"),children:[(0,t.jsxs)("div",{"data-motion-target":a,"data-motion-anchor-x":"0.24",className:"relative px-12 py-3 text-base leading-6",children:[(0,t.jsx)("span",{"data-visible":!e.composerText,className:`${W.default.composerLayer} text-muted-foreground`,children:n}),(0,t.jsxs)("span",{"data-visible":!!e.composerText,className:W.default.composerLayer,children:[e.composerText&&(0,t.jsx)("span",{className:W.default.typingText,style:{"--typing-width":`${Math.max(11,e.composerText.length)}ch`},children:e.composerText}),(0,t.jsx)("span",{className:"ml-0.5 inline-block h-5 w-px bg-foreground align-middle"})]})]}),(0,t.jsx)("button",{className:"absolute bottom-2 left-2 grid size-8 place-items-center rounded-full text-muted-foreground","aria-label":"Add",children:(0,t.jsx)(d.PlusCircle,{className:"size-5"})}),(0,t.jsx)("button",{className:"absolute right-2 bottom-2 grid size-8 place-items-center rounded-full text-muted-foreground","aria-label":"Emoji picker",children:(0,t.jsx)(m.Smile,{className:"size-5"})})]})})}function eO({snapshot:e,introDescription:a}){let n="online"===e.machineState||"bot-born"===e.machineState,s="closed"!==e.pairSheet,i="connected"===e.pairSheet,r=i?"pair-connected":"pair-step-2";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`${W.default.stateStack} min-h-0 flex-1`,children:[(0,t.jsx)("div",{"data-visible":!n,className:`${W.default.stateLayer} flex min-w-0 flex-col`,children:(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 p-12 text-center",children:[(0,t.jsx)("div",{className:"w-full max-w-70 overflow-hidden rounded-xl",children:(0,t.jsx)("div",{className:"aspect-200/130 w-full",children:(0,t.jsx)(E.ConnectTile,{idPrefix:"landing-motion-connect"})})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"font-heading text-lg font-medium leading-[1.2] tracking-[-0.015em] text-foreground",children:"No machines yet"}),(0,t.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:a??(0,t.jsx)(t.Fragment,{children:"Connect a machine and your bots run on it always-on — reach them from your phone or anywhere, wherever you sign in."})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Button,{"data-onboarding-target":"connect-machine","data-motion-target":"connect",className:eN(e,"connect"),children:"Connect a machine"}),(0,t.jsx)(p.Button,{variant:"ghost",children:"Guide me"})]})]})}),(0,t.jsxs)("div",{"data-visible":n,className:`${W.default.stateLayer} flex min-w-0 flex-col gap-6 overflow-hidden p-6`,children:[(0,t.jsxs)("header",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-heading text-xl font-medium leading-[1.15] tracking-[-0.015em] text-foreground",children:"Machines"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your computers running the alook daemon."})]}),(0,t.jsx)(p.Button,{children:"Connect a machine"})]}),(0,t.jsx)("div",{"data-motion-target":"machine",className:eN(e,"machine"),children:(0,t.jsx)(O.MachineCard,{machine:ef,onDelete:()=>{},onReconnect:()=>{}})}),(0,t.jsx)("div",{"data-visible":"bot-born"===e.machineState,className:W.default.resultReveal,children:(0,t.jsx)("div",{"data-motion-target":"born-bot",className:eN(e,"born-bot"),children:(0,t.jsx)(eE,{runtime:"claude",model:null,status:"Born on Gus’s MacBook Pro"})})})]})]}),(0,t.jsxs)(ew,{label:"Connect a machine",open:s,children:[(0,t.jsx)(b.SheetHeader,{children:(0,t.jsx)("div",{className:"font-heading text-lg leading-tight font-semibold tracking-[-0.015em]",children:"Connect a machine"})}),(0,t.jsx)(b.SheetBody,{className:"flex flex-col gap-6",children:(0,t.jsx)(T.PairMachineSteps,{command:"npm exec --yes --package=@alook/daemon@latest -- alook-daemon daemon start --machine-key cmk_demo --server-url https://alook.ai --ws-url wss://alook.ai/api/ws/community-daemon",generating:!1,onCopy:()=>{},connectedHostname:i?ef.displayName:null,step1MotionTarget:"pair-step-1",step2MotionTarget:r,step1ClassName:eN(e,"pair-step-1"),step2ClassName:eN(e,r),headingAs:"div"})}),(0,t.jsx)(b.SheetFooter,{children:(0,t.jsx)(p.Button,{variant:"secondary",children:"Done"})})]})]})}function eT({snapshot:e}){let n=(0,a.useRef)(null),s=e.beat>=6,i=e.beat>=3&&e.beat<5,r=2===e.beat;return(0,a.useEffect)(()=>{let t=n.current;if(!t)return;if(0===e.beat)return void t.scrollTo({top:0});if(3!==e.beat)return;let a=window.requestAnimationFrame(()=>{let e=t.querySelector('[data-motion-target="runtime-codex"]');if(!e)return;let a=t.getBoundingClientRect(),n=e.getBoundingClientRect();t.scrollTo({top:t.scrollTop+n.top-a.top-(t.clientHeight-n.height)/2,behavior:"smooth"})});return()=>window.cancelAnimationFrame(a)},[e.beat]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:`${W.default.stateStack} min-h-0 flex-1`,children:[(0,t.jsxs)("div",{"data-visible":!s,className:`${W.default.stateLayer} flex min-w-0 flex-col gap-6 overflow-hidden p-6`,children:[(0,t.jsx)("header",{children:(0,t.jsx)("div",{className:"font-heading text-xl font-medium leading-[1.15] tracking-[-0.015em] text-foreground",children:"My Bots"})}),(0,t.jsx)("div",{className:"max-w-lg",children:(0,t.jsx)(eE,{runtime:e.runtime,model:e.model,status:"Online",snapshot:e,menuOpen:r})})]}),(0,t.jsxs)("div",{"data-visible":s,className:`${W.default.stateLayer} flex min-w-0 flex-col overflow-hidden`,children:[(0,t.jsx)(M.DmHeader,{dm:es[0],titleAs:"div"}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:"flex-1 overflow-hidden px-4 py-3",children:eo.map((a,n)=>(0,t.jsx)("div",{"data-visible":n<e.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{"data-motion-target":`dm-message-${a.authorId}`,className:eN(e,`dm-message-${a.authorId}`),children:(0,t.jsx)(S.Message,{m:a,onOpenThread:()=>{}})})},a.id))}),(0,t.jsx)(eA,{snapshot:e,target:"dm-composer",placeholder:"Message @Alli"})]})]})]}),(0,t.jsxs)(ew,{label:"Edit Alli",open:i,children:[(0,t.jsx)(b.SheetHeader,{children:(0,t.jsx)("div",{className:"font-heading text-lg leading-tight font-semibold tracking-[-0.015em]",children:"Edit Alli"})}),(0,t.jsxs)(b.SheetBody,{ref:n,className:"flex flex-col gap-6",children:[(0,t.jsx)(I.BotFormFields,{avatarDraft:ep,onAvatarChange:()=>{},name:"Alli",setName:()=>{},onShuffle:()=>{},description:"",setDescription:()=>{}}),(0,t.jsx)("div",{children:(0,t.jsx)(z.BotRuntimeFields,{options:ex,runtime:e.runtime,model:e.model,onRuntimeChange:()=>{},onModelChange:()=>{},radioName:"landing-motion-runtime",motionTargetPrefix:"runtime",modelMotionTarget:"model",runtimeOptionClassName:t=>eN(e,`runtime-${t}`),modelClassName:eN(e,"model")})})]}),(0,t.jsxs)(b.SheetFooter,{children:[(0,t.jsx)(p.Button,{variant:"outline",children:"Cancel"}),(0,t.jsx)(p.Button,{"data-motion-target":"save-provider",className:eN(e,"save-provider"),children:"Save"})]})]})]})}function eE({runtime:e,model:a,status:n,snapshot:s,menuOpen:r=!1}){let o="grid size-8 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground",d="flex items-center gap-2 rounded-md px-2 py-2 text-sm text-popover-foreground";return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(g.Card,{className:"flex flex-col gap-3 p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(f.AgentAvatar,{name:"Alli",seed:"alli",size:40}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[15px] font-medium text-foreground",children:"Alli"}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-1 text-[11px] font-medium text-emerald-600 dark:text-emerald-400",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-status-online"}),n]})]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(x.ProviderLogo,{provider:e,className:"size-3.5"}),(0,t.jsx)("span",{children:e})]}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)("span",{className:"font-mono",children:a??"local default"})]})]}),(0,t.jsx)("button",{"aria-label":"Bot actions","data-motion-target":s?"bot-actions":void 0,className:s?eN(s,"bot-actions",o):o,children:(0,t.jsx)(l.MoreVertical,{className:"size-4"})})]})}),s&&(0,t.jsxs)("div",{"data-visible":r,className:W.default.botMenu,children:[(0,t.jsxs)("div",{className:d,children:[(0,t.jsx)("span",{className:"size-4","aria-hidden":!0})," Chat"]}),(0,t.jsxs)("div",{className:d,children:[(0,t.jsx)(i.Activity,{className:"size-4"})," View activity"]}),(0,t.jsxs)("div",{"data-motion-target":"bot-edit",className:eN(s,"bot-edit",d),children:[(0,t.jsx)("span",{className:"size-4","aria-hidden":!0})," Edit"]}),(0,t.jsxs)("div",{className:d,children:[(0,t.jsx)(c.RotateCcw,{className:"size-4"})," Reset"]}),(0,t.jsxs)("div",{className:`${d} text-destructive`,children:[(0,t.jsx)("span",{className:"size-4","aria-hidden":!0})," Delete"]})]})]})}e.s(["LandingMobileChatMotion",0,function({beat:e}){let i=Y("server",e),r=(0,a.useRef)(null),[l,o]=(0,a.useState)(1),[d]=(0,a.useState)(()=>new n.QueryClient({defaultOptions:{queries:{staleTime:1/0,retry:!1}}}));return(0,a.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>o(e.getBoundingClientRect().width/390);t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]),(0,t.jsx)("div",{ref:r,className:W.default.mobileStage,"data-testid":"landing-mobile-motion-stage","data-beat":i.beat,"aria-hidden":!0,children:(0,t.jsxs)("div",{className:W.default.mobileCanvas,style:{"--mobile-stage-scale":l},children:[(0,t.jsxs)("div",{className:W.default.mobileTop,children:[(0,t.jsx)("span",{children:"9:41"}),(0,t.jsx)("span",{children:"Phone"})]}),(0,t.jsx)(s.QueryClientProvider,{client:d,children:(0,t.jsxs)("div",{className:W.default.mobileSurface,children:[(0,t.jsx)(_.ChannelHeader,{channel:"general",rightPanel:null,onToggle:()=>{},onBack:()=>{},server:{id:"gus",name:"Gus",icon:null},tools:{threads:!1,pinned:!1,members:!1}}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsx)("div",{className:`${W.default.mobileMessages} flex-1 overflow-hidden px-2 py-2`,children:ei.map((e,a)=>(0,t.jsx)("div",{"data-visible":a<i.visibleMessages,className:W.default.messageSlot,children:(0,t.jsx)("div",{className:eN(i,`message-${e.authorId}`),children:(0,t.jsx)(S.Message,{m:e,onOpenThread:()=>{}})})},e.id))}),(0,t.jsx)(eA,{snapshot:i,target:"composer",placeholder:"Message /general"})]})]})})]})})},"LandingShellMotion",0,function({scene:e,machineIntroDescription:i,beat:r}){let[l,d]=(0,a.useState)(0),{targetRef:c,isPlaying:u,shouldReset:m}=X(),h=(0,a.useRef)(null),f=(0,a.useRef)(null),[x,p]=(0,a.useState)(1),g=function(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>t(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e}(),[y]=(0,a.useState)(()=>new n.QueryClient({defaultOptions:{queries:{staleTime:1/0,retry:!1}}})),v=G[e],b=r??l;(0,a.useEffect)(()=>{void 0===r&&d(g?v:0)},[r,e,v,g]),(0,a.useEffect)(()=>{void 0===r&&!g&&m&&d(0)},[r,g,m]),(0,a.useEffect)(()=>{if(void 0!==r||g||!u)return;let e=b>=v?2400:1500,t=window.setTimeout(()=>{d(e=>e>=v?0:e+1)},e);return()=>window.clearTimeout(t)},[b,r,u,v,g]),(0,a.useEffect)(()=>{let e=h.current;if(!e)return;let t=()=>p(e.getBoundingClientRect().width/1120);t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]);let j=Y(e,b),N=function(e,t){let[n,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=window.requestAnimationFrame(()=>s(t));return()=>window.cancelAnimationFrame(e)},[t,e]),n}(e,j.focus),w={...j,focus:N},k=function(e,t,n){let[s,i]=(0,a.useState)({x:0,y:0,visible:!1,targetId:null});return(0,a.useLayoutEffect)(()=>{let a=e.current;if(!a||!t)return void i(e=>e.visible||e.targetId?{...e,visible:!1,targetId:null}:e);i(e=>e.targetId===t?e:{...e,visible:!1,targetId:null});let s=()=>{let e=a.querySelector(`[data-motion-target="${t}"]`);if(!e)return void i(e=>e.visible||e.targetId?{...e,visible:!1,targetId:null}:e);let s=a.getBoundingClientRect(),r=e.getBoundingClientRect(),l=s.width/a.offsetWidth||n||1,o=Number(e.dataset.motionAnchorX??"0.5"),d=Number(e.dataset.motionAnchorY??"0.5");i({x:(r.left-s.left+r.width*o)/l,y:(r.top-s.top+r.height*d)/l,visible:!0,targetId:t})},r=window.requestAnimationFrame(()=>{window.requestAnimationFrame(s)}),l=new ResizeObserver(s);return l.observe(a),a.addEventListener("scroll",s,!0),()=>{window.cancelAnimationFrame(r),l.disconnect(),a.removeEventListener("scroll",s,!0)}},[e,n,t]),s}(f,N,x),M=!!(j.focus&&N===j.focus&&k.visible&&k.targetId===j.focus),_=F(j.camera,M?k:null);return(0,t.jsx)("div",{ref:c,className:W.default.root,children:(0,t.jsx)("div",{ref:h,className:W.default.stage,"data-testid":"landing-motion-stage","data-scene":e,"data-beat":j.beat,"aria-hidden":!0,children:(0,t.jsx)("div",{className:W.default.canvas,style:{"--stage-scale":x},children:(0,t.jsxs)("div",{ref:f,className:W.default.camera,"data-camera-scale":_.scale,style:{"--camera-scale":_.scale,"--camera-origin-x":`${_.x}px`,"--camera-origin-y":`${_.y}px`},children:[(0,t.jsx)(s.QueryClientProvider,{client:y,children:(0,t.jsx)(eg,{scene:e,snapshot:w,machineIntroDescription:i})}),(0,t.jsx)(o,{"aria-hidden":!0,"data-testid":"landing-motion-cursor",className:W.default.cursor,"data-cursor-target":N??void 0,style:{left:k.x,top:k.y,opacity:+!!M},fill:"var(--background)",strokeWidth:1.8})]})})})})}],726514)},520582,e=>{"use strict";var t=e.i(633940),a=e.i(579848),n=e.i(613349);let s=e=>{e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},i=a.forwardRef(({className:e,onChange:i,...r},l)=>{let o=a.useRef(null),d=a.useCallback(e=>{o.current=e,"function"==typeof l?l(e):l&&(l.current=e),s(e)},[l]);return a.useEffect(()=>{s(o.current)},[r.value]),(0,t.jsx)("textarea",{ref:d,className:(0,n.cn)("resize-none overflow-hidden",e),onChange:e=>{s(e.target),i?.(e)},...r})});i.displayName="AutoResizeTextarea",e.s(["AutoResizeTextarea",0,i])},393153,e=>{"use strict";var t=e.i(633940),a=e.i(779646),n=e.i(186339);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:s,title:i,description:r,confirmLabel:l="Remove",loadingLabel:o,confirmVariant:d="destructive",loading:c=!1,onConfirm:u}){return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:s,children:(0,t.jsxs)(a.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:i}),(0,t.jsx)(a.DialogDescription,{children:r})]}),(0,t.jsxs)(a.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",size:"sm",onClick:()=>s(!1),disabled:c,children:"Cancel"}),(0,t.jsx)(n.Button,{variant:d,size:"sm",onClick:u,disabled:c,children:c?o??`${l}...`:l})]})]})})}])},332680,e=>{"use strict";var t=e.i(633940),a=e.i(88548),n=e.i(613349),s=e.i(186339),i=e.i(159839);function r({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function l({className:e,...s}){return(0,t.jsx)(a.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:(0,n.cn)("fixed inset-0 z-50 bg-black/20 backdrop-blur-[2px] transition-[opacity,backdrop-filter] duration-200 ease-out data-ending-style:opacity-0 data-ending-style:backdrop-blur-none data-starting-style:opacity-0 data-starting-style:backdrop-blur-none",e),...s})}e.s(["Sheet",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,n.cn)("flex-1 overflow-y-auto thin-scrollbar px-4 sm:px-6 py-4",e),...a})},"SheetClose",0,function({...e}){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:o,side:d="right",showCloseButton:c=!0,showOverlay:u=!0,...m}){return(0,t.jsxs)(r,{children:[u&&(0,t.jsx)(l,{forceRender:!0}),(0,t.jsxs)(a.Dialog.Popup,{"data-slot":"sheet-content","data-side":d,className:(0,n.cn)("fixed z-50 flex flex-col bg-background shadow-xl outline-none transition duration-300 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0","data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-full data-[side=right]:max-w-md data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-10 data-[side=right]:data-starting-style:translate-x-10","data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-full data-[side=left]:max-w-md data-[side=left]:border-r data-[side=left]:data-ending-style:-translate-x-10 data-[side=left]:data-starting-style:-translate-x-10","data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:-translate-y-10 data-[side=top]:data-starting-style:-translate-y-10","data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-10 data-[side=bottom]:data-starting-style:translate-y-10",e),...m,children:[o,c&&(0,t.jsxs)(a.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(s.Button,{variant:"ghost",className:"absolute top-3 right-3 z-10",size:"icon-sm"}),children:[(0,t.jsx)(i.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Description,{"data-slot":"sheet-description",className:(0,n.cn)("text-sm text-muted-foreground",e),...s})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,n.cn)("flex flex-col-reverse gap-2 border-t bg-muted/50 px-4 sm:px-6 py-4 sm:flex-row sm:justify-end",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1 border-b px-4 sm:px-6 py-4",e),...a})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,n.cn)("font-heading text-lg leading-tight font-semibold",e),...s})},"SheetTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},445498,e=>{"use strict";e.i(954194);var t=e.i(908967),a=e.i(849050);async function n(e){let n,s=[];do{let i=new URLSearchParams({limit:String(t.MAX_MEMBERS_PAGE_SIZE)});n&&i.set("cursor",n);let r=await (0,a.apiFetch)(`/api/community/servers/${encodeURIComponent(e)}/members?${i}`);if(s.push(...r.members),n=r.hasMore?r.cursor:void 0,r.hasMore&&!n)throw Error("members page missing cursor")}while(n)return s}e.s(["fetchAllServerMembers",0,n])},825149,e=>{"use strict";var t=e.i(457725),a=e.i(814001),n=e.i(838181),s=e.i(849050),i=e.i(374402),r=e.i(445498);let l=Object.freeze([]),o=Object.freeze([]);async function d(e,t){let[a,n]=await Promise.all([(0,r.fetchAllServerMembers)(e),(0,s.apiFetch)(`/api/community/channels/${encodeURIComponent(t)}/members`)]),i=new Set(n.members.map(e=>e.userId));return{members:a.filter(e=>!i.has(e.userId)).map(e=>({userId:e.userId,name:e.name,discriminator:e.discriminator,avatar:e.avatar}))}}e.s(["useAddChannelMember",0,function(e){let a=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:t=>(0,s.apiFetch)(`/api/community/channels/${encodeURIComponent(e)}/members`,{method:"POST",body:JSON.stringify({userId:t})}),onSuccess:()=>{a.invalidateQueries({queryKey:i.communityKeys.channelMembers(e)}),a.invalidateQueries({queryKey:i.communityKeys.channelAddableMembers(e)})}})},"useAddableMembers",0,function(e,t,n=!0){let s=(0,a.useQuery)({queryKey:i.communityKeys.channelAddableMembers(t),queryFn:()=>d(e,t),enabled:n&&!!e&&!!t});return{...s,members:s.data?.members??o}},"useChannelMembers",0,function(e,t=!0){let n=(0,a.useQuery)({queryKey:i.communityKeys.channelMembers(e),queryFn:()=>(0,s.apiFetch)(`/api/community/channels/${encodeURIComponent(e)}/members`),enabled:t&&!!e});return{...n,members:n.data?.members??l}},"useRemoveChannelMember",0,function(e){let a=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:t=>(0,s.apiFetch)(`/api/community/channels/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`,{method:"DELETE"}),onSuccess:()=>{a.invalidateQueries({queryKey:i.communityKeys.channelMembers(e)}),a.invalidateQueries({queryKey:i.communityKeys.channelAddableMembers(e)})}})}])},132977,e=>{"use strict";let t="Unknown member";function a(e){var a;let n=e?.name?.trim();if(n)return n;let s=(a=e?.email,a?.split("@")[0]?.trim()??"");return s||t}e.s(["displayName",0,a,"makeUserNameResolver",0,function(e){return n=>{let s=e.find(e=>(e.userId??e.id)===n);return s?a(s):t}}])},388026,262009,e=>{"use strict";e.i(954194),e.s(["previewSlug",0,function(e){let t=e.trim(),a=t.replace(/[/#]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"");return{slug:a,invalid:t.length>0&&0===a.length,changed:a.length>0&&a!==t}}],388026);var t=e.i(633940),a=e.i(779646),n=e.i(613349);e.s(["CreateDialogShell",0,function({open:e=!0,onClose:s,title:i,mutedTitle:r=!0,footer:l,footerClassName:o,children:d}){return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:e=>{e||s()},children:(0,t.jsxs)(a.DialogContent,{className:"w-105 max-w-[calc(100vw-2rem)] p-0",children:[(0,t.jsx)(a.DialogHeader,{className:"px-5 pt-5 pb-0",children:(0,t.jsx)(a.DialogTitle,{className:r?"text-xs font-normal text-muted-foreground":void 0,children:i})}),d,void 0!==l&&(0,t.jsx)(a.DialogFooter,{className:(0,n.cn)("mx-0 mb-0 flex-row items-center gap-2 px-5 pb-5",o??"justify-end"),children:l})]})})}],262009)},513166,e=>{"use strict";function t(e){return e.nativeEvent?.isComposing??e.isComposing??!1}e.s(["isImeConfirming",0,t,"onEnterSubmit",0,function(e,a){return n=>{if(!t(n)){if("Escape"===n.key){a?.onEscape&&(n.preventDefault(),a.onEscape());return}if("Enter"===n.key){if(!a?.allowShift&&n.shiftKey)return;n.preventDefault(),e()}}}}])},450463,e=>{"use strict";function t(e){let t=new Date(e);if(isNaN(t.getTime()))return"";let a=Math.floor((new Date().getTime()-t.getTime())/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;let n=Math.floor(a/60);if(n<24)return`${n}h ago`;let s=Math.floor(n/24);return s<7?`${s}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})}e.s(["relativeTime",0,t,"timeAgo",0,function(e){return e?t(e):"never"}])},603408,e=>{"use strict";e.s(["websocketUrl",0,function(e,t){let a=t.local?`ws://localhost:${t.port}`:t.origin.replace("http","ws");return`${a}/api/ws/${e}`}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,124141,e=>{"use strict";var t=e.i(406146);e.s(["CircleAlert",()=>t.default])},288052,e=>{"use strict";let t=(0,e.i(281277).default)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);e.s(["MoreVertical",0,t],288052)},407478,110696,468099,e=>{"use strict";var t=e.i(633940),a=e.i(579848),s=e.i(957730),n=e.i(288052);e.i(954194);var r=e.i(846367),i=e.i(934351),l=e.i(186339),o=e.i(329686),c=e.i(89164),d=e.i(450463),m=e.i(130901),u=e.i(381153),x=e.i(124141),h=e.i(855372),f=e.i(613349);let p="inline-flex max-w-[160px] items-center gap-2 rounded-md border border-border bg-card px-2 py-1 text-[11px]";function L({runtimes:e}){let a=e??[];if(0===a.length)return null;let s=a.toSorted((e,t)=>Number("unhealthy"===e.status)-Number("unhealthy"===t.status));return(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:s.map(e=>(0,t.jsx)(g,{runtime:e},e.id))})}function g({runtime:e}){let a="unhealthy"===e.status,s=a?e.lastError?`Unavailable (${e.lastError}) — check daemon logs`:"Unavailable — check daemon logs":e.version,n=(0,t.jsxs)(t.Fragment,{children:[a?(0,t.jsx)(x.CircleAlert,{className:"size-3 shrink-0","aria-hidden":!0}):(0,t.jsx)(h.ProviderLogo,{provider:e.id,className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"truncate font-medium text-foreground",children:e.id})]});return s?(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button","aria-label":a?`${e.id} unavailable`:`${e.id} ${e.version}`,className:(0,f.cn)(p,a&&"opacity-40 cursor-not-allowed",!a&&"transition-colors hover:bg-accent","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:n})}),(0,t.jsx)(o.TooltipContent,{side:"top",sideOffset:4,children:s})]}):(0,t.jsx)("span",{className:(0,f.cn)(p,a&&"opacity-40"),children:n})}e.s(["MachineCard",0,function({machine:e,onDelete:x,onReconnect:h,onUpdate:f}){let p=(0,r.isPresenceOnline)(e.status),g=(0,a.useMemo)(()=>e.lastSeenAt?`Last seen \xb7 ${(0,d.timeAgo)(e.lastSeenAt)}`:"Never seen",[e.lastSeenAt]);return(0,t.jsxs)(i.Card,{className:"flex flex-col gap-3 p-4",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"grid size-10 place-items-center rounded-xl bg-secondary text-muted-foreground",children:(0,t.jsx)(s.Monitor,{className:"size-5"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[15px] font-medium text-foreground",children:(0,m.machineName)(e)}),(0,t.jsxs)("span",{className:["inline-flex items-center gap-1 rounded-full px-2 py-1 text-[11px] font-medium",p?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-muted text-muted-foreground"].join(" "),children:[(0,t.jsx)("span",{className:["inline-block size-1.5 rounded-full",p?"bg-status-online":"bg-muted-foreground"].join(" ")}),p?"Online":"Offline"]})]}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[[e.platform,e.arch].filter(Boolean).join(" · "),e.daemonVersion?` \xb7 v${e.daemonVersion}`:""]}),(0,t.jsx)(L,{runtimes:e.availableRuntimes}),(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{render:(0,t.jsx)("span",{className:"text-xs text-muted-foreground"}),children:g}),(0,t.jsx)(o.TooltipContent,{side:"bottom",sideOffset:4,children:e.lastSeenAt??"—"})]}),e.lastRuntimeError&&(0,t.jsxs)("div",{className:"mt-2 rounded-md border border-destructive/20 bg-destructive/5 p-2 text-xs text-destructive",children:[(0,t.jsx)("span",{className:"font-medium",children:"Runtime not available"}),(0,t.jsxs)("span",{className:"ml-1 text-destructive/80",children:["— requested ",e.lastRuntimeError.requested||"runtime",", installed:"," ",e.lastRuntimeError.available.length>0?e.lastRuntimeError.available.join(", "):"none"]})]})]})]}),(0,t.jsxs)(c.DropdownMenu,{children:[(0,t.jsx)(c.DropdownMenuTrigger,{render:(0,t.jsx)("button",{"aria-label":"Machine actions","data-testid":u.tid.machineActions(e.id),className:"grid size-8 place-items-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground",children:(0,t.jsx)(n.MoreVertical,{className:"size-4"})})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",children:[f&&(0,t.jsx)(c.DropdownMenuItem,{"data-testid":u.tid.machineUpdate(e.id),onClick:f,children:"Update daemon…"}),(0,t.jsx)(c.DropdownMenuItem,{onClick:h,children:"Reconnect…"}),(0,t.jsx)(c.DropdownMenuItem,{onClick:x,className:"text-destructive",children:"Delete"})]})]})]}),!p&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(l.Button,{variant:"outline",size:"sm","data-onboarding-target":"reconnect-machine","data-onboarding-id":e.id,onClick:h,children:"Reconnect"})})]})}],407478);var j=e.i(998808),C=e.i(285754),v=e.i(908180),y=e.i(824863),N=e.i(332680),b=e.i(849050),k=e.i(603408);let w=(0,f.isLocalMode)();function M(e,t){return"string"==typeof e&&e.trim()?e.trim():e instanceof Error&&e.message?e.message:t}function A({command:e,generating:a,onCopy:s,connectedHostname:n,step1MotionTarget:r,step2MotionTarget:i,step1ClassName:l,step2ClassName:o,headingAs:c="h3",desktopNative:d=!1,checkingRuntime:m=!1,runtimeCapability:u=null,launchError:x=null,connecting:h=!1,started:f=!1,onConnectDesktop:p}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-motion-target":r,className:l,children:(0,t.jsx)(H,{command:e,generating:a,onCopy:s,headingAs:c,desktopNative:d,checkingRuntime:m,runtimeCapability:u,launchError:x,connecting:h,started:f,onConnectDesktop:p})}),(0,t.jsx)("div",{"data-motion-target":i,className:o,children:(0,t.jsx)(O,{ready:d&&u?.available?f:!!e,connectedHostname:n,headingAs:c})})]})}function H({command:e,generating:a,onCopy:s,headingAs:n,desktopNative:r,checkingRuntime:i,runtimeCapability:o,launchError:c,connecting:d,started:m,onConnectDesktop:x}){return(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(D,{n:1,done:!a}),(0,t.jsx)(n,{className:"font-heading text-sm font-medium leading-tight tracking-[-0.015em] text-foreground",children:"Run this on your machine"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Open a terminal on the computer you want to connect, paste the command, and hit enter. Node.js with npm is required."}),a?(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border bg-muted/30 p-3 text-sm text-muted-foreground",children:[(0,t.jsx)(v.Loader2,{className:"size-4 animate-spin"}),"Preparing your command…"]}):(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[o?.available&&(0,t.jsxs)(l.Button,{"data-testid":u.tid.machinePairDesktopConnect,onClick:x,disabled:d||m,className:"w-full",children:[d&&(0,t.jsx)(v.Loader2,{className:"size-4 animate-spin"}),d?"Connecting…":m?"Daemon started":"Connect this computer"]}),(i||!o?.available||c)&&(0,t.jsx)("p",{"data-testid":u.tid.machinePairRuntimeHint,role:c||o?.reason?"status":void 0,className:"text-sm text-muted-foreground",children:c?`${c} The terminal command remains available below.`:i?"Checking this computer for Node.js and npm…":o?.reason??"Node.js and npm are required for one-click connection."})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border bg-muted/30 p-3 font-mono text-xs",children:[(0,t.jsx)("code",{"data-testid":u.tid.machinePairCommand,className:"flex-1 break-all",children:e}),(0,t.jsx)("button",{"data-testid":u.tid.machinePairCopy,onClick:s,className:"grid size-6 shrink-0 place-items-center rounded text-muted-foreground hover:bg-accent hover:text-foreground","aria-label":"Copy command",children:(0,t.jsx)(C.Copy,{className:"size-3.5"})})]})]})]})}function O({ready:e,connectedHostname:a,headingAs:s}){return a?(0,t.jsxs)("section",{"data-testid":u.tid.machinePairStatus,className:"flex flex-col gap-3",children:[(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(D,{n:2,done:!0}),(0,t.jsx)(s,{className:"font-heading text-sm font-medium leading-tight tracking-[-0.015em] text-foreground",children:"Connected"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1 text-sm",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-[15px] font-medium text-foreground",children:a}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-1 text-[11px] font-medium text-emerald-600 dark:text-emerald-400",children:[(0,t.jsx)("span",{className:"inline-block size-1.5 rounded-full bg-status-online"}),"Online"]})]}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"is ready for your agent friends."})]})]}):(0,t.jsx)("section",{"data-testid":u.tid.machinePairStatus,className:"flex flex-col gap-3",children:(0,t.jsxs)("header",{className:"flex items-center gap-2",children:[(0,t.jsx)(D,{n:2,muted:!e,spinning:e}),(0,t.jsx)(s,{className:["font-heading text-sm font-medium leading-tight tracking-[-0.015em]",e?"text-foreground":"text-muted-foreground"].join(" "),children:"Waiting for the daemon…"})]})})}function D({n:e,muted:a,done:s,spinning:n}){return(0,t.jsxs)("span",{className:["relative grid size-6 place-items-center rounded-full text-xs font-medium",s?"bg-emerald-500 text-white":a?"bg-muted text-muted-foreground":"bg-primary text-primary-foreground"].join(" "),children:[n&&(0,t.jsx)("span",{className:"absolute -inset-0.75 rounded-full border-2 border-primary/30 border-t-primary animate-spin"}),e]})}e.s(["PairMachineSheet",0,function({open:e,onOpenChange:s,pendingTokenId:n,setPendingTokenId:r,connectedHostname:i,mode:o={kind:"pair"}}){let c="reconnect"===o.kind,[d,m]=(0,a.useState)(!1),[u,x]=(0,a.useState)(!1),[h,p]=(0,a.useState)(!1),[L,g]=(0,a.useState)(!1),[C,v]=(0,a.useState)(null),[H,O]=(0,a.useState)(null),D=(0,a.useRef)(null),P=(0,a.useRef)(!1),S=(0,y.isTauri)()&&(0,y.isDesktop)(),V=(0,a.useCallback)(async()=>{m(!0);try{let e="reconnect"===o.kind?`/api/community/machines/${o.machineId}/reconnect`:"/api/community/machines/pair",t=await (0,b.apiFetch)(e,{method:"POST"});r(t.tokenId)}catch(e){(0,b.toastApiError)(e,"Couldn't generate a key — try again."),console.error(e)}finally{m(!1)}},[r,o]),R=e?"reconnect"===o.kind?`reconnect:${o.machineId}`:"pair":null;(0,a.useEffect)(()=>{if(!R){D.current=null;return}D.current!==R&&(D.current=R,p(!1),r(null),V())},[R,V,r]),(0,a.useEffect)(()=>{if(!e||!S){g(!1),v(null);return}let t=!0;return g(!0),v(null),O(null),(0,y.tauriInvoke)("daemon_runtime_capability").then(e=>{t&&v(e)}).catch(e=>{t&&v({available:!1,reason:M(e,"Alook couldn't check Node.js and npm on this computer."),nodeVersion:null})}).finally(()=>{t&&g(!1)}),()=>{t=!1}},[e,S]);let T=n?function(e,t){let a,{serverUrl:s,wsUrl:n}=(a=w?(0,k.websocketUrl)("community-daemon",{local:!0,port:f.WS_DO_PORT_DEFAULT}):(0,k.websocketUrl)("community-daemon",{local:!1,origin:location.origin}),{serverUrl:location.origin,wsUrl:a}),r=t?`reconnect --id ${t} --machine-key ${e}`:`start --machine-key ${e}`;return`${w?"pnpm daemon":"npm exec --yes --package=@alook/daemon@latest -- alook-daemon daemon"} ${r} --server-url ${s} --ws-url ${n}`}(n,"reconnect"===o.kind?o.machineId:void 0):"",z=(0,a.useCallback)(async()=>{if(T)try{await navigator.clipboard.writeText(T),j.toast.success("Command copied")}catch{j.toast.error("Copy failed")}},[T]),B=(0,a.useCallback)(async()=>{if(n&&!P.current&&C?.available){P.current=!0,x(!0),O(null);try{let e=await (0,y.tauriInvoke)("daemon_pair",{machineKey:n,machineId:"reconnect"===o.kind?o.machineId:null});if(!e.success)throw Error(e.message||"The daemon did not start");p(!0),j.toast.success(c?"Machine reconnected":"This computer is connecting")}catch(t){let e=M(t,"Couldn't start the daemon. Run the command below in a terminal instead.");O(e),j.toast.error(e)}finally{P.current=!1,x(!1)}}},[n,C?.available,c,o]);return(0,t.jsx)(N.Sheet,{open:e,onOpenChange:s,children:(0,t.jsxs)(N.SheetContent,{side:"right",className:"data-[side=right]:sm:inset-y-2 data-[side=right]:sm:right-2 data-[side=right]:sm:h-auto data-[side=right]:sm:rounded-xl data-[side=right]:sm:border",children:[(0,t.jsxs)(N.SheetHeader,{children:[(0,t.jsx)(N.SheetTitle,{children:c?`Reconnect ${o.hostname||"machine"}`:"Connect a machine"}),(0,t.jsx)(N.SheetDescription,{children:c?"Run this command before it expires. It safely replaces the running daemon, then rotates its key.":"Run this on the computer you want to connect. The key is good for 15 minutes."})]}),(0,t.jsx)(N.SheetBody,{className:"flex flex-col gap-6",children:(0,t.jsx)(A,{command:T,generating:d||!T,onCopy:z,desktopNative:S,checkingRuntime:L,runtimeCapability:C,launchError:H,connecting:u,started:h,onConnectDesktop:B,connectedHostname:i})}),(0,t.jsx)(N.SheetFooter,{children:(0,t.jsx)(N.SheetClose,{render:(0,t.jsx)(l.Button,{variant:"secondary",children:"Done"})})})]})})},"PairMachineSteps",0,A],110696);var P=e.i(732919),S=e.i(848937),V=e.i(909850),R=e.i(621202);let T={x:100,y:32},z={x:57,y:96},B={x:143,y:96};e.s(["ConnectTile",0,function({idPrefix:e="ot-connect"}){let s=(0,a.useRef)(null),n=(0,V.tileIds)(e);return(0,S.useGSAP)(()=>{if(!s.current)return;let e=(e,t,a,s)=>{var n,r;e.set(".ot-packet",{attr:{cx:t.x,cy:t.y,r:4},opacity:0}).to(".ot-packet",{opacity:1,duration:.2}).to(".ot-packet",{attr:{cx:a.x,cy:a.y},duration:.85,ease:"power1.inOut"}).to(".ot-packet",{opacity:0,duration:.14}),n=a.x,r=a.y,e.set(".ot-flare",{attr:{cx:n,cy:r,r:3},opacity:.9}).to(".ot-flare",{attr:{r:12},opacity:0,duration:.7,ease:"power2.out"}).to(s,{filter:"brightness(1.7)",duration:.14,ease:"power2.out"},"<").to(s,{filter:"brightness(1)",duration:.6,ease:"power1.out"},"<0.14"),e.to({},{duration:.25})},t=P.default.timeline({repeat:-1,defaults:{ease:R.OT_EASE}});e(t,z,T,".ot-alook"),e(t,T,B,".ot-phone"),e(t,B,T,".ot-alook"),e(t,T,z,".ot-machine"),t.to({},{duration:.3})},{scope:s}),(0,t.jsxs)("svg",{ref:s,viewBox:"0 0 200 130",className:"ot-svg h-full w-full",children:[(0,t.jsx)(V.TileDefs,{idPrefix:e}),(0,t.jsx)("line",{className:"ot-art",x1:"83.7",y1:"56.3",x2:"70.1",y2:"76.8",opacity:"0.28"}),(0,t.jsx)("line",{className:"ot-art",x1:"116.3",y1:"56.3",x2:"129.9",y2:"76.8",opacity:"0.28"}),(0,t.jsx)("image",{className:"ot-alook ot-center",href:"/alook.svg",x:"83",y:"15",width:"34",height:"34"}),(0,t.jsx)("g",{className:"ot-machine ot-center",children:(0,t.jsx)("svg",{x:"40",y:"79",width:"34",height:"34",viewBox:"0 0 24 24",children:(0,t.jsx)("use",{href:`#${n.monitor}`})})}),(0,t.jsx)("g",{className:"ot-phone ot-center",children:(0,t.jsx)("svg",{x:"130",y:"83",width:"26",height:"26",viewBox:"0 0 24 24",children:(0,t.jsx)("use",{href:`#${n.phone}`})})}),(0,t.jsx)("circle",{className:"ot-art ot-accent ot-flare",cx:"100",cy:"32",r:"4",opacity:"0",strokeWidth:"2.5"}),(0,t.jsx)("circle",{className:"ot-art-fill ot-accent ot-packet",cx:"100",cy:"32",r:"4",opacity:"0"})]})}],468099)},909850,621202,e=>{"use strict";var t=e.i(633940);function a(e){return{disc:`${e}-disc`,monitor:`${e}-ic-monitor`,file:`${e}-ic-file`,moon:`${e}-ic-moon`,book:`${e}-ic-book`,layers:`${e}-ic-layers`,clock:`${e}-ic-clock`,phone:`${e}-ic-phone`,faceA:`${e}-face-a`,faceB:`${e}-face-b`}}e.s(["TileDefs",0,function({idPrefix:e}){let s=a(e);return(0,t.jsxs)("defs",{children:[(0,t.jsx)("clipPath",{id:s.disc,clipPathUnits:"userSpaceOnUse",children:(0,t.jsx)("circle",{cx:"18",cy:"18",r:"18"})}),(0,t.jsxs)("g",{id:s.monitor,children:[(0,t.jsx)("rect",{className:"ot-art",width:"20",height:"14",x:"2",y:"3",rx:"2"}),(0,t.jsx)("line",{className:"ot-art",x1:"8",x2:"16",y1:"21",y2:"21"}),(0,t.jsx)("line",{className:"ot-art",x1:"12",x2:"12",y1:"17",y2:"21"})]}),(0,t.jsxs)("g",{id:s.file,children:[(0,t.jsx)("path",{className:"ot-art",d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}),(0,t.jsx)("path",{className:"ot-art",d:"M14 2v5a1 1 0 0 0 1 1h5"}),(0,t.jsx)("path",{className:"ot-art",d:"M10 9H8"}),(0,t.jsx)("path",{className:"ot-art",d:"M16 13H8"}),(0,t.jsx)("path",{className:"ot-art",d:"M16 17H8"})]}),(0,t.jsx)("g",{id:s.moon,children:(0,t.jsx)("path",{className:"ot-art",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"})}),(0,t.jsxs)("g",{id:s.phone,children:[(0,t.jsx)("rect",{className:"ot-art",width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),(0,t.jsx)("path",{className:"ot-art",d:"M12 18h.01"})]}),(0,t.jsxs)("g",{id:s.book,children:[(0,t.jsx)("path",{className:"ot-art",d:"M10 2v8l3-3 3 3V2"}),(0,t.jsx)("path",{className:"ot-art",d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"})]}),(0,t.jsxs)("g",{id:s.layers,children:[(0,t.jsx)("path",{className:"ot-art",d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}),(0,t.jsx)("path",{className:"ot-art",d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}),(0,t.jsx)("path",{className:"ot-art",d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"})]}),(0,t.jsxs)("g",{id:s.clock,children:[(0,t.jsx)("circle",{className:"ot-art",cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{className:"ot-art",d:"M12 6v6l4 2"})]}),(0,t.jsxs)("g",{id:s.faceA,children:[(0,t.jsx)("rect",{width:"36",height:"36",fill:"#2a5540"}),(0,t.jsxs)("g",{transform:"translate(1.38 0.40) rotate(-4 18 23.5) translate(-0.18 -0.24) scale(1.010)",children:[(0,t.jsx)("path",{d:"M32.45 23.50 L32.42 24.41 L32.34 25.31 L32.19 26.21 L32.00 27.09 L31.74 27.97 L31.44 28.82 L31.07 29.65 L30.66 30.46 L30.20 31.24 L29.69 31.99 L29.13 32.71 L28.53 33.39 L27.89 34.03 L27.21 34.63 L26.49 35.19 L25.74 35.70 L24.96 36.16 L24.15 36.57 L23.32 36.94 L22.47 37.24 L21.59 37.50 L20.71 37.69 L19.81 37.84 L18.91 37.92 L18.00 37.95 L17.09 37.92 L16.19 37.84 L15.29 37.69 L14.41 37.50 L13.53 37.24 L12.68 36.94 L11.85 36.57 L11.04 36.16 L10.26 35.70 L9.51 35.19 L8.79 34.63 L8.11 34.03 L7.47 33.39 L6.87 32.71 L6.31 31.99 L5.80 31.24 L5.34 30.46 L4.93 29.65 L4.56 28.82 L4.26 27.97 L4.00 27.09 L3.81 26.21 L3.66 25.31 L3.58 24.41 L3.55 23.50 L3.58 22.59 L3.66 21.69 L3.81 20.79 L4.00 19.91 L4.26 19.03 L4.56 18.18 L4.93 17.35 L5.34 16.54 L5.80 15.76 L6.31 15.01 L6.87 14.29 L7.47 13.61 L8.11 12.97 L8.79 12.37 L9.51 11.81 L10.26 11.30 L11.04 10.84 L11.85 10.43 L12.68 10.06 L13.53 9.76 L14.41 9.50 L15.29 9.31 L16.19 9.16 L17.09 9.08 L18.00 9.05 L18.91 9.08 L19.81 9.16 L20.71 9.31 L21.59 9.50 L22.47 9.76 L23.32 10.06 L24.15 10.43 L24.96 10.84 L25.74 11.30 L26.49 11.81 L27.21 12.37 L27.89 12.97 L28.53 13.61 L29.13 14.29 L29.69 15.01 L30.20 15.76 L30.66 16.54 L31.07 17.35 L31.44 18.18 L31.74 19.03 L32.00 19.91 L32.19 20.79 L32.34 21.69 L32.42 22.59 L32.45 23.50 Z",fill:"#e7f3ec"}),(0,t.jsx)("path",{d:"M12.2 20.7 q1.8 -2 3.6 0",stroke:"#12241b",strokeWidth:"1.6",fill:"none",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M20.2 20.7 q1.8 -2 3.6 0",stroke:"#12241b",strokeWidth:"1.6",fill:"none",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M14.5 24q3.5 2.6 7 0",stroke:"#12241b",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})]})]}),(0,t.jsxs)("g",{id:s.faceB,children:[(0,t.jsx)("rect",{width:"36",height:"36",fill:"#2a5540"}),(0,t.jsxs)("g",{transform:"translate(-0.46 0.40) rotate(-3 18 23.5) translate(-0.18 -0.24) scale(1.010)",children:[(0,t.jsx)("path",{d:"M31.53 23.50 L31.44 24.35 L31.18 25.16 L30.76 25.93 L30.22 26.64 L29.57 27.26 L28.86 27.80 L28.13 28.27 L27.40 28.67 L26.70 29.02 L26.07 29.36 L25.50 29.70 L25.01 30.08 L24.58 30.51 L24.20 31.00 L23.86 31.57 L23.52 32.20 L23.17 32.90 L22.77 33.63 L22.30 34.36 L21.76 35.07 L21.14 35.72 L20.43 36.26 L19.66 36.68 L18.85 36.94 L18.00 37.03 L17.15 36.94 L16.34 36.68 L15.57 36.26 L14.86 35.72 L14.24 35.07 L13.70 34.36 L13.23 33.63 L12.83 32.90 L12.48 32.20 L12.14 31.57 L11.80 31.00 L11.42 30.51 L10.99 30.08 L10.50 29.70 L9.93 29.36 L9.30 29.02 L8.60 28.67 L7.87 28.27 L7.14 27.80 L6.43 27.26 L5.78 26.64 L5.24 25.93 L4.82 25.16 L4.56 24.35 L4.47 23.50 L4.56 22.65 L4.82 21.84 L5.24 21.07 L5.78 20.36 L6.43 19.74 L7.14 19.20 L7.87 18.73 L8.60 18.33 L9.30 17.98 L9.93 17.64 L10.50 17.30 L10.99 16.92 L11.42 16.49 L11.80 16.00 L12.14 15.43 L12.48 14.80 L12.83 14.10 L13.23 13.37 L13.70 12.64 L14.24 11.93 L14.86 11.28 L15.57 10.74 L16.34 10.32 L17.15 10.06 L18.00 9.97 L18.85 10.06 L19.66 10.32 L20.43 10.74 L21.14 11.28 L21.76 11.93 L22.30 12.64 L22.77 13.37 L23.17 14.10 L23.52 14.80 L23.86 15.43 L24.20 16.00 L24.58 16.49 L25.01 16.92 L25.50 17.30 L26.07 17.64 L26.70 17.98 L27.40 18.33 L28.13 18.73 L28.86 19.20 L29.57 19.74 L30.22 20.36 L30.76 21.07 L31.18 21.84 L31.44 22.65 L31.53 23.50 Z",fill:"#e7f3ec"}),(0,t.jsx)("circle",{cx:"13",cy:"20",r:"1.9",fill:"#12241b"}),(0,t.jsx)("path",{d:"M21.2 20 q1.8 1.7 3.6 0",stroke:"#12241b",strokeWidth:"1.6",fill:"none",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M14.5 25q3.5 2.6 7 0",stroke:"#12241b",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})]})]})]})},"tileIds",0,a],909850);var s=e.i(732919);let n="sine.inOut";e.s(["OT_EASE",0,n,"breathe",0,function(e,t,a=1.02,r=3){return s.default.to(e.querySelectorAll(t),{scale:a,duration:r,ease:n,yoyo:!0,repeat:-1,transformOrigin:"center"})},"comeOnline",0,function(e,t,a,s,n){e.set(t,{opacity:1},n).to(t,{scale:1.35,duration:.18,ease:"power2.out",svgOrigin:`${a} ${s}`},n).to(t,{scale:1,duration:.28,ease:"power2.inOut",svgOrigin:`${a} ${s}`})},"goOffline",0,function(e,t,a,s,n){e.to(t,{scale:.82,duration:.16,ease:"power2.out",svgOrigin:`${a} ${s}`},n).set(t,{opacity:0}).to(t,{scale:1,duration:.2,ease:"power2.inOut",svgOrigin:`${a} ${s}`})}],621202)},855372,e=>{"use strict";var t=e.i(633940),a=e.i(957730);function s({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"#D97757",className:e,children:(0,t.jsx)("path",{d:"m3.127 10.604 3.135-1.76.053-.153-.053-.085H6.11l-.525-.032-1.791-.048-1.554-.065-1.505-.08-.38-.081L0 7.832l.036-.234.32-.214.455.04 1.009.069 1.513.105 1.097.064 1.626.17h.259l.036-.105-.089-.065-.068-.064-1.566-1.062-1.695-1.121-.887-.646-.48-.327-.243-.306-.104-.67.435-.48.585.04.15.04.593.456 1.267.981 1.654 1.218.242.202.097-.068.012-.049-.109-.181-.9-1.626-.96-1.655-.428-.686-.113-.411a2 2 0 0 1-.068-.484l.496-.674L4.446 0l.662.089.279.242.411.94.666 1.48 1.033 2.014.302.597.162.553.06.17h.105v-.097l.085-1.134.157-1.392.154-1.792.052-.504.25-.605.497-.327.387.186.319.456-.045.294-.19 1.23-.37 1.93-.243 1.29h.142l.161-.16.654-.868 1.097-1.372.484-.545.565-.601.363-.287h.686l.505.751-.226.775-.707.895-.585.759-.839 1.13-.524.904.048.072.125-.012 1.897-.403 1.024-.186 1.223-.21.553.258.06.263-.218.536-1.307.323-1.533.307-2.284.54-.028.02.032.04 1.029.098.44.024h1.077l2.005.15.525.346.315.424-.053.323-.807.411-3.631-.863-.872-.218h-.12v.073l.726.71 1.331 1.202 1.667 1.55.084.383-.214.302-.226-.032-1.464-1.101-.565-.497-1.28-1.077h-.084v.113l.295.432 1.557 2.34.08.718-.112.234-.404.141-.444-.08-.911-1.28-.94-1.44-.759-1.291-.093.053-.448 4.821-.21.246-.484.186-.403-.307-.214-.496.214-.98.258-1.28.21-1.016.19-1.263.112-.42-.008-.028-.092.012-.953 1.307-1.448 1.957-1.146 1.227-.274.109-.477-.247.045-.44.266-.39 1.586-2.018.956-1.25.617-.723-.004-.105h-.036l-4.212 2.736-.75.096-.324-.302.04-.496.154-.162 1.267-.871z"})})}function n({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M14.949 6.547a3.94 3.94 0 0 0-.348-3.273 4.11 4.11 0 0 0-4.4-1.934A4.1 4.1 0 0 0 8.423.2 4.15 4.15 0 0 0 6.305.086a4.1 4.1 0 0 0-1.891.948 4.04 4.04 0 0 0-1.158 1.753 4.1 4.1 0 0 0-1.563.679A4 4 0 0 0 .554 4.72a3.99 3.99 0 0 0 .502 4.731 3.94 3.94 0 0 0 .346 3.274 4.11 4.11 0 0 0 4.402 1.933c.382.425.852.764 1.377.995.526.231 1.095.35 1.67.346 1.78.002 3.358-1.132 3.901-2.804a4.1 4.1 0 0 0 1.563-.68 4 4 0 0 0 1.14-1.253 3.99 3.99 0 0 0-.506-4.716m-6.097 8.406a3.05 3.05 0 0 1-1.945-.694l.096-.054 3.23-1.838a.53.53 0 0 0 .265-.455v-4.49l1.366.778q.02.011.025.035v3.722c-.003 1.653-1.361 2.992-3.037 2.996m-6.53-2.75a2.95 2.95 0 0 1-.36-2.01l.095.057L5.29 12.09a.53.53 0 0 0 .527 0l3.949-2.246v1.555a.05.05 0 0 1-.022.041L6.473 13.3c-1.454.826-3.311.335-4.15-1.098m-.85-6.94A3.02 3.02 0 0 1 3.07 3.949v3.785a.51.51 0 0 0 .262.451l3.93 2.237-1.366.779a.05.05 0 0 1-.048 0L2.585 9.342a2.98 2.98 0 0 1-1.113-4.094zm11.216 2.571L8.747 5.576l1.362-.776a.05.05 0 0 1 .048 0l3.265 1.86a3 3 0 0 1 1.173 1.207 2.96 2.96 0 0 1-.27 3.2 3.05 3.05 0 0 1-1.36.997V8.279a.52.52 0 0 0-.276-.445m1.36-2.015-.097-.057-3.226-1.855a.53.53 0 0 0-.53 0L6.249 6.153V4.598a.04.04 0 0 1 .019-.04L9.533 2.7a3.07 3.07 0 0 1 3.257.139c.474.325.843.778 1.066 1.303.223.526.289 1.103.191 1.664zM5.503 8.575 4.139 7.8a.05.05 0 0 1-.026-.037V4.049c0-.57.166-1.127.476-1.607s.752-.864 1.275-1.105a3.08 3.08 0 0 1 3.234.41l-.096.054-3.23 1.838a.53.53 0 0 0-.265.455zm.742-1.577 1.758-1 1.762 1v2l-1.755 1-1.762-1z"})})}function r({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 240 300",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M180 240H60V120H180V240Z",fill:"#CFCECD"}),(0,t.jsx)("path",{d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z",fill:"#211E1E"})]})}function i({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M8 2C5.5 2 3.5 4 3.5 6.5S5 10.5 6.5 11v1.5H8V11c.3.1.7.1 1 0v1.5h1.5V11c1.5-.5 3-2.5 3-4.5S10.5 2 8 2Z",fill:"#E8453A"}),(0,t.jsx)("path",{d:"M3.5 5.5C2 5 1 6 1.5 7s2 .5 2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M12.5 5.5c1.5-.5 2.5.5 2 1.5s-2 .5-2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M6.5 3Q5 1.2 4.3 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M9.5 3Q11 1.2 11.7 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"6.2",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"9.8",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"6.4",cy:"5",r:"0.3",fill:"#00E5CC"}),(0,t.jsx)("circle",{cx:"10",cy:"5",r:"0.3",fill:"#00E5CC"})]})}function l({className:e}){return(0,t.jsx)("img",{src:"data:image/webp;base64,UklGRuYDAABXRUJQVlA4INoDAADQEwCdASowADAAPm0uk0ckIiGhKrqpWIANiWkAEyQea/fD8IewvGL5V7Nb3H8u/MA8G9rT+4flL+UfIe42/23GB8zPqF/o3E0UAP5h/h/+F6ZX+x5evnX/r+4T/K/67/u/zg7znogfrusMANZLkn1gvlY/vNsKubtj/9xLSzxTsLr7K9GLdFNs5rwtISRcPXvH4z57n2fg0XR3aQ2D+pPpycwyl7TwAAD+/2DbjivnePzfyHCsdOgJXKlUR/OgAkofD7K4AdmsPKyP5Ml4/4HBYmIm5/efn/H+X3IZtngyaUOvwbFuRS/1yODFYO3vf3qeXGgPdfgIROXd/EPT7K2jysfvY9N71+w6g2gBPs+P6lxYkPf6S9QfpvH/7Pp7i8xRh0nVDBTEQyczSz7V9hoqo4nDJuii+SfibZRR/d5zB+9jkcb1DNN7YnC5Y7+WfGrE3eseXt3hSm+NS5++m1MHbjsrd9z/Q4HPRP/C85Po41XObalGyIUcFUL2j2n3uI/Yh6U8r6trCUJFB4kT3fsv6+8ylX/d96y2hq869FCXLjq4YqEO8vs5BtT52sf7KyDxPAWkH/b06YbfVXf4/7y5THL6Sr/4mOrrY9P2LW81f05HHFN8n0jcyqKOH7AluMm0AHPgFyz8RVrfBdmnPiC2FLMQfNDte5yGFzGC3fMlDed/tS/PO3Q/hjsNLvAXUUjqHyCo3JeN69jyNgWjjf8iUqoBsXT+lJyp2r8p60ad1jxhNyTblyJwda8aWEw1hFDeGjpMGguDF66RL4c+ZO+PhculC6WxvCsZ7IPAsdD7/ywx3w3AowJ66hAAK7k+m6X2QV06OVOCwyIGERex/AUyuBbLUK93X58+M+Si7YfYjVYGpoJ7JvSgD8ExaA21z9OY+si+1wreacDanKnFDmhwBQC3t6MLeXCOGp3VURDKl10K7tdKHQcb4hr48ba+1x/MrMRwHfq3IQrDIXPYCg4b0OLnVN9JyXttKGM63B5imIdKuU0r6hhSslT10lGLjnIJuwO5WKR0RHs+BX5vs6H63y3K7IuuZ1eRN+Aczvbs4QuDs6ZRuzjJ/1DJ5R/3ZrFPrtxvMwT06vAXIgcbhLGNLhOQUYRPdUN5MgyCtL5NH71ArTPLRRkIjhGwoCYXKKqlqIKKT9NX3vwp/nlh4SX71dlYg/mPXbJ9bMeVugyjqFahjFTJ/rT3HtBCWG8h+OvvbOFDFKurCG9BOhO9B719OS7zsP0KPqoymnv7hVvoJyZp0iziCbBvaJpmF9Cvfs8/vWqWr7TUo616WfMW+X9nkgpuqtnfAAAAAA==",alt:"Hermes",className:`${e} rounded-sm`})}function o({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 800 800",fill:"none",className:e,children:[(0,t.jsx)("rect",{width:"800",height:"800",rx:"150",fill:"#09090b"}),(0,t.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"}),(0,t.jsx)("path",{fill:"#fff",d:"M517.36 400H634.72V634.72H517.36Z"})]})}function c({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})}function d({className:e}){return(0,t.jsxs)("svg",{viewBox:"600 300 400 400",fill:"none",className:e,children:[(0,t.jsx)("path",{fill:"#14120B",d:"M999.994 554.294C999.994 559.859 999.994 565.419 999.962 570.984C999.935 575.67 999.882 580.357 999.753 585.038C999.475 595.247 998.875 605.542 997.059 615.639C995.217 625.88 992.212 635.409 987.477 644.718C982.822 653.861 976.738 662.233 969.485 669.491C962.227 676.748 953.861 682.828 944.712 687.482C935.409 692.217 925.875 695.222 915.633 697.065C905.537 698.88 895.242 699.48 885.033 699.759C880.346 699.887 875.665 699.941 870.978 699.968C865.413 700.005 859.853 700 854.288 700H745.695C740.13 700 734.571 700 729.005 699.968C724.319 699.941 719.632 699.887 714.951 699.759C704.742 699.48 694.447 698.88 684.35 697.065C674.109 695.222 664.58 692.217 655.271 687.482C646.128 682.828 637.756 676.743 630.499 669.491C623.241 662.233 617.161 653.866 612.507 644.718C607.772 635.414 604.767 625.88 602.925 615.639C601.109 605.542 600.509 595.247 600.23 585.038C600.102 580.352 600.048 575.67 600.021 570.984C600 565.419 600 559.859 600 554.294V445.701C600 440.136 600 434.576 600.032 429.011C600.059 424.324 600.112 419.637 600.241 414.956C600.52 404.747 601.119 394.452 602.935 384.356C604.778 374.115 607.783 364.586 612.518 355.277C617.172 346.133 623.257 337.762 630.509 330.504C637.767 323.246 646.133 317.167 655.282 312.512C664.586 307.777 674.12 304.772 684.361 302.93C694.458 301.114 704.752 300.514 714.961 300.236C719.648 300.107 724.329 300.054 729.016 300.027C734.576 300 740.136 300 745.701 300H854.294C859.859 300 865.419 300 870.984 300.032C875.67 300.059 880.357 300.112 885.038 300.241C895.247 300.52 905.542 301.119 915.639 302.935C925.88 304.778 935.409 307.783 944.718 312.518C953.861 317.172 962.233 323.257 969.491 330.509C976.748 337.767 982.828 346.133 987.482 355.282C992.217 364.586 995.222 374.12 997.065 384.361C998.88 394.458 999.48 404.752 999.759 414.961C999.887 419.648 999.941 424.329 999.968 429.016C1000.01 434.581 1000 440.141 1000 445.706V554.299L999.994 554.294Z"}),(0,t.jsx)("path",{fill:"#72716D",d:"M800.004 500L923.821 571.486C923.061 572.804 921.957 573.929 920.591 574.716L804.863 641.531C801.858 643.266 798.151 643.266 795.146 641.531L679.417 574.716C678.052 573.929 676.948 572.804 676.188 571.486L800.004 500Z"}),(0,t.jsx)("path",{fill:"#55544F",d:"M800.005 357.168V500L676.188 571.486C675.427 570.168 675.004 568.647 675.004 567.072V432.928C675.004 429.774 676.686 426.865 679.418 425.285L795.141 358.47C796.646 357.602 798.323 357.168 799.999 357.168H800.005Z"}),(0,t.jsx)("path",{fill:"#43413C",d:"M923.815 428.515C923.055 427.197 921.951 426.072 920.586 425.285L804.857 358.47C803.357 357.602 801.68 357.168 800.004 357.168V500L923.821 571.486C924.581 570.168 925.005 568.647 925.005 567.072V432.928C925.005 431.348 924.587 429.838 923.821 428.515H923.815Z"}),(0,t.jsx)("path",{fill:"#D6D5D2",d:"M915.156 433.518C915.857 434.728 915.954 436.281 915.156 437.663L802.764 632.323C802.008 633.641 800 633.1 800 631.584V503.311C800 502.287 799.727 501.302 799.229 500.44L915.15 433.512H915.156V433.518Z"}),(0,t.jsx)("path",{fill:"white",d:"M915.155 433.518L799.233 500.445C798.741 499.588 798.023 498.86 797.134 498.345L686.049 434.209C684.731 433.453 685.272 431.445 686.788 431.445H911.566C913.162 431.445 914.459 432.307 915.155 433.518Z"})]})}function m({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M12 24C12 18.2 12 15.5 10.1 13.9C8.5 12 5.8 12 0 12C5.8 12 8.5 12 10.1 10.1C12 8.5 12 5.8 12 0C12 5.8 12 8.5 13.9 10.1C15.5 12 18.2 12 24 12C18.2 12 15.5 12 13.9 13.9C12 15.5 12 18.2 12 24Z",fill:"url(#gemini-gradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gemini-gradient",x1:"0",y1:"0",x2:"24",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#4285F4"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#886FBF"})]})})]})}function u({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:[(0,t.jsx)("path",{d:"M8 1.25a6.75 6.75 0 1 0 0 13.5 6.75 6.75 0 0 0 0-13.5Zm0 1.5a5.25 5.25 0 1 1 0 10.5 5.25 5.25 0 0 1 0-10.5Z"}),(0,t.jsx)("path",{d:"M8 4.5a.75.75 0 0 1 .75.75v3.69l1.22-1.22a.75.75 0 1 1 1.06 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 1 1 1.06-1.06l1.22 1.22V5.25A.75.75 0 0 1 8 4.5Z",transform:"rotate(180 8 8)"})]})}function x({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:[(0,t.jsx)("path",{d:"M3.25 2.25a.75.75 0 0 1 .75.75v4.16l4.61-4.69a.75.75 0 0 1 1.07 1.05L6.05 7.21l3.95 5.39a.75.75 0 1 1-1.21.89L5.18 8.5 4 9.7V13a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75Z"}),(0,t.jsx)("circle",{cx:"12.5",cy:"3.5",r:"1"})]})}e.s(["ProviderLogo",0,function({provider:e,className:h="h-4 w-4"}){switch(e){case"claude":return(0,t.jsx)(s,{className:h});case"codex":return(0,t.jsx)(n,{className:h});case"opencode":return(0,t.jsx)(r,{className:h});case"openclaw":return(0,t.jsx)(i,{className:h});case"hermes":return(0,t.jsx)(l,{className:h});case"pi":return(0,t.jsx)(o,{className:h});case"copilot":return(0,t.jsx)(c,{className:h});case"cursor":return(0,t.jsx)(d,{className:h});case"gemini":return(0,t.jsx)(m,{className:h});case"antigravity":return(0,t.jsx)(u,{className:h});case"kimi":return(0,t.jsx)(x,{className:h});default:return(0,t.jsx)(a.Monitor,{className:h})}}])},934351,e=>{"use strict";var t=e.i(633940),a=e.i(613349);e.s(["Card",0,function({className:e,size:s="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":s,className:(0,a.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,a.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...s})},"CardContent",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,a.cn)("px-4 group-data-[size=sm]/card:px-3",e),...s})},"CardHeader",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,a.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...s})},"CardTitle",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,a.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...s})}])},130901,e=>{"use strict";e.s(["machineName",0,function(e){return e?.displayName?.trim()||e?.hostname?.trim()||"Unnamed machine"}])}]);