@aeolus-fleet/console 0.20.1 → 0.20.2
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/inbox/page.js.nft.json +1 -1
- package/.next/server/app/inbox/page_client-reference-manifest.js +1 -1
- package/.next/server/app/labels/page.js.nft.json +1 -1
- package/.next/server/app/labels/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-attention/page.js.nft.json +1 -1
- package/.next/server/app/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-crew/page.js.nft.json +1 -1
- package/.next/server/app/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/connection/route.js.nft.json +1 -1
- package/.next/server/app/squadrons/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarch-plugin/connection/route.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarchs/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/server/chunks/_0h366h9._.js +1 -1
- package/.next/server/chunks/packages_console_lib_connect-plugin_ts_197hf-1._.js +1 -1
- package/.next/server/chunks/ssr/_0wtj0e-._.js +1 -1
- package/.next/server/chunks/ssr/_0xc3etp._.js +1 -1
- package/.next/server/chunks/ssr/_11cgy8n._.js +1 -1
- package/.next/server/chunks/ssr/_17u4fan._.js +1 -1
- package/.next/server/chunks/ssr/_19e0e-9._.js +1 -1
- package/.next/server/chunks/ssr/_1on9mjs._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0edevze._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0y7h5dm._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_app_trierarchs_[shipId]_page_tsx_1rqyoj3._.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{26dg2z_6kosr0.js → 0r8dost92fvd7.js} +1 -1
- package/.next/static/chunks/{1bvfk_-_enrxp.js → 1dj9u_t1hus9k.js} +1 -1
- package/.next/static/chunks/{28j4p-34f5axr.js → 1ntkufzth29k5.js} +1 -1
- package/.next/static/chunks/{3splvoavlf-cc.js → 23hfit3epwjh0.js} +1 -1
- package/.next/static/chunks/{3jsj5ozfio3me.js → 2c6e9e-s7rbf3.js} +1 -1
- package/.next/static/chunks/{1h0f7mfr5wxsj.js → 2ie6mvt-ssazt.js} +1 -1
- package/.next/static/chunks/{2wnrtdpkhbd_j.js → 2n90taswwrii-.js} +1 -1
- package/.next/static/chunks/{2spn0c35v7c1b.js → 3plldogn92kay.js} +1 -1
- package/.next/static/chunks/3x1-acncumcu6.js +1 -0
- package/package.json +3 -3
- package/.next/static/chunks/1ct431l_sosvm.js +0 -1
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → va-oYqdgsZx7jVoPSVC3a}/_buildManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → va-oYqdgsZx7jVoPSVC3a}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → va-oYqdgsZx7jVoPSVC3a}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:y,src:b,...v}=e,{setImageLoadingStatus:S}=i(),[C,E]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(b,e,!u),R="loaded"===C,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(R),x=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=x.current;if(!t)return;if(!t.complete)return void E("loading");let r=t.naturalWidth>0?"loaded":"error";E(r),"loaded"===r&&e&&P(!0)},[u,b,y,m,v.crossOrigin,v.referrerPolicy,o,E,P]);let T=u?{"data-loading":"loading"===C?"":void 0,"data-error":"error"===C?"":void 0,"aria-hidden":"loaded"!==C||void 0,onLoad(){E("loaded")},onError(){E("error")}}:void 0,A=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==C&&A(C)},[C,A]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:x,onComplete(){R||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==y&&(M.srcSet=y),void 0!==b&&(M.src=b);let j=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:C,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,x],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?j:null});var y=e.i(39957);let b=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,y.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,b,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function y(t){var r;let n,s,i,[y,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:C,as:E,children:R,prefetch:k=null,passHref:O,replace:P,shallow:x,scroll:w,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:M=!1,onNavigate:j,transitionTypes:_,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",z="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,U="string"==typeof(r=E||C)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,U,q,z,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,q,z,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,U,S,P,w,j,_,Q)},onMouseEnter(e){M||"function"!=typeof A||A(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(U)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(b.Provider,{value:y,children:i})}let b=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return S},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return E}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var o=e.i(71645),a=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:u=!1,onCopied:l,onCopyFailed:c,className:d,"data-testid":f}){let[h,p]=(0,o.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),l?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{variant:"ghost",size:s,isIconOnly:!u,"aria-label":n,title:u?void 0:n,icon:h?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":f,onClick:()=>{g()},children:u?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}],61966)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,r])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[y]=u.useState(()=>new h(l,m,t)),[b,v,S]=y.getOptimisticResult(m,t.combine),C=!f&&g;u.useSyncExternalStore(u.useCallback(e=>C?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,C]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),u.useEffect(()=>{y.setQueries(m,t)},[m,t,y]);let E=b.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?b.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(E.length>0)throw Promise.all(E);let R=b.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:y,src:b,...v}=e,{setImageLoadingStatus:S}=i(),[C,E]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(b,e,!u),R="loaded"===C,{mounted:k,transitionStatus:O,setMounted:x}=(0,h.useTransitionStatus)(R),P=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=P.current;if(!t)return;if(!t.complete)return void E("loading");let r=t.naturalWidth>0?"loaded":"error";E(r),"loaded"===r&&e&&x(!0)},[u,b,y,m,v.crossOrigin,v.referrerPolicy,o,E,x]);let A=u?{"data-loading":"loading"===C?"":void 0,"data-error":"error"===C?"":void 0,"aria-hidden":"loaded"!==C||void 0,onLoad(){E("loaded")},onError(){E("error")}}:void 0,T=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==C&&T(C)},[C,T]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:P,onComplete(){R||x(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==y&&(M.srcSet=y),void 0!==b&&(M.src=b);let j=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:C,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,P],props:[A,v,M],stateAttributesMapping:g,enabled:I});return I?j:null});var y=e.i(39957);let b=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,y.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,b,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function y(t){var r;let n,s,i,[y,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:C,as:E,children:R,prefetch:k=null,passHref:O,replace:x,shallow:P,scroll:w,onClick:A,onMouseEnter:T,onTouchStart:I,legacyBehavior:M=!1,onNavigate:j,transitionTypes:_,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",z="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,U="string"==typeof(r=E||C)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,U,q,z,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,q,z,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof A||A(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,U,S,x,w,j,_,Q)},onMouseEnter(e){M||"function"!=typeof T||T(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(U)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(b.Provider,{value:y,children:i})}let b=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return S},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return E}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var o=e.i(71645),a=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:u=!1,onCopied:l,onCopyFailed:c,className:d,"data-testid":f}){let[h,p]=(0,o.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),l?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{variant:"ghost",size:s,isIconOnly:!u,"aria-label":n,title:u?void 0:n,icon:h?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":f,onClick:()=>{g()},children:u?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}],61966)},66616,e=>{"use strict";var t=e.i(49635);let r={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return r[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,r){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),r);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return r[e]?.kind},"harnessWord",0,n])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[y]=u.useState(()=>new h(l,m,t)),[b,v,S]=y.getOptimisticResult(m,t.combine),C=!f&&g;u.useSyncExternalStore(u.useCallback(e=>C?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,C]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),u.useEffect(()=>{y.setQueries(m,t)},[m,t,y]);let E=b.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?b.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(E.length>0)throw Promise.all(E);let R=b.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:b,src:y,...v}=e,{setImageLoadingStatus:S}=i(),[E,R]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(y,e,!u),C="loaded"===E,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(C),A=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=A.current;if(!t)return;if(!t.complete)return void R("loading");let r=t.naturalWidth>0?"loaded":"error";R(r),"loaded"===r&&e&&P(!0)},[u,y,b,m,v.crossOrigin,v.referrerPolicy,o,R,P]);let T=u?{"data-loading":"loading"===E?"":void 0,"data-error":"error"===E?"":void 0,"aria-hidden":"loaded"!==E||void 0,onLoad(){R("loaded")},onError(){R("error")}}:void 0,x=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==E&&x(E)},[E,x]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!C,open:C,ref:A,onComplete(){C||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==b&&(M.srcSet=b),void 0!==y&&(M.src=y);let _=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:E,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,A],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?_:null});var b=e.i(39957);let y=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,b.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,y,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function b(t){var r;let n,s,i,[b,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:E,as:R,children:C,prefetch:k=null,passHref:O,replace:P,shallow:A,scroll:w,onClick:T,onMouseEnter:x,onTouchStart:I,legacyBehavior:M=!1,onNavigate:_,transitionTypes:j,ref:N,unstable_dynamicOnHover:L,...D}=t;n=C,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",U="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,z="string"==typeof(r=R||E)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,z,q,U,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,z,q,U,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,z,S,P,w,_,j,Q)},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(z)?K.href=z:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(z)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(y.Provider,{value:b,children:i})}let y=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return S},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return R}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function R(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,r])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[b]=u.useState(()=>new h(l,m,t)),[y,v,S]=b.getOptimisticResult(m,t.combine),E=!f&&g;u.useSyncExternalStore(u.useCallback(e=>E?b.subscribe(c.notifyManager.batchCalls(e)):r.noop,[b,E]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),u.useEffect(()=>{b.setQueries(m,t)},[m,t,b]);let R=y.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?y.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(R.length>0)throw Promise.all(R);let C=y.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(C)throw C.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:b,src:y,...v}=e,{setImageLoadingStatus:S}=i(),[E,C]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(y,e,!u),R="loaded"===E,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(R),A=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=A.current;if(!t)return;if(!t.complete)return void C("loading");let r=t.naturalWidth>0?"loaded":"error";C(r),"loaded"===r&&e&&P(!0)},[u,y,b,m,v.crossOrigin,v.referrerPolicy,o,C,P]);let T=u?{"data-loading":"loading"===E?"":void 0,"data-error":"error"===E?"":void 0,"aria-hidden":"loaded"!==E||void 0,onLoad(){C("loaded")},onError(){C("error")}}:void 0,x=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==E&&x(E)},[E,x]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:A,onComplete(){R||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==b&&(M.srcSet=b),void 0!==y&&(M.src=y);let _=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:E,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,A],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?_:null});var b=e.i(39957);let y=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,b.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,y,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function b(t){var r;let n,s,i,[b,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:E,as:C,children:R,prefetch:k=null,passHref:O,replace:P,shallow:A,scroll:w,onClick:T,onMouseEnter:x,onTouchStart:I,legacyBehavior:M=!1,onNavigate:_,transitionTypes:j,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",U="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,z="string"==typeof(r=C||E)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let $=M?s&&"object"==typeof s&&s.ref:N,B,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,z,q,U,F,v,B)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,z,q,U,v,B]),K={ref:(0,c.useMergedRef)(H,$),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,z,S,P,w,_,j,Q)},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(z)?K.href=z:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(z)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(y.Provider,{value:b,children:i})}let y=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return S},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return C}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},66616,e=>{"use strict";var t=e.i(49635);let r={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return r[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,r){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),r);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return r[e]?.kind},"harnessWord",0,n])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[b]=u.useState(()=>new h(l,m,t)),[y,v,S]=b.getOptimisticResult(m,t.combine),E=!f&&g;u.useSyncExternalStore(u.useCallback(e=>E?b.subscribe(c.notifyManager.batchCalls(e)):r.noop,[b,E]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),u.useEffect(()=>{b.setQueries(m,t)},[m,t,b]);let C=y.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?y.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(C.length>0)throw Promise.all(C);let R=y.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69644,69846,e=>{"use strict";var t=e.i(56420);let i={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};i.node;let s=(0,t.default)(i);e.s(["FolderOpen",0,s],69644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let a=(0,t.default)(n);e.s(["GitBranch",0,a],69846)},83035,e=>{"use strict";var t=e.i(56420);let i={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};i.node;let s=(0,t.default)(i);e.s(["SquareTerminal",0,s],83035)},27290,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(71645),n=e.i(66390),a=e.i(15905),r=e.i(44824),o=e.i(45608),l=e.i(95475),d=e.i(2767);e.i(31627);var c=e.i(44827),h=e.i(22768),m=e.i(85595),u=e.i(16984),x=e.i(10818),p=e.i(90063),g=e.i(65160),f=e.i(91703),j=e.i(22212),v=e.i(94945),b=e.i(12470),y=e.i(91727),w=e.i(56478),C=e.i(17981);function N({activeNames:e,isPending:i,error:n,onSubmit:r}){let o=(0,s.useId)(),l=(0,s.useId)(),[d,h]=(0,s.useState)(""),x=(0,g.checkShipName)(d,{activeNames:e}),f="invalid"===x.kind||"reserved"===x.kind||"taken"===x.kind,v="available"===x.kind;return(0,t.jsxs)("form",{noValidate:!0,className:"contents",onSubmit:e=>{e.preventDefault(),v&&r(d)},children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:"Join a machine"}),(0,t.jsx)(j.DialogDescription,{children:"The trierarch plugin commissions a trierarch ship of this name. You then run its setup line on the machine, and the trierarch there starts sessions for the crew requests it is given."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)(y.Label,{htmlFor:o,children:"Name"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground tabular-nums",children:[d.length," / ",c.SHIP_HANDLE_MAX_LENGTH]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.Input,{id:o,isMono:!0,autoComplete:"off",autoCapitalize:"off",spellCheck:!1,placeholder:"trierarch-mac","data-testid":"join-machine-name","aria-invalid":!!f||void 0,"aria-describedby":l,className:"pr-9 max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:d,onChange:e=>{h((0,g.asHandle)(e.target.value))}}),"available"===x.kind?(0,t.jsx)(m.CircleCheck,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-tone-ok-fg"}):f?(0,t.jsx)(u.CircleX,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-destructive-text"}):null]}),(0,t.jsx)("p",{id:l,"aria-live":"polite",className:(0,p.classNames)("text-meta",f?"text-destructive-text":"text-muted-foreground"),children:x.message})]}),void 0===n?null:(0,t.jsx)(C.InlineError,{title:"Couldn’t join the machine",description:`${n} Nothing changed.`}),(0,t.jsxs)(j.DialogFooter,{children:[(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{type:"button",disabled:i}),children:"Cancel"}),(0,t.jsx)(a.Button,{type:"submit",variant:"primary",isLoading:i,disabled:!v,"data-testid":"join-machine-submit",children:i?"Joining":"Join machine"})]})]})}function k({joined:e}){let[i,n]=(0,s.useState)(!1),r=()=>{n(!1)},o=()=>{n(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsxs)(j.DialogTitle,{children:[e.name," joined"]}),(0,t.jsxs)(j.DialogDescription,{children:["Run the setup line on the machine. It installs the trierarch, which then crews ",e.name," and reports what the machine offers."]})]}),(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(x.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," It carries the ship’s secret. If you lose it, get a new starting prompt on ",e.name,"’s ship page."]})]}),(0,t.jsx)(f.CodeBlock,{label:"Setup line",code:e.setupLine,isWrapped:!0,copyLabel:`Copy the setup line for ${e.name}`,codeTestId:"join-machine-setup-line",copyTestId:"join-machine-setup-line-copy",onCopied:r,onCopyFailed:o}),(0,t.jsx)(f.CodeBlock,{label:`Starting prompt for ${e.name}`,code:e.prompt,isWrapped:!0,copyLabel:`Copy the starting prompt for ${e.name}`,codeTestId:"join-machine-prompt",onCopied:r,onCopyFailed:o}),(0,t.jsx)(w.CrewLines,{crewLines:e.crewLines,subject:e.name,testIdPrefix:"join-machine-crew-line",onCopied:r,onCopyFailed:o}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null}),(0,t.jsx)(j.DialogFooter,{children:(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{variant:"primary"}),children:"Done"})})]})}function S(e){let{isOpen:i,onOpenChange:s,isPending:n,joined:a}=e;return(0,t.jsx)(j.Dialog,{open:i,onOpenChange:e=>{n||s(e)},children:(0,t.jsx)(j.DialogContent,{size:"md","data-testid":"join-machine-dialog",className:v.dialogSurface.phoneFullScreen,children:void 0===a?(0,t.jsx)(N,{...e}):(0,t.jsx)(k,{joined:a})})})}var T=e.i(42383),z=e.i(87792),L=e.i(90262),B=e.i(88721),I=e.i(5387),D=e.i(86413),$=e.i(18423),A=e.i(28459),O=e.i(96676),F=e.i(3979),M=e.i(78485),q=e.i(265);e.s(["default",0,function(){let e=(0,O.useNow)(),c=(0,B.useAccountMenu)(e),h=(0,D.useOpenInboxCount)(),m=(0,A.useNeedsAttention)(),u=(0,A.useAttentionCount)(),x=(0,$.useLiveFleet)(),p=(0,I.useFleetSnapshot)(),g=(0,q.useTrierarchPluginConnection)(),f=(0,q.useMachines)(),j=(0,q.useTrierarchPluginVersion)(),v=(0,q.useJoinMachine)(),b=(0,L.useAccess)(),y=(0,F.usePluginNav)(),[w,C]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[_,W]=(0,s.useState)(!1);(0,M.useSignInWhenSessionEnds)([m.error,x.error]);let H=b.canManage&&"connected"===g,P=()=>{v.reset(),C(!0)};return(0,t.jsxs)(z.ListLayout,{title:"Trierarchs",titleMeta:void 0===j?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",j]}),description:"none"===g?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:x.live,nav:{active:"trierarchs",inboxCount:h,attentionCount:u,...y},primaryAction:H?(0,t.jsx)(a.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:P,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,onCompose:b.canSend?()=>{k(!0)}:void 0,onSearch:()=>{W(!0)},account:c,banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.ConsoleNotices,{}),(0,t.jsx)(l.ConsoleGuide,{})]}),children:[(0,t.jsx)(T.MachineList,{connection:g,machines:f.data,ships:p.data??[],error:f.isError?f.error.message:void 0,onRetry:()=>{f.refetch()},onJoin:H?P:void 0,now:e}),H&&(0,t.jsx)(S,{activeNames:(p.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:w,onOpenChange:e=>{C(e),e||v.reset()},isPending:v.isPending,error:v.error?.message,joined:v.data,onSubmit:e=>{v.mutate(e)}}),(0,t.jsx)(r.ComposeMessage,{isOpen:N,onOpenChange:k}),(0,t.jsx)(o.ConsoleCommands,{isOpen:_,onOpenChange:W,onCompose:()=>{k(!0)}})]})}],27290)},91703,e=>{"use strict";var t=e.i(43476),i=e.i(83035),s=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:a,isWrapped:r=!1,copyValue:o,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:h,copyTestId:m}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(i.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:o??a,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":m})]}),(0,t.jsx)("pre",{"data-testid":h,className:(0,s.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:a})]})}])},61966,8734,e=>{"use strict";var t=e.i(43476),i=e.i(89664),s=e.i(56420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let a=(0,s.default)(n);e.s(["Copy",0,a],8734);var r=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:s,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:h,"data-testid":m}){let[u,x]=(0,r.useState)(!1);async function p(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":s,title:l?void 0:s,icon:u?(0,t.jsx)(i.Check,{"aria-hidden":!0}):(0,t.jsx)(a,{"aria-hidden":!0}),className:h,"data-testid":m,onClick:()=>{p()},children:l?u?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:u?"Copied.":""})]})}],61966)},54422,e=>{"use strict";var t=e.i(43476),i=e.i(90063),s=e.i(14695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:o}){let l=(0,s.capacityLine)(e,a);if(void 0===a||void 0===l)return(0,t.jsx)("span",{"data-testid":o,className:"text-meta text-muted-foreground",children:r});let d=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":l,"data-testid":o,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,s)=>(0,t.jsx)("span",{title:`Spot ${String(s+1)}: ${e.name}, ${e.status}`,className:(0,i.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:d},(i,s)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+s+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(s)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:l})]})}])},56478,e=>{"use strict";var t=e.i(43476),i=e.i(66616),s=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:n,testIdPrefix:a,onCopied:r,onCopyFailed:o}){return e.map(({harness:e,line:l})=>(0,t.jsx)(s.CodeBlock,{label:`Crew line, ${(0,i.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,i.harnessWord)(e)} crew line for ${n}`,codeTestId:`${a}-${e}`,copyTestId:`${a}-${e}-copy`,onCopied:r,onCopyFailed:o},e))}])},42383,94313,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(86875),n=e.i(94831),a=e.i(22016),r=e.i(14695),o=e.i(31513),l=e.i(15905),d=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(54422),y=e.i(63481);let w={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},C={alive:"Alive",silent:"Not answering","not-started":"Not started"};function N({machine:e,now:i}){let n=(0,r.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(v.Badge,{variant:"outline",className:w[n],children:["alive"===n?(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),C[n]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,j.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(a)}`:(0,j.lastSeen)(a,i).replace("Last seen","seen")]})]})}function k(e,t){let i=(0,j.relativeTime)(e,t);return"Just now"===i?"just now":i}function S({title:e,children:i,className:s}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${s??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),i]})}function T({harness:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness)]}),(0,r.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(i=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[i,i===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},i))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(i=>e.riskyFlags?.includes(i)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(g.TriangleAlert,{"aria-hidden":!0}),i,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},i):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:i},i))})]})}function z({title:e,icon:i,names:s}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===s.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):s.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[i,e]},e))]})}function L({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(z,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(z,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function B({machine:e,spots:i,location:n,now:r}){let{details:o,report:l}=e,d=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(a.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(N,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.LocationTag,{kind:n?.kind??null,description:n?.description}),null===o?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",o.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(b.CapacityBar,{spots:i,caps:o?.caps,testId:"machine-card-capacity",unknownText:null===d?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(d)}`}),null===d?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,j.fullDateTime)(d),className:"text-meta text-muted-foreground",children:["Last answer ",k(d,r)]})]}),(0,t.jsx)(S,{title:"Harnesses, options and flags",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):o.harnesses.map(e=>(0,t.jsx)(T,{harness:e},e.harness))}),(0,t.jsx)(S,{title:"Workspaces",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(L,{workspaces:o.workspaces})})]})}e.s(["HarnessOffer",0,T,"MachineCard",0,B,"MachineLiveness",0,N,"WorkspaceOffer",0,L,"lastAnswer",0,k],94313);let I=`${o.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:o,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...i})=>(0,t.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",...i,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===o||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===o.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:p?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:p,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:o.map(e=>(0,t.jsx)(B,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],42383)},87792,e=>{"use strict";var t=e.i(43476),i=e.i(19759),s=e.i(15905),n=e.i(77880),a=e.i(36779),r=e.i(15034),o=e.i(85538);e.s(["ListLayout",0,function({title:e,description:l,titleMeta:d,primaryAction:c,toolbar:h,live:m,nav:u,onCompose:x,onSearch:p,account:g,banner:f,children:j}){return(0,t.jsxs)("div",{className:"flex min-h-dvh bg-background",children:[(0,t.jsx)(a.Sidebar,{active:u.active,inboxCount:u.inboxCount,attentionCount:u.attentionCount,needsCrewCount:u.needsCrewCount,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,hasSettings:u.hasSettings,...g}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col",children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:m,onCompose:x,onSearch:p}),f,(0,t.jsx)(o.TopBar,{title:e,live:m,account:g,onSearch:p,actions:x?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:x,children:(0,t.jsx)(i.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),d]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),c?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:c}):null]}),h,j]})]}),(0,t.jsx)(r.TabBar,{active:"overview"===u.active||"needs-crew"===u.active?"fleet":"settings"===u.active?void 0:u.active,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,inboxCount:u.inboxCount,attentionCount:u.attentionCount})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69644,69846,e=>{"use strict";var t=e.i(56420);let i={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};i.node;let s=(0,t.default)(i);e.s(["FolderOpen",0,s],69644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let a=(0,t.default)(n);e.s(["GitBranch",0,a],69846)},83035,e=>{"use strict";var t=e.i(56420);let i={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};i.node;let s=(0,t.default)(i);e.s(["SquareTerminal",0,s],83035)},27290,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(71645),n=e.i(66390),a=e.i(15905),r=e.i(44824),o=e.i(45608),l=e.i(95475),d=e.i(2767);e.i(31627);var c=e.i(44827),h=e.i(22768),m=e.i(85595),u=e.i(16984),x=e.i(10818),p=e.i(90063),g=e.i(65160),f=e.i(91703),j=e.i(22212),v=e.i(94945),b=e.i(12470),y=e.i(91727),w=e.i(56478),C=e.i(17981);function N({activeNames:e,isPending:i,error:n,onSubmit:r}){let o=(0,s.useId)(),l=(0,s.useId)(),[d,h]=(0,s.useState)(""),x=(0,g.checkShipName)(d,{activeNames:e}),f="invalid"===x.kind||"reserved"===x.kind||"taken"===x.kind,v="available"===x.kind;return(0,t.jsxs)("form",{noValidate:!0,className:"contents",onSubmit:e=>{e.preventDefault(),v&&r(d)},children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:"Join a machine"}),(0,t.jsx)(j.DialogDescription,{children:"The trierarch plugin commissions a trierarch ship of this name. You then run its setup line on the machine, and the trierarch there starts sessions for the crew requests it is given."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)(y.Label,{htmlFor:o,children:"Name"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground tabular-nums",children:[d.length," / ",c.SHIP_HANDLE_MAX_LENGTH]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.Input,{id:o,isMono:!0,autoComplete:"off",autoCapitalize:"off",spellCheck:!1,placeholder:"trierarch-mac","data-testid":"join-machine-name","aria-invalid":!!f||void 0,"aria-describedby":l,className:"pr-9 max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:d,onChange:e=>{h((0,g.asHandle)(e.target.value))}}),"available"===x.kind?(0,t.jsx)(m.CircleCheck,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-tone-ok-fg"}):f?(0,t.jsx)(u.CircleX,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-destructive-text"}):null]}),(0,t.jsx)("p",{id:l,"aria-live":"polite",className:(0,p.classNames)("text-meta",f?"text-destructive-text":"text-muted-foreground"),children:x.message})]}),void 0===n?null:(0,t.jsx)(C.InlineError,{title:"Couldn’t join the machine",description:`${n} Nothing changed.`}),(0,t.jsxs)(j.DialogFooter,{children:[(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{type:"button",disabled:i}),children:"Cancel"}),(0,t.jsx)(a.Button,{type:"submit",variant:"primary",isLoading:i,disabled:!v,"data-testid":"join-machine-submit",children:i?"Joining":"Join machine"})]})]})}function k({joined:e}){let[i,n]=(0,s.useState)(!1),r=()=>{n(!1)},o=()=>{n(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsxs)(j.DialogTitle,{children:[e.name," joined"]}),(0,t.jsxs)(j.DialogDescription,{children:["Run the setup line on the machine. It installs the trierarch, which then crews ",e.name," and reports what the machine offers."]})]}),(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(x.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," It carries the ship’s secret. If you lose it, get a new starting prompt on ",e.name,"’s ship page."]})]}),(0,t.jsx)(f.CodeBlock,{label:"Setup line",code:e.setupLine,isWrapped:!0,copyLabel:`Copy the setup line for ${e.name}`,codeTestId:"join-machine-setup-line",copyTestId:"join-machine-setup-line-copy",onCopied:r,onCopyFailed:o}),(0,t.jsx)(f.CodeBlock,{label:`Starting prompt for ${e.name}`,code:e.prompt,isWrapped:!0,copyLabel:`Copy the starting prompt for ${e.name}`,codeTestId:"join-machine-prompt",onCopied:r,onCopyFailed:o}),(0,t.jsx)(w.CrewLines,{crewLines:e.crewLines,subject:e.name,testIdPrefix:"join-machine-crew-line",onCopied:r,onCopyFailed:o}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null}),(0,t.jsx)(j.DialogFooter,{children:(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{variant:"primary"}),children:"Done"})})]})}function S(e){let{isOpen:i,onOpenChange:s,isPending:n,joined:a}=e;return(0,t.jsx)(j.Dialog,{open:i,onOpenChange:e=>{n||s(e)},children:(0,t.jsx)(j.DialogContent,{size:"md","data-testid":"join-machine-dialog",className:v.dialogSurface.phoneFullScreen,children:void 0===a?(0,t.jsx)(N,{...e}):(0,t.jsx)(k,{joined:a})})})}var T=e.i(42383),z=e.i(87792),L=e.i(90262),B=e.i(88721),I=e.i(5387),D=e.i(86413),$=e.i(18423),A=e.i(28459),O=e.i(96676),F=e.i(3979),M=e.i(78485),q=e.i(265);e.s(["default",0,function(){let e=(0,O.useNow)(),c=(0,B.useAccountMenu)(e),h=(0,D.useOpenInboxCount)(),m=(0,A.useNeedsAttention)(),u=(0,A.useAttentionCount)(),x=(0,$.useLiveFleet)(),p=(0,I.useFleetSnapshot)(),g=(0,q.useTrierarchPluginConnection)(),f=(0,q.useMachines)(),j=(0,q.useTrierarchPluginVersion)(),v=(0,q.useJoinMachine)(),b=(0,L.useAccess)(),y=(0,F.usePluginNav)(),[w,C]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[_,W]=(0,s.useState)(!1);(0,M.useSignInWhenSessionEnds)([m.error,x.error]);let H=b.canManage&&"connected"===g,P=()=>{v.reset(),C(!0)};return(0,t.jsxs)(z.ListLayout,{title:"Trierarchs",titleMeta:void 0===j?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",j]}),description:"none"===g?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:x.live,nav:{active:"trierarchs",inboxCount:h,attentionCount:u,...y},primaryAction:H?(0,t.jsx)(a.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:P,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,onCompose:b.canSend?()=>{k(!0)}:void 0,onSearch:()=>{W(!0)},account:c,banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.ConsoleNotices,{}),(0,t.jsx)(l.ConsoleGuide,{})]}),children:[(0,t.jsx)(T.MachineList,{connection:g,machines:f.data,ships:p.data??[],error:f.isError?f.error.message:void 0,onRetry:()=>{f.refetch()},onJoin:H?P:void 0,now:e}),H&&(0,t.jsx)(S,{activeNames:(p.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:w,onOpenChange:e=>{C(e),e||v.reset()},isPending:v.isPending,error:v.error?.message,joined:v.data,onSubmit:e=>{v.mutate(e)}}),(0,t.jsx)(r.ComposeMessage,{isOpen:N,onOpenChange:k}),(0,t.jsx)(o.ConsoleCommands,{isOpen:_,onOpenChange:W,onCompose:()=>{k(!0)}})]})}],27290)},91703,e=>{"use strict";var t=e.i(43476),i=e.i(83035),s=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:a,isWrapped:r=!1,copyValue:o,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:h,copyTestId:m}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(i.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:o??a,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":m})]}),(0,t.jsx)("pre",{"data-testid":h,className:(0,s.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:a})]})}])},61966,8734,e=>{"use strict";var t=e.i(43476),i=e.i(89664),s=e.i(56420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let a=(0,s.default)(n);e.s(["Copy",0,a],8734);var r=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:s,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:h,"data-testid":m}){let[u,x]=(0,r.useState)(!1);async function p(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":s,title:l?void 0:s,icon:u?(0,t.jsx)(i.Check,{"aria-hidden":!0}):(0,t.jsx)(a,{"aria-hidden":!0}),className:h,"data-testid":m,onClick:()=>{p()},children:l?u?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:u?"Copied.":""})]})}],61966)},54422,e=>{"use strict";var t=e.i(43476),i=e.i(90063),s=e.i(14695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:o}){let l=(0,s.capacityLine)(e,a);if(void 0===a||void 0===l)return(0,t.jsx)("span",{"data-testid":o,className:"text-meta text-muted-foreground",children:r});let d=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":l,"data-testid":o,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,s)=>(0,t.jsx)("span",{title:`Spot ${String(s+1)}: ${e.name}, ${e.status}`,className:(0,i.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:d},(i,s)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+s+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(s)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:l})]})}])},56478,e=>{"use strict";var t=e.i(43476),i=e.i(66616),s=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:n,testIdPrefix:a,onCopied:r,onCopyFailed:o}){return e.map(({harness:e,line:l})=>(0,t.jsx)(s.CodeBlock,{label:`Crew line, ${(0,i.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,i.harnessWord)(e)} crew line for ${n}`,codeTestId:`${a}-${e}`,copyTestId:`${a}-${e}-copy`,onCopied:r,onCopyFailed:o},e))}])},42383,94313,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(86875),n=e.i(94831),a=e.i(22016),r=e.i(14695),o=e.i(31513),l=e.i(15905),d=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(54422),y=e.i(63481);let w={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},C={alive:"Alive",silent:"Not answering","not-started":"Not started"};function N({machine:e,now:i}){let n=(0,r.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(v.Badge,{variant:"outline",className:w[n],children:["alive"===n?(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),C[n]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,j.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(a)}`:(0,j.lastSeen)(a,i).replace("Last seen","seen")]})]})}function k(e,t){let i=(0,j.relativeTime)(e,t);return"Just now"===i?"just now":i}function S({title:e,children:i,className:s}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${s??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),i]})}function T({harness:e,now:i}){let s=(0,f.harnessDetection)(e,i);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness),void 0===s?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:s})]}),(0,r.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(i=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[i,i===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},i))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(i=>e.riskyFlags?.includes(i)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(g.TriangleAlert,{"aria-hidden":!0}),i,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},i):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:i},i))})]})}function z({title:e,icon:i,names:s}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===s.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):s.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[i,e]},e))]})}function L({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(z,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(z,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function B({machine:e,spots:i,location:n,now:r}){let{details:o,report:l}=e,d=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(a.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(N,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.LocationTag,{kind:n?.kind??null,description:n?.description}),null===o?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",o.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(b.CapacityBar,{spots:i,caps:o?.caps,testId:"machine-card-capacity",unknownText:null===d?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(d)}`}),null===d?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,j.fullDateTime)(d),className:"text-meta text-muted-foreground",children:["Last answer ",k(d,r)]})]}),(0,t.jsx)(S,{title:"Harnesses, options and flags",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):o.harnesses.map(e=>(0,t.jsx)(T,{harness:e,now:r},e.harness))}),(0,t.jsx)(S,{title:"Workspaces",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(L,{workspaces:o.workspaces})})]})}e.s(["HarnessOffer",0,T,"MachineCard",0,B,"MachineLiveness",0,N,"WorkspaceOffer",0,L,"lastAnswer",0,k],94313);let I=`${o.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:o,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...i})=>(0,t.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",...i,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===o||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===o.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:p?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:p,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:o.map(e=>(0,t.jsx)(B,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],42383)},87792,e=>{"use strict";var t=e.i(43476),i=e.i(19759),s=e.i(15905),n=e.i(77880),a=e.i(36779),r=e.i(15034),o=e.i(85538);e.s(["ListLayout",0,function({title:e,description:l,titleMeta:d,primaryAction:c,toolbar:h,live:m,nav:u,onCompose:x,onSearch:p,account:g,banner:f,children:j}){return(0,t.jsxs)("div",{className:"flex min-h-dvh bg-background",children:[(0,t.jsx)(a.Sidebar,{active:u.active,inboxCount:u.inboxCount,attentionCount:u.attentionCount,needsCrewCount:u.needsCrewCount,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,hasSettings:u.hasSettings,...g}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col",children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:m,onCompose:x,onSearch:p}),f,(0,t.jsx)(o.TopBar,{title:e,live:m,account:g,onSearch:p,actions:x?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:x,children:(0,t.jsx)(i.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),d]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),c?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:c}):null]}),h,j]})]}),(0,t.jsx)(r.TabBar,{active:"overview"===u.active||"needs-crew"===u.active?"fleet":"settings"===u.active?void 0:u.active,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,inboxCount:u.inboxCount,attentionCount:u.attentionCount})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),n=e.i(52245),r=e.i(33332);let a=t.createContext(void 0);function s(){let e=t.useContext(a);if(void 0===e)throw Error((0,r.default)(13));return e}let i={imageLoadingStatus:()=>null};var o=e.i(43476);let l=t.forwardRef(function(e,r){let{className:s,render:l,style:u,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,n.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:r,props:c,stateAttributesMapping:i});return(0,o.jsx)(a.Provider,{value:h,children:p})});var u=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let m={...i,...f.transitionStatusMapping},g=t.forwardRef(function(e,r){let{className:a,render:i,onLoadingStatusChange:o,keepMounted:l=!1,style:f,sizes:g,srcSet:b,src:v,...y}=e,{setImageLoadingStatus:x}=s(),[k,j]=function(e,{referrerPolicy:n,crossOrigin:r,sizes:a,srcSet:s},i){let o=t.useState("idle"),l=o[1];return(0,c.useIsoLayoutEffect)(()=>{if(!i)return p.NOOP;if(!e&&!s)return l("error"),p.NOOP;let t=!0,o=new window.Image,u=e=>()=>{t&&l(e)};return l("loading"),o.onload=u("loaded"),o.onerror=u("error"),n&&(o.referrerPolicy=n),o.crossOrigin=r??null,a&&(o.sizes=a),s&&(o.srcset=s),e&&(o.src=e),o.complete&&l(o.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[i,e,s,a,r,n,l]),o}(v,e,!l),S="loaded"===k,{mounted:w,transitionStatus:N,setMounted:C}=(0,h.useTransitionStatus)(S),I=t.useRef(null),P=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!l)return;let e=P.current;P.current=!1;let t=I.current;if(!t)return;if(!t.complete)return void j("loading");let n=t.naturalWidth>0?"loaded":"error";j(n),"loaded"===n&&e&&C(!0)},[l,v,b,g,y.crossOrigin,y.referrerPolicy,i,j,C]);let E=l?{"data-loading":"loading"===k?"":void 0,"data-error":"error"===k?"":void 0,"aria-hidden":"loaded"!==k||void 0,onLoad(){j("loaded")},onError(){j("error")}}:void 0,O=(0,u.useStableCallback)(e=>{o?.(e),x(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==k&&O(k)},[k,O]),(0,c.useIsoLayoutEffect)(()=>()=>x("idle"),[x]),(0,d.useOpenChangeComplete)({enabled:!S,open:S,ref:I,onComplete(){S||C(!1)}});let A=l||w,L={};void 0!==g&&(L.sizes=g),void 0!==b&&(L.srcSet=b),void 0!==v&&(L.src=v);let M=(0,n.useRenderElement)("img",e,{state:{imageLoadingStatus:k,transitionStatus:l&&"ending"===N?void 0:N},ref:[r,I],props:[E,y,L],stateAttributesMapping:m,enabled:A});return A?M:null});var b=e.i(39957);let v=t.forwardRef(function(e,r){let{className:a,render:o,delay:l=0,style:u,...c}=e,{imageLoadingStatus:d}=s(),[f,h]=t.useState(0===l),p=(0,b.useTimeout)();return t.useEffect(()=>(l>0?p.start(l,()=>h(!0)):h(!0),p.clear),[p,l]),(0,n.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:r,props:c,stateAttributesMapping:i,enabled:"loaded"!==d&&(0===l||f)})});e.s(["Fallback",0,v,"Image",0,g,"Root",0,l],14751);var y=e.i(14751);e.s(["Avatar",0,y],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let n={[t.startingStyle]:""},r={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?r:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),n=e.i(67865),r=e.i(74080),a=e.i(8445),s=e.i(94603),i=e.i(80862);let o=null;function l(e,t=!1,u=!1){let c=(0,a.useAnimationFrame)();return(0,n.useStableCallback)((n,a=null)=>{c.cancel();let l=(0,s.resolveRef)(e);if(null==l)return;let d=()=>{if(!u)return void r.flushSync(n);if(!o){let e=[];o=e,queueMicrotask(()=>{o=null,r.flushSync(()=>{for(let t of e)t()})})}o.push(()=>{a?.aborted||n()})};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function f(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||d()},()=>{a?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=i.startingStyle;if(!l.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),f())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void a?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,l],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:r=!0,open:a,ref:s,batch:i=!1,onComplete:o}=e,u=(0,n.useStableCallback)(o),c=l(s,a,i);t.useEffect(()=>{if(!r)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[r,a,u,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),n=e.i(46376),r=e.i(8445);e.s(["useTransitionStatus",0,function(e,a=!1,s=!1,i=!1){let[o,l]=t.useState(e&&a?"idle":void 0),[u,c]=t.useState(e&&!i);return e&&!u&&(c(!0),l("starting")),e||!u||"ending"===o||s||l("ending"),e||u||"ending"!==o||l(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&u&&"ending"!==o&&s){let e=r.AnimationFrame.request(()=>{l("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,u,o,s]),(0,n.useIsoLayoutEffect)(()=>{if(!e||a)return;let t=r.AnimationFrame.request(()=>{l(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[a,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!a)return;e&&u&&"idle"!==o&&l("starting");let t=r.AnimationFrame.request(()=>{l("idle")});return()=>{r.AnimationFrame.cancel(t)}},[a,e,u,o]),{mounted:u,setMounted:c,transitionStatus:o}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),n=e.i(26300);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class a{static create(){return new a}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,a,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(a.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),n=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,n.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),n=e.i(26300);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},92150,e=>{"use strict";var t=e.i(56420);let n={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};n.node;let r=(0,t.default)(n);e.s(["Boxes",0,r],92150)},49287,e=>{"use strict";var t=e.i(56420);let n={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};n.node;let r=(0,t.default)(n);e.s(["Ship",0,r],49287)},94831,e=>{"use strict";var t=e.i(56420);let n={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};n.node;let r=(0,t.default)(n);e.s(["Unplug",0,r],94831)},22016,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return y}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let s=e.r(90809),i=e.r(43476),o=s._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function b(t){var n;let r,a,s,[b,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:k,as:j,children:S,prefetch:w=null,passHref:N,replace:C,shallow:I,scroll:P,onClick:E,onMouseEnter:O,onTouchStart:A,legacyBehavior:L=!1,onNavigate:M,transitionTypes:_,ref:R,unstable_dynamicOnHover:T,...z}=t;r=S,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let $=o.default.useContext(u.AppRouterContext),F=!1!==w,q=!1===w?"none":!0===w?"full":"auto",B="none"!==q?"auto"===q?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,U="string"==typeof(n=j||k)?n:(0,l.formatUrl)(n);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(r)}let W=L?a&&"object"==typeof a&&a.ref:R,D,V=o.default.useCallback(e=>(null!==$&&(x.current=(0,p.mountLinkInstance)(e,U,$,B,F,y,D)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,$,B,y,D]),K={ref:(0,c.useMergedRef)(V,W),onClick(t){L||"function"!=typeof E||E(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,n,r,a,s,i,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(n)){a&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);o.default.startTransition(()=>{f(n,a?"replace":"push",!1===s?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,r.current,l,u)})}}(t,U,x,C,P,M,_,q)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)},onTouchStart:function(e){L||"function"!=typeof A||A(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:L&&!N&&("a"!==a.type||"href"in a.props)||(K.href=(0,f.addBasePath)(U)),s=L?o.default.cloneElement(a,K):(0,i.jsx)("a",{...z,...K,children:r}),(0,i.jsx)(v.Provider,{value:b,children:s})}let v=(0,o.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(v);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return a}});let r=e.r(71645);function a(e,t){let n=(0,r.useRef)(null),a=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(n.current=s(e,r)),t&&(a.current=s(t,r))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18967,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return j}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=e.r(18967),a=e.r(52817);function s(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,a.hasBasePath)(n.pathname)}catch(e){return!1}}},98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});function s(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,i(e));else t.set(n,i(r));return t}function l(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},95057,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let s=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",a=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||i.test(r))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${a}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},94859,26478,e=>{"use strict";var t=e.i(43476),n=e.i(52376),r=e.i(25913),a=e.i(49287),s=e.i(56420);let i={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};i.node;let o=(0,s.default)(i);e.s(["UserRound",0,o],26478);var l=e.i(90063);let u=(0,r.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:r,name:s="",className:i}){let c=e??"ship";return(0,t.jsx)(n.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,l.classNames)(u({kind:e,size:r}),i),children:(0,t.jsx)(n.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(a.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(o,{"aria-hidden":!0}):s.replaceAll("-","").slice(0,2)})})}],94859)},95960,e=>{"use strict";var t=e.i(43476),n=e.i(92150),r=e.i(49287),a=e.i(86875),s=e.i(63676),i=e.i(90063);let o={"trierarch-plugin":a.ShipWheel,squadrons:n.Boxes,ship:r.Ship};e.s(["LabelChip",0,function({chip:e,onRemove:n,testId:r,className:a,trailing:l}){let u="none"===e.mark?null:o[e.mark],c=`${e.key}=${e.value}`,d="none"===e.mark?"you":e.ownerName;return(0,t.jsxs)("span",{"data-slot":"label-chip","data-testid":r,title:`${c}, by ${d}`,className:(0,i.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",a),children:[null===u?null:(0,t.jsx)(u,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),l,void 0===n?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${c}`,onClick:n,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(s.X,{"aria-hidden":!0})})]})}])},10649,78608,87851,4032,e=>{"use strict";e.i(31627);var t=e.i(9677),n=e.i(83615),r=e.i(14695);function a(e,t){for(let n of t)e.includes(n)||e.push(n)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function i(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[n]=e?.folders??[];return void 0===n?void 0:{kind:"folder",name:n}}function o(e){let[t]=e;return{harness:t?.harness??"",workspace:i(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let l=new TextEncoder;function u(e){return l.encode(e).byteLength}function c(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,c,"defaultValues",0,o,"offersOf",0,function(e){let t=[];for(let n of e)if(!n.isSilent&&null!==n.details)for(let e of n.details.harnesses){let s=t.find(t=>t.harness===e.harness);for(let i of(void 0===s&&(s={harness:e.harness,repositories:[],folders:[],options:[]},t.push(s)),a(s.repositories,n.details.workspaces.repositories),a(s.folders,n.details.workspaces.folders),(0,r.harnessOptions)(e.options))){let e=s.options.find(e=>e.name===i.name);void 0===e?s.options.push({...i,values:[...i.values]}):(a(e.values,i.values),e.defaultValue??=i.defaultValue)}}return t},"promptBytes",0,u,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels.flatMap(e=>{let t=(0,n.idSchema)("labelValue").safeParse(e);return t.success?[t.data]:[]})}}},"settingsRows",0,function(e){let n=t.crewSettingsSchema.safeParse(e);if(!n.success)return;let{harness:r,workspace:a,options:s,firstPrompt:i,squadron:o}=n.data;return[{label:"Harness",value:r??"Trierarch default"},"worktree"===a.kind?{label:"Workspace",value:a.repository,meta:"New worktree"}:{label:"Workspace",value:a.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===i?null:c(u(i))},{label:"Squadron",value:o??null,isMono:!0}]},"valuesOf",0,function(e,n){let r=t.crewSettingsSchema.safeParse(e);if(!r.success)return o(n);let{harness:a,workspace:s,options:i,firstPrompt:l,squadron:u,machineLabels:c}=r.data;return{harness:a??o(n).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(i).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:l??"",squadron:u??"",machineLabels:[...c??[]]}},"withHarness",0,function(e,t){let{harness:n,offers:r}=t,a=r.find(e=>e.harness===n),o=e.workspace,l=void 0!==o&&("worktree"===o.kind?a?.repositories.includes(o.repository)??!1:a?.folders.includes(o.name)??!1);return{...e,harness:n,workspace:l?o:i(a),options:s(a)}}],10649);var d=e.i(80581);function f(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}function h(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}e.s(["machineLabelIdsOf",0,function(e){let n=t.crewSettingsSchema.safeParse(e);return n.success?[...n.data.machineLabels??[]]:[]},"machineLabelsInputOf",0,function(e,t){return{groups:function(e,t){let n=t.map(t=>f(e,t)),r=[],a=[];for(let t of e.labels){let s=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:n.filter(t=>t.includes(e.id)).length})),i={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:s};(s.some(e=>e.shipCount>0)?r:a).push(i)}let s=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:r.toSorted(s)},{title:"On no machine yet",keys:a.toSorted(s)}].filter(e=>e.keys.length>0)}(e,t),chipsOf:t=>(0,d.pickedChips)(t,e),matchOf:n=>{var r;return{matching:(r={machines:t,valueIds:n}).machines.filter(t=>{let n=f(e,t);return r.valueIds.every(e=>n.includes(e))}).map(e=>e.name),total:r.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,h],78608);var p=e.i(43476),m=e.i(93669),g=e.i(22768),b=e.i(74544),v=e.i(77071),y=e.i(63676),x=e.i(22016),k=e.i(71645),j=e.i(15905),S=e.i(6734),w=e.i(95960),N=e.i(92150),C=e.i(24071),I=e.i(67927),P=e.i(66595),E=e.i(49287),O=e.i(86875),A=e.i(90063),L=e.i(12470);let M={"trierarch-plugin":O.ShipWheel,squadrons:N.Boxes,ship:E.Ship};function _(e,t){return`${String(e)} ${1===e?t:`${t}s`}`}function R({groups:e,pickedValueIds:t,onPick:n,size:r="sm",pickedWord:a="Picked",countWord:s="ship"}){let[i,o]=(0,k.useState)(""),[l,u]=(0,k.useState)(void 0),c="touch"===r,d=(0,A.classNames)("flex w-full items-center gap-2 rounded-sm px-2 text-left hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50",c?"min-h-(--size-control-touch) text-body-touch":"h-(--size-control-sm) text-body");if(void 0!==l)return(0,p.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"label-picker-values",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between gap-2 px-1 pb-1",children:[(0,p.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 font-mono text-body hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{u(void 0)},"aria-label":`Back to the keys, from ${l.key}`,children:[(0,p.jsx)(C.ChevronLeft,{"aria-hidden":!0}),l.key,"="]}),(0,p.jsxs)("span",{className:"text-meta text-muted-foreground",children:["ship"===s?"Ships":"Machines"," with each"]})]}),(0,p.jsx)("ul",{className:"flex flex-col",children:l.values.map(e=>{let r=t.includes(e.valueId);return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",className:d,disabled:r,"data-testid":"label-picker-value",onClick:()=>{n(e.valueId),u(void 0),o("")},children:[(0,p.jsx)("span",{className:"min-w-0 grow truncate font-mono",children:e.value}),(0,p.jsx)("span",{className:"shrink-0 text-meta text-muted-foreground tabular-nums",children:r?a:_(e.shipCount,s)})]})},e.valueId)})})]});let f=i.trim().toLowerCase(),h=e.map(e=>({...e,keys:e.keys.filter(e=>""===f||e.key.includes(f))})).filter(e=>e.keys.length>0);return(0,p.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"label-picker",children:[(0,p.jsx)(L.Input,{type:"search","aria-label":"Find a key",placeholder:"Find a key",size:c?"touch":"md",leadingIcon:(0,p.jsx)(P.Search,{}),value:i,onChange:e=>{o(e.target.value)}}),0===h.length?(0,p.jsx)("p",{className:"px-2 py-3 text-meta text-muted-foreground",children:0===e.length?"The fleet has no labels yet.":`No key matches “${i.trim()}”.`}):h.map(e=>(0,p.jsxs)("div",{className:"flex flex-col",children:[(0,p.jsx)("span",{className:"px-2 pt-1 pb-0.5 text-caption text-muted-foreground",children:e.title}),(0,p.jsx)("ul",{className:"flex flex-col",children:e.keys.map(e=>{let t="none"===e.mark?null:M[e.mark];return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",className:(0,A.classNames)(d,"[&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground"),"data-testid":"label-picker-key",onClick:()=>{u(e)},children:[null===t?null:(0,p.jsx)(t,{"aria-hidden":!0}),(0,p.jsx)("span",{className:"font-mono",children:e.key}),(0,p.jsx)("span",{className:"min-w-0 grow truncate text-meta text-muted-foreground",children:_(e.values.length,"value")}),(0,p.jsx)(I.ChevronRight,{"aria-hidden":!0})]})},e.labelId)})})]},e.title))]})}function T({groups:e,picked:t,isDisabled:n,onAdd:r}){let[a,s]=(0,k.useState)(!1);return(0,p.jsxs)(S.Popover,{open:a,onOpenChange:s,children:[(0,p.jsx)(S.PopoverTrigger,{render:(0,p.jsx)(j.Button,{type:"button",variant:"ghost",size:"xs",icon:(0,p.jsx)(v.Plus,{}),disabled:n,"data-testid":"machine-labels-add"}),children:"Add label"}),(0,p.jsxs)(S.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"machine-labels-popover",children:[(0,p.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Machine label"}),(0,p.jsx)(R,{groups:e,pickedValueIds:t.map(e=>e.valueId),countWord:"machine",onPick:e=>{s(!1),r(e)}}),(0,p.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,p.jsx)(x.default,{href:"/labels",className:"font-medium text-foreground hover:underline",children:"Manage labels"})]})]})]})}e.s(["LabelPicker",0,R],87851),e.s(["MachineLabelsField",0,function({shipName:e,picked:t,groups:n,match:r,isDisabled:a,onAdd:s,onRemove:i,unknown:o=[],onRemoveUnknown:l}){let u=h(t.length);return(0,p.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"machine-labels",children:[(0,p.jsxs)("span",{className:"text-body font-medium",children:["Machine labels",(0,p.jsx)("span",{className:"font-normal text-muted-foreground",children:" optional"})]}),(0,p.jsxs)("div",{className:"flex min-h-(--size-control-sm) flex-wrap items-center gap-1.5",children:[0===t.length?(0,p.jsx)("span",{className:"text-meta text-muted-foreground",children:"Any machine"}):null,t.map((e,t)=>(0,p.jsxs)(k.Fragment,{children:[0===t?null:(0,p.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,p.jsx)(w.LabelChip,{chip:e,testId:"machine-label",...a?{}:{onRemove:()=>{i(e.valueId)}}})]},e.valueId)),o.map(e=>(0,p.jsxs)("span",{"data-testid":"machine-label-unknown",title:`${e}: not in this fleet`,className:"inline-flex h-5.5 items-center gap-1 rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 font-mono text-id text-tone-attention-fg [&_svg]:size-3",children:[(0,p.jsx)(g.CircleAlert,{"aria-hidden":!0}),e,void 0===l||a?null:(0,p.jsx)("button",{type:"button","aria-label":`Remove ${e}`,onClick:()=>{l(e)},className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",children:(0,p.jsx)(y.X,{"aria-hidden":!0})})]},e)),t.length+o.length>=m.SHIP_LABELS_MAX?null:(0,p.jsx)(T,{groups:n,picked:t,isDisabled:a,onAdd:s})]}),0===o.length?null:(0,p.jsxs)("p",{role:"alert","data-testid":"machine-labels-unknown-note",className:"text-meta text-tone-attention-fg",children:["Not in this fleet: ",o.join(", "),". Forming refuses ",1===o.length?"it":"them",": define ",1===o.length?"it":"them"," on the Labels page, or remove ",1===o.length?"it":"them"," here."]}),0===t.length?null:0===r.matching.length?(0,p.jsxs)("p",{role:"status","data-testid":"machine-labels-match",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,p.jsx)(b.Clock,{"aria-hidden":!0}),(0,p.jsxs)("span",{children:["No machine matches ",u.these,". You can still request: it waits on Needs crew until a machine ",u.carries,"."]})]}):(0,p.jsxs)("p",{className:"text-meta","data-testid":"machine-labels-match",children:["Matches ",r.matching.length," of ",r.total," ",1===r.total?"machine":"machines",": ",r.matching.join(", "),"."]}),(0,p.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The plugin places ",e," only on a machine that carries every label here. Leave it empty for any machine."]})]})}],4032)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,n])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),n=e.i(52245),r=e.i(33332);let i=t.createContext(void 0);function s(){let e=t.useContext(i);if(void 0===e)throw Error((0,r.default)(13));return e}let a={imageLoadingStatus:()=>null};var o=e.i(43476);let l=t.forwardRef(function(e,r){let{className:s,render:l,style:u,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,n.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:r,props:c,stateAttributesMapping:a});return(0,o.jsx)(i.Provider,{value:h,children:p})});var u=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let m={...a,...f.transitionStatusMapping},g=t.forwardRef(function(e,r){let{className:i,render:a,onLoadingStatusChange:o,keepMounted:l=!1,style:f,sizes:g,srcSet:b,src:v,...y}=e,{setImageLoadingStatus:x}=s(),[k,j]=function(e,{referrerPolicy:n,crossOrigin:r,sizes:i,srcSet:s},a){let o=t.useState("idle"),l=o[1];return(0,c.useIsoLayoutEffect)(()=>{if(!a)return p.NOOP;if(!e&&!s)return l("error"),p.NOOP;let t=!0,o=new window.Image,u=e=>()=>{t&&l(e)};return l("loading"),o.onload=u("loaded"),o.onerror=u("error"),n&&(o.referrerPolicy=n),o.crossOrigin=r??null,i&&(o.sizes=i),s&&(o.srcset=s),e&&(o.src=e),o.complete&&l(o.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[a,e,s,i,r,n,l]),o}(v,e,!l),w="loaded"===k,{mounted:S,transitionStatus:C,setMounted:N}=(0,h.useTransitionStatus)(w),I=t.useRef(null),P=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!l)return;let e=P.current;P.current=!1;let t=I.current;if(!t)return;if(!t.complete)return void j("loading");let n=t.naturalWidth>0?"loaded":"error";j(n),"loaded"===n&&e&&N(!0)},[l,v,b,g,y.crossOrigin,y.referrerPolicy,a,j,N]);let E=l?{"data-loading":"loading"===k?"":void 0,"data-error":"error"===k?"":void 0,"aria-hidden":"loaded"!==k||void 0,onLoad(){j("loaded")},onError(){j("error")}}:void 0,O=(0,u.useStableCallback)(e=>{o?.(e),x(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==k&&O(k)},[k,O]),(0,c.useIsoLayoutEffect)(()=>()=>x("idle"),[x]),(0,d.useOpenChangeComplete)({enabled:!w,open:w,ref:I,onComplete(){w||N(!1)}});let A=l||S,L={};void 0!==g&&(L.sizes=g),void 0!==b&&(L.srcSet=b),void 0!==v&&(L.src=v);let M=(0,n.useRenderElement)("img",e,{state:{imageLoadingStatus:k,transitionStatus:l&&"ending"===C?void 0:C},ref:[r,I],props:[E,y,L],stateAttributesMapping:m,enabled:A});return A?M:null});var b=e.i(39957);let v=t.forwardRef(function(e,r){let{className:i,render:o,delay:l=0,style:u,...c}=e,{imageLoadingStatus:d}=s(),[f,h]=t.useState(0===l),p=(0,b.useTimeout)();return t.useEffect(()=>(l>0?p.start(l,()=>h(!0)):h(!0),p.clear),[p,l]),(0,n.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:r,props:c,stateAttributesMapping:a,enabled:"loaded"!==d&&(0===l||f)})});e.s(["Fallback",0,v,"Image",0,g,"Root",0,l],14751);var y=e.i(14751);e.s(["Avatar",0,y],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let n={[t.startingStyle]:""},r={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?r:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),n=e.i(67865),r=e.i(74080),i=e.i(8445),s=e.i(94603),a=e.i(80862);let o=null;function l(e,t=!1,u=!1){let c=(0,i.useAnimationFrame)();return(0,n.useStableCallback)((n,i=null)=>{c.cancel();let l=(0,s.resolveRef)(e);if(null==l)return;let d=()=>{if(!u)return void r.flushSync(n);if(!o){let e=[];o=e,queueMicrotask(()=>{o=null,r.flushSync(()=>{for(let t of e)t()})})}o.push(()=>{i?.aborted||n()})};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function f(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||d()},()=>{i?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=a.startingStyle;if(!l.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),f())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,l],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:r=!0,open:i,ref:s,batch:a=!1,onComplete:o}=e,u=(0,n.useStableCallback)(o),c=l(s,i,a);t.useEffect(()=>{if(!r)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[r,i,u,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),n=e.i(46376),r=e.i(8445);e.s(["useTransitionStatus",0,function(e,i=!1,s=!1,a=!1){let[o,l]=t.useState(e&&i?"idle":void 0),[u,c]=t.useState(e&&!a);return e&&!u&&(c(!0),l("starting")),e||!u||"ending"===o||s||l("ending"),e||u||"ending"!==o||l(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&u&&"ending"!==o&&s){let e=r.AnimationFrame.request(()=>{l("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,u,o,s]),(0,n.useIsoLayoutEffect)(()=>{if(!e||i)return;let t=r.AnimationFrame.request(()=>{l(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[i,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!i)return;e&&u&&"idle"!==o&&l("starting");let t=r.AnimationFrame.request(()=>{l("idle")});return()=>{r.AnimationFrame.cancel(t)}},[i,e,u,o]),{mounted:u,setMounted:c,transitionStatus:o}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),n=e.i(26300);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,i,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(i.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),n=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,n.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),n=e.i(26300);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},92150,e=>{"use strict";var t=e.i(56420);let n={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};n.node;let r=(0,t.default)(n);e.s(["Boxes",0,r],92150)},49287,e=>{"use strict";var t=e.i(56420);let n={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};n.node;let r=(0,t.default)(n);e.s(["Ship",0,r],49287)},94831,e=>{"use strict";var t=e.i(56420);let n={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};n.node;let r=(0,t.default)(n);e.s(["Unplug",0,r],94831)},22016,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return y}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(90809),a=e.r(43476),o=s._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function b(t){var n;let r,i,s,[b,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:k,as:j,children:w,prefetch:S=null,passHref:C,replace:N,shallow:I,scroll:P,onClick:E,onMouseEnter:O,onTouchStart:A,legacyBehavior:L=!1,onNavigate:M,transitionTypes:_,ref:R,unstable_dynamicOnHover:T,...z}=t;r=w,L&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let $=o.default.useContext(u.AppRouterContext),F=!1!==S,q=!1===S?"none":!0===S?"full":"auto",B="none"!==q?"auto"===q?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,U="string"==typeof(n=j||k)?n:(0,l.formatUrl)(n);if(L){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=o.default.Children.only(r)}let D=L?i&&"object"==typeof i&&i.ref:R,W,V=o.default.useCallback(e=>(null!==$&&(x.current=(0,p.mountLinkInstance)(e,U,$,B,F,y,W)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,$,B,y,W]),K={ref:(0,c.useMergedRef)(V,D),onClick(t){L||"function"!=typeof E||E(t),L&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!$||t.defaultPrevented||function(t,n,r,i,s,a,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(n)){i&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);o.default.startTransition(()=>{f(n,i?"replace":"push",!1===s?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,r.current,l,u)})}}(t,U,x,N,P,M,_,q)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)},onTouchStart:function(e){L||"function"!=typeof A||A(e),L&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),$&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:L&&!C&&("a"!==i.type||"href"in i.props)||(K.href=(0,f.addBasePath)(U)),s=L?o.default.cloneElement(i,K):(0,a.jsx)("a",{...z,...K,children:r}),(0,a.jsx)(v.Provider,{value:b,children:s})}let v=(0,o.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,o.useContext)(v);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(71645);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=s(e,r)),t&&(i.current=s(t,r))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18967,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return y},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return j}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class v extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=e.r(18967),i=e.r(52817);function s(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},98183,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});function s(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,a(e));else t.set(n,a(r));return t}function l(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},95057,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let s=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||a.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${i}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},94859,26478,e=>{"use strict";var t=e.i(43476),n=e.i(52376),r=e.i(25913),i=e.i(49287),s=e.i(56420);let a={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};a.node;let o=(0,s.default)(a);e.s(["UserRound",0,o],26478);var l=e.i(90063);let u=(0,r.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:r,name:s="",className:a}){let c=e??"ship";return(0,t.jsx)(n.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,l.classNames)(u({kind:e,size:r}),a),children:(0,t.jsx)(n.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(i.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(o,{"aria-hidden":!0}):s.replaceAll("-","").slice(0,2)})})}],94859)},95960,e=>{"use strict";var t=e.i(43476),n=e.i(92150),r=e.i(49287),i=e.i(86875),s=e.i(63676),a=e.i(90063);let o={"trierarch-plugin":i.ShipWheel,squadrons:n.Boxes,ship:r.Ship};e.s(["LabelChip",0,function({chip:e,onRemove:n,testId:r,className:i,trailing:l}){let u="none"===e.mark?null:o[e.mark],c=`${e.key}=${e.value}`,d="none"===e.mark?"you":e.ownerName;return(0,t.jsxs)("span",{"data-slot":"label-chip","data-testid":r,title:`${c}, by ${d}`,className:(0,a.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",i),children:[null===u?null:(0,t.jsx)(u,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),l,void 0===n?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${c}`,onClick:n,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(s.X,{"aria-hidden":!0})})]})}])},10649,78608,87851,4032,e=>{"use strict";e.i(31627);var t=e.i(9677),n=e.i(83615),r=e.i(14695);function i(e,t){for(let n of t)e.includes(n)||e.push(n)}function s(e){return Object.fromEntries((e?.options??[]).flatMap(e=>{let t=e.defaultValue??e.values[0];return void 0===t?[]:[[e.name,t]]}))}function a(e){let[t]=e?.repositories??[];if(void 0!==t)return{kind:"worktree",repository:t};let[n]=e?.folders??[];return void 0===n?void 0:{kind:"folder",name:n}}function o(e){let[t]=e;return{harness:t?.harness??"",workspace:a(t),options:s(t),firstPrompt:"",squadron:"",machineLabels:[]}}let l=new TextEncoder;function u(e){return l.encode(e).byteLength}function c(e){return e<1024?`${String(e)} B`:`${(e/1024).toFixed(1).replace(/\.0$/,"")} KB`}e.s(["byteSize",0,c,"defaultValues",0,o,"offersOf",0,function(e){let t=[];for(let n of e)if(!n.isSilent&&null!==n.details)for(let e of n.details.harnesses){let s=t.find(t=>t.harness===e.harness);for(let a of(void 0===s&&(s={harness:e.harness,repositories:[],folders:[],options:[]},t.push(s)),i(s.repositories,n.details.workspaces.repositories),i(s.folders,n.details.workspaces.folders),(0,r.harnessOptions)(e.options))){let e=s.options.find(e=>e.name===a.name);void 0===e?s.options.push({...a,values:[...a.values]}):(i(e.values,a.values),e.defaultValue??=a.defaultValue)}}return t},"promptBytes",0,u,"settingsOf",0,function(e){if(""!==e.harness&&void 0!==e.workspace)return{harness:e.harness,workspace:e.workspace,options:e.options,...""===e.firstPrompt?{}:{firstPrompt:e.firstPrompt},...""===e.squadron?{}:{squadron:e.squadron},...0===e.machineLabels.length?{}:{machineLabels:e.machineLabels.flatMap(e=>{let t=(0,n.idSchema)("labelValue").safeParse(e);return t.success?[t.data]:[]})}}},"settingsRows",0,function(e){let n=t.crewSettingsSchema.safeParse(e);if(!n.success)return;let{harness:r,workspace:i,options:s,firstPrompt:a,squadron:o}=n.data;return[{label:"Harness",value:r??"Trierarch default"},"worktree"===i.kind?{label:"Workspace",value:i.repository,meta:"New worktree"}:{label:"Workspace",value:i.name,meta:"Folder, as it is"},...Object.entries(s).map(([e,t])=>({label:e,value:"string"==typeof t?t:JSON.stringify(t),isMono:!0})),{label:"First prompt",value:void 0===a?null:c(u(a))},{label:"Squadron",value:o??null,isMono:!0}]},"valuesOf",0,function(e,n){let r=t.crewSettingsSchema.safeParse(e);if(!r.success)return o(n);let{harness:i,workspace:s,options:a,firstPrompt:l,squadron:u,machineLabels:c}=r.data;return{harness:i??o(n).harness,workspace:"worktree"===s.kind?{kind:"worktree",repository:s.repository}:{kind:"folder",name:s.name},options:Object.fromEntries(Object.entries(a).flatMap(([e,t])=>"string"==typeof t?[[e,t]]:[])),firstPrompt:l??"",squadron:u??"",machineLabels:[...c??[]]}},"withHarness",0,function(e,t){let{harness:n,offers:r}=t,i=r.find(e=>e.harness===n),o=e.workspace,l=void 0!==o&&("worktree"===o.kind?i?.repositories.includes(o.repository)??!1:i?.folders.includes(o.name)??!1);return{...e,harness:n,workspace:l?o:a(i),options:s(i)}}],10649);var d=e.i(80581);function f(e,t){return e.ships.find(e=>e.id===t.shipId)?.labels.map(e=>e.valueId)??[]}function h(e){return 1===e?{these:"this label",carries:"carries it"}:2===e?{these:"both",carries:"carries both"}:{these:"these labels",carries:"carries them all"}}e.s(["machineLabelIdsOf",0,function(e){let n=t.crewSettingsSchema.safeParse(e);return n.success?[...n.data.machineLabels??[]]:[]},"machineLabelsInputOf",0,function(e,t){return{groups:function(e,t){let n=t.map(t=>f(e,t)),r=[],i=[];for(let t of e.labels){let s=t.values.map(e=>({valueId:e.id,value:e.value,shipCount:n.filter(t=>t.includes(e.id)).length})),a={labelId:t.id,key:t.key,mark:e.ownerOf.get(t.id)?.mark??"ship",values:s};(s.some(e=>e.shipCount>0)?r:i).push(a)}let s=(e,t)=>e.key.localeCompare(t.key);return[{title:"On machines",keys:r.toSorted(s)},{title:"On no machine yet",keys:i.toSorted(s)}].filter(e=>e.keys.length>0)}(e,t),chipsOf:t=>(0,d.pickedChips)(t,e),matchOf:n=>{var r;return{matching:(r={machines:t,valueIds:n}).machines.filter(t=>{let n=f(e,t);return r.valueIds.every(e=>n.includes(e))}).map(e=>e.name),total:r.machines.length}}}},"machineLabelsText",0,function(e){let t=e.map(e=>`${e.key}=${e.value}`);return t.length<=2?t.join(" and "):`${t.slice(0,-1).join(", ")} and ${t.at(-1)??""}`},"noMatchWords",0,h],78608);var p=e.i(43476),m=e.i(93669),g=e.i(22768),b=e.i(74544),v=e.i(77071),y=e.i(63676),x=e.i(22016),k=e.i(71645),j=e.i(15905),w=e.i(6734),S=e.i(95960),C=e.i(92150),N=e.i(24071),I=e.i(67927),P=e.i(66595),E=e.i(49287),O=e.i(86875),A=e.i(90063),L=e.i(12470);let M={"trierarch-plugin":O.ShipWheel,squadrons:C.Boxes,ship:E.Ship};function _(e,t){return`${String(e)} ${1===e?t:`${t}s`}`}function R({groups:e,pickedValueIds:t,onPick:n,size:r="sm",pickedWord:i="Picked",countWord:s="ship"}){let[a,o]=(0,k.useState)(""),[l,u]=(0,k.useState)(void 0),c="touch"===r,d=(0,A.classNames)("flex w-full items-center gap-2 rounded-sm px-2 text-left hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50",c?"min-h-(--size-control-touch) text-body-touch":"h-(--size-control-sm) text-body");if(void 0!==l)return(0,p.jsxs)("div",{className:"flex flex-col gap-1","data-testid":"label-picker-values",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between gap-2 px-1 pb-1",children:[(0,p.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-sm px-1 font-mono text-body hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",onClick:()=>{u(void 0)},"aria-label":`Back to the keys, from ${l.key}`,children:[(0,p.jsx)(N.ChevronLeft,{"aria-hidden":!0}),l.key,"="]}),(0,p.jsxs)("span",{className:"text-meta text-muted-foreground",children:["ship"===s?"Ships":"Machines"," with each"]})]}),(0,p.jsx)("ul",{className:"flex flex-col",children:l.values.map(e=>{let r=t.includes(e.valueId);return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",className:d,disabled:r,"data-testid":"label-picker-value",onClick:()=>{n(e.valueId),u(void 0),o("")},children:[(0,p.jsx)("span",{className:"min-w-0 grow truncate font-mono",children:e.value}),(0,p.jsx)("span",{className:"shrink-0 text-meta text-muted-foreground tabular-nums",children:r?i:_(e.shipCount,s)})]})},e.valueId)})})]});let f=a.trim().toLowerCase(),h=e.map(e=>({...e,keys:e.keys.filter(e=>""===f||e.key.includes(f))})).filter(e=>e.keys.length>0);return(0,p.jsxs)("div",{className:"flex flex-col gap-2","data-testid":"label-picker",children:[(0,p.jsx)(L.Input,{type:"search","aria-label":"Find a key",placeholder:"Find a key",size:c?"touch":"md",leadingIcon:(0,p.jsx)(P.Search,{}),value:a,onChange:e=>{o(e.target.value)}}),0===h.length?(0,p.jsx)("p",{className:"px-2 py-3 text-meta text-muted-foreground",children:0===e.length?"The fleet has no labels yet.":`No key matches “${a.trim()}”.`}):h.map(e=>(0,p.jsxs)("div",{className:"flex flex-col",children:[(0,p.jsx)("span",{className:"px-2 pt-1 pb-0.5 text-caption text-muted-foreground",children:e.title}),(0,p.jsx)("ul",{className:"flex flex-col",children:e.keys.map(e=>{let t="none"===e.mark?null:M[e.mark];return(0,p.jsx)("li",{children:(0,p.jsxs)("button",{type:"button",className:(0,A.classNames)(d,"[&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground"),"data-testid":"label-picker-key",onClick:()=>{u(e)},children:[null===t?null:(0,p.jsx)(t,{"aria-hidden":!0}),(0,p.jsx)("span",{className:"font-mono",children:e.key}),(0,p.jsx)("span",{className:"min-w-0 grow truncate text-meta text-muted-foreground",children:_(e.values.length,"value")}),(0,p.jsx)(I.ChevronRight,{"aria-hidden":!0})]})},e.labelId)})})]},e.title))]})}function T({groups:e,picked:t,isDisabled:n,onAdd:r}){let[i,s]=(0,k.useState)(!1);return(0,p.jsxs)(w.Popover,{open:i,onOpenChange:s,children:[(0,p.jsx)(w.PopoverTrigger,{render:(0,p.jsx)(j.Button,{type:"button",variant:"ghost",size:"xs",icon:(0,p.jsx)(v.Plus,{}),disabled:n,"data-testid":"machine-labels-add"}),children:"Add label"}),(0,p.jsxs)(w.PopoverContent,{align:"start",sideOffset:6,className:"w-80 p-2","data-testid":"machine-labels-popover",children:[(0,p.jsx)("span",{className:"block px-2 pt-1 pb-2 text-body font-medium",children:"Machine label"}),(0,p.jsx)(R,{groups:e,pickedValueIds:t.map(e=>e.valueId),countWord:"machine",onPick:e=>{s(!1),r(e)}}),(0,p.jsxs)("p",{className:"mt-2 flex items-center justify-between gap-2 border-t border-border px-2 pt-2 text-meta text-muted-foreground",children:["Exact matches, all must hold.",(0,p.jsx)(x.default,{href:"/labels",className:"font-medium text-foreground hover:underline",children:"Manage labels"})]})]})]})}e.s(["LabelPicker",0,R],87851),e.s(["MachineLabelsField",0,function({shipName:e,picked:t,groups:n,match:r,isDisabled:i,onAdd:s,onRemove:a,unknown:o=[],onRemoveUnknown:l}){let u=h(t.length);return(0,p.jsxs)("div",{className:"flex flex-col gap-1.5","data-testid":"machine-labels",children:[(0,p.jsxs)("span",{className:"text-body font-medium",children:["Machine labels",(0,p.jsx)("span",{className:"font-normal text-muted-foreground",children:" optional"})]}),(0,p.jsxs)("div",{className:"flex min-h-(--size-control-sm) flex-wrap items-center gap-1.5",children:[0===t.length?(0,p.jsx)("span",{className:"text-meta text-muted-foreground",children:"Any machine"}):null,t.map((e,t)=>(0,p.jsxs)(k.Fragment,{children:[0===t?null:(0,p.jsx)("span",{className:"text-meta text-muted-foreground",children:"and"}),(0,p.jsx)(S.LabelChip,{chip:e,testId:"machine-label",...i?{}:{onRemove:()=>{a(e.valueId)}}})]},e.valueId)),o.map(e=>(0,p.jsxs)("span",{"data-testid":"machine-label-unknown",title:`${e}: not in this fleet`,className:"inline-flex h-5.5 items-center gap-1 rounded-sm border border-tone-attention-border bg-tone-attention-bg px-1.5 font-mono text-id text-tone-attention-fg [&_svg]:size-3",children:[(0,p.jsx)(g.CircleAlert,{"aria-hidden":!0}),e,void 0===l||i?null:(0,p.jsx)("button",{type:"button","aria-label":`Remove ${e}`,onClick:()=>{l(e)},className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs hover:bg-accent focus-visible:outline-2 focus-visible:outline-ring",children:(0,p.jsx)(y.X,{"aria-hidden":!0})})]},e)),t.length+o.length>=m.SHIP_LABELS_MAX?null:(0,p.jsx)(T,{groups:n,picked:t,isDisabled:i,onAdd:s})]}),0===o.length?null:(0,p.jsxs)("p",{role:"alert","data-testid":"machine-labels-unknown-note",className:"text-meta text-tone-attention-fg",children:["Not in this fleet: ",o.join(", "),". Forming refuses ",1===o.length?"it":"them",": define ",1===o.length?"it":"them"," on the Labels page, or remove ",1===o.length?"it":"them"," here."]}),0===t.length?null:0===r.matching.length?(0,p.jsxs)("p",{role:"status","data-testid":"machine-labels-match",className:"flex items-start gap-2 rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg [&_svg]:mt-0.5 [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",children:[(0,p.jsx)(b.Clock,{"aria-hidden":!0}),(0,p.jsxs)("span",{children:["No machine matches ",u.these,". You can still request: it waits on Needs crew until a machine ",u.carries,"."]})]}):(0,p.jsxs)("p",{className:"text-meta","data-testid":"machine-labels-match",children:["Matches ",r.matching.length," of ",r.total," ",1===r.total?"machine":"machines",": ",r.matching.join(", "),"."]}),(0,p.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The plugin places ",e," only on a machine that carries every label here. Leave it empty for any machine."]})]})}],4032)},66616,e=>{"use strict";var t=e.i(49635);let n={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return n[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessDetection",0,function(e,n){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let r=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),n);return`${e.version} \xb7 models confirmed ${"Just now"===r?"just now":r}`},"harnessKind",0,function(e){return n[e]?.kind},"harnessWord",0,r])}]);
|