https://slatebot.ai/_next/static/chunks/920-6910a9b39208b7a4.js?dpl=dpl_2Nuu6omr4npNWnSXyBzumx3yJQkb
1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sl8-app":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[920],{836:(e,t,a)=>{a.d(t,{$V:()=>m,$X:()=>x,Ad:()=>u,JJ:()=>c,JN:()=>p,j2:()=>g,lI:()=>h,oB:()=>d,z5:()=>f});var n=a(2315),i=a(90543),r=a(92966),o=a(37870),s=a(66234),l=a(92659);let d=(0,i.v)()((0,r.lt)((e,t)=>({jobs:{},jobProject:{},jobTitles:{},applyEvents:(t,a)=>{0!==a.length&&e(e=>{let n=e.jobs[t]??(0,o.Vk)(t),i=(0,o.VK)(n,a);return i===n?e:{jobs:{...e.jobs,[t]:i}}})},registerJobProject:(t,a)=>e(e=>a&&e.jobProject[t]!==a?{jobProject:{...e.jobProject,[t]:a}}:e),registerJobTitle:(t,a)=>e(e=>{let n=a?.trim();return!n||e.jobTitles[t]?e:{jobTitles:{...e.jobTitles,[t]:n}}}),getJob:e=>t().jobs[e],clearJob:t=>e(e=>{if(!e.jobs[t])return e;let{[t]:a,...n}=e.jobs,{[t]:i,...r}=e.jobProject,{[t]:o,...s}=e.jobTitles;return{jobs:n,jobProject:r,jobTitles:s}}),reset:()=>e({jobs:{},jobProject:{},jobTitles:{}})}),{name:"job-store"}));function c(e){return d(t=>e?t.jobs[e]:void 0)}function u(){return d(e=>e.jobTitles)}function p(e){return d(t=>e?t.jobTitles[e]:void 0)}function f(e){return d(t=>{let a=e?t.jobs[e]:void 0;return!!a&&"idle"!==a.phase&&!(0,o.Hd)(a)})}function h(e){return d(t=>{let a=Date.now(),n=Object.values(t.jobs).filter(a=>{var n,i,r;return"idle"!==a.phase&&(n=t.jobProject,i=a.jobId,r=e,(0,l.qn)(n[i],r))}),i=n.filter(e=>(0,s.Sb)(e,a)),r=i.length>0?i:n;return 0===r.length?null:r.reduce((e,t)=>(0,s.i3)(t)>(0,s.i3)(e)?t:e).jobId})}function m(e,t){let a=d(e=>e.jobs),i=d(e=>e.jobProject);return(0,n.useMemo)(()=>(0,l.Iv)(a,i,e,t),[a,i,e,t])}function g(e){return d(t=>{let a=Date.now();return Object.values(t.jobs).some(n=>{var i,r,o;return(0,s.Sb)(n,a)&&(i=t.jobProject,r=n.jobId,o=e,(0,l.qn)(i[r],o))})})}function x(e){let t=d(e=>e.jobs),a=d(e=>e.jobProject);return(0,n.useMemo)(()=>(0,l.Uk)(t,a,e),[t,a,e])}},3438:(e,t,a)=>{a.d(t,{AT:()=>m,AU:()=>d,CK:()=>y,Li:()=>l,Sn:()=>h,Sx:()=>p,UR:()=>b,Y5:()=>g,bb:()=>v,dL:()=>c,e1:()=>u,gf:()=>j,h$:()=>k,mX:()=>x});var n=a(23785),i=a(37870),r=a(14894);let o={preparing:{label:"Preparing",tone:"neutral",spinning:!0},working:{label:"Working",tone:"active",spinning:!0},waiting:{label:"Waiting on you",tone:"waiting",spinning:!1},finishing:{label:"Finishing",tone:"active",spinning:!0},delivered:{label:"Delivered",tone:"done",spinning:!1},"delivered-with-issues":{label:"Delivered with issues",tone:"warn",spinning:!1},failed:{label:"Couldn't deliver",tone:"fail",spinning:!1}};function s(e,t){return t&&(0,i.Hd)(e)?"finishing":(0,i.pz)(e)}function l(e,t=!1){let a=s(e,t);return a?o[a]:null}function d(e,t=!1){return"finishing"===s(e,t)?"Wrapping up â writing the summaryâ¦":null}let c=3;function u(e){if(e.activity?.label)return e.activity.label;for(let t=e.workLog.length-1;t>=0;t--){let a=e.workLog[t]?.payload.tool;if(a)return f[a]??null}return null}function p(e){return!e.activity||(0,i.Hd)(e)?null:{taskIndex:e.activity.taskIndex,text:e.activity.label,target:e.activity.target}}let f={Bash:"running commands",Write:"writing files",Edit:"writing files",MultiEdit:"writing files",NotebookEdit:"writing files",Read:"reading files",Glob:"scanning files",Grep:"scanning files",LS:"scanning files",WebFetch:"fetching resources",WebSearch:"researching",TodoWrite:"planning steps",Task:"delegating work"};function h(e){let t=e.milestones.every(e=>"studio"===e.event.type);return"working"!==e.phase||0!==e.steps.length||(0,i.Hd)(e)||e.question||!t?null:{text:"Reading your brief, planning the workâ¦",counter:u(e),tone:"pending",key:"prepare"}}function m(e,t){let a=[...e.milestones.filter(e=>"outcome"!==e.event.type).map(e=>{let t=(0,n.c$)(e.event);return t?{...t,key:e.key}:null}).filter(e=>null!==e)],i=h(e);return(i&&a.push(i),t||a.length<=c)?{lines:a,hiddenCount:0}:{lines:a.slice(-c),hiddenCount:a.length-c}}function g(e,t=!1){if(!e.outcome||"done"!==e.phase&&"failed"!==e.phase||t)return null;let a=(0,n.c$)(e.milestones.find(e=>"outcome"===e.key)?.event??{v:1,jobId:e.jobId,seq:0,ts:0,level:"milestone",type:"outcome",payload:e.outcome}),i=e.outcome.status;return{headline:a?.text??"",tone:"delivered"===i?"done":"partial"===i?"warn":"fail",celebrate:"delivered"===i,reassurance:(0,n.Nv)(i)}}function x(e,t=!1){let a=g(e,t);return a?{label:"done"===a.tone?"Work complete":"warn"===a.tone?"Delivered with issues":"Couldn't deliver",tone
1:"done"===a.tone?"success":"warn"===a.tone?"warning":"error",duration:e.receipt?.durationMs!=null?(0,n.a3)(e.receipt.durationMs):null}:null}function b(e,t){return e.receipt&&(0,n.IA)({durationMs:e.receipt.durationMs,skillName:t.skillName??null,skillVersion:t.skillVersion??null,studioName:t.studioName??null})||null}function y(e,t){return e?(0,n.a3)(Math.max(0,t-e)):null}function k(e){let{items:t,total:a}=(0,r.m2)(e),n=t[0];return n?{filename:n.filename,path:n.path,kind:n.kind,late:n.late,others:a-1}:null}function v(e){let t=e.workLog.length;return 0===t?"Work log":`Work log \xb7 ${t} lines`}function j(e,t){if(0===e.steps.length&&"idle"!==e.phase){let a="failed"===e.phase||"done"===e.phase&&e.outcome?.status!=="delivered"?"failed":"done"===e.phase?"completed":"finishing"===e.phase?"frozen":"working"===e.phase?"started":"pending";return{steps:[{index:0,title:t?.trim()||"Complete assignment",status:a,counter:"1/1"}],completed:+("completed"===a),total:1,frozen:"finishing"===e.phase||"done"===e.phase||"failed"===e.phase}}let a=e.steps.length,n=e.steps.map(e=>({index:e.index,title:e.title,status:e.status,counter:`${e.index+1}/${a}`}));return{steps:n,completed:n.filter(e=>"completed"===e.status).length,total:a,frozen:"finishing"===e.phase||"done"===e.phase||"failed"===e.phase}}},11576:(e,t,a)=>{a.d(t,{M:()=>i});var n=a(21128);async function i(){try{let e=await fetch("/api/billing/portal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({returnUrl:window.location.href})});if(!e.ok){if(404===e.status){window.location.href="/checkout";return}throw Error(`Portal request failed: ${e.status}`)}let t=await e.json();if(!t.portalUrl)throw Error("Portal URL missing from response");window.location.href=t.portalUrl}catch{(0,n.o)({type:"error",description:"Could not open the billing portal. Please try again in a moment."})}}},14894:(e,t,a)=>{a.d(t,{$F:()=>f,I2:()=>h,m2:()=>o,n9:()=>u});var n=a(54928),i=a(15334),r=a(67665);function o(e){let t=e.artifacts.length,a=function(e){let t=new Map;for(let a of e)t.set(a.filename,(t.get(a.filename)??0)+1);return e.map(e=>{var a,n;let i,r;return(t.get(e.filename)??0)>1?{...e,caption:(a=e.path,n=e.filename,(r=(i=a.split("/").filter(Boolean))[i.length-2])?`${r}/${n}`:n)}:e})}(e.artifacts.map((e,t)=>({artifact:e,index:t})).sort((e,t)=>{let a=Number(e.artifact.late)-Number(t.artifact.late);if(0!==a)return a;let n=s(e.artifact)-s(t.artifact);return 0!==n?n:e.index-t.index}).slice(0,8).map(({artifact:e})=>{let t;return{path:e.path,filename:e.filename,kind:c[t=d(e.filename)]??(t?t.toUpperCase():"File"),iconKind:(0,r.NY)(e.filename),late:e.late,caption:e.filename}}));return{items:a,total:t,overflow:t-a.length,countLabel:t>1?`${t} files`:null}}function s(e){var t;return e.late?0:+(t=e.filename,!!l.has(d(t)))}let l=new Set(["md","markdown","txt","json"]);function d(e){return e.split(".").pop()?.toLowerCase()??""}let c={md:"Markdown",markdown:"Markdown",txt:"Text",json:"JSON",csv:"CSV",html:"HTML",py:"Python",ts:"TypeScript",js:"JavaScript",png:"PNG image",jpg:"JPEG image",jpeg:"JPEG image",gif:"GIF image",svg:"SVG image",webp:"WebP image",pdf:"PDF",mp4:"Video",xlsx:"Spreadsheet",docx:"Document"};function u({file:e,projectId:t}){if(!t)return p("no-project",null);if(!e)return p("unresolved",null);let a=(0,i.F)(t,e.path);return"image"===e.kind&&e.contentType.startsWith("image/")?e.size<=8388608?{face:"image",src:a}:p("too-large",(0,n.z3)(e.size)):"video"===e.kind&&e.contentType.startsWith("video/")?{face:"video",src:a}:(0,r.tl)(e.contentType)?e.size<=r.sB?{face:"excerpt",src:a,bytes:Math.min(e.size,2048)}:p("too-large",(0,n.z3)(e.size)):p("unsupported",e.size>0?(0,n.z3)(e.size):null)}function p(e,t){return{face:"icon",reason:e,sizeLabel:t}}function f(e,t,a){let n=e.replace(/\r\n?/g,"\n").replace(/\n{2,}/g,"\n\n").replace(/^\s+/,"").replace(/\s+$/,"");if(0===n.length)return null;let i=n.split("\n").slice(0,t).join("\n");return i.length<=a?i:`${i.slice(0,Math.max(0,a-1)).trimEnd()}â¦`}function h(e,t){if(e.length<=t)return e;let a=e.lastIndexOf("."),n=a>0?e.slice(a):"",i=a>0?e.slice(0,a):e,r=t-n.length-1;if(r<4)return`${e.slice(0,t-1)}â¦`;let o=Math.ceil(.62*r),s=r-o;return`${i.slice(0,o)}â¦${s>0?i.slice(i.length-s):""}${n}`}},15334:(e,t,a)=>{a.d(t,{F:()=>n});function n(e,t){let a=t.split("/").map(encodeURIComponent).join("/");return`/api/projects/${encodeURIComponent(e)}/files/${a}/content`}},20979:(e,t,a)=>{a.d(t,{J:()=>h});var n=a(68987),i=a(2315),r=a(59371),o=a(17524),s=a(67130),l=a(69900),d=a(52172),c=a(81596),u=a(71519);function p({node:e,projectId:t,onFileClick:a,level:d,readOnly:u}){let f=e.children?.length??0,[m,g]=(0,i.useState)(f<=5);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Fg,{children:(0,n.jsxs)(c.Cp,{onClick:()=>g(!m),className:"group justify-start cursor-pointer px-1.5 h-7 gap-1.5 hover:bg-sidebar-accent/60 rounded-md",style:{paddingLeft:`${14*d+4}px`},children:[(0,n.jsx)("span",{className:"flex items-center justify-center size-5 shrink-0 rounded bg-muted-foreground
1/8",children:m?(0,n.jsx)(r.A,{className:"size-3.5 text-muted-foreground"}):(0,n.jsx)(o.A,{className:"size-3.5 text-muted-foreground"})}),(0,n.jsx)("span",{className:"truncate text-[13px] font-medium text-sidebar-foreground/90 tracking-tight",children:e.name}),(0,n.jsxs)("span",{className:"ml-auto flex items-center gap-1",children:[(0,n.jsx)("span",{className:"text-[10px] tabular-nums text-muted-foreground/60 font-medium",children:f}),m?(0,n.jsx)(s.A,{className:"size-3 shrink-0 text-muted-foreground/50 transition-transform"}):(0,n.jsx)(l.A,{className:"size-3 shrink-0 text-muted-foreground/50 transition-transform"})]})]})}),m&&e.children&&(0,n.jsx)(h,{nodes:e.children,projectId:t,onFileClick:a,level:d+1,readOnly:u})]})}function f({node:e,onFileClick:t,level:a}){let i=(0,d.b0)(e.kind||"text"),r=(0,d.j8)(e.kind||"text");return(0,n.jsx)(c.Fg,{children:(0,n.jsxs)(c.Cp,{onClick:()=>t(e),className:"group justify-start cursor-pointer px-1.5 h-7 gap-1.5 hover:bg-sidebar-accent/60 rounded-md",style:{paddingLeft:`${14*a+4}px`},children:[(0,n.jsx)(i,{className:(0,u.cn)("size-3.5 shrink-0",r)}),(0,n.jsx)("span",{className:"truncate text-[13px] text-sidebar-foreground/75 tracking-tight",children:e.name}),void 0!==e.size&&e.size>0&&(0,n.jsx)("span",{className:"ml-auto text-[10px] tabular-nums text-muted-foreground/50 opacity-0 group-hover:opacity-100 touch:opacity-100 transition-opacity",children:function(e){if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024)),a=e/1024**t;return`${a<10?a.toFixed(1):Math.round(a)} ${["B","KB","MB","GB"][t]}`}(e.size)})]})})}function h({nodes:e,projectId:t,onFileClick:a,level:i=0,readOnly:r}){return(0,n.jsx)(n.Fragment,{children:e.map(e=>"folder"===e.type?(0,n.jsx)(p,{node:e,projectId:t,onFileClick:a,level:i,readOnly:r},e.path):(0,n.jsx)(f,{node:e,projectId:t,onFileClick:a,level:i,readOnly:r},e.path))})}},21588:(e,t,a)=>{a.d(t,{C:()=>o,aj:()=>u,CQ:()=>p,po:()=>n.po,hR:()=>d.hR});var n=a(89380);let i=Object.freeze({hire:"Hire",hiring:"Hiringâ¦",putToWork:"Put to work",newSpecialist:"New Specialist",createSpecialist:"Create Specialist",openSpecialist:"Open Specialist",deleteSpecialist:"Delete Specialist",renameSpecialist:"Rename Specialist",viewDetails:"View Details",tryAgain:"Try again",backToSetup:"Back to setup"}),r=Object.freeze({saving:"Saving the brief",validating:"Checking the brief",copying:"Copying skill files",finalizing:"Finalizing",opening:"Opening your Specialist"}),o=Object.freeze({specialist:n.M_.specialist.one,specialists:n.M_.specialist.many,studio:n.M_.studio.one,studios:n.M_.studio.many,skill:n.M_.skill.one,skills:n.M_.skill.many,job:n.M_.job.one,jobs:n.M_.job.many,deliverable:n.M_.deliverable.one,deliverables:n.M_.deliverable.many,actions:i,lines:Object.freeze({hireSubtitle:"Hire a Specialist â and pick the Studio they work in.",discoverSubtitle:"Hire a Specialist for the work in front of you.",noSpecialistsMatch:"No Specialists match those filters.",noSpecialistsYet:"No Specialists here yet.",mySpecialists:"My Specialists",searchSpecialists:"Search Specialistsâ¦",searchSpecialistsHint:"Search Specialists â try âexplainer videoâ or âlisting photosâ",featuredFirst:"Featured first",forLabel:"For",anyone:"Anyone",anyStudio:"Any Studio",clearSearch:"Clear search",clearSearchAndFilters:"Clear search & filters",hiddenMarker:"Hidden",pageDidNotLoad:"This page didnât load. Nothing is lost â try again.",searchAllSpecialists:"Search all Specialists",productSubtitle:"AI Studios",noSpecialistsSidebar:"No Specialists yet",specialistName:"Specialist name",pickStudio:"Where should your Specialist work?",studioLocked:"The Studio is fixed once a Specialist is hired.",studioNotFound:"Studio not found",studiosUnavailable:"No Studios are available right now â try again shortly.",whatTheyBring:"What they bring",underTheHood:"Under the hood",buildRef:"Build",untitledSpecialist:"Untitled Specialist",defaultSpecialistName:"New Specialist"}),hiring:Object.freeze({steps:r,failed:"We couldnât finish setting up your Specialist. Your setup is safe.",didNotFinish:"Setup didnât finish",ready:"Ready to work",how:Object.freeze({title:"How hiring works",one:"Hire â review their ready-made setup",two:"âPut to workâ opens their Studio",three:"Give the first brief â the first deliverable lands soon after"})}),count:(e,t)=>
1`${t} ${1===t?n.M_[e].one:n.M_[e].many}`,specialistName:e=>(e??"").trim()||"Untitled Specialist",gettingSetUp:e=>`${e} is getting set up.`,worksIn:e=>`Works in the ${e.fullName}`,hireName:e=>`${i.hire} ${e}`,readyToPutToWork:e=>`Ready to put ${e} to work?`,noneMatchQuery:e=>`No ${n.M_.specialist.many} match â${e}â.`,studioA11y:e=>`${e.fullName}. ${i.viewDetails}.`,studioClosed:e=>`This ${n.M_.studio.one} has closed. New ${n.M_.specialist.many} work in the ${e.fullName}.`});var s=a(23382),l=a(48291),d=a(15514);let c=(0,l.r)(s.l);function u(e){return e&&c.brands.get(e)||d.SN}function p(e,t){let a=t?e.find(e=>e.id===t):void 0;return a?a.brand??d.SN:u(t)}c.order},23785:(e,t,a)=>{function n(e){switch(e.type){case"studio":{let{state:t,studioName:a}=e.payload;return"ready"===t?{text:`${a} ready`,tone:"done",counter:null}:{text:`Setting up the ${a}â¦`,tone:"pending",counter:null}}case"plan":{let{stepCount:t}=e.payload;return{text:`Planned the job â ${t} step${1===t?"":"s"}.`,tone:"info",counter:null}}case"task":{let{index:t,total:a,title:n,status:i}=e.payload,r=`${t+1}/${a}`;switch(i){case"completed":return{text:n,tone:"done",counter:r};case"failed":return{text:n,tone:"fail",counter:r};case"frozen":return{text:n,tone:"info",counter:r};case"pending":return{text:n,tone:"pending",counter:r};default:return{text:`${n}â¦`,tone:"pending",counter:r}}}case"obstacle":{let{cause:t,resolution:a,recovery:n}=e.payload;switch(a){case"resolved":return{text:`${t} â sorted â`,tone:"warn",counter:null};case"retrying":return{text:`${t} â retrying once`,tone:"warn",counter:null};case"failed":return{text:t,tone:"fail",counter:null};default:return{text:n?`${t} â ${n}`:t,tone:"warn",counter:null}}}case"artifact":{let{filename:t,late:a}=e.payload;return{text:a?`Delivered: ${t} (added after completion)`:`Delivered: ${t}`,tone:"done",counter:null}}case"question":return{text:e.payload.text,tone:"warn",counter:null};case"outcome":var t=e.payload.status,a=e.payload.reason;switch(t){case"delivered":return{text:"Delivered",tone:"done",counter:null};case"partial":return{text:a?`Delivered with issues â ${s(a)}`:"Delivered with issues",tone:"warn",counter:null};case"failed":return{text:a?`Couldn't deliver this time â ${s(a)}`:"Couldn't deliver this time",tone:"fail",counter:null}}return;default:return null}}function i(e){return"delivered"===e?null:"Every decision is saved â say 'retry' when you're ready."}function r(e){let t=Math.max(0,Math.round(e/1e3)),a=Math.floor(t/60),n=t%60;return a>0?`${a}m ${n}s`:`${n}s`}function o(e){let t=[];return null!==e.durationMs&&t.push(`Done in ${r(e.durationMs)}`),e.skillName&&t.push(e.skillVersion?`${e.skillName} v${e.skillVersion}`:e.skillName),e.studioName&&t.push(e.studioName),t.join(" \xb7 ")}function s(e){return!e||e.length>1&&e[1]===e[1].toUpperCase()&&/[A-Z]/.test(e[1])?e:e[0].toLowerCase()+e.slice(1)}a.d(t,{IA:()=>o,Nv:()=>i,a3:()=>r,c$:()=>n})},24168:(e,t,a)=>{a.d(t,{C:()=>o,M:()=>r});var n=a(90543),i=a(92966);let r=[{id:"aurora",name:"Aurora",background:` 2 radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 3 radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 4 radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%) 5 `,darkBackground:` 6 radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 7 radial-gradient(at 50% 0%, hsla(225,39%,20%,1) 0, transparent 50%), 8 radial-gradient(at 100% 0%, hsla(339,49%,20%,1) 0, transparent 50%) 9 `},{id:"nebula",name:"Nebula",background:` 10 radial-gradient(at 0% 100%, hsla(253,16%,7%,1) 0, transparent 50%), 11 radial-gradient(at 50% 100%, hsla(225,39%,25%,1) 0, transparent 50%), 12 radial-gradient(at 100% 100%, hsla(339,49%,25%,1) 0, transparent 50%) 13 `,darkBackground:` 14 radial-gradient(at 0% 100%, hsla(253,16%,7%,1) 0, transparent 50%), 15 radial-gradient(at 50% 100%, hsla(225,39%,15%,1) 0, transparent 50%), 16 radial-gradient(at 100% 100%, hsla(339,49%,15%,1) 0, transparent 50%) 17 `},{id:"sunset",name:"Sunset",background:` 18 radial-gradient(at 100% 100%, hsla(20,100%,85%,0.5) 0, transparent 50%), 19 radial-gradient(at 0% 100%, hsla(260,100%,90%,0.5) 0, transparent 50%), 20 radial-gradient(at 50% 50%, hsla(340,100%,85%,0.3) 0, transparent 50%)
21 `,darkBackground:` 22 radial-gradient(at 100% 100%, hsla(20,60%,20%,0.4) 0, transparent 50%), 23 radial-gradient(at 0% 100%, hsla(260,40%,20%,0.4) 0, transparent 50%), 24 radial-gradient(at 50% 50%, hsla(340,60%,20%,0.2) 0, transparent 50%) 25 `},{id:"ocean",name:"Ocean",background:` 26 radial-gradient(at 0% 0%, hsla(190,100%,90%,0.4) 0, transparent 50%), 27 radial-gradient(at 100% 100%, hsla(220,100%,90%,0.4) 0, transparent 50%), 28 radial-gradient(at 50% 50%, hsla(200,100%,95%,0.2) 0, transparent 50%) 29 `,darkBackground:` 30 radial-gradient(at 0% 0%, hsla(190,40%,20%,0.3) 0, transparent 50%), 31 radial-gradient(at 100% 100%, hsla(220,40%,20%,0.3) 0, transparent 50%), 32 radial-gradient(at 50% 50%, hsla(200,40%,25%,0.1) 0, transparent 50%) 33 `},{id:"aurora-dream",name:"Aurora Dream",background:` 34 radial-gradient(ellipse 85% 65% at 8% 8%, rgba(175, 109, 255, 0.42), transparent 60%), 35 radial-gradient(ellipse 75% 60% at 75% 35%, rgba(255, 235, 170, 0.55), transparent 62%), 36 radial-gradient(ellipse 70% 60% at 15% 80%, rgba(255, 100, 180, 0.40), transparent 62%), 37 radial-gradient(ellipse 70% 60% at 92% 92%, rgba(120, 190, 255, 0.45), transparent 62%), 38 linear-gradient(180deg, #f7eaff 0%, #fde2ea 100%) 39 `,darkBackground:` 40 radial-gradient(ellipse 85% 65% at 8% 8%, rgba(175, 109, 255, 0.2), transparent 60%), 41 radial-gradient(ellipse 75% 60% at 75% 35%, rgba(255, 235, 170, 0.25), transparent 62%), 42 radial-gradient(ellipse 70% 60% at 15% 80%, rgba(255, 100, 180, 0.2), transparent 62%), 43 radial-gradient(ellipse 70% 60% at 92% 92%, rgba(120, 190, 255, 0.2), transparent 62%), 44 linear-gradient(180deg, #1a1025 0%, #1a0b15 100%) 45 `},{id:"indigo-splash",name:"Indigo Splash",background:"radial-gradient(125% 125% at 50% 10%, #fff 40%, #6366f1 100%)",darkBackground:"radial-gradient(125% 125% at 50% 10%, #000 40%, #312e81 100%)"},{id:"clean",name:"Clean",background:"transparent",darkBackground:"transparent"}],o=(0,n.v)()((0,i.Zr)(e=>({backgroundId:"sunset",setBackgroundId:t=>e({backgroundId:t}),tasksView:"list",setTasksView:t=>e({tasksView:t})}),{name:"settings-storage"}))},37870:(e,t,a)=>{a.d(t,{Hd:()=>c,VK:()=>s,Vk:()=>r,pz:()=>d});var n=a(43557);let i={idle:0,preparing:1,working:2,finishing:3,done:4,failed:4};function r(e){return{jobId:e,phase:"idle",milestones:[],milestoneLog:[],steps:[],artifacts:[],outcome:null,receipt:null,runningCostUsd:null,question:null,activity:null,reports:[],workLog:[],lastLaunchSeq:0,lastRunSeq:0}}function o(e,t){var a,i,r,o,s;if(a=e,(i=t).jobId!==a.jobId&&""!==a.jobId||!(i.seq>(r=a,i.seq>=n.YO?r.lastRunSeq:r.lastLaunchSeq)))return e;let d={...e,...(o=t).seq>=n.YO?{lastRunSeq:o.seq}:{lastLaunchSeq:o.seq}};switch(t.type){case"studio":d.phase=l(d.phase,"ready"===t.payload.state?"working":"preparing");break;case"plan":d.phase=l(d.phase,"working"),d.steps=t.payload.steps.map((e,t)=>({index:t,title:e,status:d.steps.find(e=>e.index===t)?.status??"pending"}));break;case"task":d.phase=l(d.phase,"working"),d.steps=function(e,t){let a=e.findIndex(e=>e.index===t.index);if(-1===a)return[...e,t].sort((e,t)=>e.index-t.index);let n=[...e];return n[a]=t,n}(d.steps,{index:t.payload.index,title:t.payload.title,status:t.payload.status}),"started"!==t.payload.status&&d.activity?.taskIndex===t.payload.index&&(d.activity=null);break;case"activity":d.phase=l(d.phase,"working"),d.activity={taskIndex:t.payload.taskIndex,tool:t.payload.tool,label:t.payload.label,target:t.payload.target,ts:t.ts};break;case"report":d.reports=d.reports.length>=50?[...d.reports.slice(1),{...t.payload,ts:t.ts}]:[...d.reports,{...t.payload,ts:t.ts}];break;case"obstacle":d.phase=l(d.phase,"working");break;case"artifact":d.artifacts=function(e,t){let a=e.findIndex(e=>e.path===t.path);if(-1===a)return[...e,t];let n=[...e];return n[a]=t,n}(d.artifacts,t.payload);break;case"question":d.phase=l(d.phase,"working"),d.question={...t.payload};break;case"outcome":d.phase=l(d.phase,"finishing"),d.outcome={...t.payload},d.question=null,d.activity=null;break;case"cost":t.payload.running?d.runningCostUsd=t.payload.costUsd??d.runningCostUsd:(d.receipt={costUsd:t.payload.costUsd,durationMs:t.payload.durationMs,numTurns:t.payload.numTurns},d.runningCostUsd=t.payload.costUsd??d.runningCostUsd,d.phase="done"===d.phase&&d.outcome?.status==="failed"?"failed":l(d.phase,(s=d.outcome,s?.status==="failed"?"failed":"done")),d.question=null);break;case"log":d.workLog=d.workLog.length>=1e3?[...d.workLog.slice(1),t]:[...d.workLog,t]}let c=(0,n.Mz)(t);return c&&"milestone"===t.level&&(d.milestones=function(e,t,a){let n=e.findIndex(e=>e.key===t);if(-1===n)return[...e,{key:t,event:a}];let i=[...e];return i[n]={key:t,event:a},i}(d.milestones,c,t),d.milestoneLog=[...d.milestoneLog,t]),d}function s(e,t){return t.reduce(o,e)}function l(e,t){return i[t]>i[e]?t:e}function d(e){switch(e.phase){case"idle":return null;case"preparing":return"preparing";case"working":return e.question?"waiting":"working";case"finishing":return"finishing";case"failed":return"failed";case"done":return e.outcome?.status==="partial"?"delivered-with-issues":"delivered"}}function c(e){return"done"===e.phase||"failed"===e.phase}},41671:(e,t,a)=>{a.d(t,{AM:()=>s,Wv:()=>l,hl:()=>d});var n=a(68987),i=a(2315),r=a(74991),o=a(71519);let s=r.bL,l=r.l9;r.Mz;let d=i.forwardRef(({className:e,align:t="center",sideOffset:a=4,...i},s)=>(0,n.jsx)(r.ZL,{children:(0,n.jsx)(r.UC,{ref:s,align:t,sideOffset:a,className:(0,o.cn)("z-50 w-72 rounded-3xl border border-white/20 dark:border-white/10 bg-white/10 dark:bg-black/20 backdrop-blur-3xl p-4 text-popover-foreground shadow-[0_8px_32px_rgba(0,0,0,0.12)] shadow-[inset_0_1px_1px_rgba(255,255,255,0.2)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
45de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...i})}));d.displayName=r.UC.displayName},43557:(e,t,a)=>{a.d(t,{Mz:()=>r,YO:()=>i,k1:()=>n});let n=1,i=1e3;function r(e){switch(e.type){case"studio":return"studio";case"plan":return"plan";case"task":return`task:${e.payload.index}`;case"obstacle":return`obstacle:${e.payload.taskIndex??"job"}`;case"artifact":return`artifact:${e.payload.path}`;case"question":return`question:${e.payload.questionId}`;case"outcome":return"outcome";default:return null}}},50432:(e,t,a)=>{a.d(t,{$l:()=>r,eK:()=>o,mD:()=>s});var n=a(42733);async function i(e,t){let a=new URLSearchParams;"artifacts/"!==t&&a.set("prefix",t);let n=`/api/projects/${e}/files${a.toString()?`?${a}`:""}`,i=await fetch(n);if(!i.ok)throw Error(`Failed to fetch project files: ${i.status}`);return i.json()}function r(e){let t=[];for(let a of e){let e=a.path.split("/"),n=t;for(let t=0;t<e.length-1;t++){let a=e[t],i=n.find(e=>e.name===a&&"folder"===e.type);i||(i={name:a,path:e.slice(0,t+1).join("/"),type:"folder",children:[]},n.push(i)),n=i.children}n.push({name:e[e.length-1],path:a.path,type:"file",kind:a.kind,size:a.size,updatedAt:a.updatedAt})}let a=e=>{for(let t of(e.sort((e,t)=>e.type!==t.type?"folder"===e.type?-1:1:e.name.localeCompare(t.name)),e))t.children&&a(t.children)};return a(t),t}function o({projectId:e,prefix:t="artifacts/",enabled:a=!0}){let{data:r,error:s,isLoading:l,mutate:d}=(0,n.Ay)(a&&e?["project-files",e,t]:null,()=>i(e,t),{revalidateOnFocus:!1,revalidateOnReconnect:!1});return{files:r?.files??[],isLoading:l,error:s,refresh:()=>d(),source:r?.source??null}}function s({projectId:e,enabled:t=!0}){let a=(0,n.Ay)(t&&e?["project-files",e,"artifacts/"]:null,()=>i(e,"artifacts/"),{revalidateOnFocus:!1,revalidateOnReconnect:!1}),o=(0,n.Ay)(t&&e?["project-files",e,"bot/"]:null,()=>i(e,"bot/"),{revalidateOnFocus:!1,revalidateOnReconnect:!1}),l=(e,t)=>
45{let a,n=t.data?.files??[],{nodes:i,rootedByRelative:o}=(a=new Map,{nodes:r(n.map(t=>{let n=t.path.startsWith(`${e}/`)?t.path.slice(e.length+1):t.path;return a.set(n,t.path),{...t,path:n}})),rootedByRelative:a});return{nodes:i,fileCount:n.length,rootedByRelative:o,isLoading:t.isLoading,error:t.error}};return{artifacts:l("artifacts",a),bot:l("bot",o),isLoading:a.isLoading||o.isLoading,refresh:()=>{a.mutate(),o.mutate()}}}},52172:(e,t,a)=>{a.d(t,{Cx:()=>x,b0:()=>m,j8:()=>g});var n=a(68987),i=a(34679),r=a(74602),o=a(92150),s=a(89831),l=a(86651),d=a(86661),c=a(33714),u=a(59490),p=a(71519);let f=(0,a(2315).forwardRef)(({className:e,size:t,width:a,height:i,...r},o)=>{let s=t||a||i||24;return(0,n.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",className:e,...r,children:[(0,n.jsx)("path",{d:"M6 2C4.89543 2 4 2.89543 4 4V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V8L14 2H6Z",fill:"currentColor",fillOpacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M14 2V6C14 7.10457 14.8954 8 16 8H20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("rect",{x:"5",y:"13",width:"14",height:"6",rx:"1",fill:"currentColor"}),(0,n.jsx)("text",{x:"12",y:"17.5",fontSize:"4.5",fontWeight:"bold",fill:"white",stroke:"none",textAnchor:"middle",fontFamily:"system-ui, -apple-system, sans-serif",children:"PDF"})]})});f.displayName="PdfIcon";let h={code:{icon:i.A,color:"!text-violet-600"},text:{icon:r.A,color:"!text-blue-600"},image:{icon:o.A,color:"!text-pink-600"},sheet:{icon:s.A,color:"!text-emerald-600"},pdf:{icon:f,color:"!text-red-600"},video:{icon:l.A,color:"!text-orange-600"},webview:{icon:d.A,color:"!text-cyan-600"},canvas:{icon:c.A,color:"!text-indigo-600"},remotion:{icon:l.A,color:"!text-orange-600"}};function m(e){let t=h[e];return t?.icon||u.A}function g(e){let t=h[e];return t?.color||"text-muted-foreground"}function x({kind:e,className:t}){let{icon:a,color:i}=h[e]||{icon:u.A,color:"text-muted-foreground"};return(0,n.jsx)(a,{className:(0,p.cn)(i,t),"aria-label":`${e} artifact`})}},53710:(e,t,a)=>{a.d(t,{DataStreamProvider:()=>o,u:()=>s});var n=a(68987),i=a(2315);let r=(0,i.createContext)(null);function o({children:e}){let[t,a]=(0,i.useState)([]),s=(0,i.useMemo)(()=>({dataStream:t,setDataStream:a}),[t]);return(0,n.jsx)(r.Provider,{value:s,children:e})}function s(){let e=(0,i.useContext)(r);if(!e)throw Error("useDataStream must be used within a DataStreamProvider");return e}},54928:(e,t,a)=>{a.d(t,{As:()=>r,Dm:()=>s,J3:()=>i,TA:()=>d,_w:()=>u,ds:()=>c,z3:()=>l,zA:()=>o});var n=a(76899);function i(e){return!!e&&(!e.file||"uploaded"===e.file.status)}function r(e,t){return e.every(e=>i(t[e.id]))}function o(e,t){let a=e.findIndex(e=>!i(t[e.id]));return -1===a?Math.max(0,e.length-1):a}function s(e,t,a){let n=e.length-1;return a>=n?r(e,t)?"submit":n:a+1}function l(e){if(e<1024)return`${e} B`;let t=e=>e.toFixed(1).replace(/\.0$/,"");return e<1048576?`${t(e/1024)} KB`:`${t(e/1048576)} MB`}function d(e,t){let a=new Map(t.map(e=>[e.sectionId,e])),n=e.sections.flatMap(e=>{let t=a.get(e.id);return t?[{section:e,answer:t}]:[]});if(0===n.length)return"You answered â";if(1===n.length){let{section:e,answer:t}=n[0],a="choice"===e.kind?"You chose":"file"===e.kind?"You uploaded":"You answered";return`${a}: ${t.value} â`}let i=n.map(({section:e,answer:t})=>`${e.label}: ${t.value}`).join(" \xb7 ");return`You answered â \xb7 ${i}`}function c(e,t,a){let r=e.sections.filter(e=>i(t[e.id])).map(e=>{let a=t[e.id];return{sectionId:e.id,kind:e.kind,value:a.value,...a.optionId?{optionId:a.optionId}:{},...a.youDecide?{youDecide:!0}:{},...a.file?.status==="uploaded"&&a.file.url?{file:{url:a.file.url,filename:a.file.filename,mediaType:a.file.mediaType,sizeBytes:a.file.sizeBytes}}:{}}});return[{type:"data-ask-user-answer",data:{version:1,questionId:e.questionId,answers:r,answeredAt:a}},{type:"text",text:["Here are my answers:",...e.sections.filter(e=>i(t[e.id])).map(e=>{let a=t[e.id],i=a.youDecide?n.IK:a.file?`${a.file.filename} (${a.file.mediaType}, ${l(a.file.sizeBytes)}) â file provided`:a.value;return`${e.label}: ${i}`})].join("\n")}]}function u(e){let t=new Map;for(let a of e){let e=a?.parts??[];for(let a of e){if("data-ask-user-question"===a.type){let e=a.data;if(!e?.questionId)continue;t.has(e.questionId)||t.set(e.questionId,{payload:e,status:"pending"});continue}if("data-ask-user-answer"===a.type){let e=a.data;if(!e?.questionId)continue;let n=t.get(e.questionId);if(!n)continue;t.set(e.questionId,{...n,status:"answered",answers:e.answers??[]})}}if(a?.role==="user"&&!e.some(e=>"data-ask-user-answer"===e.type))for(let[e,a]of t)"pending"!==a.status||a.superseded||t.set(e,{...a,superseded:!0})}return t}},66234:(e,t,a)=>{a.d(t,{Sb:()=>l,i3:()=>o,xh:()=>s});let n=Number(a(21653).env.EXECUTE_JOB_MAX_MS)||216e5;var i=a(37870);let r=n+6e5;function o(e){return e.milestones.at(-1)?.event.ts??0}function s(e){return e.milestones[0]?.event.ts??null}function l(e,t){if("idle"===e.phase||(0,i.Hd)(e))return!1;let a=s(e);return null===a||t-a<=r}},67665:(e,t,a)=>{a.d(t,{NY:()=>i,sB:()=>o,tl:()=>s});let n={".md":"text",".txt":"text",".markdown":"text",".rst":"text",".log":"text",".js":"code",".ts":"code",".tsx":"code",".jsx":"code",".py":"co
45de",".sh":"code",".bash":"code",".zsh":"code",".fish":"code",".json":"code",".yaml":"code",".yml":"code",".css":"code",".scss":"code",".sass":"code",".less":"code",".sql":"code",".rb":"code",".go":"code",".rs":"code",".java":"code",".cpp":"code",".c":"code",".h":"code",".hpp":"code",".cs":"code",".php":"code",".swift":"code",".kt":"code",".scala":"code",".r":"code",".xml":"code",".ps1":"code",".bat":"code",".cmd":"code",".pdf":"pdf",".png":"image",".jpg":"image",".jpeg":"image",".gif":"image",".svg":"image",".webp":"image",".mp4":"video",".webm":"video",".mov":"video",".csv":"sheet",".tsv":"sheet",".xlsx":"sheet",".xls":"sheet",".html":"webview"};function i(e){let t=e.split("/").pop()?.toLowerCase()||"";if(t.endsWith(".video.json")||t.endsWith(".dream.json"))return"remotion";if(t.endsWith(".canvas.json")||t.endsWith(".imagine.json"))return"canvas";if(t.endsWith(".image.json"))return"image";let a=e.lastIndexOf(".");return -1===a?"text":n[e.slice(a).toLowerCase()]??"text"}let r=["text/","application/json","application/javascript","application/xml","application/x-yaml","application/x-sh"],o=0xa00000;function s(e){return!e||r.some(t=>e.startsWith(t))}},76899:(e,t,a)=>{a.d(t,{IK:()=>r,MC:()=>i});var n=a(52615);let i=2e3,r="you decide â pick something fitting",o=n.Ik({id:n.Yj().min(1),label:n.Yj().min(1).max(24),role:n.k5(["option","you-decide"])}),s=n.Ik({id:n.Yj().min(1),label:n.Yj().min(1).max(24),kind:n.k5(["choice","text","file"]),question:n.Yj().max(140).optional(),options:n.YO(o).min(2).max(5).optional(),placeholder:n.Yj().max(40).optional()}).refine(e=>"choice"!==e.kind||(e.options?.some(e=>"you-decide"===e.role)??!1),{message:'A choice section must offer a "You decide" escape',path:["options"]});n.Ik({version:n.eu(1),questionId:n.Yj().min(1),origin:n.k5(["preflight","midrun"]),executionId:n.Yj().optional(),persona:n.Ik({name:n.Yj().min(1),emoji:n.Yj().nullable()}),context:n.Yj().min(1).max(40),headline:n.Yj().max(140).optional(),sections:n.YO(s).min(1).max(3),createdAt:n.ai()});let l=n.Ik({url:n.Yj().url(),filename:n.Yj().min(1).max(255),mediaType:n.Yj().min(1).max(255),sizeBytes:n.ai().int().nonnegative()}),d=n.Ik({sectionId:n.Yj().min(1),kind:n.k5(["choice","text","file"]),value:n.Yj().min(1).max(i),optionId:n.Yj().optional(),youDecide:n.zM().optional(),file:l.optional()});n.Ik({version:n.eu(1),questionId:n.Yj().min(1),answers:n.YO(d).min(1).max(6),answeredAt:n.ai()});let c=n.Ik({label:n.Yj().min(1).max(24).describe('Short section name, e.g. "Style". Max 24 chars.'),kind:n.k5(["choice","text","file"]).describe('"choice" for tappable options, "text" for a free-text field, "file" when you need the user to UPLOAD something (a logo, a document, data).'),question:n.Yj().max(140).optional().describe("Optional one-line question for this section. Max 140 chars."),options:n.YO(n.Yj().min(1).max(24)).max(4).optional().describe('Required for kind="choice": 2â4 option labels (â¤24 chars each). A "You decide" option is added automatically â do not add one yourself.'),placeholder:n.Yj().max(40).optional().describe('Optional hint text for kind="text" or kind="file" (e.g. "PNG or SVG preferred").')});n.Ik({context:n.Yj().min(1).max(40).describe('What this question is about, e.g. "Starting your pixel art". Max 40 chars.'),headline:n.Yj().max(140).optional().describe("Optional one-line question above the sections. Max 140 chars."),sections:n.YO(c).min(1).max(3).describe("Everything you need to know, as 1â3 sections. Ask it all in ONE call.")})},79047:(e,t,a)=>{a.d(t,{HO:()=>o,ST:()=>s,ls:()=>r});var n=a(42733),i=a(2315);let r={documentId:"init",content:"",kind:"text",title:"",status:"idle",isVisible:!1,boundingBox:{top:0,left:0,width:0,height:0},filePath:null,projectId:null};function o(e){let{data:t}=(0,n.Ay)("artifact",null,{fallbackData:r});return(0,i.useMemo)(()=>t?e(t):e(r),[t,e])}function s(){let{data:e,mutate:t}=(0,n.Ay)("artifact",null,{fallbackData:r}),a=(0,i.useMemo)(()=>e||r,[e]),o=(0,i.useCallback)(e=>{t(t=>{let a=t||r;return"function"==typeof e?e(a):e})},[t]),{data:s,mutate:l}=(0,n.Ay)(()=>a.documentId?`artifact-metadata-${a.documentId}`:null,null,{fallbackData:null});return(0,i.useMemo)(()=>({artifact:a,setArtifact:o,metadata:s,setMetadata:l}),[a,o,s,l])}},80205:(e,t,a)=>{a.d(t,{SQ:()=>p,_2:()=>f,mB:()=>h,rI:()=>c,ty:()=>u});var n=a(68987),i=a(2315),r=a(68497),o=a(69900),s=a(2620),l=a(80740),d=a(71519);let c=r.bL,u=r.l9;r.YJ,r.ZL,r.Pb,r.z6,i.forwardRef(({className:e,inset:t,children:a,...i},s)=>(0,n.jsxs)(r.ZP,{ref:s,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[a,(0,n.jsx)(o.A,{className:"ml-auto"})]})).displayName=r.ZP.displayName,i.forwardRef(({className:e,...t},a)=>(0,n.jsx)(r.G5,{ref:a,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-3xl border border-white/20 dark:border-white/10 bg-white/10 dark:bg-black/20 backdrop-blur-3xl p-1 text-popover-foreground shadow-[0_8px_32px_rgba(0,0,0,0.12)] shadow-[inset_0_1px_1px_rgba(255,255,255,0.2)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
45de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})).displayName=r.G5.displayName;let p=i.forwardRef(({className:e,sideOffset:t=4,...a},i)=>(0,n.jsx)(r.ZL,{children:(0,n.jsx)(r.UC,{ref:i,sideOffset:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-3xl border border-white/20 dark:border-white/10 bg-white/10 dark:bg-black/20 backdrop-blur-3xl p-1 text-popover-foreground shadow-[0_8px_32px_rgba(0,0,0,0.12)] shadow-[inset_0_1px_1px_rgba(255,255,255,0.2)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));p.displayName=r.UC.displayName;let f=i.forwardRef(({className:e,inset:t,...a},i)=>(0,n.jsx)(r.q7,{ref:i,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a}));f.displayName=r.q7.displayName,i.forwardRef(({className:e,children:t,checked:a,...i},o)=>(0,n.jsxs)(r.H_,{ref:o,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...i,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.VF,{children:(0,n.jsx)(s.A,{className:"h-4 w-4"})})}),t]})).displayName=r.H_.displayName,i.forwardRef(({className:e,children:t,...a},i)=>(0,n.jsxs)(r.hN,{ref:i,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.VF,{children:(0,n.jsx)(l.A,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=r.hN.displayName,i.forwardRef(({className:e,inset:t,...a},i)=>(0,n.jsx)(r.JU,{ref:i,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a})).displayName=r.JU.displayName;let h=i.forwardRef(({className:e,...t},a)=>(0,n.jsx)(r.wv,{ref:a,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));h.displayName=r.wv.displayName},91898:(e,t,a)=>{a.d(t,{Ve:()=>o,oX:()=>s});var n=a(2315);let i="sl8-correlation-id",r="x-correlation-id";function o(){let[e,t]=(0,n.useState)("");return(0,n.useEffect)(()=>{t(function(){try{let e=sessionStorage.getItem(i);if(e)return e}catch(e){}let e="u">typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});try{sessionStorage.setItem(i,e)}catch(e){}return e}())},[]),e}function s(e){return async(t,a={})=>{let n=function(e={},t){return e instanceof Headers?(e.set(r,t),e):Array.isArray(e)?[...e,[r,t]]:{...e,[r]:t}}(a.headers,e);return fetch(t,{...a,headers:n})}}},92659:(e,t,a)=>{a.d(t,{EG:()=>u,Iv:()=>d,Uk:()=>s,Xd:()=>c,qn:()=>o});var n=a(37870),i=a(66234),r=a(3438);function o(e,t){return!t||void 0===e||e===t}function s(e,t,a){return Object.values(e).filter(e=>"idle"!==e.phase&&o(t[e.jobId],a)).sort(l)}function l(e,t){return((0,i.xh)(e)??1/0)-((0,i.xh)(t)??1/0)}function d(e,t,a,n){return Object.values(e).filter(e=>(0,i.Sb)(e,n)&&o(t[e.jobId],a)).sort((e,t)=>(0,i.i3)(t)-(0,i.i3)(e)).map(e=>e.jobId)}function c(e,t=()=>!1){let a=0,i=0;for(let r of e)(0,n.Hd)(r)&&!t(r.jobId)?a+=1:i+=1;let r=a+i;return{total:r,inProgress:i,completed:a,percentage:r>0?Math.round(a/r*100):0}}function u(e,t){let{steps:a,frozen:n}=(0,r.gf)(e,t),i={todo:[],active:[],done:[]};for(let e of a)switch(e.status){case"completed":case"failed":case"frozen":i.done.push(e);break;case"started":(n?i.done:i.active).push(e);break;default:i.todo.push(e)}return i}}}]);
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.