PageSourceSearch

https://www.workoutgps.com/static/js/1812.36f0680b.chunk.js

js workoutgps.com collected 2026-10-07 13:41:31 UTC 51,844 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdrugvlab_fe=self.webpackChunkdrugvlab_fe||[]).push([[1812],{10758:(e,t,a)=>{a.d(t,{Z:()=>d});var r=a(5289),n=a(16029),i=a(20890),o=a(39157),s=a(97123),l=a(24518),c=(a(72791),a(80184));const d=e=>{let{open:t,onClose:a,onConfirm:d,icon:p,iconBgColor:u="#fff0f0",iconBorderColor:f="#fecaca",title:x,subtitle:h,warningTitle:g,warningBody:m,warningIcon:b,bulletSectionTitle:w="What will happen:",bullets:v=[],cancelLabel:y="Cancel",confirmLabel:S="Confirm",confirmIcon:k,confirmColor:j="#ef4444",confirmHoverColor:Z="#dc2626"}=e;return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(r.Z,{open:t,onClose:a,maxWidth:"sm",fullWidth:!0,disableScrollLock:!1,PaperProps:{sx:{borderRadius:"16px",overflow:"hidden",boxShadow:"0 24px 48px -8px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05)",background:"#ffffff"}},BackdropProps:{sx:{backgroundColor:"rgba(0,0,0,0.35)",backdropFilter:"blur(6px)"}},children:[(0,c.jsxs)(n.Z,{sx:{px:3.5,pt:3.5,pb:2.5},children:[(0,c.jsx)(n.Z,{sx:{width:44,height:44,borderRadius:"12px",background:u,border:"1.5px solid ".concat(f),display:"flex",alignItems:"center",justifyContent:"center",mb:1.5},children:p}),(0,c.jsx)(i.Z,{sx:{fontWeight:700,fontSize:"1.05rem",color:"#0f172a",letterSpacing:"-0.02em",lineHeight:1.3,mb:h?.5:0},children:x}),h&&(0,c.jsx)(i.Z,{sx:{fontSize:"0.82rem",color:"#64748b",lineHeight:1.55},children:h})]}),(0,c.jsx)(n.Z,{sx:{px:3.5},children:(0,c.jsx)(n.Z,{sx:{height:"1px",background:"#f1f5f9"}})}),(0,c.jsxs)(o.Z,{sx:{px:3.5,py:2.5},children:[(g||m)&&(0,c.jsxs)(n.Z,{sx:{backgroundColor:"#fffbeb",border:"1.5px solid #fcd34d",borderRadius:"12px",p:2.5,mb:2},children:[g&&(0,c.jsxs)(i.Z,{sx:{fontWeight:700,fontSize:"0.82rem",color:"#92400e",display:"flex",alignItems:"center",gap:.8,mb:m?.75:0},children:[b,g]}),m&&(0,c.jsx)(i.Z,{sx:{fontSize:"0.8rem",color:"#78350f",lineHeight:1.6},children:m})]}),v.length>0&&(0,c.jsxs)(n.Z,{sx:{backgroundColor:"#f8fafc",borderRadius:"12px",p:2,border:"1px solid #e2e8f0"},children:[(0,c.jsx)(i.Z,{sx:{fontSize:"0.75rem",fontWeight:700,color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.06em",mb:1.2},children:w}),(0,c.jsx)(n.Z,{sx:{display:"flex",flexDirection:"column",gap:.8},children:v.map(((e,t)=>(0,c.jsxs)(n.Z,{sx:{display:"flex",alignItems:"flex-start",gap:1.2},children:[(0,c.jsx)(n.Z,{sx:{width:18,height:18,borderRadius:"50%",background:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:"1px"},children:(0,c.jsx)(i.Z,{sx:{fontSize:"0.6rem",fontWeight:700,color:"#94a3b8",lineHeight:1},children:t+1})}),(0,c.jsx)(i.Z,{sx:{fontSize:"0.8rem",color:"#475569",lineHeight:1.6},children:e})]},t)))})]})]}),(0,c.jsx)(n.Z,{sx:{px:3.5},children:(0,c.jsx)(n.Z,{sx:{height:"1px",background:"#f1f5f9"}})}),(0,c.jsxs)(s.Z,{sx:{px:3.5,py:2.5,gap:1.5},children:[(0,c.jsx)(l.Z,{onClick:a,variant:"outlined",sx:{borderRadius:"10px",borderColor:"#e2e8f0",color:"#64748b",fontWeight:600,fontSize:"0.82rem",py:1.2,px:2.5,textTransform:"none",letterSpacing:"-0.01em","&:hover":{borderColor:"#cbd5e1",background:"#f8fafc",color:"#475569"}},children:y}),(0,c.jsx)(l.Z,{variant:"contained",startIcon:k,onClick:d,sx:{borderRadius:"10px",background:j,color:"#fff",fontWeight:700,fontSize:"0.82rem",py:1.2,px:2.5,textTransform:"none",letterSpacing:"-0.01em",boxShadow:"0 2px 8px ".concat(j,"55"),transition:"all 0.15s ease","&:hover":{background:Z,boxShadow:"0 4px 14px ".concat(j,"66"),transform:"translateY(-1px)"},"&:active":{transform:"translateY(0)"}},children:S})]})]})})}},84248:(e,t,a)=>{a.d(t,{Z:()=>p});var r=a(5289),n=a(16029),i=a(13239),o=a(20890),s=a(39157),l=a(72791),c=a(22592),d=a(80184);const p=e=>{let{open:t,onClose:a,library:p,currentRound:u,userSelectTool:f}=e;const[x,h]=(0,l.useState)(!1),[g,m]=(0,l.useState)(!1),b=(0,c.C)((e=>{var t,a;return null===e||void 0===e||null===(t=e.workFlowStatus)||void 0===t||null===(a=t.response)||void 0===a?void 0:a.batch_status})),w=(0,c.C)((e=>{var t,a;return null===e||void 0===e||null===(t=e.workFlowStatus)||void 0===t||null===(a=t.response)||void 0===a?void 0:a.overall_status}));(0,l.useEffect)((()=>
1{if(t){const e=setTimeout((()=>h(!0)),60);return()=>clearTimeout(e)}h(!1),m(!1)}),[t]);const v="FAILED"===b||"Terminated By User"===w||"Terminated"===w;return(0,l.useEffect)((()=>{t&&v&&(m(!0),setTimeout((()=>a()),800))}),[t,v,a]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{children:"\n        @keyframes modalIn {\n          from { opacity: 0; transform: translateY(12px) scale(0.98); }\n          to   { opacity: 1; transform: translateY(0) scale(1); }\n        }\n        @keyframes iconPop {\n          0%   { transform: scale(0.6); opacity: 0; }\n          70%  { transform: scale(1.1); opacity: 1; }\n          100% { transform: scale(1); opacity: 1; }\n        }\n        @keyframes fadeSlide {\n          from { opacity: 0; transform: translateY(8px); }\n          to   { opacity: 1; transform: translateY(0); }\n        }\n        @keyframes checkDraw {\n          from { stroke-dashoffset: 40; opacity: 0; }\n          to   { stroke-dashoffset: 0; opacity: 1; }\n        }\n        @keyframes ripple {\n          0%   { transform: scale(1); opacity: 0.4; }\n          100% { transform: scale(2.2); opacity: 0; }\n        }\n      "}),(0,d.jsxs)(r.Z,{disableScrollLock:!1,disableAutoFocus:!0,open:t,maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"16px",overflow:"hidden",boxShadow:"0 24px 48px -8px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05)",background:"#ffffff",animation:x?"modalIn 0.3s cubic-bezier(0.16,1,0.3,1) both":"none",opacity:g?0:1,transition:"opacity 0.8s ease"}},BackdropProps:{sx:{backgroundColor:"rgba(0,0,0,0.35)",backdropFilter:"blur(6px)"}},children:[(0,d.jsxs)(n.Z,{sx:{px:3.5,pt:3.5,pb:2.5},children:[(0,d.jsx)(n.Z,{sx:{width:44,height:44,borderRadius:"12px",background:v?"#f0fdf4":"#f8fafc",border:"1.5px solid ".concat(v?"#bbf7d0":"#e2e8f0"),display:"flex",alignItems:"center",justifyContent:"center",mb:1.5,position:"relative",animation:x?"iconPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.1s both":"none"},children:v?(0,d.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",children:(0,d.jsx)("path",{d:"M20 6L9 17l-5-5",stroke:"#22c55e",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"40",style:{animation:"checkDraw 0.5s ease 0.3s both"}})}):(0,d.jsx)(i.Z,{size:20,thickness:3,sx:{color:"#94a3b8"}})}),(0,d.jsxs)(n.Z,{sx:{animation:x?"fadeSlide 0.35s ease 0.15s both":"none"},children:[(0,d.jsx)(o.Z,{sx:{fontWeight:700,fontSize:"1.05rem",color:"#0f172a",letterSpacing:"-0.02em",lineHeight:1.3,mb:.5},children:v?"Workflow Stopped":"Stopping Workflow..."}),(0,d.jsx)(o.Z,{sx:{fontSize:"0.82rem",color:"#64748b",lineHeight:1.55},children:v?"The workflow has been successfully terminated.":"Please wait while the workflow is being stopped."})]})]}),(0,d.jsx)(n.Z,{sx:{px:3.5},children:(0,d.jsx)(n.Z,{sx:{height:"1px",background:"#f1f5f9"}})}),(0,d.jsx)(s.Z,{sx:{px:3.5,py:2.5,animation:x?"fadeSlide 0.35s ease 0.2s both":"none"},children:v?(0,d.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",gap:1.2},children:[["All workflow processes have been safely terminated.","You can now restart the workflow with new parameters.","Previous results remain accessible in the results tab."].map(((e,t)=>(0,d.jsxs)(n.Z,{sx:{display:"flex",alignItems:"flex-start",gap:1.2},children:[(0,d.jsx)(n.Z,{sx:{width:18,height:18,borderRadius:"50%",background:"#dcfce7",border:"1px solid #bbf7d0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:"1px"},children:(0,d.jsx)(o.Z,{sx:{fontSize:"0.6rem",fontWeight:700,color:"#16a34a",lineHeight:1},children:"\u2713"})}),(0,d.jsx)(o.Z,{sx:{fontSize:"0.81rem",color:"#475569",lineHeight:1.6},children:e})]},t))),(0,d.jsxs)(n.Z,{sx:{mt:1.5,borderRadius:"12px",background:"#f0fdf4",border:"1.5px solid #bbf7d0",p:"14px 18px",display:"flex",alignItems:"center",gap:1.5},children:[(0,d.jsx)(n.Z,{sx:{width:8,height:8,borderRadius:"50%",background:"#22c55e",flexShrink:0,boxShadow:"0 0 0 3px rgba(34,197,94,0.2)"}}),(0,d.jsx)(o.Z,{sx:{fontSize:"0.8rem",fontWeight:600,color:"#15803d"},children:"Ready for next action"})]})]}):(0,d.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",gap:1.2},children:[["Sending termination signal to all running processes.","This may take a few moments to complete safely.","Do not close this window or navigate away."].map(((e,t)=>
1(0,d.jsxs)(n.Z,{sx:{display:"flex",alignItems:"flex-start",gap:1.2},children:[(0,d.jsx)(n.Z,{sx:{width:18,height:18,borderRadius:"50%",background:"#f1f5f9",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,mt:"1px"},children:(0,d.jsx)(o.Z,{sx:{fontSize:"0.6rem",fontWeight:700,color:"#94a3b8",lineHeight:1},children:t+1})}),(0,d.jsx)(o.Z,{sx:{fontSize:"0.81rem",color:"#475569",lineHeight:1.6},children:e})]},t))),(0,d.jsxs)(n.Z,{sx:{mt:1.5,borderRadius:"12px",background:"#fff7ed",border:"1.5px solid #fed7aa",p:"14px 18px",display:"flex",alignItems:"center",gap:1.5},children:[(0,d.jsx)(n.Z,{sx:{width:8,height:8,borderRadius:"50%",background:"#f97316",flexShrink:0,boxShadow:"0 0 0 3px rgba(249,115,22,0.2)"}}),(0,d.jsx)(o.Z,{sx:{fontSize:"0.8rem",fontWeight:600,color:"#c2410c"},children:"Modal will close automatically once stopped"})]})]})})]})]})}},37789:(e,t,a)=>{a.d(t,{l:()=>j});var r,n,i,o=a(1413),s=a(30168),l=a(72791),c=a(52554),d=a(66934),p=a(17760),u=a(56468),f=a(96732),x=a(35699),h=a(80184);const g=(0,c.F4)(r||(r=(0,s.Z)(["\n  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }\n  18% { opacity: 1; }\n  100% { transform: translateY(28px) rotate(110deg); opacity: 0; }\n"]))),m=(0,c.F4)(n||(n=(0,s.Z)(["\n  0%, 100% { filter: drop-shadow(0 5px 8px rgba(64, 178, 151, 0.14)); }\n  50% { filter: drop-shadow(0 8px 14px rgba(64, 178, 151, 0.24)); }\n"]))),b=(0,c.F4)(i||(i=(0,s.Z)(["\n  0%, 100% { transform: translateY(2px) rotate(-11deg) scaleY(0.9); }\n  50% { transform: translateY(5px) rotate(-15deg) scaleY(0.84); }\n"]))),w="/capsy_ai_drug_developer.glb?v=capsy-frustrate-model-20260713",v=-Math.PI/2,y=e=>{let{kind:t,responsiveVariant:a,stepPosition:r,totalSteps:n,isCompleted:i}=e;const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 0===e?0:(arguments.length>2?arguments[2]:void 0)?100:(e-1)/Math.max(t-1,1)*100}(r,n,i),l=Math.min("frustrate"===t?80:100,Math.max(0,s)),c="kinase"===a,d="drugResponse"===a;return(0,o.Z)((0,o.Z)({position:"drugToxicity"===a?"relative":"absolute",top:"drugToxicity"===a?"auto":"success"===t?d?"clamp(-52px, -4vh, -36px)":"clamp(-71px, -6vh, -49px)":"50%"},"drugToxicity"===a?{}:{left:"".concat(l,"%")}),{},{transform:"drugToxicity"===a?"none":"success"===t?"translateX(-50%)":d?"translate(-50%, calc(-82% + 3px))":"translate(-50%, calc(-100% + 3px))",width:"clamp(62px, calc(4.4vw + 22px), 92px)",height:"clamp(62px, calc(4.4vw + 22px), 92px)",zIndex:8,"@media (max-width: 900px)":{width:c||d?"clamp(50px, calc(5.4vw + 14px), 76px)":void 0,height:c||d?"clamp(50px, calc(5.4vw + 14px), 76px)":void 0,top:"drugToxicity"===a?"auto":c||d?"success"===t?"clamp(-45px, -4vh, -31px)":"50%":void 0}})};function S(e){let{className:t}=e;const a=(0,l.useRef)(null);return(0,l.useEffect)((()=>{const e=a.current;if(!e)return;const t=new p.CP7({canvas:e,alpha:!0,antialias:!0});t.setClearColor(16777215,0),t.setPixelRatio(Math.min(window.devicePixelRatio,1.5)),t.outputColorSpace=u.KI_,t.toneMapping=u.EoG,t.toneMappingExposure=1.02;const r=new u.xsS,n=new u.iKG(-2.4,2.4,2.4,-2.4,.1,3e3);n.position.z=1200,n.lookAt(0,0,0),r.add(new u.Mig(16777215,1.9)),r.add(new u.vmT(16777215,14542319,.9));const i=new u.Ox3(16777215,1.8);i.position.set(.4,1.1,1.6),r.add(i);let o=null,s=0,l=!1,c=performance.now();const d=()=>{const a=Math.max(e.clientWidth||1,1),r=Math.max(e.clientHeight||1,1);t.setSize(a,r,!1);const i=a/r;n.left=-2.85*i,n.right=2.85*i,n.top=2.85,n.bottom=-2.85,n.updateProjectionMatrix()},f=new ResizeObserver(d);return f.observe(e),d(),(0,x.h)("".concat("").concat(w)).then((e=>{if(l)return;const a=(new u.ZzF).setFromObject(e.scene),i=a.getSize(new u.Pa4),d=a.getCenter(new u.Pa4),p=3.1/Math.max(i.x,i.y,i.z);e.scene.scale.setScalar(p),e.scene.position.sub(d.multiplyScalar(p));const f=new u.ZAu;f.rotation.y=v,f.add(e.scene);const x=new u.ZAu;x.rotation.order="YXZ",x.rotation.x=.46,x.rotation.z=-.14,x.position.y=-.22,x.add(f),r.add(x),e.animations.length>0&&(o=new u.Xcj(e.scene),e.animations.forEach((e=>{var t;return null===(t=o)||void 0===t?void 0:t.clipAction(e).play()})));const h=()=>{var e;s=requestAnimationFrame(h);const a=performance.now(),i=Math.min((a-c)/1e3,.05);c=a,null===(e=o)||void 0===e||e.update(.35*i),t.render(r,n)};h()})),()=>{var e;l=!0,cancelAnimationFrame(s),f.disconnect(),null===(e=o)||void 0===e||e.stopAllAction(),t.dispose()}}),[]),(0,h.jsx)("canvas",{ref:a,className:t})}function k(e){let{className:t,statusKind:a}=e;return(0,h.jsxs)("div",{className:t,"aria-hidden":"true",children:["frustrate"===a&&(0,h.jsx)(h.Fragment,{children:(0,h.jsxs)("div",{className:"frustrate-body",children:[(0,h.jsx)(S,{className:"capsy-frustrate-model"}),(0,h.jsx)("span",{className:"frustrate-tear"})]})}),"success"===a&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"capsy-character-frame",children:(0,h.jsx)(f.Z,{modelScale:1.35,staticPose:!0})}),(0,h.jsx)("span",{className:"confetti confetti-one"}),(0,h.jsx)("span",{className:"confetti confetti-two"}),(0,h.jsx)("span",{className:"confetti confetti-three"}),(0,h.jsx)("span",{className:"confetti confetti-four"})]})]})}const j=e=>{let{kind:t,responsiveVariant:a="ppi"}=e;return(0,d.ZP)((e=>(0,h.jsx)(k,(0,o.Z)((0,o.Z)({},e),{},{statusKind:t}))),{shouldForwardProp:e=>!["stepPosition","totalSteps","isRunning","isCompleted","isFailed","src","alt"].includes(String(e))})((e=>{let{stepPosition:r,totalSteps:n,isCompleted:i}=e;return(0,o.Z)((0,o.Z)({},y({kind:t,responsiveVariant:a,stepPosition:r,totalSteps:n,isCompleted:i})),{},{pointerEvents:"none",animation:"success"===t?"".concat(m," 1.8s ease-in-out infinite"):"none","& .capsy-character-frame":{display:"block",width:"100%",height:"100%"},"& .frustrate-body":{position:"relative",display:"block",width:"100%",height:"100%",animation:"".concat(b," 1.8s ease-in-out infinite"),zIndex:2},"& .capsy-frustrate-model":{display:"block",width:"100%",height:"100%",filter:"saturate(0.78) brightness(0.9)",zIndex:2},"& .frustrate-tear":{position:"absolute",left:"38%",top:"39%",width:"6px",height:"10px",borderRadius:"50% 50% 60% 60%",background:"#57b8ff",boxShadow:"0 1px 3px rgba(37, 99, 235, 0.25)",transform:"rotate(14deg)",zIndex:3},"& .confetti":{position:"absolute",top:"2%",width:"clamp(2px, 7%, 4px)",height:"clamp(4px, 13%, 7px)",borderRadius:"1px",animation:"".concat(g," 1.4s ease-in-out infinite")},"& .confetti-one":{left:"24%",background:"#f5b942",animationDelay:"0s"},"& .confetti-two":{left:"44%",background:"#5aa694",animationDelay:"0.22s"},"& .confetti-three":{right:"22%",background:"#dc6f70",animationDelay:"0.42s"},"& .confetti-four":{right:"10%",background:"#6f8fdc",animationDelay:"0.64s"}})}))}},2290:(e,t,a)=>{a.d(t,{Z:()=>V});var r=a(30168),n=a(72791),i=a(16029),o=a(5289),s=a(39157),l=a(13400),c=a(24518),d=a(20890),p=a(13239),u=a(57482),f=a(98946),x=a(29823),h=a(91483),g=a(84289),m=a(26306),b=a(7618),w=a(52554),v=a(66934),y=a(39230),S=a(1413),k=a(99574),j=a(80184);const Z=420,C=322,P=38,R="drugvlab.capsyDodge.bestScore",M=(0,v.ZP)(i.Z)((()=>({width:"min(760px, 92vw)"}))),z=(0,v.ZP)("button")((()=>({position:"relative",display:"block",width:"100%",height:Z,padding:0,border:"1px solid rgba(73, 104, 162, 0.18)",borderRadius:8,backgroundColor:"#ffffff",cursor:"pointer",overflow:"hidden",boxShadow:"0 16px 42px rgba(73, 104, 162, 0.12)","&:focus-visible":{outline:"2px s
1olid rgba(244, 177, 32, 0.75)",outlineOffset:3}}))),W=(0,v.ZP)(k.D7)((()=>({position:"absolute",left:0,top:0,width:58,height:78,pointerEvents:"none",zIndex:2,transformOrigin:"50% 92%",transition:"transform 55ms linear, opacity 120ms ease",display:"block","& .runner-model-canvas":{position:"relative",display:"block",width:"100%",height:"100%",zIndex:2,transform:"translateY(12px)"},"& .runner-speed-line":{display:"none"}}))),I=e=>{const t=Number(window.localStorage.getItem(e));return Number.isFinite(t)?t:0},T=(e,t,a)=>Math.min(Math.max(e,t),a),A=(e,t,a,r,n,i)=>{e.beginPath(),e.moveTo(t+i,a),e.lineTo(t+r-i,a),e.quadraticCurveTo(t+r,a,t+r,a+i),e.lineTo(t+r,a+n-i),e.quadraticCurveTo(t+r,a+n,t+r-i,a+n),e.lineTo(t+i,a+n),e.quadraticCurveTo(t,a+n,t,a+n-i),e.lineTo(t,a+i),e.quadraticCurveTo(t,a,t+i,a),e.closePath()},E=()=>{const{t:e}=(0,y.$G)(),t=n.useRef(null),a=n.useRef(void 0),r=n.useRef({left:!1,right:!1}),o=n.useRef({status:"ready",canvasWidth:680,idSeed:1,lastTime:0,playerX:320,targetX:320,hazards:[],particles:[],level:1,score:0,bestScore:0,survivedMs:0,levelStartedAt:0,completedLevelMs:0,lives:3,invincibleUntil:0,nextHazardAt:0,startedAt:0,message:"Press Start"}),[s,l]=n.useState({x:320}),[p,u]=n.useState({status:"ready",level:1,score:0,bestScore:0,survivedSeconds:0,lives:3}),f=n.useCallback((()=>{const e=o.current;u({status:e.status,level:e.level,score:e.score,bestScore:e.bestScore,survivedSeconds:Math.floor(e.survivedMs/1e3),lives:e.lives})}),[]),x=n.useCallback((()=>{const e=o.current,t=I(R),a=e.canvasWidth/2;e.status="playing",e.idSeed+=1,e.lastTime=performance.now(),e.startedAt=e.lastTime,e.levelStartedAt=e.lastTime,e.playerX=a,e.targetX=a,e.hazards=[],e.particles=[],e.level=1,e.score=0,e.bestScore=t,e.survivedMs=0,e.completedLevelMs=0,e.lives=3,e.invincibleUntil=0,e.nextHazardAt=e.lastTime+500,e.message="",f()}),[f]),h=n.useCallback((()=>{const e=o.current,t=performance.now();e.status="playing",e.idSeed+=1,e.lastTime=t,e.startedAt=t-e.survivedMs,e.levelStartedAt=t-(e.survivedMs-e.completedLevelMs),e.playerX=e.canvasWidth/2,e.targetX=e.playerX,e.hazards=[],e.particles=[],e.lives=3,e.invincibleUntil=t+1300,e.nextHazardAt=t+750,e.message="",f()}),[f]),g=n.useCallback((()=>{const e=o.current,t=performance.now();e.status="playing",e.idSeed+=1,e.lastTime=t,e.level=T(e.level+1,1,8),e.completedLevelMs=e.survivedMs,e.levelStartedAt=t,e.startedAt=t-e.survivedMs,e.playerX=e.canvasWidth/2,e.targetX=e.playerX,e.hazards=[],e.particles=[],e.invincibleUntil=t+1e3,e.nextHazardAt=t+650,e.message="",f()}),[f]),m=n.useCallback((t=>{const a=o.current;a.status="gameOver",a.message=e("workflowResult.awsStatusPanel.capsyDodgeGameOver","You died. Continue?"),a.bestScore=Math.max(a.bestScore,a.score),window.localStorage.setItem(R,String(a.bestScore));for(let e=0;e<22;e+=1)a.particles.push({id:a.idSeed,x:a.playerX+e%5*6-12,y:340,vx:2.4*Math.cos(e),vy:2.5*-Math.random()-.8,life:34+e%8}),a.idSeed+=1;a.lastTime=t,f()}),[f,e]);n.useEffect((()=>{o.current.bestScore=I(R),f()}),[f]),n.useEffect((()=>{const e=e=>{["ArrowLeft","a","A"].includes(e.key)&&(e.preventDefault(),r.current.left=!0),["ArrowRight","d","D"].includes(e.key)&&(e.preventDefault(),r.current.right=!0)},t=e=>{["ArrowLeft","a","A"].includes(e.key)&&(r.current.left=!1),["ArrowRight","d","D"].includes(e.key)&&(r.current.right=!1)};return window.addEventListener("keydown",e),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",t),r.current.left=!1,r.current.right=!1}}),[]),n.useEffect((()=>{const n=t.current;if(!n)return;const i=n.getContext("2d");if(!i)return;const s=()=>{const e=n.getBoundingClientRect(),t=window.devicePixelRatio||1;n.width=Math.max(1,Math.floor(e.width*t)),n.height=Math.max(1,Math.floor(Z*t)),i.setTransform(t,0,0,t,0,0),o.current.canvasWidth=e.width||680,o.current.playerX=T(o.current.playerX,P,Math.max(P,o.current.canvasWidth-84)),o.current.targetX=o.current.playerX},c=t=>{const n=o.current;n.lastTime||(n.lastTime=t);const s=Math.min(2,(t-n.lastTime)/16.67);n.lastTime=t;const d=n.canvasWidth;((e,t,a)=>{e.fillStyle="#f7fafc",e.fillRect(0,0,t,a),e.fillStyle="#ffffff",A(e,24,26,t-48,96,8),e.fill(),e.strokeStyle="rgba(148, 163, 
1184, 0.22)",e.lineWidth=1,e.stroke(),e.fillStyle="#edf2f7",A(e,48,48,82,48,6),e.fill(),e.fillStyle="#dbeafe",A(e,60,58,22,28,5),e.fill(),e.fillStyle="#fef3c7",A(e,92,58,22,28,5),e.fill(),e.fillStyle="#eef2f7",A(e,t-150,50,86,46,6),e.fill(),e.fillStyle="#cbd5e1",A(e,t-136,62,58,6,3),e.fill(),A(e,t-136,78,38,6,3),e.fill(),e.fillStyle="#e2e8f0",A(e,0,360,t,a-C-38,0),e.fill(),e.fillStyle="#f8fafc",A(e,28,380,t-56,34,8),e.fill(),e.strokeStyle="#94a3b8",e.lineWidth=1.5,e.beginPath(),e.moveTo(0,360),e.lineTo(t,360),e.stroke()})(i,d,Z);const p=Math.max(P,d-84);if("playing"===n.status){r.current.left&&(n.targetX-=7.4*s),r.current.right&&(n.targetX+=7.4*s),n.targetX=T(n.targetX,P,p),n.playerX+=(n.targetX-n.playerX)*Math.min(1,.34*s),n.survivedMs=t-n.startedAt;const a=t-n.levelStartedAt;n.score=Math.floor(n.survivedMs/100)+40*(n.level-1),a>=12e3&&(n.status="levelClear",n.hazards=[],n.particles=[],n.message=n.level>=8?e("workflowResult.awsStatusPanel.capsyDodgeAllClear","All levels clear"):e("workflowResult.awsStatusPanel.capsyDodgeLevelClear","Level clear"),f()),t>=n.nextHazardAt&&(e=>{const t=o.current,a=t.level,r=a>=7?4:a>=4?3:a>=2?2:1;for(let n=0;n<r;n+=1){const e=a>=5&&(t.idSeed+n)%5===0?"spore":a>=3&&(t.idSeed+n)%3===0?"virus":"bacteria",r="spore"===e?12:"virus"===e?13:11,i=(37*t.idSeed+19*n)%100/100,o=a>=5&&n%3===0?t.playerX+(i-.5)*Math.max(110,.44*t.canvasWidth):26+i*Math.max(90,t.canvasWidth-52);t.hazards.push({id:t.idSeed,x:T(o,24,Math.max(24,t.canvasWidth-24)),y:-36-n*(28+2*a),vy:2.4+.28*a+("spore"===e?.46:0),drift:"spore"===e?.82*Math.sin(t.idSeed):.42*Math.sin(t.idSeed),ax:a>=5?.01*Math.sin(1.7*t.idSeed):.003*Math.sin(t.idSeed),sway:"virus"===e?8+a:"spore"===e?12+1.2*a:4+.5*a,swaySpeed:"spore"===e?230:"virus"===e?300:420,fallBoost:"spore"===e?.012:a>=5?.007:.002,radius:r,kind:e,phase:.45*t.idSeed}),t.idSeed+=1}t.nextHazardAt=e+Math.max(230,780-58*a)})(t)}n.hazards=n.hazards.map((e=>(0,S.Z)((0,S.Z)({},e),{},{vy:e.vy+e.fallBoost*s,y:e.y+e.vy*s,x:T(e.x+(Math.sin(t/e.swaySpeed+e.phase)*e.drift+Math.cos(t/520+e.phase)*e.ax*e.sway)*s*3.4,16,Math.max(16,d-16))}))).filter((e=>e.y<454)),n.hazards.forEach((e=>{var a,r,o,s;((e,t,a)=>{if(e.save(),e.translate(t.x,t.y),e.rotate(.18*Math.sin(a/260+t.phase)),"virus"===t.kind?(e.fillStyle="#ef4444",e.strokeStyle="#b91c1c"):"spore"===t.kind?(e.fillStyle="#8b5cf6",e.strokeStyle="#6d28d9"):(e.fillStyle="#22c55e",e.strokeStyle="#15803d"),e.globalAlpha=.14,e.beginPath(),e.arc(0,0,t.radius+9,0,2*Math.PI),e.fill(),e.globalAlpha=1,"bacteria"===t.kind){e.lineWidth=1.8;for(let a=-2;a<=2;a+=1)e.beginPath(),e.moveTo(1.1*-t.radius,4*a),e.quadraticCurveTo(1.65*-t.radius,5*a,1.9*-t.radius,2*a),e.stroke(),e.beginPath(),e.moveTo(1.1*t.radius,4*a),e.quadraticCurveTo(1.65*t.radius,5*a,1.9*t.radius,2*a),e.stroke();return A(e,1.15*-t.radius,.66*-t.radius,2.3*t.radius,1.32*t.radius,.66*t.radius),e.fill(),e.stroke(),e.fillStyle="rgba(255,255,255,0.72)",e.beginPath(),e.arc(.42*-t.radius,.2*-t.radius,2.1,0,2*Math.PI),e.arc(.34*t.radius,.16*t.radius,1.8,0,2*Math.PI),e.fill(),void e.restore()}e.lineWidth=2;const r="virus"===t.kind?12:7;for(let n=0;n<r;n+=1){const i=2*Math.PI*n/r+.08*Math.sin(a/400);e.beginPath(),e.moveTo(Math.cos(i)*t.radius*.8,Math.sin(i)*t.radius*.8),e.lineTo(Math.cos(i)*t.radius*1.34,Math.sin(i)*t.radius*1.34),e.stroke(),e.beginPath(),e.arc(Math.cos(i)*t.radius*1.42,Math.sin(i)*t.radius*1.42,2.1,0,2*Math.PI),e.fill()}e.beginPath(),e.arc(0,0,t.radius,0,2*Math.PI),e.fill(),e.stroke(),e.fillStyle="rgba(255,255,255,0.76)",e.beginPath(),e.arc(.28*-t.radius,.22*-t.radius,2.2,0,2*Math.PI),e.arc(.25*t.radius,.15*t.radius,1.8,0,2*Math.PI),"spore"===t.kind&&e.arc(0,.34*t.radius,1.6,0,2*Math.PI),e.fill(),e.restore()})(i,e,t),"playing"===n.status&&t>=n.invincibleUntil&&(a=e.x,r=e.y,o=n.playerX+5,s=340,Math.hypot(a-o,r-s)<e.radius+22)&&(e.y=500,n.lives=Math.max(0,n.lives-1),n.invincibleUntil=t+950,n.lives<=0?m(t):f())})),n.particles=n.particles.map((e=>(0,S.Z)((0,S.Z)({},e),{},{x:e.x+e.vx*s,y:e.y+e.vy*s,vy:e.vy+.08*s,life:e.life-s}))).filter((e=>e.life>0)),((e,t)=>{t.forEach((t=>{e.globalAlpha=Math.max(0,Math.min(1,t.life/28)),e.fillStyle="#f4b120",e.beginPath(),e.arc(t.x,t.y,2.5,0,2*Math.PI),e.fill(),e.globalAlpha=1}))})(i,n.particles),"playing"!==n.status&&(i.fillStyle="rgba(255, 255, 255, 0.92)",A(i,d/2-150,166,300,88,8),i.fill(),i.strokeStyle="rgba(73, 104, 162, 0.16)",i.stroke(),i.fillStyle="#1f2a44",i.font="800 18px Arial",i.textAlign="center",i.fillText("ready"===n.status?e("workflowResult.awsStatusPanel.capsyDodgeTitle","Capsy Germ Dodge"):(n.status,n.message),d/2,202),i.font="700 12px Arial",i.fillStyle="rgba(100, 116, 139, 0.92)",i.fillText("levelClear"===n.status&&n.level<8?e("workflowResult.awsStatusPanel.capsyDodgeNextLevel","Press Next Level"):e("workflowResult.awsStatusPanel.capsyDodgeStart","Press Start or Space"),d/2,228),i.textAlign="left"),l({x:n.playerX}),Math.floor(t/180)%3===0&&f(),a.current=window.requestAnimationFrame(c)};return s(),window.addEventListener("resize",s),a.current=window.requestAnimationFrame(c),()=>{window.removeEventListener("resize",s),a.current&&window.cancelAnimationFrame(a.current)}}),[m,f,e]);const b=n.useCallback((e=>{const a=t.current;if(!a)return;const r=a.getBoundingClientRect();o.current.targetX=T(e-r.left,P,Math.max(P,o.current.canvasWidth-84))}),[]);return(0,j.jsxs)(M,{children:[(0,j.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1.5,mb:1.25,flexWrap:"wrap"},children:[(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{sx:{color:"#1f2a44",fontSize:"0.95rem",fontWeight:900},children:e("workflowResult.awsStatusPanel.capsyDodgeTitle","Capsy Germ Dodge")}),(0,j.jsx)(d.Z,{sx:{color:"#64748b",fontSize:"0.76rem"},children:e("workflowResult.awsStatusPanel.capsyDodgeHint","Keyboard: Arrow keys or A/D. Avoid falling bacteria and viruses.")})]}),(0,j.jsxs)(i.Z,{sx:{display:"flex",gap:1.2,flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center"},children:[(0,j.jsxs)(d.Z,{sx:{color:"#4968A2",fontSize:"0.78rem",fontWeight:900},children:[e("workflowResult.awsStatusPanel.level","Level")," ",p.level,"/",8]}),(0,j.jsxs)(d.Z,{sx:{color:"#f4b120",fontSize:"0.78rem",fontWeight:900},children:[e("workflowResult.awsStatusPanel.score","Score")," ",p.score]}),(0,j.jsxs)(d.Z,{sx:{color:"#64748b",fontSize:"0.78rem",fontWeight:800},children:[e("workflowResult.awsStatusPanel.bestScore","Best")," ",p.bestScore]}),(0,j.jsxs)(d.Z,{sx:{color:"#64748b",fontSize:"0.78rem",fontWeight:800},children:[p.survivedSeconds,"s"]}),(0,j.jsxs)(d.Z,{sx:{color:"#ef4444",fontSize:"0.78rem",fontWeight:900},children:[e("workflowResult.awsStatusPanel.lives","Lives")," ",p.lives,"/",3]}),(0,j.jsx)(c.Z,{variant:"contained",size:"small",onClick:"gameOver"
1===p.status?h:"levelClear"===p.status?g:x,sx:{minHeight:30,borderRadius:"8px",px:1.4,fontSize:"0.74rem",fontWeight:900,backgroundColor:"#4968A2",boxShadow:"none","&:hover":{backgroundColor:"#3f5a8f",boxShadow:"none"}},children:"gameOver"===p.status?e("workflowResult.awsStatusPanel.restart","Restart"):"levelClear"===p.status?e("workflowResult.awsStatusPanel.nextLevel","Next Level"):e("workflowResult.awsStatusPanel.start","Start")}),"gameOver"===p.status&&(0,j.jsx)(c.Z,{variant:"outlined",size:"small",onClick:x,sx:{minHeight:30,borderRadius:"8px",px:1.4,fontSize:"0.74rem",fontWeight:900,borderColor:"rgba(73, 104, 162, 0.26)",color:"#4968A2",backgroundColor:"#ffffff","&:hover":{borderColor:"rgba(73, 104, 162, 0.42)",backgroundColor:"rgba(73, 104, 162, 0.07)"}},children:e("workflowResult.awsStatusPanel.newGame","New Game")})]})]}),(0,j.jsxs)(z,{autoFocus:!0,type:"button",onMouseMove:e=>b(e.clientX),onTouchStart:e=>{"playing"===o.current.status&&b(e.touches[0].clientX)},onTouchMove:e=>b(e.touches[0].clientX),"aria-label":e("workflowResult.awsStatusPanel.capsyDodgeAction","Play Capsy dodge game"),children:[(0,j.jsx)("canvas",{ref:t,style:{display:"block",width:"100%",height:Z}}),(0,j.jsx)(W,{style:{opacity:"gameOver"===p.status?.42:1,transform:"translate(".concat(s.x-24,"px, ").concat(274,"px)")}})]})]})};var L,D,F,X=a(22163);const H=(0,w.F4)(L||(L=(0,r.Z)(["\n  0% { transform: rotate(0deg); }\n  25% { transform: rotate(90deg); }\n  50% { transform: rotate(180deg); }\n  75% { transform: rotate(270deg); }\n  100% { transform: rotate(360deg); }\n"]))),N=(0,w.F4)(D||(D=(0,r.Z)(["\n  0%, 100% { box-shadow: 0 0 0 0 rgba(73, 104, 162, 0.18), 0 14px 34px rgba(73, 104, 162, 0.14); }\n  50% { box-shadow: 0 0 0 12px rgba(73, 104, 162, 0), 0 18px 42px rgba(73, 104, 162, 0.2); }\n"]))),O=(0,w.F4)(F||(F=(0,r.Z)(["\n  0% { transform: translateX(-100%); }\n  100% { transform: translateX(260%); }\n"]))),Y=(0,v.ZP)(i.Z)((()=>({position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%)",backdropFilter:"blur(5px)",display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",zIndex:20,borderRadius:8,padding:0}))),B=(0,v.ZP)(i.Z)((()=>({width:"100%",height:"100%",minHeight:"100%",borderRadius:8,border:"1px solid rgba(148, 163, 184, 0.26)",background:"linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%)",boxShadow:"none",padding:"clamp(24px, 4vw, 48px)",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"center",overflow:"hidden"}))),G=(0,v.ZP)(i.Z)((()=>({width:72,height:72,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, rgba(73, 104, 162, 0.14) 0%, rgba(244, 177, 32, 0.16) 100%)",border:"1px solid rgba(73, 104, 162, 0.16)",animation:"".concat(N," 2.4s infinite ease-in-out"),flexShrink:0}))),_=(0,v.ZP)(i.Z)((()=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,maxWidth:"100%",padding:"8px 12px",borderRadius:8,backgroundColor:"rgba(73, 104, 162, 0.07)",border:"1px solid rgba(73, 104, 162, 0.14)",color:"#1f2a44"}))),q=(0,v.ZP)(i.Z)((()=>({width:8,height:8,borderRadius:"50%",backgroundColor:"#4968A2",flexShrink:0}))),U=(0,v.ZP)(i.Z)((()=>({display:"flex",alignItems:"center",gap:10,minWidth:0}))),K=(0,v.ZP)(i.Z)((()=>({width:28,height:28,borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",border:"1px solid rgba(148, 163, 184, 0.24)",color:"#4968A2",flexShrink:0}))),V=e=>{let{overallStatus:t,batchStatus:a,workflowRunLoading:r,workflowStatusLoading:w,workflowStopLoading:v,isWorkflowStarting:S,isWorkflowRestarting:k,highlightColor:Z,initializingTitle:C,initializingDescription:P,currentStatusLabel:R,automaticMessage:M,startingTitle:z,startingDescription:W,restartingTitle:I="Restarting Workflow...",restartingDescription:T="Please wait while we restart the workflow...",stoppingTitle:A="Stopping Workflow...",stoppingDescription:L="Please wait while we stop the workflow...",showGameButton:D=!0}=e;const{t:F}=(0,y.$G)(),[N,V]=n.useState(!1),{overlayMode:$}=(0,X.I2)({overallStatus:t,batchStatus:a,workflowRunLoading:r,workflowStatusLoading:w,workflowStopLoading:v,isWorkflowStarting:S,isWorkflowRestarting:k}),J=D&&"stopping"!==$&&("none"!==$||(0,X.KS)(t,a)),Q=(0,j.jsx)(o.Z,{open:N,onClose:()=>V(!1),maxWidth:!1,PaperProps:{sx:{borderRadius:"8px",backgroundColor:"#ffffff",border:"1px solid rgba(148, 163, 
1184, 0.24)",boxShadow:"0 28px 90px rgba(15, 23, 42, 0.24)",overflow:"hidden"}},children:(0,j.jsxs)(s.Z,{sx:{p:{xs:2,sm:2.5},position:"relative"},children:[(0,j.jsx)(l.Z,{"aria-label":F("common.close","Close"),onClick:()=>V(!1),size:"small",sx:{position:"absolute",top:10,right:10,zIndex:4,color:"#475569",backgroundColor:"rgba(248, 250, 252, 0.92)",border:"1px solid rgba(148, 163, 184, 0.24)","&:hover":{backgroundColor:"rgba(241, 245, 249, 1)"}},children:(0,j.jsx)(x.Z,{fontSize:"small"})}),(0,j.jsx)(E,{})]})}),ee=(0,j.jsx)(c.Z,{variant:"outlined",size:"small",startIcon:(0,j.jsx)(m.Z,{}),onClick:()=>V(!0),sx:{borderRadius:"8px",fontWeight:800,borderColor:"rgba(73, 104, 162, 0.26)",color:"#4968A2",backgroundColor:"rgba(255,255,255,0.72)","&:hover":{borderColor:"rgba(73, 104, 162, 0.42)",backgroundColor:"rgba(73, 104, 162, 0.07)"}},children:F("workflowResult.awsStatusPanel.playCapsyGame","Play Capsy Game")});if("none"===$)return J?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(i.Z,{sx:{position:"absolute",right:16,bottom:16,zIndex:21},children:ee}),Q]}):null;if("initializing"===$)return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Y,{children:(0,j.jsxs)(B,{children:[(0,j.jsxs)(i.Z,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:2,mb:3,flexWrap:"wrap"},children:[(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{variant:"caption",sx:{display:"block",color:"#64748b",fontWeight:800,letterSpacing:"0.08em",textTransform:"uppercase",mb:.8},children:F("workflowResult.awsStatusPanel.awsBatch","AWS Batch")}),(0,j.jsx)(d.Z,{variant:"h5",sx:{color:"#0f172a",fontSize:{xs:"1.35rem",sm:"1.65rem"},fontWeight:800,lineHeight:1.2,letterSpacing:"-0.02em"},children:C})]}),(0,j.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap",justifyContent:"flex-end"},children:[ee,(0,j.jsxs)(_,{children:[(0,j.jsx)(q,{}),(0,j.jsxs)(d.Z,{variant:"caption",sx:{fontWeight:800,fontSize:"0.76rem",lineHeight:1.3},children:[R,":"," ",t||F("workflowResult.awsStatusPanel.preparing","Preparing")]})]})]})]}),(0,j.jsxs)(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"92px 1fr"},gap:{xs:2.5,md:3},alignItems:"center"},children:[(0,j.jsx)(G,{children:(0,j.jsx)(g.Z,{sx:{fontSize:42,color:Z,animation:"".concat(H," 2s infinite ease-in-out"),transformOrigin:"center"}})}),(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{variant:"body1",sx:{color:"#334155",fontSize:"0.98rem",lineHeight:1.65,maxWidth:560},children:P}),(0,j.jsx)(i.Z,{sx:{position:"relative",mt:2.5,mb:2,height:8,borderRadius:999,backgroundColor:"rgba(148, 163, 184, 0.18)",overflow:"hidden"},children:(0,j.jsx)(i.Z,{sx:{position:"absolute",inset:0,width:"38%",borderRadius:999,background:"linear-gradient(90deg, rgba(73,104,162,0) 0%, rgba(73,104,162,0.72) 45%, rgba(244,177,32,0.82) 100%)",animation:"".concat(O," 1.8s infinite ease-in-out")}})})]})]}),(0,j.jsxs)(i.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, 1fr)"},gap:1.5,mt:3},children:[(0,j.jsxs)(U,{children:[(0,j.jsx)(K,{children:(0,j.jsx)(f.Z,{sx:{fontSize:18}})}),(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{sx:{color:"#0f172a",fontSize:"0.8rem",fontWeight:800},children:F("workflowResult.awsStatusPanel.requestAccepted","Request accepted")}),(0,j.jsx)(d.Z,{sx:{color:"#64748b",fontSize:"0.72rem",lineHeight:1.4},children:F("workflowResult.awsStatusPanel.awsReceivedRun","AWS received the run")})]})]}),(0,j.jsxs)(U,{children:[(0,j.jsx)(K,{children:(0,j.jsx)(h.Z,{sx:{fontSize:18}})}),(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{sx:{color:"#0f172a",fontSize:"0.8rem",fontWeight:800},children:F("workflowResult.awsStatusPanel.scheduling","Scheduling")}),(0,j.jsx)(d.Z,{sx:{color:"#64748b",fontSize:"0.72rem",lineHeight:1.4},children:F("workflowResult.awsStatusPanel.resourcesPreparing","Resources are being prepared")})]})]}),(0,j.jsxs)(U,{children:[(0,j.jsx)(K,{children:(0,j.jsx)(b.Z,{sx:{fontSize:18}})}),(0,j.jsxs)(i.Z,{sx:{minWidth:0},children:[(0,j.jsx)(d.Z,{sx:{color:"#0f172a",fontSize:"0.8rem",fontWeight:800},children:F("workflowResult.awsStatusPanel.runtimeVaries","Runtime varies")}),(0,j.jsx)(d.Z,{sx:{color:"#64748b",fontSize:"0.72rem",lineHeight:1.4},children:F("workflowResult.awsStatusPanel.runtimeRange","3 minutes to 5+ hours")})]})]})]}),(0,j.jsx)(i.Z,{sx:{mt:3,p:1.5,borderRadius:"8px",border:"1px solid rgba(148, 163, 
1184, 0.22)",backgroundColor:"rgba(255,255,255,0.72)"},children:(0,j.jsx)(d.Z,{variant:"caption",sx:{display:"block",color:"#64748b",lineHeight:1.6},children:M})})]})}),Q]});const te="stopping"===$?A:"restarting"===$?I:z,ae=t&&"stopping"!==$?"Current Status: ".concat(t):"stopping"===$?L:"restarting"===$?T:W;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Y,{children:(0,j.jsxs)(B,{children:[(0,j.jsx)(G,{children:(0,j.jsx)(p.Z,{size:42,thickness:4.5,sx:{color:Z}})}),"stopping"!==$&&(0,j.jsx)(i.Z,{sx:{mt:2},children:ee}),(0,j.jsx)(d.Z,{variant:"h6",sx:{color:"#1f2a44",fontSize:"1.35rem",fontWeight:800,mb:1},children:te}),(0,j.jsx)(d.Z,{variant:"body2",sx:{color:"#475569",fontSize:"0.96rem",lineHeight:1.6,mx:"auto",maxWidth:420},children:ae}),(0,j.jsx)(u.Z,{sx:{width:"100%",height:10,borderRadius:999,mt:2.5,mb:2,backgroundColor:"rgba(73, 104, 162, 0.14)","& .MuiLinearProgress-bar":{backgroundColor:Z}}}),(0,j.jsxs)(_,{children:[(0,j.jsx)(q,{}),(0,j.jsxs)(d.Z,{variant:"caption",sx:{fontWeight:700,fontSize:"0.78rem",minHeight:18},children:[R," : ",te]})]}),(0,j.jsx)(d.Z,{variant:"caption",sx:{display:"block",mt:2,mx:"auto",maxWidth:420,color:"#64748b",lineHeight:1.6,whiteSpace:"normal"},children:"stopping"===$?L:M})]})}),Q]})}},99574:(e,t,a)=>{a.d(t,{Ci:()=>v,D7:()=>w});var r,n,i,o=a(1413),s=a(30168),l=a(72791),c=a(52554),d=a(66934),p=a(17760),u=a(56468),f=a(35699),x=a(80184);const h=(0,c.F4)(r||(r=(0,s.Z)(["\n  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2.8deg); }\n  25% { transform: translateX(-50%) translateY(1px) rotate(2.6deg); }\n  50% { transform: translateX(-50%) translateY(0) rotate(3deg); }\n  75% { transform: translateX(-50%) translateY(1px) rotate(-2.6deg); }\n"]))),g=(0,c.F4)(n||(n=(0,s.Z)(["\n  0%, 100% { transform: translateX(-0.2px) translateY(0) rotate(-0.8deg); }\n  25% { transform: translateX(0.1px) translateY(0.25px) rotate(0.7deg); }\n  50% { transform: translateX(0.2px) translateY(0) rotate(0.8deg); }\n  75% { transform: translateX(-0.1px) translateY(0.25px) rotate(-0.7deg); }\n"]))),m=(0,c.F4)(i||(i=(0,s.Z)(["\n  0% { opacity: 0; transform: translateX(6px) scaleX(0.55); }\n  30% { opacity: 0.75; }\n  100% { opacity: 0; transform: translateX(-8px) scaleX(1); }\n"]))),b=e=>{let{theme:t,stepPosition:a,totalSteps:r,isRunning:n,isCompleted:i,highlightColor:s,kind:l,responsiveVariant:c,applyHueFilter:d}=e;const p=((e,t,a)=>0===e?0:a?100:(e-1)/(t-1)*100)(a,r,i),u=Math.min("frustrate"===l?80:100,Math.max(0,p)),f=Math.min(80,Math.max(0,p)),x="kinase"===c,b="drugResponse"===c;return(0,o.Z)({position:"absolute",display:"block",top:"frustrate"===l?"clamp(-50px, -2vh, -24px)":b?"clamp(-36px, -3vh, -24px)":"clamp(-52px, -4.8vh, -38px)",left:"".concat(u,"%"),transform:"translateX(-50%)",width:"clamp(54px, calc(3.6vw + 18px), 76px)",height:"clamp(54px, calc(3.6vw + 18px), 76px)",zIndex:8,overflow:"visible",filter:n&&d?"hue-rotate(".concat("#4968A2"===s?"210deg":"0deg",")"):"none",animation:n?"".concat(h," 0.72s infinite ease-in-out"):i?"".concat(h," 0.5s ease-in-out"):"none",transition:"left 0.8s ease-in-out, transform 0.8s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out, top 0.3s ease-in-out","& .runner-model-canvas":{position:"relative",display:"block",width:"100%",height:"100%",zIndex:2,transformOrigin:"50% 88%",animation:"runner"===l&&n?"".concat(g," 0.42s infinite ease-in-out"):"none"},"& .runner-speed-line":{display:"runner"===l&&n?"block":"none",position:"absolute",left:"-24%",height:"3px",borderRadius:999,background:"linear-gradient(90deg, rgba(73, 104, 162, 0), rgba(73, 104, 162, 0.72))",boxShadow:"0 1px 4px rgba(73, 104, 162, 0.18)",transformOrigin:"right center",animation:"".concat(m," 0.42s ease-out infinite"),zIndex:1},"& .runner-speed-line-one":{top:"34%",width:"28%"},"& .runner-speed-line-two":{top:"48%",width:"20%",animationDelay:"0.12s"},"& .runner-speed-line-three":{top:"62%",width:"24%",animationDelay:"0.24s"},[t.breakpoints.down("md")]:{width:"clamp(44px, calc(4.6vw + 12px), 64px)",height:"clamp(44px, calc(4.6vw + 12px), 64px)",top:x||b&&"runner"===l?"clamp(-30px, -3.8vh, -20px)":"clamp(-48px, -4.4vh, -34px)"},[t.breakpoints.down("sm")]:{width:"clamp(42px, calc(4.8vw + 10px), 58px)",height:"clamp(42px, calc(4.8vw + 10px), 58px)",top:x||b&&"runner"===l?"clamp(-26px, -3.4vh, -18px)":"clamp(-42px, -4vh, -30px)"}},"ppi"===c?{[t.breakpoints.down(480)]:{width:"48px",height:"48px",to
1p:"-40px"}}:{[t.breakpoints.down(1360)]:{width:"64px",height:"64px",top:"-42px",left:"".concat(f,"%")}})},w=e=>{let{className:t,style:a}=e;const r=(0,l.useRef)(null);return(0,l.useEffect)((()=>{const e=r.current;if(!e)return;const t=new p.CP7({canvas:e,alpha:!0,antialias:!0});t.setClearColor(16777215,0),t.setPixelRatio(Math.min(window.devicePixelRatio,1.5)),t.outputColorSpace=u.KI_,t.toneMapping=u.EoG,t.toneMappingExposure=.95;const a=new u.xsS,n=new u.iKG(-2,2,2,-2,.1,100);n.up.set(0,0,1),n.position.set(0,-4,1.15),n.lookAt(0,0,.9),a.add(new u.Mig(16777215,1.45)),a.add(new u.vmT(16777215,14542319,.75));const i=new u.Ox3(16777215,1.45);i.position.set(1.4,-2.2,3.2),a.add(i);let o=null,s=0,l=!1,c=performance.now();const d=()=>{const a=Math.max(e.clientWidth||1,1),r=Math.max(e.clientHeight||1,1);t.setSize(a,r,!1);const i=a/r;n.left=-2.15*i,n.right=2.15*i,n.top=2.15,n.bottom=-2.15,n.updateProjectionMatrix()},x=new ResizeObserver(d);return x.observe(e),d(),(0,f.h)("".concat("","/capsy_runner.glb?v=capsy-runner-large-headroom-20260713")).then((e=>{if(l)return;const r=(new u.ZzF).setFromObject(e.scene),i=r.getSize(new u.Pa4),d=r.getCenter(new u.Pa4),p=2.65/Math.max(i.x,i.y,i.z);e.scene.scale.setScalar(p),e.scene.position.sub(d.multiplyScalar(p)),e.scene.position.z+=1.48,e.scene.rotation.order="YXZ",e.scene.rotation.z=Math.PI/3,e.scene.rotation.y=0;const f=e.scene.position.y,x=e.scene.rotation.y,h=e.scene.rotation.z;a.add(e.scene),e.animations.length>0&&(o=new u.Xcj(e.scene),e.animations.forEach((e=>{var t;const a=null===(t=o)||void 0===t?void 0:t.clipAction(e);if(!a)return;const r=e.name.toLowerCase();r.includes("root")?(a.setEffectiveWeight(.12),a.timeScale=.7):r.includes("foot")?(a.setEffectiveWeight(1),a.timeScale=1.55):(a.setEffectiveWeight(.75),a.timeScale=1.2),a.play()})));const g=()=>{var r;s=requestAnimationFrame(g);const i=performance.now(),l=Math.min((i-c)/1e3,.05);c=i,null===(r=o)||void 0===r||r.update(1.75*l);const d=i/1e3;e.scene.position.y=f+.001*Math.sin(7*d),e.scene.rotation.y=x+.004*Math.sin(6*d),e.scene.rotation.z=h+.002*Math.sin(7*d),t.render(a,n)};g()})),()=>{var e;l=!0,cancelAnimationFrame(s),x.disconnect(),null===(e=o)||void 0===e||e.stopAllAction(),t.dispose()}}),[]),(0,x.jsxs)("span",{className:t,style:a,"aria-hidden":"true",children:[(0,x.jsx)("span",{className:"runner-speed-line runner-speed-line-one"}),(0,x.jsx)("span",{className:"runner-speed-line runner-speed-line-two"}),(0,x.jsx)("span",{className:"runner-speed-line runner-speed-line-three"}),(0,x.jsx)("canvas",{ref:r,className:"runner-model-canvas"})]})},v=e=>{let{highlightColor:t,kind:a,responsiveVariant:r="ppi"}=e;return(0,d.ZP)(w)((e=>b((0,o.Z)((0,o.Z)({},e),{},{highlightColor:t,kind:a,responsiveVariant:r,applyHueFilter:!1}))))}},7263:(e,t,a)=>{a.d(t,{Z:()=>l});a(72791);var r=a(61889),n=a(54835),i=a(7759),o=a(22163),s=a(80184);const l=e=>{let{children:t,isMobile:a,isInitializing:l,overallStatus:c,batchStatus:d,isWorkflowStarting:p,isWorkflowRestarting:u,workflowRunLoading:f,workflowStatusLoading:x,stepCount:h,startingOpacity:g,startingFilter:m}=e;const b=(0,o.I2)({overallStatus:c,batchStatus:d,workflowRunLoading:f,workflowStatusLoading:x,isWorkflowStarting:p,isWorkflowRestarting:u}),w=null!==l&&void 0!==l?l:b.isInitializing;return(0,i.RE)({isWorkflowStarting:p,isWorkflowRestarting:u,workflowRunLoading:f,stepCount:h})?(0,s.jsx)(n.Z,{isMobile:a}):(0,s.jsx)(r.ZP,{container:!0,spacing:a?.5:1,sx:(0,i.pe)({isInitializing:w,isWorkflowStarting:p,isWorkflowRestarting:u,startingOpacity:g,startingFilter:m}),children:t})}},54835:(e,t,a)=>{a.d(t,{Z:()=>g});var r,n=a(30168),i=a(72791),o=a(16029),s=a(61889),l=a(35527),c=a(47047),d=a(52554),p=a(66934),u=a(80184);const f=(0,d.F4)(r||(r=(0,n.Z)(["\n  0%, 100% {\n    opacity: 1;\n  }\n  50% {\n    opacity: 0.65;\n  }\n"]))),x=(0,p.ZP)(o.Z)((()=>({animation:"".concat(f," 1.5s infinite ease-in-out")}))),h=i.memo((e=>{let{isMobile:t,count:a=6}=e;return(0,u.jsx)(x,{children:(0,u.jsx)(s.ZP,{container:!0,spacing:t?.5:1,children:Array.from({length:a}).map(((e,a)=>(0,u.jsx)(s.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,u.jsxs)(l.Z,{sx:{p:t?1.5:2,borderRadius:2,minHeight:t?136:156},children:[(0,u.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[(0,u.jsx)(c.Z,{variant:"circular",width:30,height:30}),(0,u.jsx)(c.Z,{variant:"rectangular",width:60,height:20,sx:{borderRadius:1}})]}),(0,u.jsx)(c.Z,{variant:"text",width:"30%",height:18,sx:{mb:1}}),(0,u.jsx)(c.Z,{variant:"text",width:"80%",height:24,sx:{mb:1}}),(0,u.jsx)(c.Z,{variant:"text",width:"60%",height:18,sx:{mb:1}}),(0,u.jsx)(c.Z,{variant:"text",width:"72%",height:16})]})},a)))})})}));h.displayName="WorkflowStepLoadingSkeleton";const g=h},31400:(e,t,a)=>{a.d(t,{X3:()=>l,fz:()=>p,l1:()=>c,pS:()=>d,zE:()=>s});var r=a(24518),n=a(89673),i=a(16029),o=a(66934);const s=(0,o.ZP)(r.Z)((e=>{let{theme:t}=e;return{borderRadius:8,margin:t.spacing(0,.5),textTransform:"none",boxShadow:"0 2px 4px rgba(0,0,0,0.05)",[t.breakpoints.down("sm")]:{margin:t.spacing(0,.25),padding:t.spacing(.75,1.5),fontSize:"0.8rem"},"&.MuiButton-containedPrimary":{backgroundColor:"#4968A2","&:hover":{backgroundColor:"#4968A0"}},"&.MuiButton-containedError":{backgroundColor:"rgba(211, 47, 47, 0.8)","&:hover":{backgroundColor:"rgba(190, 42, 42, 0.9)"}}}})),l=(0,o.ZP)(n.Z)({boxShadow:"none",background:"transparent","&:before":{display:"none"}}),c=(0,o.ZP)(i.Z)((e=>{let{theme:t}=e;return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"60%",maxWidth:700,maxHeight:"80vh",overflow:"auto",backgroundColor:t.palette.background.paper,boxShadow:"0 4px 20px rgba(0,0,0,0.1)",borderRadius:8,padding:t.spacing(4),[t.breakpoints.down("md")]:{width:"90%",padding:t.spacing(3)},[t.breakpoints.down("sm")]:{width:"95%",maxHeight:"90vh",padding:t.spacing(2)}}})),d=(0,o.ZP)(i.Z)((e=>{let{theme:t}=e;return{backgroundColor:t.palette.grey[50],borderRadius:8,padding:t.spacing(2),marginTop:t.spacing(2),marginBottom:t.spacing(2),border:"1px solid ".concat(t.palette.grey[200]),maxHeight:"300px",overflow:"auto",[t.breakpoints.down("sm")]:{padding:t.spacing(1.5),maxHeight:"200px"}}})),p=((0,o.ZP)(i.Z)((()=>({position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.8)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:11,borderRadius:2}))),(0,o.ZP)(i.Z)((()=>({position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.94) 100%)",backdropFilter:"blur(3px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,zIndex:20,borderRadius:12,padding:24,textAlign:"center","& > .MuiCircularProgress-root":{padding:8,borderRadius:"50%",backgroundColor:"#ffffff",boxShadow:"0 12px 32px rgba(26, 38, 64, 0.12)"},"& .MuiTypography-h6":{color:"#1f2a44",fontSize:"1.25rem",fontWeight:800,letterSpacing:0},"& .MuiTypography-body2":{color:"#475569",fontSize:"0.95rem",lineHeight:1.65},"& .MuiLinearProgress-root":{width:"min(420px, 72%)",height:10,borderRadius:999,backgroundColor:"rgba(73, 104, 162, 0.14)",overflow:"hidden"}}))))},7759:(e,t,a)=>{a.d(t,{RE:()=>r,ne:()=>c,pe:()=>n,sG:()=>s,tB:()=>i,vL:()=>o});const r=e=>{let{isWorkflowStarting:t,isWorkflowRestarting:a,workflowRunLoading:r,stepCount:n}=e;return Boolean(t||a||r||!n)},n=e=>{const{isInitializing:t,isWorkflowStarting:a,isWorkflowRestarting:r,startingOpacity:n=.5,startingFilter:i="blur(1px)"}=e,o=(e=>{let{isInitializing:t,isWorkflowStarting:a,isWorkflowRestarting:r}=e;return Boolean(t||a||r)})(e),s=Boolean(a||r);return{opacity:t?.5:s?n:1,transition:"opacity 0.3s ease-in-out",filter:t?"blur(1px)":s?i:"none",pointerEvents:o?"none":"auto"}},i=e=>{let{overallStatus:t,batchStatus:a,runnerFailed:r,runnerCompleted:n}=e;const i=null===t||void 0===t?void 0:t.toUpperCase();return"FAILED"===i||r?"failed":"SUCCEEDED"===a||"COMPLETED"===i&&n?"completed":"running"},o=e=>4===e?1:5===e?2:6===e?3:1,s=e=>e<=3?e:3,l={stepPosition:0,isRunning:!1,isCompleted:!1,isFailed:!1},c=e=>{let{workflowList:t,overallStatus:a,batchStatus:r,stepStatuses:n,stepCount:i=0,completedBatchStatuses:o=["COMPLETED","SUCCEEDED"]}=e;if((e=>{var t;return!e||"object"===typeof e&&0===(null===(t=Object.keys(e))||void 0===t?void 0:t.length)})(t))return l;if("FAILED"===r)return{stepPosition:1,isRunning:!1,isCompleted:!1,isFailed:!0};if("COMPLETED"===a||r&&o.includes(r))return{stepPosition:i,isRunning:!1,isCompleted:!0,isFailed:!1};const s=Object.entries(n).find((e=>{let[,t]=e;return"RUNNING"===t}));if(s)return{stepPosition:Number.parseInt(s[0],10),isRunning:!0,isCompleted:!1,isFailed:!1};let c=0;
1Object.entries(n).forEach((e=>{let[t,a]=e;"COMPLETED"===a&&(c=Math.max(c,Number.parseInt(t,10)))}));const d=Object.entries(n).find((e=>{let[,t]=e;return"FAILED"===t}));return d?{stepPosition:Number.parseInt(d[0],10),isRunning:!1,isCompleted:!1,isFailed:!0}:{stepPosition:0===c?1:Math.min(c+1,i),isRunning:!1,isCompleted:!1,isFailed:!1}}},5863:(e,t,a)=>{a.d(t,{L:()=>n});var r=a(1413);const n=(e,t)=>{const a="RUNNING"===e;return(0,r.Z)({px:1.5,py:.5,borderRadius:1,bgcolor:"FAILED"===e?"#f25a55":a?t:"COMPLETED"===e?"#838fa3":"STOPPED"===e?"#f5f5f5":"CHECKING"===e?"#9c6fd6":"Not Started"===e?"rgba(0,0,0,0.05)":"#f5f5f5",color:"FAILED"===e||a||"COMPLETED"===e?"white":"STOPPED"===e?"#777777":"CHECKING"===e?"white":"Not Started"===e?"rgba(0,0,0,0.6)":"#666666"},a&&{position:"relative",overflow:"hidden",pl:2.75,fontWeight:700,boxShadow:"0 0 0 0 ".concat(t,"66"),animation:"workflowStatusPulse 1.4s ease-in-out infinite","&::before":{content:'""',position:"absolute",left:8,top:"50%",width:6,height:6,borderRadius:"50%",bgcolor:"currentColor",transform:"translateY(-50%)",animation:"workflowStatusDot 0.9s ease-in-out infinite"},"&::after":{content:'""',position:"absolute",inset:0,background:"linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.35) 45%, transparent 70%)",transform:"translateX(-100%)",animation:"workflowStatusShimmer 1.8s ease-in-out infinite"},"@keyframes workflowStatusPulse":{"0%, 100%":{boxShadow:"0 0 0 0 ".concat(t,"66"),transform:"translateY(0)"},"50%":{boxShadow:"0 0 0 6px ".concat(t,"00"),transform:"translateY(-1px)"}},"@keyframes workflowStatusDot":{"0%, 100%":{opacity:.45,transform:"translateY(-50%) scale(0.75)"},"50%":{opacity:1,transform:"translateY(-50%) scale(1.15)"}},"@keyframes workflowStatusShimmer":{"0%":{transform:"translateX(-100%)"},"55%, 100%":{transform:"translateX(100%)"}}})}},30524:(e,t,a)=>{a.d(t,{Z:()=>o});var r=a(72791),n=a(22592),i=a(62311);const o=e=>{let{groupName:t,libraryName:a,round:o,workflowName:s,shouldPoll:l,intervalMs:c=5e3,fetchOnMount:d=!0}=e;const p=(0,n.T)(),u=(0,n.C)((e=>{var t;return null===e||void 0===e||null===(t=e.workFlowStatus)||void 0===t?void 0:t.response})),f=(0,r.useRef)(null),x=a?"".concat(s,"-").concat(a,"-").concat(o):null;(0,r.useEffect)((()=>{if(!d||!a||!x)return;const e=(null===u||void 0===u?void 0:u.workflow_name)===s&&(null===u||void 0===u?void 0:u.round)===o;f.current===x||e||(f.current=x,p((0,i.go)({group_name:t,library_name:a,round:o,workflow_name:s})))}),[p,d,t,a,x,o,s,null===u||void 0===u?void 0:u.workflow_name,null===u||void 0===u?void 0:u.round]),(0,r.useEffect)((()=>{if(!a||!l)return;let e=null,r=!1;const n=async()=>{"visible"===document.visibilityState&&await p((0,i.go)({group_name:t,library_name:a,round:o,workflow_name:s})),r||(e=window.setTimeout(n,c))};e=window.setTimeout(n,c);const d=()=>{"visible"!==document.visibilityState||r||n()};return document.addEventListener("visibilitychange",d),()=>{r=!0,null!==e&&window.clearTimeout(e),document.removeEventListener("visibilitychange",d)}}),[p,t,c,a,o,l,s])}}}]);
2//# sourceMappingURL=1812.36f0680b.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.