PageSourceSearch

https://chalk.ai/vc-ap-2a3b54/_next/static/chunks/1j17gcf5s5ncl.js?dpl=dpl_J3w5P5NaTuHUtaDRCzQujURBpC9P

js chalk.ai collected 2026-10-01 11:24:33 UTC 119,046 bytes, 40 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39579,e=>{e.v({background:"HeroGridBackground-module__KV7LZq__background",bottom:"HeroGridBackground-module__KV7LZq__bottom",bottomLeftGlow:"HeroGridBackground-module__KV7LZq__bottomLeftGlow",girdle:"HeroGridBackground-module__KV7LZq__girdle",glow:"HeroGridBackground-module__KV7LZq__glow",grid:"HeroGridBackground-module__KV7LZq__grid",left:"HeroGridBackground-module__KV7LZq__left",right:"HeroGridBackground-module__KV7LZq__right",topRightGlow:"HeroGridBackground-module__KV7LZq__topRightGlow"})},46647,e=>{e.v({artStage:"HowWePartnerSection-module__gxyZhq__artStage",artwork:"HowWePartnerSection-module__gxyZhq__artwork",floatFive:"HowWePartnerSection-module__gxyZhq__floatFive",floatFour:"HowWePartnerSection-module__gxyZhq__floatFour",floatOne:"HowWePartnerSection-module__gxyZhq__floatOne",floatThree:"HowWePartnerSection-module__gxyZhq__floatThree",floatTwo:"HowWePartnerSection-module__gxyZhq__floatTwo",squareFive:"HowWePartnerSection-module__gxyZhq__squareFive",squareFour:"HowWePartnerSection-module__gxyZhq__squareFour",squareOne:"HowWePartnerSection-module__gxyZhq__squareOne",squareThree:"HowWePartnerSection-module__gxyZhq__squareThree",squareTwo:"HowWePartnerSection-module__gxyZhq__squareTwo"})},9283,e=>{e.v({agent:"ContextFlowAnimation-module__qE8m2q__agent",agentHighlight:"ContextFlowAnimation-module__qE8m2q__agentHighlight",agentSummary:"ContextFlowAnimation-module__qE8m2q__agentSummary",agentTitle:"ContextFlowAnimation-module__qE8m2q__agentTitle",answerConnector:"ContextFlowAnimation-module__qE8m2q__answerConnector",askConnector:"ContextFlowAnimation-module__qE8m2q__askConnector",askShift:"ContextFlowAnimation-module__qE8m2q__askShift",busPort:"ContextFlowAnimation-module__qE8m2q__busPort",busRail:"ContextFlowAnimation-module__qE8m2q__busRail",busStem:"ContextFlowAnimation-module__qE8m2q__busStem",busTap:"ContextFlowAnimation-module__qE8m2q__busTap",chat:"ContextFlowAnimation-module__qE8m2q__chat",chatGrow:"ContextFlowAnimation-module__qE8m2q__chatGrow",chatHighlight:"ContextFlowAnimation-module__qE8m2q__chatHighlight",chatLabel:"ContextFlowAnimation-module__qE8m2q__chatLabel",code:"ContextFlowAnimation-module__qE8m2q__code",codeCaption:"ContextFlowAnimation-module__qE8m2q__codeCaption",codeHeader:"ContextFlowAnimation-module__qE8m2q__codeHeader",codeRule:"ContextFlowAnimation-module__qE8m2q__codeRule",connectorArrow:"ContextFlowAnimation-module__qE8m2q__connectorArrow",connectorDown:"ContextFlowAnimation-module__qE8m2q__connectorDown",connectorSurface:"ContextFlowAnimation-module__qE8m2q__connectorSurface",connectorUp:"ContextFlowAnimation-module__qE8m2q__connectorUp",contextFocus:"ContextFlowAnimation-module__qE8m2q__contextFocus",coral:"ContextFlowAnimation-module__qE8m2q__coral",customerBubble:"ContextFlowAnimation-module__qE8m2q__customerBubble",cyan:"ContextFlowAnimation-module__qE8m2q__cyan",fadeIn:"ContextFlowAnimation-module__qE8m2q__fadeIn",fadeOut:"ContextFlowAnimation-module__qE8m2q__fadeOut",frame:"ContextFlowAnimation-module__qE8m2q__frame",lime:"ContextFlowAnimation-module__qE8m2q__lime",liveContext:"ContextFlowAnimation-module__qE8m2q__liveContext",lower:"ContextFlowAnimation-module__qE8m2q__lower",lowerDrop:"ContextFlowAnimation-module__qE8m2q__lowerDrop",muted:"ContextFlowAnimation-module__qE8m2q__muted",onlineDot:"ContextFlowAnimation-module__qE8m2q__onlineDot",processing:"ContextFlowAnimation-module__qE8m2q__processing",purple:"ContextFlowAnimation-module__qE8m2q__purple",ready:"ContextFlowAnimation-module__qE8m2q__ready",replyAppear:"ContextFlowAnimation-module__qE8m2q__replyAppear",replyBubble:"ContextFlowAnimation-module__qE8m2q__replyBubble",reveal:"ContextFlowAnimation-module__qE8m2q__reveal",scene:"ContextFlowAnimation-module__qE8m2q__scene",sceneRise:"ContextFlowAnimation-module__qE8m2q__sceneRise",sourceBus:"ContextFlowAnimation-module__qE8m2q__sourceBus",sourceCard:"ContextFlowAnimation-module__qE8m2q__sourceCard",sourceCards:"ContextFlowAnimation-module__qE8m2q__sourceCards",sourceFooter:"ContextFlowAnimation-module__qE8m2q__sourceFooter",sourceSignal:"ContextFlowAnimation-module__qE8m2q__sourceSignal",sourceTravel:"ContextFlowAnimation-module__qE8m2q__sourceTravel",sources:"ContextFlowAnimation-module__qE8m2q__sources",t
1itleRise:"ContextFlowAnimation-module__qE8m2q__titleRise",yellow:"ContextFlowAnimation-module__qE8m2q__yellow"})},24574,e=>{e.v({arrow:"PlatformStorySection-module__SqdKka__arrow",backWindow:"PlatformStorySection-module__SqdKka__backWindow",backdrop0:"PlatformStorySection-module__SqdKka__backdrop0",backdrop1:"PlatformStorySection-module__SqdKka__backdrop1",backdrop2:"PlatformStorySection-module__SqdKka__backdrop2",codeViewer:"PlatformStorySection-module__SqdKka__codeViewer",contextMobileDiagram:"PlatformStorySection-module__SqdKka__contextMobileDiagram",contextMobileDiagramInner:"PlatformStorySection-module__SqdKka__contextMobileDiagramInner",desktopSection:"PlatformStorySection-module__SqdKka__desktopSection",dogImage:"PlatformStorySection-module__SqdKka__dogImage",frontWindow:"PlatformStorySection-module__SqdKka__frontWindow",heading:"PlatformStorySection-module__SqdKka__heading",headingBlock:"PlatformStorySection-module__SqdKka__headingBlock",itemDescription:"PlatformStorySection-module__SqdKka__itemDescription",itemIcon:"PlatformStorySection-module__SqdKka__itemIcon",itemLink:"PlatformStorySection-module__SqdKka__itemLink",itemList:"PlatformStorySection-module__SqdKka__itemList",itemTitle:"PlatformStorySection-module__SqdKka__itemTitle",itemTitleText:"PlatformStorySection-module__SqdKka__itemTitleText",learningCarousel:"PlatformStorySection-module__SqdKka__learningCarousel",learningFrame:"PlatformStorySection-module__SqdKka__learningFrame",learningMobileImage:"PlatformStorySection-module__SqdKka__learningMobileImage",lineNumbers:"PlatformStorySection-module__SqdKka__lineNumbers",mobileSection:"PlatformStorySection-module__SqdKka__mobileSection",mobileStory:"PlatformStorySection-module__SqdKka__mobileStory",rail:"PlatformStorySection-module__SqdKka__rail",railInner:"PlatformStorySection-module__SqdKka__railInner",railLayer:"PlatformStorySection-module__SqdKka__railLayer",runtimeBack:"PlatformStorySection-module__SqdKka__runtimeBack",runtimeFront:"PlatformStorySection-module__SqdKka__runtimeFront",runtimeWindow:"PlatformStorySection-module__SqdKka__runtimeWindow",scrollIndicator:"PlatformStorySection-module__SqdKka__scrollIndicator",stageGrid:"PlatformStorySection-module__SqdKka__stageGrid",stickyStage:"PlatformStorySection-module__SqdKka__stickyStage",subtitle:"PlatformStorySection-module__SqdKka__subtitle",visual:"PlatformStorySection-module__SqdKka__visual",visual0:"PlatformStorySection-module__SqdKka__visual0",visual1:"PlatformStorySection-module__SqdKka__visual1",visual2:"PlatformStorySection-module__SqdKka__visual2",visualLayer:"PlatformStorySection-module__SqdKka__visualLayer",visualStage:"PlatformStorySection-module__SqdKka__visualStage",window:"PlatformStorySection-module__SqdKka__window",windowBar:"PlatformStorySection-module__SqdKka__windowBar",windowBody:"PlatformStorySection-module__SqdKka__windowBody",windowDots:"PlatformStorySection-module__SqdKka__windowDots",windowFooter:"PlatformStorySection-module__SqdKka__windowFooter",windowStatus:"PlatformStorySection-module__SqdKka__windowStatus"})},15932,e=>{e.v({desktopRows:"UseCasesSection-module__3SCW-q__desktopRows",largeMobileRows:"UseCasesSection-module__3SCW-q__largeMobileRows",midTabletRows:"UseCasesSection-module__3SCW-q__midTabletRows",mobileRows:"UseCasesSection-module__3SCW-q__mobileRows",scroll:"UseCasesSection-module__3SCW-q__scroll",solution:"UseCasesSection-module__3SCW-q__solution",solutionRow:"UseCasesSection-module__3SCW-q__solutionRow",solutionRows:"UseCasesSection-module__3SCW-q__solutionRows",tabletRows:"UseCasesSection-module__3SCW-q__tabletRows",track:"UseCasesSection-module__3SCW-q__track",viewport:"UseCasesSection-module__3SCW-q__viewport",wideTabletRows:"UseCasesSection-module__3SCW-q__wideTabletRows"})},92767,e=>{"use strict";let t,a,s,n;var r=e.i(62751),l=e.i(60369),i=e.i(75883),o=e.i(39579);let c=()=>(0,r.jsx)("div",{"aria-hidden":"true",className:o.default.background,children:(0,r.jsxs)(i.MarketingGirdle,{className:o.default.girdle,children:[(0,r.jsxs)("div",{className:o.default.grid,children:[(0,r.jsx)("div",{className:o.default.left}),(0,r.jsx)("div",{className:o.default.right}),(0,r.jsx)("div",{className:o.default.bottom})]}),(0,r.jsx)("img",{className:`${o.default.glow} ${o.default.topRightGlow}`,src:"/img/marketing/hero-glow-top-right.svg",alt:""}),(0,r.jsx)("img",{className:`${o.default.glow} ${o.default.bottomLeftGlow}`,src:"/img/marketing/hero-glow-bottom-left.svg",alt:""})]})});var d=e.i(15266);let u="#BADE61",m="#73D19C",h={ascii:{mode:"manual",characterSizeScale:.8,spacingScale:1,baseColor:m,randomColor:u,randomColorRate:.05},renderer:{colors:[m,m,m]},shimmer:{enableShimmer:!1}};var p=e.i(9874),x=e.i(41598);let f="custom",g="/img/marketing/ascii-animation",y=[{minWidth:2400,width:2560,file:"homepage-ascii-poster-desktop-wide.webp"},{minWidth:2080,width:2240,file:"homepage-ascii-poster-desktop-2240.webp"},{minWidth:1824,width:1920,file:"homepage-ascii-poster-desktop-1920.webp"},{minWidth:1664,width:1728,file:"homepage-ascii-poster-desktop-1728.webp"},{minWidth:1556,width:1600,file:"homepage-ascii-poster-desktop-1600.webp"},{minWidth:1476,width:1512,file:"homepage-ascii-poster-desktop-1512.webp"},{minWidth:1360,width:1440,file:"homepage-ascii-poster-desktop.webp"},{minWidth:1152,width:1280,file:"homepage-ascii-poster-desktop-1280.webp"},{minWidth:1024,width:1024,file:"homepage-ascii-poster-desktop-1024.webp"},{minWidth:820,width:1023,file:"homepage-ascii-poster-tablet-wide.webp"},{minWidth:640,width:768,file:"homepage-ascii-poster-tablet.webp"},{minWidth:480,width:639,file:"homepage-ascii-poster-mobile-wide.webp"}],b=e=>y.find(t=>e>=t.minWidth)?.width??390,v=[{label:"Lime",value:u},{label:"Chartreuse",value:"#b3da5b"},{label:"Blue",value:"#81ceea"},{label:"Lavender",value:"#b29af9"},{label:"Orange",value:"#f8947f"},{label:"Pink",value:"#f17592"},{label:"White",value:"#ffffff"}],_=[0,.05,.1,.2,.35,.5],w=({label:e,value:t,onChange:a,children:s})=>(0,r.jsxs)("label",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:e}),(0,r.jsx)("select",{"aria-label":e,className:"w-[128px] rounded border border-marketing-green-4 bg-marketing-d
1arkgreen-bg px-2 py-1 text-white",value:t,onChange:e=>a(e.target.value),children:s})]}),k=({id:e,label:t,measurement:a,value:s,onChange:n})=>(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("span",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("label",{htmlFor:e,children:t}),(0,r.jsxs)("output",{className:"text-white",htmlFor:e,children:[s.toFixed(2),"× · ",a]})]}),(0,r.jsx)("input",{id:e,type:"range",min:.5,max:1.5,step:.05,value:s,onChange:e=>n(Number(e.target.value)),className:"w-full accent-marketing-chartreuse"})]}),j=()=>(0,r.jsxs)("svg",{"aria-hidden":"true",className:"pointer-events-none absolute -inset-x-12 -top-24 h-[calc(100%+9rem)] w-[calc(100%+6rem)] blur-[25px] sm:-inset-x-24 sm:w-[calc(100%+12rem)]",viewBox:"0 0 965 356",preserveAspectRatio:"none",fill:"none",children:[(0,r.jsx)("path",{d:"M914 198.004H811.795V227.675H681.444V305H273.056V227.675H112.705V198.004H51V51H914V198.004Z",fill:"#20423B"}),(0,r.jsx)("path",{d:"M560.944 171.5V184.5H393.556V171.5H560.944Z",stroke:"#1E413A",strokeWidth:"241"})]}),N=({id:e})=>{let t=(0,x.useRef)(null),[a,s]=(0,x.useState)(!0),[n,o]=(0,x.useState)(580),[u,m]=(0,x.useState)("manual"),[N,S]=(0,x.useState)(1),[C,M]=(0,x.useState)(.8),[A,q]=(0,x.useState)(1),[E,R]=(0,x.useState)(v[0].value),[T,F]=(0,x.useState)("#ffffff"),[L,P]=(0,x.useState)(T),[I,D]=(0,x.useState)(.05);(0,x.useEffect)(()=>{let e=t.current;if(null==e)return;let a=()=>o(e.clientHeight);return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]);let z=Math.max(1,Math.floor(n/19)),W=n/z,B=Math.round(z*N),$=E===f?T:E,H=(0,x.useMemo)(()=>({...h,colors:{transparent:!0},renderer:{...h.renderer,seed:64271},shader:{displacementFrame:`${g}/homepage-ascii-displacement-frame.webp`,videoStartMillis:5e3,renderWidthFn:b},ascii:"auto"===u?{...h.ascii,mode:u,gridSizeScale:N,randomColor:$,randomColorRate:I}:{...h.ascii,mode:u,characterSizeScale:C,spacingScale:A,randomColor:$,randomColorRate:I}}),[C,N,u,$,I,A]),[O,V]=(0,x.useState)(H);return(0,x.useEffect)(()=>{let e=window.setTimeout(()=>V(H),120);return()=>window.clearTimeout(e)},[H]),(0,r.jsxs)("div",{ref:t,className:"relative h-[565px] overflow-hidden bg-marketing-darkgreen-bg sm:h-[580px] lg:h-[724px]",children:[(0,r.jsx)(c,{}),(0,r.jsx)(d.SketchLoader,{id:e,className:"absolute top-0 left-0 z-10 w-full h-[565px] sm:h-[580px] lg:h-[724px]",config:O,poster:{fallback:`${g}/homepage-ascii-poster-mobile.webp`,sources:y.map(({minWidth:e,file:t})=>({media:`(min-width: ${e}px)`,srcSet:`${g}/${t}`}))}}),(0,r.jsxs)("div",{className:(0,p.cx)("hidden","absolute right-4 top-24 z-30 font-marketing-mono text-xs text-marketing-green-6","rounded border border-marketing-green-4 bg-marketing-darkgreen-bg/95 shadow-lg"),children:[(0,r.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between gap-4 px-3 py-2 text-left text-white","aria-expanded":a,onClick:()=>s(e=>!e),children:[(0,r.jsx)("span",{children:"ASCII controls"}),(0,r.jsx)("span",{"aria-hidden":!0,children:a?"−":"+"})]}),a&&(0,r.jsxs)("form",{className:"flex w-[300px] flex-col gap-3 border-t border-marketing-green-4 p-3",children:[(0,r.jsxs)(w,{label:"Mode",value:u,onChange:e=>m(e),children:[(0,r.jsx)("option",{value:"auto",children:"Auto"}),(0,r.jsx)("option",{value:"manual",children:"Manual"})]}),"auto"===u?(0,r.jsx)(k,{id:`${e}-grid-size`,label:"Grid size",measurement:`${B} rows`,value:N,onChange:S}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{id:`${e}-character-size`,label:"Text size",measurement:`${(W*C).toFixed(1)} px`,value:C,onChange:M}),(0,r.jsx)(k,{id:`${e}-character-spacing`,label:"Spacing",measurement:`${(W*A).toFixed(1)} px`,value:A,onChange:q})]}),(0,r.jsxs)(w,{label:"Accent color",value:E,onChange:R,children:[v.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value)),(0,r.jsx)("option",{value:f,children:"Custom hex…"})]}),E===f&&(0,r.jsxs)("label",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"Hex color"}),(0,r.jsx)("input",{"aria-label":"Hex color",className:"w-[128px] rounded border border-marketing-green-4 bg-marketing-d
1arkgreen-bg px-2 py-1 text-white",value:L,maxLength:7,spellCheck:!1,onChange:e=>{let t=`#${e.target.value.trim().replace(/^#+/,"")}`;P(t),/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(t)&&F(t)},onBlur:()=>{/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(L)||P(T)}})]}),(0,r.jsx)(w,{label:"Accent rate",value:I,onChange:e=>D(Number(e)),children:_.map(e=>(0,r.jsx)("option",{value:e,children:0===e?"Off":`${100*e}%`},e))})]})]}),(0,r.jsx)(i.MarketingGirdle,{className:"relative z-20 h-full",children:(0,r.jsx)("div",{className:"flex h-full flex-col text-left sm:items-center",children:(0,r.jsxs)("div",{className:"relative mt-[161px] max-w-full lg:mt-[245px]",children:[(0,r.jsx)(j,{}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)("h1",{className:"relative z-10 px-2 text-center text-[28px] leading-[1.17] text-white sm:whitespace-nowrap sm:text-[clamp(28px,4vw,48px)]",children:"The platform for production AI"})}),(0,r.jsx)("div",{className:"relative mx-auto mt-4 w-fit max-w-full",children:(0,r.jsx)("h2",{className:"relative z-10 px-2 text-center text-[18px] leading-[28px] text-marketing-green-3 sm:text-[26px] sm:leading-[30px]",children:"Context. Runtime. Learning."})}),(0,r.jsx)("div",{className:"relative mx-auto mb-12 mt-3 w-fit",children:(0,r.jsx)(l.StartNowLinksV3,{className:"relative z-10 !ml-0 !bg-transparent"})})]})})})]})};var S=e.i(81452);let C=({className:e})=>(0,r.jsx)("div",{"aria-hidden":"true",className:(0,p.cx)("pointer-events-none absolute z-0 -inset-x-16 -inset-y-7 rounded-full sm:-inset-x-24 sm:-inset-y-9",e),style:{maskImage:"radial-gradient(ellipse at center, black 48%, transparent 100%)",WebkitMaskImage:"radial-gradient(ellipse at center, black 48%, transparent 100%)"}});var M=e.i(70480);let A={...h,colors:{bg:"#1D3D36"}},q=()=>(0,r.jsxs)("section",{className:"relative isolate min-h-[410px] overflow-hidden bg-marketing-green-2 text-white",children:[(0,r.jsx)(d.SketchLoader,{id:"homepage-explore-chalk",className:"pointer-events-none absolute inset-0 z-0",config:A}),(0,r.jsx)(i.MarketingGirdle,{className:"relative z-10 flex min-h-[410px] flex-col items-center justify-center py-20 text-center",children:(0,r.jsxs)("div",{className:"relative flex flex-col items-center gap-10",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(C,{className:"bg-marketing-green-2"}),(0,r.jsx)("h2",{className:"relative z-10 text-[32px] font-normal leading-[1.1] tracking-[-0.8px] sm:text-[40px]",children:"Explore Chalk today"})]}),(0,r.jsxs)("div",{className:"relative flex flex-wrap items-center justify-center gap-5",children:[(0,r.jsx)(C,{className:"bg-marketing-green-2"}),(0,r.jsx)(M.MarketingBookDemoButton,{theme:"intro",ctaContextGA4:M.MarketingBookDemoCTAContextGA4.HomepageExploreChalkSection,textOverride:"Talk to an engineer",className:"relative z-10"}),(0,r.jsx)(M.MarketingExploreDocsButton,{theme:"demo-video",ctaContextGA4:M.MarketingExploreDocsCTAContextGA4.HomepageExploreChalkSection,textOverride:"Read the docs",className:"relative z-10"})]})]})})]});var E=e.i(91333),R=e.i(42206),T=e.i(46647);let F=()=>(0,r.jsxs)("section",{className:"relative isolate overflow-hidden bg-marketing-divider-light",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 left-1/2 w-full max-w-[1240px] -translate-x-1/2 border-l border-mint-green-dark"}),(0,r.jsxs)(i.MarketingGirdle,{className:"relative grid min-h-[413px] grid-cols-12 items-center gap-y-8 pb-0 pt-16 lg:py-0",children:[(0,r.jsxs)("div",{className:"relative z-10 col-span-12 lg:col-span-7",children:[(0,r.jsx)("span",{className:"inline-flex h-7 items-center rounded-full bg-mint-green-dark/20 px-[11px] font-marketing-mono text-marketing-eyebrow uppercase text-marketing-green-1",children:"How we partner"}),(0,r.jsxs)("h2",{className:"mt-[30px] text-marketing-heading-mobile font-normal text-marketing-green-1 sm:text-marketing-heading",children:["Forward-deployed ",(0,r.jsx)("span",{className:"text-mint-green-dark",children:"engineering"})]}),(0,r.jsx)("p",{className:"mt-[14px] max-w-[722px] text-[18px] leading-[1.3] tracking-[-0.2px] text-marketing-green-200 sm:text-[20px]",children:"Extend your team with Chalk engineers when you need them."}),(0,r.jsxs)("a",{href:R.Routes.productsCMS.forwardDeployedEngineering,className:"group mt-[34px] inline-flex items-center gap-1 text-[14px] text-mint-green-dark no-underline transition-colors hover:text-marketing-green-1 hover:no-underline focus-visible:rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-mint-green-dark motion-reduce:transition-none",children:["Learn more"," ",(0,r.jsx)(E.Icon,{name:"chevronRight",size:"sm",className:"relative top-px transition-transform duration-200 group-hover:translate-x-0.5 group-focus-visible:translate-x-0.5 motion-reduce:transition-none","aria-hidden":"true"})]})]}),(0,r.jsx)("div",{className:`${T.default.artStage} relative col-span-12 h-[300px] sm:h-[350px] lg:col-span-5 lg:h-[413px]`,"aria-hidden":"true",children:(0,r.jsxs)("svg",{className:T.default.artwork,viewBox:"0 0 644 758",fill:"none",focu
1sable:"false",children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"partner-front",x1:"382",y1:"462",x2:"498",y2:"343",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#cbf1dd"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#70cd96"})]}),(0,r.jsxs)("linearGradient",{id:"partner-trail",x1:"0",y1:"288",x2:"0",y2:"702",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#70cd96",stopOpacity:"0"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#70cd96",stopOpacity:"0.82"})]})]}),(0,r.jsx)("path",{className:T.default.squareOne,d:"M339 466.2V231L516 289.8V525L339 466.2Z",fill:"url(#partner-front)"}),(0,r.jsx)("path",{className:T.default.squareTwo,d:"M282 523.2V288L458 346.8V582L282 523.2Z",fill:"url(#partner-trail)"}),(0,r.jsx)("path",{className:T.default.squareThree,d:"M219 585.8V349L397 408.2V645L219 585.8Z",fill:"url(#partner-trail)"}),(0,r.jsx)("path",{className:T.default.squareFour,d:"M163 643.2V408L339 466.8V702L163 643.2Z",fill:"url(#partner-trail)"}),(0,r.jsx)("path",{className:T.default.squareFive,d:"M105 700.2V465L282 523.8V759L105 700.2Z",fill:"url(#partner-trail)"}),(0,r.jsx)("path",{className:T.default.squareOne,d:"M397 408.4V326L458 346.6V429L397 408.4Z",fill:"#c0ead4",fillOpacity:"0.86"})]})})]})]});var L=e.i(81431),P=e.i(97940),I=e.i(26111);function D({children:e,customStyle:t,codeTagProps:a,light:s,noBackground:n,language:l="python",containerClassName:i,syntaxTheme:o,...c}){return(0,r.jsx)("div",{className:(0,p.classNames)("relative rounded-sm text-cds-sm tracking-tight",!s&&!n&&"bg-marketing-green-400",i),children:(0,r.jsx)(I.Prism,{...c,codeTagProps:{style:{background:"none",...a?.style},...a},language:l,style:o??(s?P.DASHBOARD_EDITOR_LIGHT_THEME:P.DASHBOARD_EDITOR_THEME),customStyle:{background:"none",margin:0,padding:"1.25rem 0.75rem",...t},children:e})})}var z=e.i(9283);let W=[{name:"POSTGRES",kind:"orders",detail:"#8421 · delivered"},{name:"STRIPE",kind:"payments",detail:"2 × $120 settled"},{name:"SNOWFLAKE",kind:"customer",detail:"4 yrs · 17 orders"},{name:"ZENDESK",kind:"tickets",detail:"2 prior claims"},{name:"DOCS",kind:"refund policy",detail:"v7 · current"}],B=()=>(0,r.jsx)("pre",{className:z.default.code,"aria-label":"Windowed spend feature definition",children:(0,r.jsxs)("code",{children:[(0,r.jsx)("span",{className:z.default.lime,children:"spend"}),(0,r.jsx)("span",{className:z.default.muted,children:": "}),(0,r.jsx)("span",{className:z.default.cyan,children:"Windowed"}),(0,r.jsx)("span",{className:z.default.muted,children:"["}),(0,r.jsx)("span",{className:z.default.cyan,children:"float"}),(0,r.jsx)("span",{className:z.default.muted,children:"] = "}),(0,r.jsx)("span",{className:z.default.purple,children:"feature"}),(0,r.jsx)("span",{className:z.default.muted,children:"("}),(0,r.jsx)("span",{className:z.default.coral,children:"versions"}),(0,r.jsxs)("span",{className:z.default.muted,children:["=","{"]}),"\n","    ",(0,r.jsx)("span",{className:z.default.purple,children:"windowed"}),(0,r.jsx)("span",{className:z.default.muted,children:"("}),"\n","        ",(0,r.jsx)("span",{className:z.default.yellow,children:'"30d"'}),(0,r.jsx)("span",{className:z.default.muted,children:", "}),(0,r.jsx)("span",{className:z.default.yellow,children:'"90d"'}),(0,r.jsx)("span",{className:z.default.muted,children:","}),"\n","        ",(0,r.jsx)("span",{className:z.default.coral,children:"expression"}),(0,r.jsx)("span",{className:z.default.muted,children:"="}),(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"transactions",(0,r.jsx)("span",{className:z.default.muted,children:"["}),"\n","            ",(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"amount",(0,r.jsx)("span",{className:z.default.muted,children:","}),"\n","            ",(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"timestamp ",(0,r.jsx)("span",{className:z.default.lime,children:">"})," ",(0,r.jsx)("span",{className:z.default.muted,children:"-"}),(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"chalk_window",(0,r.jsx)("span",{className:z.default.muted,children:","}),"\n","            ",(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"timestamp ",(0,r.jsx)("span",{className:z.default.lime,children:"<"})," ",(0,r.jsx)("span",{className:z.default.muted,children:"-"}),(0,r.jsx)("span",{className:z.default.lime,children:"_"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),"chalk_now",(0,r.jsx)("span",{className:z.default.muted,children:","}),"\n","        ",(0,r.jsx)("span",{className:z.default.purple,children:"]"}),(0,r.jsx)("span",{className:z.default.muted,children:"."}),(0,r.jsx)("span",{className:z.default.purple,children:"sum"}
1),(0,r.jsx)("span",{className:z.default.muted,children:"(),"}),"\n","        ",(0,r.jsx)("span",{className:z.default.coral,children:"materialization"}),(0,r.jsxs)("span",{className:z.default.muted,children:["=","{"]}),(0,r.jsx)("span",{className:z.default.yellow,children:'"bucket_duration"'}),(0,r.jsx)("span",{className:z.default.muted,children:": "}),(0,r.jsx)("span",{className:z.default.yellow,children:'"1d"'}),(0,r.jsx)("span",{className:z.default.muted,children:"},"}),"\n","    ",(0,r.jsx)("span",{className:z.default.muted,children:"),"}),"\n",(0,r.jsx)("span",{className:z.default.muted,children:"})"})]})}),$=({progress:e,completed:t})=>{let a=(0,x.useRef)(null);return(0,x.useLayoutEffect)(()=>{if(!e||t||!a.current)return;let s=a.current.getAnimations({subtree:!0});s.forEach(e=>e.pause());let n=e=>{let t=7200*Math.max(0,Math.min(1,e));s.forEach(e=>{e.currentTime=t})};return n(e.get()),e.on("change",n)},[t,e]),(0,r.jsx)(H,{frameRef:a,playing:!!(e&&!t),completed:t})},H=({frameRef:e,playing:t,completed:a})=>(0,r.jsx)("div",{ref:e,className:z.default.frame,"data-playing":t,"data-completed":a,"aria-label":"A support agent gathers live context from five sources and replies to a customer",children:(0,r.jsxs)("div",{className:z.default.scene,children:[(0,r.jsxs)("div",{className:z.default.chat,children:[(0,r.jsxs)("div",{className:z.default.chatLabel,children:[(0,r.jsx)("span",{className:z.default.onlineDot}),"HELP CENTER · LIVE CHAT"]}),(0,r.jsxs)("div",{className:z.default.customerBubble,children:[(0,r.jsx)("span",{children:"I need a refund for order #8421. Can you issue this now?"}),(0,r.jsx)("small",{children:"customer ····2291 · just now"})]}),(0,r.jsxs)("div",{className:z.default.replyBubble,children:[(0,r.jsx)("span",{children:"Unfortunately, you’re not eligible for a refund. Thanks for inquiring."}),(0,r.jsx)("small",{children:"support agent · replied in 2s"})]})]}),(0,r.jsx)("div",{className:z.default.askConnector,"aria-hidden":"true",children:(0,r.jsxs)("svg",{className:z.default.connectorArrow,viewBox:"0 0 35 53",fill:"none",children:[(0,r.jsx)("circle",{cx:"17.5",cy:"4.5",r:"3.75",fill:"#1c3b33",stroke:"#bade61",strokeWidth:"1.5"}),(0,r.jsx)("path",{d:"M17.5 9v34 m-5-5 5 5 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,r.jsx)("div",{className:z.default.answerConnector,"aria-hidden":"true",children:(0,r.jsxs)("svg",{className:z.default.connectorArrow,viewBox:"0 0 35 53",fill:"none",children:[(0,r.jsx)("path",{d:"M17.5 10v34 m-5-29 5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("circle",{cx:"17.5",cy:"48.5",r:"3.75",fill:"#1c3b33",stroke:"#bade61",strokeWidth:"1.5"})]})}),(0,r.jsxs)("div",{className:z.default.lower,children:[(0,r.jsxs)("div",{className:z.default.agent,children:[(0,r.jsxs)("div",{className:z.default.agentTitle,children:["SUPPORT AGENT"," ",(0,r.jsxs)("span",{className:z.default.processing,children:[(0,r.jsx)("i",{}),"processing..."]}),(0,r.jsxs)("span",{className:z.default.ready,children:[(0,r.jsx)("i",{}),"answer ready"]})]}),(0,r.jsx)("div",{className:z.default.agentSummary,children:"refund policy · 2 prior claims · delivered"})]}),(0,r.jsxs)("div",{className:z.default.liveContext,children:[(0,r.jsxs)("div",{className:z.default.codeHeader,children:[(0,r.jsx)("span",{children:"LIVE CONTEXT"}),(0,r.jsx)("img",{src:"/img/marketing/context-chalk-logo.svg",alt:"Chalk"})]}),(0,r.jsx)("div",{className:z.default.codeCaption,children:"assembled at inference-time - no ETL"}),(0,r.jsx)("div",{className:z.default.codeRule}),(0,r.jsx)(B,{})]}),(0,r.jsxs)("div",{className:z.default.sourceBus,"aria-hidden":"true",children:[(0,r.jsx)("span",{className:z.default.busPort}),(0,r.jsx)("span",{className:z.default.busStem}),(0,r.jsx)("span",{className:z.default.busRail}),W.map((e,t)=>(0,r.jsx)("span",{className:z.default.busTap,style:{left:`${72+130*t}px`},children:(0,r.jsx)("i",{})},e.name)),W.map((e,t)=>(0,r.jsx)("span",{className:z.default.sourceSignal,style:{left:`${72+130*t}
1px`,animationDelay:`${3+.13*t}s`,"--to-center":`${260-130*t}px`}},`${e.name}-signal`))]}),(0,r.jsxs)("div",{className:z.default.sources,children:[(0,r.jsx)("div",{className:z.default.sourceCards,children:W.map(e=>(0,r.jsxs)("div",{className:z.default.sourceCard,children:[(0,r.jsx)("strong",{children:e.name}),(0,r.jsx)("span",{children:e.kind}),(0,r.jsx)("small",{children:e.detail})]},e.name))}),(0,r.jsx)("div",{className:z.default.sourceFooter,children:"SOURCES · 5 CONNECTED · NO ETL"})]})]})]})});e.i(52150);var O=e.i(44665),V=e.i(44356);function G(){V.hasReducedMotionListener.current||(0,O.initPrefersReducedMotion)();let[e]=(0,x.useState)(V.prefersReducedMotion.current);return e}let K=(0,x.createContext)(!0),U=()=>(0,x.useContext)(K),Z=(0,x.createContext)(null),X=()=>(0,x.useContext)(Z),Q=(0,x.createContext)("dark"),Y=e=>{let t=G()??!1,a=U(),s=X(),[n,r]=(0,x.useState)(()=>t?e.length:e.filter(e=>(s?.get()??0)>=e).length);return(0,x.useEffect)(()=>{if(t)return void r(e.length);if(s){let t=t=>r(e.filter(e=>t>=e).length);return t(s.get()),s.on("change",t)}if(!a)return;let n=e.map((e,t)=>window.setTimeout(()=>r(t+1),e));return()=>n.forEach(e=>window.clearTimeout(e))},[t,a,e,s]),n},J={neutral:"bg-cds-surface-active text-cds-ink-secondary dark:!bg-white/[0.12] dark:!text-zinc-200",green:"bg-cds-status-green-fill text-cds-status-green-text dark:!bg-[#34D399]/[0.12] dark:!text-[#6EE7B7]",yellow:"bg-cds-status-yellow-fill text-cds-status-yellow-text dark:!bg-[#FBBF24]/[0.12] dark:!text-[#FDE68A]",red:"bg-cds-status-red-fill text-cds-status-red-text dark:!bg-[#FB7185]/[0.12] dark:!text-[#FDA4AF]",blue:"bg-cds-status-blue-fill text-cds-status-blue-text dark:!bg-blue-400/10 dark:!text-blue-300",purple:"bg-cds-status-purple-fill text-cds-status-purple-text dark:!bg-purple-400/10 dark:!text-purple-300"},ee=({tone:e,leadingIcon:t,leadingDot:a,className:s,children:n})=>(0,r.jsxs)("span",{className:(0,p.classNames)("inline-flex h-5 max-w-full items-center gap-cds-4 rounded-cds-4 px-cds-6 text-cds-xs font-medium whitespace-nowrap",J[e],s),children:[t&&(0,r.jsx)(E.Icon,{name:t,size:"xs","aria-hidden":"true"}),a&&(0,r.jsx)("span",{className:"size-[6px] shrink-0 rounded-full",style:{background:a}}),(0,r.jsx)("span",{className:"truncate",children:n})]}),et=({variant:e,leftIcon:t,rightIcon:a,loading:s,className:n,children:l,...i})=>(0,r.jsxs)("button",{type:"button",className:(0,p.classNames)("inline-flex h-7 shrink-0 items-center justify-center gap-cds-6 rounded-cds-4 px-cds-8 text-cds-xs font-medium whitespace-nowrap","primary"===e?"bg-cds-primary-fill-default text-white":"secondary"===e?"border-[1px] border-cds-surface-border bg-cds-surface-default text-cds-ink dark:!border-white/[0.08] dark:!bg-white/[0.06] dark:!text-zinc-200":"text-cds-ink-secondary dark:!text-zinc-400",n),...i,children:[t&&(0,r.jsx)(E.Icon,{name:t,size:"xs","aria-hidden":"true"}),l,s&&(0,r.jsx)("span",{className:"size-2 animate-pulse rounded-full bg-current","aria-hidden":"true"}),a&&(0,r.jsx)(E.Icon,{name:a,size:"xs","aria-hidden":"true"})]}),ea=({icon:e,...t})=>(0,r.jsx)(et,{...t,className:(0,p.classNames)("!w-7 !px-0",t.className),children:(0,r.jsx)(E.Icon,{name:e,size:"sm","aria-hidden":"true"})}),es=({items:e,activeItemId:t,ariaLabel:a,onChange:s})=>(0,r.jsx)("div",{role:"tablist","aria-label":a,className:"inline-flex h-7 items-center gap-cds-2 rounded-cds-4 bg-cds-surface-active p-cds-2 dark:!bg-white/[0.06]",children:e.map(e=>(0,r.jsxs)("button",{type:"button",role:"tab","aria-selected":e.id===t,onClick:()=>s(e),className:(0,p.classNames)("inline-flex h-6 items-center gap-cds-4 rounded-cds-4 px-cds-8 text-cds-xs whitespace-nowrap",e.id===t?"bg-cds-surface-default text-cds-ink shadow-sm dark:!bg-white/[0.12] dark:!text-zinc-100":"text-cds-ink-secondary dark:!text-zinc-400"),children:[e.icon&&(0,r.jsx)(E.Icon,{name:e.icon,size:"xs","aria-hidden":"true"}),e.label,e.count&&(0,r.jsx)("span",{className:"text-cds-ink-subtle dark:!text-zinc-500",children:e.count})]},e.id))}),en=({items:e,className:t})=>(0,r.jsx)("nav",{"aria-label":"Breadcrumb",className:(0,p.classNames)("flex min-w-0 items-center gap-cds-6 text-cds-xs",t),children:e.map((e,t)=>(0,r.jsxs)(x.default.Fragment,{children:[t>0&&(0,r.jsx)(E.Icon,{name:"chevronRight",size:"xs","aria-hidden":"true"}),(0,r.jsx)("span",{className:(0,p.classNames)("truncate",e.current&&"font-medium text-cds-ink dar
1k:!text-zinc-200"),children:e.label})]},e.id))}),er="Acme",el="Support agent",ei="bg-cds-surface-default dark:!bg-cds-base-dark",eo="bg-cds-surface-hover dark:!bg-cds-inset-dark",ec="bg-cds-surface-default dark:!bg-cds-elevated-dark",ed="bg-cds-surface-active dark:!bg-white/[0.06]",eu="border-cds-surface-border dark:!border-white/[0.08]",em="text-cds-ink-strong dark:!text-zinc-100",eh="text-cds-ink dark:!text-zinc-200",ep="text-cds-ink-secondary dark:!text-zinc-400",ex="text-cds-ink-subtle dark:!text-zinc-500",ef=({page:e,project:t=er,agent:a=el,children:s})=>{let n=(0,x.useMemo)(()=>[{id:"project",label:t},{id:"agent",label:a},{id:"page",label:e,current:!0}],[a,e,t]);return(0,r.jsxs)("div",{className:(0,p.classNames)("flex h-full min-h-0 flex-col",ei,eh),children:[(0,r.jsxs)("div",{className:(0,p.classNames)("flex h-12 flex-none items-center gap-cds-4 border-b-[1px] px-cds-8",eu),children:[(0,r.jsx)(ea,{icon:"panelLeft",variant:"tertiary",size:"sm","aria-label":"Sidebar"}),(0,r.jsx)(en,{items:n,className:"min-w-0 flex-1 !px-cds-4"}),(0,r.jsx)(ea,{icon:"docs",variant:"tertiary",size:"sm","aria-label":"Docs"}),(0,r.jsx)(ea,{icon:"question",variant:"tertiary",size:"sm","aria-label":"Help"}),(0,r.jsx)(ea,{icon:"search",variant:"tertiary",size:"sm","aria-label":"Search"}),(0,r.jsx)("span",{"aria-hidden":!0,className:(0,p.classNames)("ml-cds-4 flex h-6 w-6 items-center justify-center rounded-full",ed,ep),children:(0,r.jsx)(E.Icon,{name:"user",size:"sm"})})]}),(0,r.jsx)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:s})]})},eg=({children:e,className:t})=>(0,r.jsx)("div",{className:(0,p.classNames)("flex h-12 flex-none items-center gap-cds-6 border-b-[1px] px-cds-12",eu,t),children:e}),ey=({children:e,className:t})=>(0,r.jsx)("div",{className:(0,p.classNames)("text-cds-xs font-medium",ex,t),children:e}),eb="Web Store",ev="Support agent",e_="support_reply",ew=[{id:"root",operation:"/chalk.engine.v1.QueryService/OnlineQuery",label:e_,kind:"other",source:"Chalk engine",sourceIcon:"route",depth:0,startMs:0,durationMs:1642,featuresLabel:"Inputs",features:[{name:"ticket.id",value:"tk_8f21c4"},{name:"ticket.channel",value:"email"},{name:"customer.id",value:"cus_1d84"}]},{id:"plan",operation:"chalk.grpc.online_query_internal",label:"Ticket.reply",kind:"plan",source:"Query plan",sourceIcon:"chartNoAxesGantt",depth:1,startMs:2,durationMs:1620,featuresLabel:"Outputs",features:[{name:"ticket.action",value:"resolve"},{name:"ticket.reply",value:"Sorry for the wait…"}]},{id:"customer",operation:"generic_online_store_lookup",label:"customer",kind:"other",source:"Online store",sourceIcon:"databaseZap",depth:2,startMs:6,durationMs:4,features:[{name:"customer.plan",value:"Plus"},{name:"customer.order_count",value:"14"}]},{id:"orders",operation:"batch_udf",label:"get_latest_order",kind:"other",source:"Postgres",sourceIcon:"squareFunction",depth:2,startMs:6,durationMs:38,features:[{name:"order.id",value:"48213"},{name:"order.status",value:"label_created"},{name:"order.promised_by",value:"Fri, Sep 25"}]},{id:"orders-sql",operation:"postgres_execute_query",label:"orders",kind:"sql",source:"Postgres",sourceIcon:"sqlFile",depth:3,startMs:9,durationMs:31,featuresLabel:"Attributes",features:[{name:"service.name",value:"postgres"},{name:"num_rows",value:"1"}]},{id:"tracking",operation:"libchalk.http_request_expr.perform_curl_request",label:"carrier_tracking",kind:"http",source:"Carrier API",sourceIcon:"globeLock",depth:2,startMs:44,durationMs:124,features:[{name:"shipment.status",value:"delayed"},{name:"shipment.eta",value:"Mon, Sep 28"}]},{id:"articles",operation:"RustBackedVectorCollection::search",label:"help_articles",kind:"other",source:"Vector index",sourceIcon:"vectorSquare",depth:2,startMs:6,durationMs:82,features:[{name:"help_articles[0].title",value:"Late or delayed orders"},{name:"help_articles[1].title",value:"Upgrade to express"}]},{id:"llm",operation:"chalk.completion.request",label:"draft_reply-v8",kind:"llm",source:"claude-opus-5.5",sourceIcon:"brain",depth:2,startMs:172,durationMs:1446,features:[]},{id:"serialize",operation:"online_query_single_serialize_results",label:"serialize results",kind:"other",source:"Chalk engine",sourceIcon:"package",depth:1,startMs:1624,durationMs:14,features:[]}],ek=[{label:"Order #48213",feature:"order.status",value:"Label created",spanId:"orders"},{label:"Carrier ETA",feature:"shipment.eta",value:"Mon, Sep 28",spanId:"tracking"},{label:"Plan",feature:"customer.plan",value:"Plus",spanId:"customer"},{label:"Help article",feature:"help_articles[0].title",value:"Late or delayed orders",spanId:"articles"}],ej="Resolve",eN=e=>null!=e.threshold,eS=[{id:"match",label:"Action match",shortLabel:"Match",kind:"Code scorer",description:"Probability on the team's action",mean:.93,threshold:.9},{id:"grounded",label:"Grounded reply",shortLabel:"Grounded",kind:"LLM judge",description:"Cites the account and help articles",mean:.87,threshold:.8},{id:"policy",label:"Policy compliance",shortLabel:"Policy",kind:"LLM judge",description:"Graded against the support policy",mean:.94,threshold:.9},{id:"consistency",label:"Consistency",shortLabel:"Consistency",kind:"Code scorer",description:"Similar replies across 3 reruns",mean:.91}],eC=eS.filter(eN),eM=[3,6,8,12,10,7,4,23,291,883],eA=eM.reduce((e,t,a)=>a/10<.8?e+t:e,0),eq=[{id:"tk_8f21c4",createdAt:new Date("2026-09-22T16:12:00"),inquiry:"Order hasn't shipped yet",label:"Resolve",action:"Resolve",scores:{match:.94,grounded:.93,policy:.98,consistency:.96},latencyMs:1642},{id:"tk_77e0f1",createdAt:new Date("2026-09-22T16:07:00"),inquiry:"Promo code not applying",label:"Resolve",action:"Resolve",scores:{match:.92,grounded:.71,policy:.96,consistency:.83},latencyMs:1148},{id:"tk_e19c63",createdAt:new Date("2026-09-22T15:58:00"),inquiry:"Resend my reset link",label:"Resolve",action:"Resolve",scores:{match:.93,grounded:.88,policy:.97,consistency:.9},latencyMs:1584},{id:"tk_d2e8a5",createdAt:new Date("2026-09-22T15:51:00"),inquiry:"Cancel my subscription",label:"Resolve",action:"Resolve",scores:{match:.96,grounded:.88,policy:.95,consistency:.91},latencyMs:1118},{id:"tk_3d5a90",createdAt:new Date("2026-09-22T15:46:00"),inquiry:"Change delivery address",label:"Resolve",action:"Resolve",scores:{match:.91,grounded:.84,policy:.91,consistency:.95},latencyMs:1036},{id:"tk_c47b2d",createdAt:new Date("2026-09-22T15:39:00"),inquiry:"Delete my account data",label:"Escalate",action:"Escalate",scores:{match:.97,grounded:.96,policy:.99,consistency:.94},latencyMs:1090},{id:"tk_9f4471",createdAt:new Date("2026-09-22T15:31:00"),inquiry:"Charged twice this month",label:"Escalate",action:"Resolve",scores:{match:.18,grounded:.46,policy:.61,consistency:.64},latencyMs:1262},{id:"tk_6c1f3b",createdAt:new Date("2026-09-22T15:24:00"),inquiry:"Wrong size, want exchange",label:"Resolve",action:"Resolve",scores:{match:.93,grounded:.82,policy:.9,consistency:.86},latencyMs:1376},{id:"tk_5b2f88",createdAt:new Date("2026-09-22T15:20:00"),inquiry:"Item arrived damaged",label:"Clarify",action:"Clarify",scores:{match:.84,grounded:.86,policy:.93,consistency:.92},latencyMs:1422},{id:"tk_0c8e4b",createdAt:new Date("2026-09-22T15:12:00"),inquiry:"Where's my invoice?",label:"Resolve",action:"Resolve",scores:{match:.99,grounded:.95,policy:1,consistency:.98},latencyMs:924},{id:"tk_4b7d19",createdAt:new Date("2026-09-22T15:05:00"),inquiry:"Track my return",label:"Resolve",action:"Resolve",scores:{match:.95,grounded:.9,policy:.97,consistency:.93},latencyMs:1214},{id:"tk_a60d3e",createdAt:new Date("2026-09-22T14:57:00"),inquiry:"Apply a student discount",label:"Resolve",action:"Resolve",scores:{match:.94,grounded:.9,policy:.96,consistency:.89},latencyMs:1806},{id:"tk_f09a42",createdAt:new Date("2026-09-22T14:52:00"),inquiry:"Add a seat to my team",label:"Resolve",action:"Resolve",scores:{match:.98,grounded:.93,policy:.96,consistency:.97},latencyMs:986},{id:"tk_1a9e07",createdAt:new Date("2026-09-22T14:44:00"),inquiry:"Update billing email",label:"Resolve",action:"Resolve",scores:{match:.97,grounded:.89,policy:.91,consistency:.88},latencyMs:1968}],eE=e=>eC.reduce((t,a)=>t+e.scores[a.id],0)/eC.length,eR=[{id:"tk_b73e10",createdAt:new Date("2026-09-22T14:18:00"),inquiry:"Delivered but not here",label:"Escalate",action:"Resolve",scores:{match:.12,grounded:.58,policy:.54,consistency:.61},latencyMs:1318},{id:"tk_4e21c8",createdAt:new Date("2026-09-22T13:47:00"),inquiry:"Gift card balance is wrong",label:"Resolve",action:"Resolve",scores:{match:.91,grounded:.52,policy:.9,consistency:.79},latencyMs:1452},{id:"tk_c90a5d",createdAt:new Date("2026-09-22T12:09:00"),inquiry:"Close my business account",label:"Escalate",action:"Resolve",scores:{match:.21,grounded:.63,policy:.48,consistency:.66},latencyMs:1690},{id:"tk_18f6b2",createdAt:new Date("2026-09-22T11:26:00"),inquiry:"Change name on my order",label:"Resolve",action:"Resolve",scores:{match:.93,grounded:.61,policy:.83,consistency:.84},latencyMs:1204},{id:"tk_7a3d94",createdAt:new Date("2026-09-22T10:02:00"),inquiry:"Warranty claim for blender",label:"Escalate",action:"Clarify",scores:{match:.27,grounded:.66,policy:.71,consistency:.7},latencyMs:1562},{id:"tk_e5c017",createdAt:new Date("2026-09-22T09:14:00"),inquiry:"Item missing from box",label:"Clarify",action:"Resolve",scores:{match:.34,grounded:.55,policy:.62,consistency:.73},latencyMs:1346},{id:"tk_2b9f61",createdAt:new Date("2026-09-21T18:41:00"),inquiry:"Price match request",label:"Resolve",action:"Resolve",scores:{match:.88,grounded:.57,policy:.86,consistency:.8},latencyMs:1488},{id:"tk_d04e7a",createdAt:new Date("2026-09-21T16:55:00"),inquiry:"Legal request for records",label:"Escalate",action:"Resolve",scores:{match:.04,grounded:.31,policy:.12,consistency:.52},latencyMs:1872},{id:"tk_91c3b8",createdAt:new Date("2026-09-21T15:12:00"),inquiry:"Late order, want credit",label:"Resolve",action:"Escalate",scores:{match:.29,grounded:.74,policy:.88,consistency:.76},latencyMs:1236},{id:"tk_5f8e22",createdAt:new Date("2026-09-21T13:38:00"),inquiry:"Stack two promo codes",label:"Resolve",action:"Resolve",scores:{match:.94,grounded:.83,policy:.58,consistency:.85},latencyMs:1128},{id:"tk_a2d6f9",createdAt:new Date("2026-09-21T11:20:00"),inquiry:"Wrong address on account",label:"Resolve",action:"Clarify",scores:{match:.33,grounded:.69,policy:.9,consistency:.74},latencyMs:1394},{id:"tk_3c7b50",createdAt:new Date("2026-09-21T10:07:00"),inquiry:"Invoice shows wrong tax",label:"Escalate",action:"Resolve",scores:{match:.09,grounded:.44,policy:.39,consistency:.58},latencyMs:1654},{id:"tk_68e1d4",createdAt:new Date("2026-09-21T08:49:00"),inquiry:"Subscription renewed early",label:"Resolve",action:"Resolve",scores:{match:.9,grounded:.49,policy:.93,consistency:.82},latencyMs:1172}],eT=[...eq.filter(e=>.8>eE(e)),...eR];class eF{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let a=0;a<this.animations.length;a++)this.animations[a][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return eL(this.animations,"duration")}get iterationDuration(){return eL(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function eL(e,t){let a=0;for(let s=0;s<e.length;s++){let n=e[s][t];null!==n&&n>a&&(a=n)}return a}class eP extends eF{then(e,t){return this.finished.finally(e).then(()=>{})}}var eI=e.i(78777),eD=e.i(70521),ez=e.i(93188),eW=e.i(18922),eB=e.i(45147),e$=e.i(61207),eH=e.i(49156),eO=e.i(52007),eV=e.i(19135),eG=e.i(43330),eK=e.i(36600);function eU(e,t){var a;let s;return(0,eK.isEasingArray)(e)?e[a=e.length,((t-0)%(s=a-0)+s)%s+0]:e}var eZ=e.i(20385);function eX(e){return"object"==typeof e&&!Array.isArray(e)}function eQ(e,t,a,s){return"string"==typeof e&&eX(t)?(0,eZ.resolveElements)(e,a,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function eY(e,t,a,s){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?a:t.startsWith("<")?Math.max(0,a+parseFloat(t.slice(1))):s.get(t)??e}var eJ=e.i(2191);function e0(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function e1(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function e2(e,t){return t[e]||(t[e]=[]),t[e]}let e8=e=>"number"==typeof e,e4=e=>e.every(e8);var e5=e.i(61092),e6=e.i(74842),e3=e.i(85400),e9=e.i(38723),e7=e.i(13521),te=e.i(99296),tt=e.i(20498);class ta extends tt.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let a=e[t];if("string"==typeof a||"number"==typeof a)return a}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,te.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}var ts=e.i(67203);function tn(e){let t={presenceContext:null,props:{}
1,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},a=(0,e3.isSVGElement)(e)&&!(0,e9.isSVGSVGElement)(e)?new ts.SVGVisualElement(t):new e7.HTMLVisualElement(t);a.mount(e),e5.visualElementStore.set(e,a)}function tr(e){let t=new ta({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),e5.visualElementStore.set(e,t)}var tl=e.i(79480);function ti(e,t,a,s){let n=[];if((0,ez.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!eX(t))n.push((0,tl.animateSingleValue)(e,eX(t)&&t.default||t,a&&a.default||a));else{let r=eQ(e,t,s),l=r.length;(0,eG.invariant)(!!l,"No valid elements provided.","no-valid-elements");for(let e=0;e<l;e++){let s=r[e];(0,eG.invariant)(null!==s,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");let i=s instanceof Element?tn:tr;e5.visualElementStore.has(s)||i(s);let o=e5.visualElementStore.get(s),c={...a};"delay"in c&&"function"==typeof c.delay&&(c.delay=c.delay(e,l)),n.push(...(0,e6.animateTarget)(o,{...t,transition:c},{}))}}return n}function to(e){return function(t,a,s){let n,r=[];if(Array.isArray(t)&&t.some(Array.isArray)){let s;s=[],(function(e,{defaultTransition:t={},...a}={},s,n){let r=t.duration||.3,l=new Map,i=new Map,o={},c=new Map,d=0,u=0,m=0;for(let a=0;a<e.length;a++){let l=e[a];if("string"==typeof l){c.set(l,u);continue}if(!Array.isArray(l)){c.set(l.name,eY(u,l.at,d,c));continue}let[x,f,g={}]=l;void 0!==g.at&&(u=eY(u,g.at,d,c));let y=0,b=(e,a,s,l=0,i=0)=>{var o;let c=Array.isArray(o=e)?o:[o],{delay:d=0,times:h=(0,eW.defaultOffset)(c),type:p="keyframes",repeat:x,repeatType:f,repeatDelay:g=0,...b}=a,{ease:v=t.ease||"easeOut",duration:_}=a,w="function"==typeof d?d(l,i):d,k=c.length,j=(0,eB.isGenerator)(p)?p:n?.[p||"keyframes"];if(k<=2&&j){let e=100;2===k&&e4(c)&&(e=Math.abs(c[1]-c[0]));let t={...b};void 0!==_&&(t.duration=(0,eV.secondsToMilliseconds)(_));let a=(0,e$.createGeneratorEasing)(t,e,j);v=a.ease,_=a.duration}_??(_=r);let N=u+w;1===h.length&&0===h[0]&&(h[1]=1);let S=h.length-c.length;if(S>0&&(0,eH.fillOffset)(h,S),1===c.length&&c.unshift(null),x){(0,eG.invariant)(x<20,"Repeat count too high, must be less than 20","repeat-count-high"),_*=x+1;let e=[...c],t=[...h],a=[...v=Array.isArray(v)?[...v]:[v]];for(let s=0;s<x;s++){c.push(...e);for(let n=0;n<e.length;n++)h.push(t[n]+(s+1)),v.push(0===n?"linear":eU(a,n-1))}for(let e=0;e<h.length;e++)h[e]=h[e]/(x+1)}let C=N+_;!function(e,t,a,s,n,r){for(let t=0;t<e.length;t++){let a=e[t];a.at>n&&a.at<r&&((0,eI.removeItem)(e,a),t--)}for(let l=0;l<t.length;l++)e.push({value:t[l],at:(0,eJ.mixNumber)(n,r,s[l]),easing:eU(a,l)})}(s,c,v,h,N,C),y=Math.max(w+_,y),m=Math.max(C,m)};if((0,ez.isMotionValue)(x))b(f,g,e2("default",e1(x,i)));else{let e=eQ(x,f,s,o),t=e.length;for(let a=0;a<t;a++){let s=e1(e[a],i);for(let e in f){var h,p;b(f[e],(h=g,p=e,h&&h[p]?{...h,...h[p]}:{...h}),e2(e,s),a,t)}}}d=u,u+=y}return i.forEach((e,s)=>{for(let n in e){let r=e[n];r.sort(e0);let i=[],o=[],c=[];for(let e=0;e<r.length;e++){let{at:t,value:a,easing:s}=r[e];i.push(a),o.push((0,eO.progress)(0,m,t)),c.push(s||"easeOut")}0!==o[0]&&(o.unshift(0),i.unshift(i[0]),c.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),i.push(null)),l.has(s)||l.set(s,{keyframes:{},transition:{}});let d=l.get(s);d.keyframes[n]=i,d.transition[n]={...t,duration:m,ease:c,times:o,...a}}}),l})(t,a,e,{spring:eD.spring}).forEach(({keyframes:e,transition:t},a)=>{s.push(...ti(a,e,t))}),r=s}else{let{onComplete:l,...i}=s||{};"function"==typeof l&&(n=l),r=ti(t,a,i,e)}let l=new eP(r);return n&&l.finished.then(n),e&&(e.animations.push(l),l.finished.then(()=>{(0,eI.removeItem)(e.animations,l)})),l}}let tc=to();var td=e.i(98903);function tu(e,t,a){(0,x.useInsertionEffect)(()=>e.on(t,a),[e,t,a])}let tm=e=>Math.max(0,Math.min(1,e)),th=e=>e*e*(3-2*e),tp=e=>{let t=[0],a=[0],s=[],n=[],r=0;for(let l of e)r+=l.durationMs,t.push(l.toMs),a.push(r),s.push("easeInOut"),n.push(r),l.pauseAfterMs>0&&(r+=l.pauseAfterMs,t.push(l.toMs),a.push(r),s.push("linear"));let l=r;return{values:t,times:a.map(e=>l>0?e/l:1),ease:s,totalMs:l,arrivalsMs:n}},tx=(e,t)=>{let[a,s]=(0,x.useState)(()=>t(e.get()));return tu(e,"change",e=>s(t(e))),(0,x.useEffect)(()=>s(t(e.get())),[t,e]),a},tf={Resolve:"#10B981",Clarify:"#F59E0B",Escalate:"#F64A62"}
1,tg="!gap-cds-6 bg-cds-surface-border text-cds-ink dark:!bg-white/[0.12] dark:!text-zinc-200",ty={green:"dark:!bg-[#34D399]/[0.12] dark:!text-[#6EE7B7]",yellow:"dark:!bg-[#FBBF24]/[0.12] dark:!text-[#FDE68A]",red:"dark:!bg-[#FB7185]/[0.12] dark:!text-[#FDA4AF]"},tb="bg-[#177F65] dark:!bg-[#0FA87F]",tv={plan:"bg-[#F8947F]",sql:"bg-[#2AA853]",http:"bg-[#B787F5]",llm:"bg-[#81CEEA]",other:"bg-[#ADDEEF]"},t_={plan:"Query plan",sql:"SQL",http:"HTTP",llm:"LLM",other:"Other"},tw=(e,t)=>({...e,render:a=>(0,r.jsx)("span",{className:(0,p.classNames)("block truncate",t?.cellClassName),children:String(e.accessorFn(a)??"")})}),tk=(e,t)=>({...e,render:a=>{let s=e.accessorFn(a);return(0,r.jsx)("span",{className:(0,p.classNames)("block truncate text-right tabular-nums",t.getCellClassName?.(s)),children:null==s?"—":t.numberFormatter(s)})}}),tj=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),tN=(e,t)=>({...e,render:a=>{let s=e.accessorFn(a),n="function"==typeof t.badgeClassName?t.badgeClassName(s):t.badgeClassName;return(0,r.jsx)("span",{className:t.cellClassName,children:(0,r.jsx)(ee,{tone:t.getTone(s),size:t.size,className:n,...t.getLeading?.(s),children:t.getText(s)})})}}),tS={},tC=(0,x.createContext)(null),tM=({children:e,initialActiveFilters:t,...a})=>(0,r.jsx)(tC.Provider,{value:a,children:e}),tA=({ariaLabel:e,frameless:t,rowHeight:a})=>{let s=(0,x.useContext)(tC);return s?(0,r.jsx)("div",{className:(0,p.classNames)("h-full overflow-auto",!t&&"rounded-cds-6 border-[1px] border-cds-surface-border dark:!border-white/[0.08]"),children:(0,r.jsxs)("table",{"aria-label":e,className:"w-max min-w-full table-fixed border-collapse text-left text-cds-xs text-cds-ink dark:!text-zinc-200",children:[(0,r.jsx)("colgroup",{children:s.columns.map(e=>(0,r.jsx)("col",{style:{width:e.size}},e.id))}),(0,r.jsx)("thead",{className:"sticky top-0 z-10 bg-cds-surface-hover text-cds-ink-secondary dark:!bg-cds-inset-dark dark:!text-zinc-400",children:(0,r.jsx)("tr",{children:s.columns.map(e=>(0,r.jsx)("th",{scope:"col",className:"h-8 border-b-[1px] border-cds-surface-border px-cds-8 font-medium whitespace-nowrap dark:!border-white/[0.08]",children:e.header},e.id))})}),(0,r.jsx)("tbody",{children:s.data.map(e=>(0,r.jsx)("tr",{className:(0,p.classNames)("border-b-[1px] border-cds-surface-border dark:!border-white/[0.06]",s.onRowClick&&"cursor-pointer",s.getRowClassName?.(e)),onClick:()=>s.onRowClick?.(e),children:s.columns.map(t=>(0,r.jsx)("td",{className:(0,p.classNames)("max-w-0 px-cds-8","compact"===a?"h-8":"h-10"),children:t.render(e)},t.id))},s.getRowKey(e)))})]})}):null};var tq=e.i(6305),tE=e.i(78529),tR=e.i(28803),tT=e.i(90009),tF=e.i(53913);function tL(e,t){let a=(0,td.useMotionValue)(t()),s=()=>a.set(t());return s(),(0,tF.useIsomorphicLayoutEffect)(()=>{let t=()=>tT.frame.preRender(s,!1,!0),a=e.map(e=>e.on("change",t));return()=>{a.forEach(e=>e()),(0,tT.cancelFrame)(s)}}),a}var tP=e.i(60404);function tI(e,t,a,s){if("function"==typeof e){let t;return tP.collectMotionValues.current=[],e(),t=tL(tP.collectMotionValues.current,e),tP.collectMotionValues.current=void 0,t}let n="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),a=t?0:-1,s=e[0+a],n=e[1+a],r=e[2+a],l=e[3+a],i=(0,tE.interpolate)(n,r,l);return t?i(s):i}(t,a,s);return Array.isArray(e)?tD(e,n):tD([e],([e])=>n(e))}function tD(e,t){let a=(0,tR.useConstant)(()=>[]);return tL(e,()=>{a.length=0;let s=e.length;for(let t=0;t<s;t++)a[t]=e[t].get();return t(a)})}let tz=[900,4100,4450,4800,5400],tW=[{id:"all",label:"All",count:1247..toLocaleString("en-US")},{id:"failing",label:"Failing",count:eA.toLocaleString("en-US")}],tB=e=>e.toFixed(2),t$="font-medium text-cds-status-red-text dark:!text-cds-status-red-text-dark",tH=(e,t,a)=>tN({id:e,accessorFn:a,header:t,label:t,size:92,minSize:92},{getText:e=>e,getTone:()=>"neutral",getLeading:e=>({leadingDot:tf[e]}),badgeClassName:tg,size:"sm"}),tO=(e,t)=>e.action!==e.label?"red":e.scores.match>=t?"green":"yellow",tV=e=>e.length>8?100:88,tG=e=>tk({id:e.id,accessorFn:t=>t.scores[e.id],header:e.shortLabel,label:e.label,size:tV(e.shortLabel)},{numberFormatter:tB,getCellClassName:t=>{var a;return a=e.threshold,null==t?"":0===t?ex:null!=a&&t<a?t$:""}}),tK=[tw({id:"ticket",accessorFn:e=>e.id,header:"Ticket",label:"Ticket",size:92},{cellClassName:"font-mono"}),(s={id:"created",accessorFn:e=>e.createdAt,header:"Created",label:"Created",size:160,minSize:160}
1,n={cellClassName:ep},{...s,render:e=>{let t=s.accessorFn(e);return(0,r.jsx)("span",{className:(0,p.classNames)("block truncate",n?.cellClassName),children:t?tj.format(t):"—"})}}),tw({id:"inquiry",accessorFn:e=>e.inquiry,header:"Inquiry",label:"Inquiry",size:184}),tH("label","Label",e=>e.label),tH("action","Action",e=>e.action),...eC.map(e=>"match"===e.id?tN({id:e.id,accessorFn:e=>e,header:e.shortLabel,label:e.label,size:80,minSize:80},{getText:e=>tB(e.scores.match),getTone:t=>tO(t,e.threshold),getLeading:e=>({leadingIcon:e.action===e.label?"check":"x"}),badgeClassName:t=>ty[tO(t,e.threshold)],cellClassName:"font-mono",size:"sm"}):tG(e)),tk({id:"overall",accessorFn:eE,header:"Overall",headerTooltip:`Mean of ${eC.map(e=>e.shortLabel).join(", ")}`,label:"Overall",size:tV("Overall")},{numberFormatter:tB,getCellClassName:e=>null!=e&&e<.8?t$:(0,p.classNames)("font-medium",em)}),...eS.filter(e=>!eN(e)).map(tG),tk({id:"latency",accessorFn:e=>e.latencyMs,header:"Latency",headerTooltip:"End-to-end query time, reported rather than scored",label:"Latency",size:88},{numberFormatter:e=>`${e.toLocaleString("en-US")} ms`,getCellClassName:()=>ep})],tU=({ready:e,scoring:t,shipped:a,onShip:s})=>e?(0,r.jsxs)("span",{className:"relative flex",children:[!a&&(0,r.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 animate-ping rounded-cds-6 bg-emerald-500/40 [animation-iteration-count:2]"}),(0,r.jsx)(et,{variant:"primary",size:"sm",leftIcon:a?"check":"rocket",disabled:a,onClick:s,children:a?"v8 shipped":"Ship v8"})]}):(0,r.jsx)(et,{variant:"primary",size:"sm",leftIcon:"run",loading:t,children:"Run eval"}),tZ=({progress:e,scoredRows:t,started:a})=>{let s=G()??!1,n=!!X(),l=tI(e,e=>`${100*e}%`),i=1247===t,o=1247..toLocaleString("en-US");return(0,r.jsxs)("div",{className:(0,p.classNames)("flex h-8 flex-none items-center gap-cds-12 border-b-[1px] px-cds-12 text-cds-xs tabular-nums",eu,ep),children:[(0,r.jsx)("span",{className:"w-[220px] flex-none",children:i?`Scored ${o} tickets in 2m 14s`:a?`Scoring ${t.toLocaleString("en-US")} / ${o}…`:"Ready to run"}),(0,r.jsx)(tq.motion.div,{className:(0,p.classNames)("relative h-1 flex-1 overflow-hidden rounded-full",ed),animate:{opacity:+!i},transition:{duration:s||n?0:.5,delay:!i||s||n?0:.5},children:(0,r.jsx)(tq.motion.div,{className:(0,p.classNames)("absolute inset-y-0 left-0 rounded-full",tb),style:{width:l}})})]})},tX="flex min-w-0 flex-col gap-cds-6 rounded-lg border-[1px] px-cds-12 py-cds-10",tQ=({scorer:e,progress:t,passed:a})=>{let s=!!X(),n=tI(t,t=>0===t?"—":tB(e.mean*(.94+.06*t))),l=`≥ ${tB(e.threshold)}`;return(0,r.jsxs)("div",{className:(0,p.classNames)(tX,eu,ec),children:[(0,r.jsxs)("div",{className:"flex h-5 items-center gap-cds-6",children:[(0,r.jsx)("span",{title:`${e.kind} \xb7 ${e.description}`,className:(0,p.classNames)("min-w-0 truncate text-cds-xs",ep),children:e.label}),(0,r.jsx)(tq.motion.span,{className:"ml-auto flex flex-none",initial:!!a&&{scale:.9},animate:{scale:1},transition:s?{duration:0}:{type:"spring",stiffness:500,damping:20},children:(0,r.jsx)(ee,{tone:a?"green":"neutral",size:"sm",leadingIcon:a?"check":"circle",className:a?ty.green:void 0,children:l})},String(a))]}),(0,r.jsx)(tq.motion.span,{className:(0,p.classNames)("text-2xl font-semibold leading-7",em),children:n})]})},tY=Math.max(...eM),tJ=1247-eA,t0=({progress:e})=>{let t=tI(e,[0,1],[0,1]),a=Math.round(tJ/1247*100);return(0,r.jsxs)("div",{className:(0,p.classNames)(tX,eu,ec),children:[(0,r.jsxs)("div",{className:"flex h-5 items-center gap-cds-6",children:[(0,r.jsx)("span",{title:"Mean of each case's gating scores, in tenths from 0 to 1",className:(0,p.classNames)("min-w-0 truncate text-cds-xs",ep),children:"Overall score"}),(0,r.jsx)("span",{className:(0,p.classNames)("ml-auto flex-none text-cds-2xs tabular-nums",ex),children:`${a}% ≥ ${tB(.8)}`})]}),(0,r.jsx)(tq.motion.div,{className:"flex h-7 origin-bottom items-end gap-[2px]",style:{scaleY:t},children:eM.map((e,t)=>(0,r.jsx)("div",{title:`${(t/10).toFixed(1)}–${((t+1)/10).toFixed(1)}: ${e} cases`,className:(0,p.classNames)("flex-1 rounded-t-[2px]",t/10>=.8?tb:"bg-[#A1A1AA] dark:!bg-[#71717A]"),style:{height:`${Math.max(e/tY*100,4)}%`}},t))})]})};var t1=e.i(55158),t2=e.i(33536),t8=e.i(54169),t4=e.i(73388),t5=x,t6=e.i(81734);function t3(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class t9 extends t5.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,a=(0,t4.isHTMLElement)(e)&&e.offsetWidth||0,s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft,s.right=a-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function t7({children:e,isPresent:t,anchorX:a,root:s}){let n=(0,t5.useId)(),l=(0,t5.useRef)(null),i=(0,t5.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=(0,t5.useContext)(t6.MotionConfigContext),c=function(...e){return x.useCallback(function(...e){return t=>{let a=!1,s=e.map(e=>{let s=t3(e,t);return a||"function"!=typeof s||(a=!0),s});if(a)return()=>{for(let t=0;t<s.length;t++){let a=s[t];"function"==typeof a?a():t3(e[t],null)}}}}(...e),e)}(l,e?.ref);return(0,t5.useInsertionEffect)(()=>{let{width:e,height:r,top:c,left:d,right:u}=i.current;if(t||!l.current||!e||!r)return;
1let m="left"===a?`left: ${d}`:`right: ${u}`;l.current.dataset.motionPopId=n;let h=document.createElement("style");o&&(h.nonce=o);let p=s??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${r}px !important;
6            ${m}px !important;
7            top: ${c}px !important;
8          }
9        `),()=>{p.contains(h)&&p.removeChild(h)}},[t]),(0,r.jsx)(t9,{isPresent:t,childRef:l,sizeRef:i,children:t5.cloneElement(e,{ref:c})})}let ae=({children:e,initial:t,isPresent:a,onExitComplete:s,custom:n,presenceAffectsLayout:l,mode:i,anchorX:o,root:c})=>{let d=(0,tR.useConstant)(at),u=(0,x.useId)(),m=!0,h=(0,x.useMemo)(()=>(m=!1,{id:u,initial:t,isPresent:a,custom:n,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[a,d,s]);return l&&m&&(h={...h}),(0,x.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[a]),x.useEffect(()=>{a||d.size||!s||s()},[a]),"popLayout"===i&&(e=(0,r.jsx)(t7,{isPresent:a,anchorX:o,root:c,children:e})),(0,r.jsx)(t8.PresenceContext.Provider,{value:h,children:e})};function at(){return new Map}var aa=e.i(76946);let as=e=>e.key||"";function an(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}let ar=({children:e,custom:t,initial:a=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:l="sync",propagate:i=!1,anchorX:o="left",root:c})=>{let[d,u]=(0,aa.usePresence)(i),m=(0,x.useMemo)(()=>an(e),[e]),h=i&&!d?[]:m.map(as),p=(0,x.useRef)(!0),f=(0,x.useRef)(m),g=(0,tR.useConstant)(()=>new Map),[y,b]=(0,x.useState)(m),[v,_]=(0,x.useState)(m);(0,tF.useIsomorphicLayoutEffect)(()=>{p.current=!1,f.current=m;for(let e=0;e<v.length;e++){let t=as(v[e]);h.includes(t)?g.delete(t):!0!==g.get(t)&&g.set(t,!1)}},[v,h.length,h.join("-")]);let w=[];if(m!==y){let e=[...m];for(let t=0;t<v.length;t++){let a=v[t],s=as(a);h.includes(s)||(e.splice(t,0,a),w.push(a))}return"wait"===l&&w.length&&(e=w),_(an(e)),b(m),null}let{forceRender:k}=(0,x.useContext)(t2.LayoutGroupContext);return(0,r.jsx)(r.Fragment,{children:v.map(e=>{let x=as(e),y=(!i||!!d)&&(m===v||h.includes(x));return(0,r.jsx)(ae,{isPresent:y,initial:(!p.current||!!a)&&void 0,custom:t,presenceAffectsLayout:n,mode:l,root:c,onExitComplete:y?void 0:()=>{if(!g.has(x))return;g.set(x,!0);let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(k?.(),_(f.current),i&&u?.(),s&&s())},anchorX:o,children:e},x)})})},al=[{toMs:44,durationMs:700,pauseAfterMs:225},{toMs:168,durationMs:900,pauseAfterMs:225},{toMs:1618,durationMs:1500,pauseAfterMs:225},{toMs:1642,durationMs:350,pauseAfterMs:0}],ai=tp(al).arrivalsMs.map(e=>2500+e),ao=ai[ai.length-1]??2500,ac=[2500,ao,ao+400],ad=[0,250,500,750,1e3,1250,1500],au=["plan","sql","http","llm","other"],am=[{id:"waterfall",label:"Waterfall",icon:"chartNoAxesGantt"},{id:"spans",label:"Spans",icon:"list"}],ah=e=>`${Math.round(e).toLocaleString("en-US")} ms`,ap=(e,t)=>Math.min(Math.max(t-e.startMs,0),e.durationMs),ax=(e,t)=>t>=e.startMs+e.durationMs?"done":t>e.startMs?"running":"pending",af=new Map(ew.map(e=>[e.id,e])),ag=[tw({id:"span",accessorFn:e=>e.label,header:"Span",label:"Span",size:184},{cellClassName:"font-mono"}),tw({id:"kind",accessorFn:e=>t_[e.kind],header:"Kind",label:"Kind",size:96}),tw({id:"source",accessorFn:e=>e.source,header:"Source",label:"Source",size:124}),tk({id:"duration",accessorFn:e=>e.durationMs,header:"Duration",label:"Duration",size:84},{numberFormatter:ah}),tk({id:"share",accessorFn:e=>e.durationMs/1642,header:"% of query",label:"% of query",size:88},{numberFormatter:e=>`${Math.round(100*e)}%`})],ay=({playheadMs:e,selectedId:t,onSelect:a})=>{let s=tI(e,e=>`${e/1642*100}%`),n=tI(e,[1592.74,1642],[1,0]),l={left:272,right:72};return(0,r.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,r.jsxs)("div",{className:(0,p.classNames)("relative h-8 flex-none border-b-[1px] text-cds-2xs tabular-nums",eu,ex),children:[(0,r.jsx)("span",{className:"absolute left-cds-12 top-1/2 -translate-y-1/2",children:"Span"}),(0,r.jsx)("div",{className:"absolute inset-y-0",style:l,children:ad.map(e=>(0,r.jsx)("span",{className:"absolute top-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap",style:{left:`${e/1642*100}%`},children:0===e?"0":ah(e)},e))})]}),(0,r.jsxs)("div",{className:"relative flex-none py-cds-4",children:[(0,r.jsxs)("div",{"aria-hidden":!0,
9className:"pointer-events-none absolute inset-y-0",style:l,children:[ad.map(e=>(0,r.jsx)("div",{className:(0,p.classNames)("absolute inset-y-0 border-l-[1px]","border-[#E4E4E7] dark:!border-white/[0.06]"),style:{left:`${e/1642*100}%`}},e)),(0,r.jsx)(tq.motion.div,{className:"absolute inset-y-0 w-[2px] -translate-x-1/2 rounded-full bg-[#8B5CF6]",style:{left:s,opacity:n}})]}),ew.map(s=>(0,r.jsx)(ab,{span:s,playheadMs:e,selected:s.id===t,onSelect:a},s.id))]}),(0,r.jsx)("div",{className:(0,p.classNames)("flex h-9 flex-none items-center gap-cds-16 border-t-[1px] pr-cds-12 text-cds-2xs",eu,ep),style:{paddingLeft:272},children:au.map(e=>(0,r.jsxs)("span",{className:"flex items-center gap-cds-6",children:[(0,r.jsx)("span",{className:(0,p.classNames)("h-2 w-3 rounded-[2px]",tv[e])}),t_[e]]},e))})]})},ab=({span:e,playheadMs:t,selected:a,onSelect:s})=>{let n=tI(t,0===e.startMs?[-1,0]:[e.startMs,e.startMs+8],[.4,1]),l=tI(t,[e.startMs,e.startMs+1],[0,1]),i=tI(t,t=>`${ap(e,t)/1642*100}%`),o=tI(t,t=>`calc(${(e.startMs+ap(e,t))/1642*100}% + 6px)`),c=tI(t,t=>ah(ap(e,t))),d=tx(t,t=>t>e.startMs&&t<e.startMs+e.durationMs);return(0,r.jsxs)(tq.motion.button,{type:"button",style:{opacity:n},onClick:()=>s(e.id),className:(0,p.classNames)("relative flex h-11 w-full items-center text-left transition-colors duration-200",a?ed:"hover:bg-cds-surface-hover dark:hover:!bg-white/[0.03]"),children:[(0,r.jsxs)("span",{className:"flex min-w-0 flex-none items-center gap-cds-8 pr-cds-8",style:{width:272,paddingLeft:12+16*e.depth},children:[(0,r.jsx)("span",{className:(0,p.classNames)("flex h-6 w-6 flex-none items-center justify-center rounded-cds-6",a?ec:ed,ep),children:(0,r.jsx)(E.Icon,{name:e.sourceIcon,size:"sm"})}),(0,r.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,r.jsx)("span",{className:(0,p.classNames)("truncate font-mono text-cds-xs",em),children:e.label}),(0,r.jsx)("span",{title:e.operation,className:(0,p.classNames)("truncate text-cds-2xs",ex),children:e.operation})]})]}),(0,r.jsxs)("span",{className:"absolute inset-y-0",style:{left:272,right:72},children:[(0,r.jsx)(tq.motion.span,{className:(0,p.classNames)("absolute top-[calc(50%-5px)] h-[10px] min-w-[2px] rounded-[2px]",tv[e.kind],d&&"animate-pulse"),style:{left:`${e.startMs/1642*100}%`,width:i}}),(0,r.jsx)(tq.motion.span,{className:(0,p.classNames)("absolute top-1/2 -translate-y-1/2 whitespace-nowrap text-cds-2xs tabular-nums",ep),style:{left:o,opacity:l},children:c})]})]})},av=({selectedId:e,onSelect:t})=>{let a=(0,x.useCallback)(t=>t.id===e?"[&>td]:!bg-cds-surface-active dark:[&>td]:!bg-cds-raised-dark":void 0,[e]);return(0,r.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,r.jsx)(tM,{columns:ag,data:ew,getRowKey:e=>e.id,getRowClassName:a,initialActiveFilters:tS,onRowClick:e=>t(e.id),children:(0,r.jsx)(tA,{ariaLabel:"Trace spans",disableSorting:!0,rowHeight:"lg",rowVirtualization:!1})})})},a_=({span:e,playheadMs:t,expandContext:a,replyText:s,replyStreaming:n,introAura:l})=>{let i=!!X();return(0,r.jsx)("aside",{className:(0,p.classNames)("flex w-[300px] flex-none flex-col border-l-[1px]",eu,eo),children:(0,r.jsx)(ar,{mode:i?"sync":"wait",initial:!1,children:(0,r.jsxs)(tq.motion.div,{className:"flex min-h-0 flex-1 flex-col",initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.18*!i,ease:"easeOut"},children:[(0,r.jsxs)("div",{className:(0,p.classNames)("flex flex-none flex-col gap-cds-4 border-b-[1px] px-cds-16 py-cds-12",eu),children:[(0,r.jsxs)("div",{className:"flex items-center gap-cds-6 text-cds-2xs",children:[(0,r.jsx)("span",{className:(0,p.classNames)("h-2 w-3 rounded-[2px]",tv[e.kind])}),(0,r.jsx)("span",{className:ep,children:t_[e.kind]}),(0,r.jsxs)("span",{className:(0,p.classNames)("ml-auto flex items-center gap-cds-4",ex),children:[(0,r.jsx)(E.Icon,{name:e.sourceIcon,size:"xs"}),e.source]})]}),(0,r.jsx)("span",{className:(0,p.classNames)("truncate font-mono text-cds-sm",em),children:e.label}),(0,r.jsx)(aw,{span:e,playheadMs:t})]}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden px-cds-16 py-cds-12",children:"llm"===e.kind?(0,r.jsx)(aj,{playheadMs:t,expandContext:a,replyText:s,replyStreaming:n,introAura:l}):(0,r.jsx)(ak,{span:e,playheadMs:t})})]},e.id)})})},aw=({span:e,playheadMs:t})=>{let a=tx(t,t=>ax(e,t)),s=tI(t,t=>ah(ap(e,t)));return(0,r.jsx)("div",{className:(0,p.classNames)("flex gap-cds-6 text-cds-xs tabular-nums",eh),children:"pending"===a?(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-[112px]"}):"running"===a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tq.motion.span,{children:s}),(0,r.jsx)("span",{className:ex,children:"· running"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:ah(e.durationMs)}),(0,r.jsx)("span",{className:ex,children:`\xb7 ${Math.round(e.durationMs/1642*100)}% of query`})]})})},ak=({span:e,playheadMs:t})=>{let a=tx(t,t=>"done"===ax(e,t));return 0===e.features.length?(0,r.jsx)("p",{className:(0,p.classNames)("text-cds-xs",ex),children:"Writes resolved features to the response."}):(0,r.jsxs)("div",{className:"flex flex-col gap-cds-6",children:[(0,r.jsx)(ey,{children:e.featuresLabel??"Resolved features"}),(0,r.jsx)("div",{className:"flex flex-col",children:e.features.map(e=>(0,r.jsxs)("div",{className:(0,p.classNames)("flex items-baseline justify-between gap-cds-12 border-b-[1px] py-cds-6 font-mono text-cds-xs",eu),children:[(0,r.jsx)("span",{className:(0,p.classNames)("truncate",ep),children:e.name}),(0,r.jsx)("span",{className:(0,p.classNames)("flex-none",em),children:a?e.value:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-[56px]"})})]},e.name))})]})},aj=({playheadMs:e,expandContext:t,replyText:a,replyStreaming:s,introAura:n})=>{let l=G()??!1,i=!!X(),o=a.length>0&&!s,c=tx(e,e=>ek.map(t=>{var a;let s;return(a=t.spanId,null!=(s=af.get(a))&&"done"===ax(s,e))?"1":"0"}).join("")),[d,u]=(0,x.useState)(null),m=d??t;return(0,r.jsxs)("div",{className:"flex flex-col gap-cds-16",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-cds-6",children:[(0,r.jsx)(aM,{label:"Customer message",feature:"ticket.body"}),(0,r.jsx)(aN,{introAura:n&&!l})]}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("button",{type:"button","aria-expanded":m,onClick:()=>u(!m),className:"flex items-center gap-cds-4 self-start rounded-[4px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cds-primary-stroke-default",children:[(0,r.jsx)(tq.motion.span,{className:(0,p.classNames)("flex",ex),animate:{rotate:90*!!m},transition:{duration:l||i?0:.2,ease:"easeOut"},children:(0,r.jsx)(E.Icon,{name:"chevronRight",size:"xs"})}),(0,r.jsx)("span",{className:(0,p.classNames)("text-cds-xs font-medium",ex),children:"Context from Chalk features"})]}),(0,r.jsx)(ar,{initial:!1,children:m&&(0,r.jsx)(tq.motion.div,{className:"overflow-hidden",initial:{height:0,opacity:0}
9,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:l||i?0:.35,ease:[.22,1,.36,1]},children:(0,r.jsx)("div",{className:"flex flex-col pt-cds-4",children:ek.map((e,t)=>(0,r.jsxs)("div",{title:e.feature,className:(0,p.classNames)("flex items-baseline justify-between gap-cds-12 border-b-[1px] py-cds-6 text-cds-xs",eu),children:[(0,r.jsx)("span",{className:(0,p.classNames)("truncate",ep),children:e.label}),(0,r.jsx)("span",{className:(0,p.classNames)("flex-none font-mono tabular-nums",em),children:"1"===c[t]?e.value:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-[72px]"})})]},e.feature))})},"context")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-cds-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-cds-8",title:"ticket.action",children:[(0,r.jsx)(ey,{children:"Action"}),(0,r.jsx)(aS,{revealed:o,placeholder:(0,r.jsx)(t1.Skeleton,{className:"h-cds-16 w-[58px]"}),className:"flex h-[18px] items-center",children:(0,r.jsx)(ee,{tone:"neutral",leadingDot:tf[ej],size:"sm",className:tg,children:ej})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-cds-6",children:[(0,r.jsx)(aM,{label:"Reply",feature:"ticket.reply"}),(0,r.jsx)("div",{className:"min-h-[80px]",children:(0,r.jsx)(aS,{revealed:a.length>0,placeholder:(0,r.jsx)(aC,{}),children:(0,r.jsxs)("p",{className:(0,p.classNames)("text-cds-xs leading-relaxed",eh),children:[a,(0,r.jsx)(ar,{children:s&&(0,r.jsx)(tq.motion.span,{"aria-hidden":!0,className:"ml-[1px] inline-block align-text-bottom",exit:{opacity:0},transition:{duration:l||i?0:.3},children:(0,r.jsx)("span",{className:"block h-[1em] w-[5px] animate-pulse bg-current"})},"cursor")})]})})}),(0,r.jsx)("div",{className:(0,p.classNames)("text-cds-2xs tabular-nums",ex),children:(0,r.jsx)(aS,{revealed:o,placeholder:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-[132px]"}),delayS:.15,children:"2,146 in · 52 out · $0.0120"})})]})]})]})},aN=({introAura:e})=>{var t;let a,s,[n,l]=(a=(0,tR.useConstant)(()=>({current:null,animations:[]})),s=(0,tR.useConstant)(()=>to(a)),t=()=>{a.animations.forEach(e=>e.stop()),a.animations.length=0},(0,x.useEffect)(()=>()=>t(),[]),[a,s]),i=U();return(0,x.useEffect)(()=>{if(!e||!i)return;let t=l(n.current,{boxShadow:["0 0 0 0px rgba(16, 185, 129, 0.45)","0 0 0 10px rgba(16, 185, 129, 0)"]},{delay:.5,duration:1,repeat:1,ease:[0,0,.2,1]}),a=l(n.current,{scale:[1,1.015,1]},{delay:.5,duration:.45,ease:"easeOut"});return()=>{t.stop(),a.stop()}},[l,e,n,i]),(0,r.jsx)("div",{ref:n,className:(0,p.classNames)("rounded-lg border-[1px] px-cds-12 py-cds-10",eu,ec),children:(0,r.jsx)("p",{className:(0,p.classNames)("text-cds-sm font-medium leading-snug",em),children:"Hi! My order #48213 still says “label created” and I need it by Friday for a birthday. Can you check on it?"})})},aS=({revealed:e,placeholder:t,children:a,delayS:s=0,className:n})=>{let l=G()??!1,i=!!X();return(0,r.jsx)("div",{className:(0,p.classNames)("relative",n),children:(0,r.jsx)(ar,{initial:!1,mode:"popLayout",children:(0,r.jsx)(tq.motion.div,{initial:!l&&!i&&{opacity:0,y:3,filter:"blur(2px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},exit:{opacity:0,transition:{duration:l||i?0:.2}},transition:{duration:l||i?0:.4,ease:[.22,1,.36,1],delay:!e||l||i?0:s},children:e?a:t},e?"value":"placeholder")})})},aC=()=>(0,r.jsxs)("div",{className:"w-full text-cds-xs leading-relaxed",children:[(0,r.jsx)("div",{children:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-full"})}),(0,r.jsx)("div",{children:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-11/12"})}),(0,r.jsx)("div",{children:(0,r.jsx)(t1.Skeleton,{shape:"text",className:"w-3/5"})})]}),aM=({label:e,feature:t})=>(0,r.jsxs)("div",{className:"flex items-center justify-between gap-cds-8",children:[(0,r.jsx)(ey,{children:e}),(0,r.jsx)("span",{className:(0,p.classNames)("font-mono text-cds-2xs",ex),children:t})]}),aA={some:0,all:1},aq=[{id:"traces",label:"Traces",durationS:11.25,Component:()=>{let e,t,a,s,n,l=Y(ac),i=(e=G()??!1,t=U(),a=X(),s=al[al.length-1]?.toMs??0,n=(0,td.useMotionValue)(e?s:0),(0,x.useEffect)(()=>{if(e)return void n.set(s);if(a){let e=tp(al),t=t=>{let a=Math.max(0,Math.min(e.totalMs,t-2500));for(let t=1;t<e.values.length;t++){let s=e.times[t]*e.totalMs;if(a>s)continue;let r=e.times[t-1]*e.totalMs,l=tm((a-r)/(s-r)),i="easeInOut"===e.ease[t-1]?th(l):l;n.set(e.values[t-1]+(e.values[t]-e.values[t-1])*i);return}n.set(s)};return t(a.get()),a.on("change",t)}if(!t)return;n.set(0);let r=tp(al),l=tc(n,r.values,{delay:2.5,duration:r.totalMs/1e3,times:r.times,ease:r.ease});return()=>l.stop()},[2500,s,n,e,t,al,a]),n),o=tI(i,ah),c=tx(i,e=>e>=1642),d=((e,t,a,s=3,n=24)=>{let r=G()??!1,l=X(),[i,o]=(0,x.useState)(0);return(0,x.useEffect)(()=>
9{if(r)return void o(t?e.length:0);if(l){let t=t=>o(Math.min(e.length,Math.max(0,Math.floor((t-a)/n)*s)));return t(l.get()),l.on("change",t)}if(!t)return void o(0);o(0);let i=window.setInterval(()=>{o(t=>{let a=Math.min(e.length,t+s);return a===e.length&&window.clearInterval(i),a})},n);return()=>window.clearInterval(i)},[s,r,t,a,e,n,l]),{visibleText:e.slice(0,i),isTyping:t&&i<e.length}})("Sorry for the wait! Order #48213 is delayed by weather and now due Mon, Sep 28. As a Plus member you can switch to free express to get it by Friday.",l>=3,ac[2],2,22),[u,m]=(0,x.useState)("waterfall"),[h,f]=(0,x.useState)(null),g=h??"llm",y=ew.find(e=>e.id===g)??ew[0];return(0,r.jsxs)(ef,{page:"Traces",project:eb,agent:ev,children:[(0,r.jsxs)(eg,{children:[(0,r.jsx)("span",{className:(0,p.classNames)("font-mono text-cds-sm font-medium",em),children:e_}),(0,r.jsx)(ee,{tone:c?"green":"blue",size:"sm",children:c?"Success":"Running"}),(0,r.jsxs)("span",{className:(0,p.classNames)("text-cds-xs tabular-nums",ex),children:["tr_5c1e93a0 · ",(0,r.jsx)(tq.motion.span,{children:o})]}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-cds-8",children:[(0,r.jsx)(es,{items:am,activeItemId:u,size:"sm",ariaLabel:"Trace view",onChange:e=>m(e.id)}),(0,r.jsx)(et,{variant:"secondary",size:"sm",leftIcon:"add",children:"Add to dataset"})]})]}),(0,r.jsxs)("div",{className:"flex min-h-0 flex-1",children:["waterfall"===u?(0,r.jsx)(ay,{playheadMs:i,selectedId:g,onSelect:f}):(0,r.jsx)(av,{selectedId:g,onSelect:f}),(0,r.jsx)(a_,{span:y,playheadMs:i,expandContext:l>=1&&l<2,replyText:d.visibleText,replyStreaming:d.isTyping,introAura:null==h})]})]})}},{id:"evals",label:"Evals",durationS:9,Component:()=>{let e=Y(tz),t=((e,t,a="linear")=>{let s=G()??!1,n=U(),r=X(),l=(0,td.useMotionValue)(+!!s);return(0,x.useEffect)(()=>{if(s)return void l.set(1);if(r){let s=s=>{let n=tm((s-e)/t);l.set("easeInOut"===a?th(n):n)};return s(r.get()),r.on("change",s)}if(!n)return;l.set(0);let i=tc(l,1,{delay:e/1e3,duration:t/1e3,ease:a});return()=>i.stop()},[e,t,a,l,s,n,r]),l})(900,2900,"easeInOut"),a=tx(t,e=>Math.round(1247*e)),s=tx(t,e=>Math.ceil(e*eq.length)),[n,l]=(0,x.useState)("all"),[i,o]=(0,x.useState)(!1),c=(0,x.useMemo)(()=>("all"===n?eq:eT).slice(0,s),[n,s]);return(0,r.jsxs)(ef,{page:"Evaluations",project:eb,agent:ev,children:[(0,r.jsxs)(eg,{children:[(0,r.jsx)("span",{className:(0,p.classNames)("font-mono text-cds-sm font-medium",em),children:"draft_reply"}),(0,r.jsx)(ee,{tone:"purple",size:"sm",leadingIcon:"gitBranch",children:"v8"}),(0,r.jsx)("span",{className:(0,p.classNames)("text-cds-xs",ex),children:`${eS.length} scorers \xb7 ${eC.length} gate shipping`}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-cds-8",children:[(0,r.jsx)(et,{variant:"secondary",size:"sm",leftIcon:"table",children:`resolved_tickets \xb7 ${1247..toLocaleString("en-US")}`}),(0,r.jsx)(tU,{ready:e>=5,scoring:e>=1&&a<1247,shipped:i,onShip:()=>o(!0)})]})]}),(0,r.jsx)(tZ,{progress:t,scoredRows:a,started:e>=1}),(0,r.jsxs)("div",{className:(0,p.classNames)("flex min-h-0 flex-1 flex-col",eo),children:[(0,r.jsxs)("div",{className:"grid flex-none grid-cols-4 gap-cds-12 p-cds-12",children:[eC.map((a,s)=>(0,r.jsx)(tQ,{scorer:a,progress:t,passed:e>=2+s},a.id)),(0,r.jsx)(t0,{progress:t})]}),(0,r.jsxs)("div",{className:(0,p.classNames)("mx-cds-12 flex min-h-0 flex-1 flex-col overflow-hidden rounded-t-lg border-[1px] border-b-0",eu,ec),children:[(0,r.jsxs)("div",{className:(0,p.classNames)("flex h-[41px] flex-none items-center gap-cds-8 border-b-[1px] pl-[6px] pr-cds-12",eu),children:[(0,r.jsx)(es,{items:tW,activeItemId:n,size:"sm",ariaLabel:"Case filter",onChange:e=>l(e.id)}),(0,r.jsx)(et,{className:"ml-auto",variant:"tertiary",size:"xs",rightIcon:"chevronDown","aria-label":"Sort: recent",children:"Recent"})]}),(0,r.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:(0,r.jsx)(tM,{columns:tK,data:c,getRowKey:e=>e.id,initialActiveFilters:tS,children:(0,r.jsx)(tA,{ariaLabel:"Evaluation cases",frameless:!0,disableSorting:!0,rowHeight:"compact",rowVirtualization:!1})})})]})]})]})}}];aq.map(({id:e,label:t})=>({id:e,label:t}));let aE=aq.reduce((e,t)=>
9e+1e3*t.durationS,0),aR=(0,x.forwardRef)(function({windowTheme:e="dark",autoplay:t=!0,started:a=!0,onStepChange:s,progress:n,scrollProgress:l,className:i},o){let c=(0,x.useRef)(null),d=G()??!1,u=function(e,{root:t,margin:a,amount:s,once:n=!1,initial:r=!1}={}){let[l,i]=(0,x.useState)(r);return(0,x.useEffect)(()=>{if(!e.current||n&&l)return;let r={root:t&&t.current||void 0,margin:a,amount:s};return function(e,t,{root:a,margin:s,amount:n="some"}={}){let r=(0,eZ.resolveElements)(e),l=new WeakMap,i=new IntersectionObserver(e=>{e.forEach(e=>{let a=l.get(e.target);if(!!a!==e.isIntersecting)if(e.isIntersecting){let a=t(e.target,e);"function"==typeof a?l.set(e.target,a):i.unobserve(e.target)}else"function"==typeof a&&(a(e),l.delete(e.target))})},{root:a,rootMargin:s,threshold:"number"==typeof n?n:aA[n]});return r.forEach(e=>i.observe(e)),()=>i.disconnect()}(e.current,()=>(i(!0),n?void 0:()=>i(!1)),r)},[t,e,a,n,s]),l}(c,{amount:.25}),[m,h]=(0,x.useState)(0),[f,g]=(0,x.useState)(0),[y,b]=(0,x.useState)(0),[v,_]=(0,x.useState)(!1),[w,k]=(0,x.useState)(!1),j=(0,td.useMotionValue)(0),N=(0,td.useMotionValue)(0),S=n??j,C=(0,x.useRef)(null),M=!l&&a&&t&&u&&!v&&!w,A=aq[m],q=(0,x.useCallback)(e=>{if(!l)return;let t=Math.max(0,Math.min(1,e))*aE,a=+(t>=1e3*aq[0].durationS),s=0===a?0:1e3*aq[0].durationS;N.set(t-s),h(e=>e===a?e:a)},[l,N]);tu(l??j,"change",q),(0,x.useEffect)(()=>{l&&q(l.get())},[l,q]),(0,x.useEffect)(()=>{if(l)return;S.set(0);let e=tc(S,1,{duration:A.durationS,ease:"linear",onComplete:()=>h(e=>(e+1)%aq.length)});return e.pause(),C.current=e,()=>e.stop()},[A,f,S,l]),(0,x.useEffect)(()=>{M?C.current?.play():C.current?.pause()},[M,m,f]),(0,x.useEffect)(()=>{s?.(A.id)},[A.id,s]);let E=(0,x.useCallback)(e=>{let t=aq.findIndex(t=>t.id===e);t>=0&&(h(t),g(e=>e+1))},[]);(0,x.useImperativeHandle)(o,()=>({goTo:E,replay:()=>{b(e=>e+1),g(e=>e+1)}}),[E]);let R=A.Component;return(0,r.jsx)("section",{ref:c,"aria-roledescription":"carousel","aria-label":"Traces and evals",className:(0,p.classNames)("w-full",i),onPointerEnter:()=>_(!0),onPointerLeave:()=>_(!1),onFocus:e=>{e.target.matches(":focus-visible")&&k(!0)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||k(!1)},children:(0,r.jsxs)("div",{className:"relative",style:{height:720},children:[(0,r.jsx)("div",{className:(0,p.classNames)("relative h-full w-full overflow-hidden rounded-xl border-[1px]","shadow-[0_24px_64px_-12px_rgba(0,0,0,0.45)]",eu,ei,"dark"===e?"dark":"theme-light"),children:(0,r.jsx)(Q.Provider,{value:e,children:(0,r.jsx)(K.Provider,{value:a&&!l,children:(0,r.jsx)(Z.Provider,{value:l?N:null,children:(0,r.jsx)(ar,{mode:"sync",initial:!1,children:(0,r.jsx)(tq.motion.div,{role:"group","aria-roledescription":"slide","aria-label":`${m+1} of ${aq.length}: ${A.label}`,className:"absolute inset-0 flex flex-col",initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:d||l?0:.6,ease:"easeInOut"},children:(0,r.jsx)(R,{})},`${A.id}-${y}`)})})})})}),(0,r.jsx)("span",{className:"sr-only","aria-live":M?"off":"polite",children:A.label})]})})});var aT=e.i(69283);function aF(e,t){let a,s=()=>{let{currentTime:s}=t,n=(null===s?0:s.value)/100;a!==n&&e(n),a=n};return tT.frame.preUpdate(s,!0),()=>(0,tT.cancelFrame)(s)}var aL=e.i(21751);let aP=new WeakMap,aI=(e,t,a)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:(0,e3.isSVGElement)(s)&&"getBBox"in s?s.getBBox()[t]:s[a],aD=aI("inline","width","offsetWidth"),az=aI("block","height","offsetHeight");function aW({target:e,borderBoxSize:t}){aP.get(e)?.forEach(a=>{a(e,{get width(){return aD(e,t)},get height(){return az(e,t)}})})}function aB(e){e.forEach(aW)}let a$=new Set;var aH=e.i(26739);let aO=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),aV={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function aG(e,t,a,s){let n=a[t],{length:r,position:l}=aV[t],i=n.current,o=a.time;n.current=e[`scroll${l}`],n.scrollLength=e[`scroll${r}`]-e[`client${r}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=(0,eO.progress)(0,n.scrollLength,n.current);let c=s-o;n.velocity=c>50?0:(0,aH.velocityPerSecond)(n.current-i,c)}var aK=e.i(23855);let aU={start:0,center:.5,end:1};function aZ(e,t,a=0){let s=0;if(e in aU&&(e=aU[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?s=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?s=t/100*document.documentElement.clientWidth:e.endsWith("vh")?s=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(s=t*e),a+s}let aX=[0,0],aQ=[[0,0],[1,1]],aY={x:0,y:0},aJ=new WeakMap,a0=new WeakMap,a1=new WeakMap,a2=e=>e===document.scrollingElement?window:e;function a8(e,{container:s=document.scrollingElement,...n}={}){if(!s)return aT.noop;let r=a1.get(s);r||(r=new Set,a1.set(s,r));let l=function(e,t,a,s={}){return{measure:t=>{!function(e,t=e,a){if(a.x.targetOffset=0,a.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)a.x.targetOffset+=s.offsetLeft,a.y.targetOffset+=s.offsetTop,s=s.offsetParent}a.x.targetLength=t===e?t.scrollWidth:t.clientWidth,a.y.targetLength=t===e?t.scrollHeight:t.clientHeight,a.x.containerLength=e.clientWidth,a.y.containerLength=e.clientHeight}(e,s.target,a),aG(e,"x",a,t),aG(e,"y",a,t),a.time=t,(s.offset||s.target)&&function(e,t,a){let{offset:s=aQ}=a,{target:n=e,axis:r="y"}=a,l="y"===r?"height":"width",i=n!==e?function(e,t){let a={x:0,y:0},s=e;for(;s&&s!==t;)if((0,t4.isHTMLElement)(s))a.x+=s.offsetLeft,a.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let e=s.getBoundingClientRect(),t=(s=s.parentElement).getBoundingClientRect();a.x+=e.left-t.left,a.y+=e.top-t.top}else if(s instanceof SVGGraphicsElement){let{x:e,y:t}=s.getBBox();a.x+=e,a.y+=t;let n=null,r=s.parentNode;for(;!n;)"svg"===r.tagName&&(n=r),r=s.parentNode;s=n}else break;return a}(n,e):aY,o=n===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in n&&"svg"!==n.tagName?n.getBBox():{width:n.clientWidth,height:n.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[r].offset.length=0;let d=!t[r].interpolate,u=s.length;for(let e=0;e<u;e++){let a=function(e,t,a,s){let n=Array.isArray(e)?e:aX,r=0;return"number"==typeof e?n=[e,e]:"string"==typeof e&&(n=(e=e.trim()).includes(" ")?e.split(" "):[e,aU[e]?e:"0"]),(r=aZ(n[0],a,s))-aZ(n[1],t)}(s[e],c[l],o[l],i[r]);d||a===t[r].interpolatorOffsets[e]||(d=!0),t[r].offset[e]=a}d&&(t[r].interpolate=(0,tE.interpolate)(t[r].offset,(0,eW.defaultOffset)(s),{clamp:!1}),t[r].interpolatorOffsets=[...t[r].offset]),t[r].progress=(0,aK.clamp)(0,1,t[r].interpolate(t[r].current))}(e,a,s)},notify:()=>t(a)}}(s,e,{time:0,x:aO(),y:aO()},n);if(r.add(l),!aJ.has(s)){let e,n=()=>{for(let e of r)e.measure(tT.frameData.timestamp);tT.frame.preUpdate(l)},l=()=>{for(let e of r)e.notify()},i=()=>tT.frame.read(n);aJ.set(s,i);let o=a2(s);window.addEventListener("resize",i,{passive:!0}),s!==document.documentElement&&a0.set(s,"function"==typeof s?(a$.add(s),a||(a=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};a$.forEach(t=>t(e))},window.addEventListener("resize",a)),()=>{a$.delete(s),a$.size||"function"!=typeof a||(window.removeEventListener("resize",a),a=void 0)}):(!t&&"u">typeof ResizeObserver&&(t=new ResizeObserver(aB)),(e=(0,eZ.resolveElements)(s)).forEac
9h(e=>{let a=aP.get(e);a||(a=new Set,aP.set(e,a)),a.add(i),t?.observe(e)}),()=>{e.forEach(e=>{let a=aP.get(e);a?.delete(i),a?.size||t?.unobserve(e)})})),o.addEventListener("scroll",i,{passive:!0}),i()}let i=aJ.get(s);return tT.frame.read(i,!1,!0),()=>{(0,tT.cancelFrame)(i);let e=a1.get(s);if(!e||(e.delete(l),e.size))return;let t=aJ.get(s);aJ.delete(s),t&&(a2(s).removeEventListener("scroll",t),a0.get(s)?.(),window.removeEventListener("resize",t))}}let a4=new Map;function a5({source:e,container:t,...a}){var s;let n,r,{axis:l}=a;e&&(t=e);let i=a4.get(t)??new Map;a4.set(t,i);let o=a.target??"self",c=i.get(o)??{},d=l+(a.offset??[]).join(",");return c[d]||(c[d]=!a.target&&(0,aL.supportsScrollTimeline)()?new ScrollTimeline({source:t,axis:l}):(s={container:t,...a},n={value:0},r=a8(e=>{n.value=100*e[s.axis].progress},s),{currentTime:n,cancel:r})),c[d]}let a6=()=>({scrollX:(0,tP.motionValue)(0),scrollY:(0,tP.motionValue)(0),scrollXProgress:(0,tP.motionValue)(0),scrollYProgress:(0,tP.motionValue)(0)}),a3=e=>!!e&&!e.current;var a9=e.i(65156),a9=a9,a7=e.i(24574);let se=[{title:"Context",subtitle:"Serve live context",items:[{title:"Database engine",description:"Run queries on the federated HTAP engine",icon:"database",href:R.Routes.docsSite.databaseEngine},{title:"Feature store",description:"Define features once and manage versions",icon:"libraryBig",href:R.Routes.docsSite.features},{title:"5ms serving",description:"Serve computed context at inference time",icon:"radar",href:R.Routes.docsSite.onlineServingArchitecture}]},{title:"Runtime",subtitle:"Run models and agents",items:[{title:"Model Serving",description:"Run inference with your choice of model",icon:"box",href:R.Routes.docsSite.modelInference},{title:"GPUs",description:"Scale compute for model workloads",icon:"cpu",href:R.Routes.docsSite.scalingGroups},{title:"Sandboxes",description:"Run agents and code in isolated environments",icon:"container",href:R.Routes.docsSite.sandbox},{title:"Model Gateway",description:"Route requests to workload services",icon:"globeLock",href:R.Routes.docsSite.modelGateway}]},{title:"Learning",subtitle:"Test and improve",items:[{title:"Evals",description:"Test changes before shipping",icon:"checkSquare",href:R.Routes.docsSite.evaluations},{title:"Traces",description:"Inspect each step of execution",icon:"workflow",href:R.Routes.docsSite.tracing},{title:"Notebooks",description:"Explore data and iterate on workflows",icon:"notebook",href:R.Routes.docsSite.notebooks},{title:"Fine-tuning",description:"Adapt models to your proprietary data",icon:"sliders",href:R.Routes.workflowPages.fineTuneModels}]}],st=e=>Math.max(0,Math.min(1,e)),sa=`from chalkcompute import Image, NetworkPolicy, Sandbox, Secret
10
11sandbox = Sandbox(
12    image=(
13        Image.base("node:22-slim")
14        .run_commands("npm install -g @anthropic-ai/claude-code")
15        .add_local_dir("./repo", "/workspace")
16    ),
17    cpu="2", memory="4Gi",
18    secrets=[Secret.from_chalk_env("ANTHROPIC_API_KEY")],
19    network_policy=NetworkPolicy(allowed_hosts=["api.anthropic.com"]),
20    lifetime="900s",
21).run()
22
23review = sandbox.exec(
24    "claude", "--bare", "-p", "Find security vulnerabilities in this repo.",
25    workdir="/workspace",
26)`,ss=`from chalkcompute import ScalingGroup
27
28sg = ScalingGroup(
29    name="qwen",
30    image="vllm/vllm-openai:latest",
31    entrypoint=["vllm", "serve", "Qwen/Qwen2.5-7B-Instruct"],
32    gpu="nvidia-l4:1",
33    cpu="4", memory="16Gi",
34    port=8000, min_replicas=0, max_replicas=10,
35).deploy(ready_timeout=900)
36
37response = sg.call("/v1/completions",
38    json={"model": "Qwen/Qwen2.5-7B-Instruct",
39          "prompt": "Chalk is the future of AI"},
40    timeout=900)`,sn={...P.DASHBOARD_EDITOR_THEME,'code[class*="language-"]':{...P.DASHBOARD_EDITOR_THEME['code[class*="language-"]'],color:"#94a8a3",background:"transparent",fontFamily:'"Everett Mono", monospace'},'pre[class*="language-"]':{...P.DASHBOARD_EDITOR_THEME['pre[class*="language-"]'],color:"#94a8a3",background:"transparent",fontFamily:'"Everett Mono", monospace'},keyword:{color:"#bade61"},builtin:{color:"#73d19c"},"class-name":{color:"#b5a3fc"},function:{color:"#c2fafc"},string:{color:"#94a8a3"},number:{color:"#fc9982"},operator:{color:"#94a8a3"},punctuation:{color:"#94a8a3"},"runtime-module":{color:"#73d19c"},"runtime-variable":{color:"#fafa6b"},"runtime-class":{color:"#b5a3fc"},"runtime-property":{color:"#f57596"},"runtime-method":{color:"#c2fafc"}},sr={chalkcompute:"runtime-module",sandbox:"runtime-variable",sg:"runtime-variable",Image:"runtime-class",Sandbox:"runtime-class",ScalingGroup:"runtime-class",NetworkPolicy:"runtime-class",Secret:"runtime-class",image:"runtime-property",secrets:"runtime-property",network_policy:"runtime-property",entrypoint:"runtime-property",base:"runtime-method",run_commands:"runtime-method",add_local_dir:"runtime-method",from_chalk_env:"runtime-method",run:"runtime-method",exec:"runtime-method",deploy:"runtime-method",call:"runtime-method"},sl=(e,t=!1)=>
40{if("text"===e.type)return t||"string"!=typeof e.value?[e]:e.value.split(/\b(chalkcompute|sandbox|sg|Image|Sandbox|ScalingGroup|NetworkPolicy|Secret|image|secrets|network_policy|entrypoint|base|run_commands|add_local_dir|from_chalk_env|run|exec|deploy|call)\b/g).map(e=>{let t=sr[e];return t?{type:"element",tagName:"span",properties:{className:[t]},children:[{type:"text",value:e}]}:{type:"text",value:e}});let a=t||e.properties?.className?.includes("token");return[{...e,children:e.children?.flatMap(e=>sl(e,a))}]},si=({rows:e,stylesheet:t,useInlineStyles:a})=>e.map((e,s)=>(0,a9.default)({node:sl(e)[0],stylesheet:t,useInlineStyles:a,key:`runtime-line-${s}`})),so=({story:e})=>(0,r.jsxs)("div",{className:a7.default.railInner,children:[(0,r.jsxs)("div",{className:a7.default.headingBlock,children:[(0,r.jsx)("h2",{className:a7.default.heading,children:e.title}),(0,r.jsx)("p",{className:a7.default.subtitle,children:e.subtitle})]}),(0,r.jsx)("ul",{className:a7.default.itemList,children:e.items.map(e=>{let t=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:a7.default.itemTitle,children:[(0,r.jsx)(E.Icon,{name:e.icon,size:"md","aria-hidden":"true",className:a7.default.itemIcon}),(0,r.jsx)("span",{className:a7.default.itemTitleText,children:e.title}),(0,r.jsx)("span",{className:a7.default.arrow,"aria-hidden":"true",children:(0,r.jsx)(E.Icon,{name:"chevronRight",size:"md"})})]}),(0,r.jsx)("span",{className:a7.default.itemDescription,children:e.description})]});return(0,r.jsx)("li",{className:a7.default.item,children:e.href?(0,r.jsx)("a",{href:e.href,className:a7.default.itemLink,children:t}):(0,r.jsx)("div",{className:a7.default.itemLink,children:t})},e.title)})})]}),sc=({variant:e,opacity:t,y:a})=>(0,r.jsx)(tq.motion.div,{className:`${a7.default.runtimeWindow} ${"front"===e?a7.default.runtimeFront:a7.default.runtimeBack}`,style:{opacity:t,y:a},children:(0,r.jsx)(D,{language:"python",syntaxTheme:sn,renderer:si,showLineNumbers:!0,noBackground:!0,containerClassName:a7.default.codeViewer,customStyle:{padding:0,fontSize:10,lineHeight:"15px",overflow:"visible"},codeTagProps:{style:{fontFamily:'"Everett Mono", monospace'}},lineNumberStyle:{color:"#7e8f8b",minWidth:"30px",paddingRight:"9px"},lineNumberContainerStyle:{float:"left",paddingRight:"front"===e?18:33},children:"front"===e?sa:ss})}),sd=({progress:e})=>{let t=(0,td.useMotionValue)(1),a=e??t,s=tI(a,[.05,.38],[0,1]),n=tI(a,[.05,.38],[-16,0]),l=tI(a,[.45,.78],[0,1]),i=tI(a,[.45,.78],[-16,0]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(sc,{variant:"back",opacity:l,y:i}),(0,r.jsx)(sc,{variant:"front",opacity:s,y:n})]})},su=({mounted:e,progress:t})=>{let a=(0,x.useRef)(null),[s,n]=(0,x.useState)(.75);return(0,x.useEffect)(()=>{let e=a.current;if(!e)return;let t=new ResizeObserver(()=>{n(Math.min(e.clientWidth/1100,e.clientHeight/720,1))});return t.observe(e),()=>t.disconnect()},[]),(0,r.jsx)("div",{ref:a,className:a7.default.learningFrame,children:e&&(0,r.jsx)("div",{className:a7.default.learningCarousel,style:{transform:`translate(-50%, -50%) scale(${s})`},children:(0,r.jsx)(aR,{windowTheme:"dark",scrollProgress:t})})})},sm=()=>{let e=(0,x.useRef)(null),[t,a]=(0,x.useState)(0);return(0,x.useEffect)(()=>{let t=e.current;if(!t)return;let s=new ResizeObserver(()=>a(t.clientWidth/664));return s.observe(t),()=>s.disconnect()},[]),(0,r.jsx)("div",{ref:e,className:a7.default.contextMobileDiagram,children:(0,r.jsx)("div",{className:a7.default.contextMobileDiagramInner,style:{transform:`scale(${t})`},children:(0,r.jsx)($,{completed:!0})})})},sh=({index:e,contextProgress:t,runtimeProgress:a,learningProgress:s,learningMounted:n,reducedMotion:l,mobile:i})=>(0,r.jsx)("div",{className:`${a7.default.visual} ${a7.default[`visual${e}`]}`,children:0===e?i?(0,r.jsx)(sm,{}):(0,r.jsx)($,{progress:t,completed:!!l}):1===e?(0,r.jsx)(sd,{progress:i||l?void 0:a}):i?(0,r.jsx)("img",{src:"/img/marketing/learning-traces-mobile.png",alt:"Chalk trace for a support reply, with a waterfall of query spans and the final answer",className:a7.default.learningMobileImage,loading:"lazy"}):(0,r.jsx)(su,{mounted:n??!1,progress:s})}),sp=({index:e,activeIndex:t,progress:a,reducedMotion:s,className:n,children:l})=>{let i=(0,x.useRef)(null),o=tI(a,t=>{let a,s;return a=st((t-(.355-.018))/.036),s=st((t-(.695-.018))/.036),0===e?1-a:1===e?a*(1-s):s}),c=e!==t;return(0,x.useLayoutEffect)(()=>{i.current&&(i.current.inert=c)},[c]),(0,r.jsx)(tq.motion.div,{ref:i,className:n,style:{opacity:s?+!c:o},"aria-hidden":c,children:l})},sx=()=>{let e=(0,x.useRef)(null),t=(0,x.useRef)(null),[a,s]=(0,x.useState)(0),[n,l]=(0,x.useState)(1),[i,o]=(0,x.useState)(!1),c=G(),{scrollYProgress:d}=function({container:e,target:t,...a}={}){let s=(0,tR.useConstant)(a6),n=(0,x.useRef)(null),r=(0,x.useRef)(!1),l=(0,x.useCallback)(()=>(n.current=function(e,{axis:t="y",container:a=document.scrollingElement,...s}={}){var n,r;let l;if(!a)return aT.noop;let i={axis:t,container:a,...s};return"function"==typeof e?(n=e,r=i,2===n.length?a8(e=>{n(e[r.axis].progress,e)},r):aF(n,a5(r))):(l=a5(i),e.attachTimeline({timeline:i.target?void 0:l,observe:e=>(e.pause(),aF(t=>{e.time=e.iterationDuration*t},l))}))}((e,{x:t,y:a})=>{s.scrollX.set(t.current),s.scrollXProgress.set(t.progress),s.scrollY.set(a.current),s.scrollYProgress.set(a.progress)},{...a,container:e?.current||void 0,target:t?.current||void 0}),()=>{n.current?.()}),[e,t,JSON.stringify(a.offset)]);return(0,tF.useIsomorphicLayoutEffect)(()=>
40{if(r.current=!1,!(a3(e)||a3(t)))return l();r.current=!0},[l]),(0,x.useEffect)(()=>r.current?((0,eG.invariant)(!a3(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,eG.invariant)(!a3(t),"Target ref is defined but not hydrated","use-scroll-ref"),l()):void 0,[l]),s}({target:e,offset:["start start","end end"]}),u=tI(d,[0,.355],[0,1]),m=tI(d,[.355,.695],[0,1]),h=tI(d,[.695,1],[0,1]),p=tI(d,e=>{let t=e<.355?0:e<.695?.355:.695,a=Math.max(0,Math.min(1,(e-t)/((e<.355?.355:e<.695?.695:1)-t)));return`calc(${100*a}% - ${40*a}px)`});return(0,x.useEffect)(()=>{let e=t.current;if(!e)return;let a=new ResizeObserver(()=>{0!==e.clientHeight&&l(Math.min(1,(e.clientHeight-40)/724))});return a.observe(e),()=>a.disconnect()},[]),tu(d,"change",e=>{let t=e<.355?0:e<.695?1:2;s(e=>e===t?e:t),e>=.66&&o(!0)}),(0,r.jsx)("section",{ref:e,className:a7.default.desktopSection,"aria-label":"Chalk platform",children:(0,r.jsx)("div",{className:a7.default.stickyStage,children:(0,r.jsxs)("div",{className:a7.default.stageGrid,children:[(0,r.jsx)(tq.motion.div,{className:a7.default.scrollIndicator,style:{top:p,height:40},"aria-hidden":"true"}),(0,r.jsx)("div",{className:a7.default.rail,children:se.map((e,t)=>(0,r.jsx)(sp,{index:t,activeIndex:a,progress:d,reducedMotion:!!c,className:a7.default.railLayer,children:(0,r.jsx)(so,{story:e})},e.title))}),(0,r.jsx)("div",{ref:t,className:a7.default.visualStage,style:{"--context-scale":n},children:se.map((e,t)=>(0,r.jsx)(sp,{index:t,activeIndex:a,progress:d,reducedMotion:!!c,className:`${a7.default.visualLayer} ${a7.default[`backdrop${t}`]}`,children:(0,r.jsx)(sh,{index:t,contextProgress:u,runtimeProgress:m,learningProgress:h,learningMounted:i,reducedMotion:!!c})},e.title))})]})})})},sf=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(sx,{}),(0,r.jsx)("section",{className:a7.default.mobileSection,"aria-label":"Chalk platform",children:se.map((e,t)=>(0,r.jsxs)("div",{className:a7.default.mobileStory,children:[(0,r.jsx)(so,{story:e}),(0,r.jsx)(sh,{index:t,mobile:!0})]},e.title))})]}),sg={company:"Whatnot",logo:"/img/marketing/testimonial-logos/whatnot.svg",quote:"We’re moving hundreds of millions of features per second, each payload around 1MB, and still hitting a P99 latency of just 100ms. That kind of performance across the board is a real testament to the system Chalk built.",author:"Emmanuel Fuentes",role:"VP, Data & AI",portrait:"/img/marketing/testimonials/emmanuel-fuentes.jpeg"},sy=[{company:"Grindr",logo:"/img/marketing/testimonial-logos/grindr.svg",quote:"Chalk was the only integrated compute and context engine for agents that ran entirely inside our own environment, at the scale we needed, without becoming an infrastructure project. What would have taken months took weeks.",author:"AJ Balance",role:"Chief Product Officer",portrait:"/img/marketing/testimonials/aj-balance.jpeg"},{company:"Sunrun",logo:"/img/marketing/testimonial-logos/sunrun.svg",quote:"We’re applying AI and ML at scale across key areas of our energy business with Chalk’s feature platform. It enables high-performance computation over diverse data sources using clean, reusable code. The ability to mix Python and SQL gives our team the flexibility we need, while shared feature logic across projects improves consistency and accelerates development.",author:"Edward Li",role:"Staff AI/ML Engineer",portrait:"/img/marketing/testimonials/edward-li.jpeg"},{company:"Doppel",logo:"/img/marketing/testimonial-logos/doppel.svg",quote:"Chalk powers our LLM pipeline, turning complex inputs—HTML, URLs, screenshots—into structured, auditable features. It lets us serve lightweight heuristics up front and rich LLM reasoning deeper in the stack, so we catch threats others miss without compromising speed or precision.",author:"Rahul Madduluri",role:"CTO",portrait:"/img/marketing/testimonials/rahul-madduluri.avif"},{company:"MoneyLion",logo:"/img/marketing/testimonial-logos/moneylion.svg",quote:"Chalk helps us deliver financial products that are more responsive, more personalized, and more secure for millions of users. It’s a direct line from infrastru
40cture to impact.",author:"Meng Xin Loh",role:"Technical PM",portrait:"/img/marketing/testimonials/meng-xin-loh.jpeg"},{company:"Mission Lane",logo:"/img/marketing/testimonial-logos/missionlane.svg",quote:"Chalk has become a powerful addition to our machine learning infrastructure at Mission Lane. Chalk has enabled us to unify and streamline our feature calculations across both offline/batch-eval and online/live-decisioning use cases. We continue to be impressed by the flexibility and scalability of the system, and by the willingness of the Chalk team to work with us to get even more value out of it.",author:"Mike Kuhlen",role:"Data Science & ML Solutions and Strategy",portrait:"/img/marketing/testimonials/mike-kuhlen.jpeg"},{company:"Turo",logo:"/img/marketing/testimonial-logos/turo.svg",quote:"By moving our feature pipelines to Chalk, Data Science and Engineering now work side-by-side throughout model development. What used to be lengthy, error-prone handoffs are gone. Our entire search ranking stack runs on Chalk, serving features for inference in under 50ms, and we’re extending it to all of our models, including real‑time personalization.",author:"Moaj Musthag",role:"Head of Engineering",portrait:"/img/marketing/testimonials/moaj-musthag.jpeg"}],sb=sy.length,sv=({testimonial:e})=>(0,r.jsxs)("div",{className:"flex items-center gap-[22px]",children:[(0,r.jsxs)("span",{className:"relative h-[70px] w-[70px] shrink-0 overflow-hidden rounded-full bg-white",children:[(0,r.jsx)("img",{alt:`${e.author} portrait`,src:e.portrait,className:"h-full w-full object-cover grayscale"}),(0,r.jsx)("span",{className:"pointer-events-none absolute inset-0 bg-[#224a41] mix-blend-screen","aria-hidden":"true"})]}),(0,r.jsxs)("div",{className:"text-marketing-body uppercase",children:[(0,r.jsx)("p",{className:"text-cds-purple",children:e.author}),(0,r.jsxs)("p",{className:"text-marketing-green-1",children:[e.role,", ",e.company]})]})]}),s_=({testimonial:e})=>(0,r.jsxs)("article",{className:"flex h-full flex-col justify-start gap-8 px-[22px] py-12 sm:py-[60px]",children:[(0,r.jsx)("div",{className:"flex h-[30px] shrink-0 items-center",children:(0,r.jsx)("img",{alt:`${e.company} logo`,src:e.logo,className:"h-[30px] w-auto max-w-[180px] object-contain object-left"})}),(0,r.jsx)("blockquote",{className:"max-w-[598px] text-marketing-body text-marketing-green-1",children:e.quote}),(0,r.jsx)(sv,{testimonial:e})]}),sw=()=>{let[e,t]=(0,x.useState)(0),[a,s]=(0,x.useState)(!0),n=(0,x.useRef)(null),l=(0,x.useRef)(null),o=(0,x.useRef)(null),c=(0,x.useRef)(!1),d=(0,x.useCallback)(e=>{let t=n.current,a=t?.firstElementChild?.firstElementChild;if(!t||!(a instanceof HTMLElement))return;let s=a.getBoundingClientRect().width;if(0===s)return;let r=t.scrollLeft/s,l=Math.max(0,Math.min(Math.min(2,Math.max(0,Math.floor(((t.scrollWidth-t.clientWidth)/s-e)/sb))),Math.round((r-e)/sb)));t.scrollTo({left:(l*sb+e)*s,behavior:"smooth"})},[]),u=(0,x.useCallback)(e=>{let t=e.firstElementChild?.firstElementChild;if(!(t instanceof HTMLElement))return;let a=t.getBoundingClientRect().width;if(0===a)return;let s=e.scrollLeft/a;if(s>=2.5&&s<3*sb-3.5)return;e.style.scrollBehavior="auto",e.style.scrollSnapType="none",e.scrollLeft+=(s<2.5?1:-1)*sb*a,e.style.scrollBehavior="";let n=e.scrollLeft/a;.01>Math.abs(n-Math.round(n))?e.style.scrollSnapType="":(o.current=e.scrollLeft,c.current=!1)},[]),m=(0,x.useCallback)(e=>{if(null!=l.current&&(window.clearTimeout(l.current),l.current=null),null!=o.current){if(!c.current)return;u(e),e.style.scrollSnapType="",o.current=null,c.current=!1;return}u(e)},[u]);return(0,x.useEffect)(()=>{let e=n.current;if(!e)return;let t=()=>m(e);return e.addEventListener("scrollend",t),()=>{e.removeEventListener("scrollend",t),null!=l.current&&window.clearTimeout(l.current)}},[m]),(0,x.useEffect)(()=>{let e=n.current,t=e?.firstElementChild?.firstElementChild;e&&t instanceof HTMLElement&&(e.style.scrollBehavior="auto",e.scrollLeft=sb*t.getBoundingClientRect().width,e.style.scrollBehavior="")},[]),(0,x.useEffect)(()=>{if(!a)return;let t=window.setInterval(()=>{d((e+1)%sb)},8e3);return()=>window.clearInterval(t)},[e,a,d]),(0,r.jsx)("section",{"aria-label":"Testimonials",className:"overflow-hidden bg-marketing-green-19 text-marketing-green-1",children:(0,r.jsxs)(i.MarketingGirdle,{noPadding:!0,className:"max-w-[1240px] border-x border-marketing-divider-light",children:[(0,r.jsxs)("div",{className:"min-h-[620px] px-[22px] pb-20 pt-20 sm:pt-[104px] xl:min-h-[721px]",children:[(0,r.jsx)("span",{className:"inline-flex h-7 items-center rounded-full bg-marketing-pill-light px-[11
40px] font-marketing-mono text-marketing-eyebrow uppercase",children:"Testimonials"}),(0,r.jsxs)("div",{className:"mt-16 max-w-[1108px] sm:mt-20",children:[(0,r.jsx)("img",{alt:`${sg.company} logo`,src:sg.logo,className:"h-[30px] w-auto max-w-[180px]"}),(0,r.jsx)("blockquote",{className:"mt-[38px] text-[28px] leading-[1.3] tracking-[-0.8px] sm:text-[40px]",children:sg.quote}),(0,r.jsx)("div",{className:"mt-[38px]",children:(0,r.jsx)(sv,{testimonial:sg})})]})]}),(0,r.jsxs)("div",{className:"border-t border-marketing-divider-light",children:[(0,r.jsx)("div",{ref:n,onPointerDown:()=>s(!1),onScroll:e=>{let a=e.currentTarget,s=a.firstElementChild?.firstElementChild;if(!(s instanceof HTMLElement))return;let n=s.getBoundingClientRect().width;if(0===n)return;let r=a.scrollLeft/n;t(Math.round(r)%sb),null!=o.current&&Math.abs(a.scrollLeft-o.current)>1&&(c.current=!0),"onscrollend"in a||!(r<2.5)&&!(r>=3*sb-3.5)||(null!=l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>m(a),200))},className:"snap-x snap-mandatory overflow-x-auto scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,r.jsx)("div",{className:"flex",children:[0,1,2].flatMap(e=>sy.map(t=>(0,r.jsx)("div",{"aria-hidden":1!==e,className:"min-h-[413px] w-full shrink-0 snap-start border-r border-marketing-divider-light sm:w-[58.23%]",children:(0,r.jsx)(s_,{testimonial:t})},`${e}-${t.company}`)))})}),(0,r.jsx)("div",{className:"flex h-[102px] items-center border-t border-marketing-divider-light px-[22px]",children:sy.map((t,a)=>(0,r.jsx)("button",{type:"button","aria-label":`Show ${t.company} testimonial`,"aria-current":e===a?"true":void 0,onClick:()=>{s(!1),d(a)},className:"flex h-7 w-7 shrink-0 cursor-pointer items-center",children:(0,r.jsx)("span",{className:`h-1 w-5 bg-marketing-green-300 transition-opacity ${e===a?"opacity-100":"opacity-30"}`,"aria-hidden":"true"})},t.company))})]})]})})};var sk=e.i(15932);let sj={"Agentic Machine Learning":R.Routes.useCases.mlAutoresearchAgent,Payments:R.Routes.useCases.payments,"Agent Evaluation":R.Routes.workflowPages.evaluateAgents,"Recommender Systems":R.Routes.useCases.recommenderSystems,Underwriting:R.Routes.useCases.underWriting,"Search & Ranking":R.Routes.useCases.searchAndRanking,"Agent Sandboxes":R.Routes.workflowPages.agentSandboxes,"Customer Support Agents":R.Routes.useCases.customerSupportAgents,"Marketing & Personalization":R.Routes.useCases.growthDecisioning,"Fraud Detection":R.Routes.useCases.fraudDetection,"Model Training & Fine-Tuning":R.Routes.workflowPages.fineTuneModels,"Dynamic Pricing":R.Routes.useCases.dynamicPricing,"Trust & Safety Agents":R.Routes.useCases.trustAndSafetyAgents,"Workflow Automation Agents":R.Routes.useCases.workflowAutomationAgent},sN=[["Workflow Automation Agents","Trust & Safety Agents","Customer Support Agents"],["Fraud Detection","Payments","Underwriting","Recommender Systems"],["Search & Ranking","Marketing & Personalization","Dynamic Pricing"],["Trust & Safety Agents","Customer Support Agents","Agentic Machine Learning"],["Payments","Underwriting","Agent Evaluation"],["Agent Sandboxes","Recommender Systems","Search & Ranking"],["Marketing & Personalization","Dynamic Pricing","Workflow Automation Agents"],["Trust & Safety Agents","Customer Support Agents","Agentic Machine Learning"],["Customer Support Agents","Agentic Machine Learning","Fraud Detection"],["Underwriting","Model Training & Fine-Tuning","Search & Ranking"],["Dynamic Pricing","Workflow Automation Agents","Trust & Safety Agents"],["Agentic Machine Learning","Fraud Detection","Payments","Underwriting"],["Recommender Systems","Search & Ranking","Marketing & Personalization","Dynamic Pricing"]],sS=[["Workflow Automation Agents","Trust & Safety Agents"],["Customer Support Agents","Fraud Detection"],["Payments","Underwriting","Recommender Systems"],["Search & Ranking","Marketing & Personalization"],["Dynamic Pricing","Agentic Machine Learning"],["Agent Evaluation","Agent Sandboxes"],["Model Training & Fine-Tuning"]],sC=[["Workflow Automation Agents","Trust & Safety Agents","Payments"],["Customer Support Agents","Fraud Detection","Underwriting"],["Recommender Systems","Search & Ranking","Dynamic Pricing"],["Marketing & Personalization","Agent Evaluation","Agent Sandboxes"],["Agentic Machine Learning","Model Training & Fine-Tuning"]],sM=[["Workflow Automation Agents","Trust & Safety Agents","Customer Support Agents"],["Fraud Detection","Payments","Underwriting","Recommender Systems"],["Search & Ranking","Marketing & Personalization","Dynamic Pricing","Agent Evaluation"],["Agentic Machine Learning","Agent Sandboxes","Model Training & Fine-Tuning"]],sA=[["Workflow Automation Agents"],["Trust & Safety Agents"],["Customer Support Agents"],["Fraud Detection","Payments"],["Underwriting"],["Recommender Systems"],["Search & Ranking"],["Marketing & Personalization"],["Dynamic Pricing"],["Agentic Machine Learning"],["Agent Evaluation"],["Agent Sandboxes"],["Model Training & Fine-Tuning"]],sq=[["Workflow Automation Agents"],["Trust & Safety Agents","Underwriting"],["Customer Support Agents"],["Fraud Detection","Payments"],["Recommender Systems"],["Search & Ranking","Dynamic Pricing"],["Marketing & Personalization"],["Agentic Machine Learning"],["Agent Evaluation","Agent Sandboxes"],["Model Training & Fine-Tuning"]],sE=({rows:e,className:t,duplicate:a=!1})=>(0,r.jsx)("div",{className:`${sk.default.solutionRows} ${t}`,"aria-hidden":a||void 0,children:e.map((e,t)=>(0,r.jsx)("div",{className:sk.default.solutionRow,children:e.map((e,t)=>(0,r.jsx)("a",{href:sj[e],tabIndex:a?-1:void 0,className:`${sk.default.solution} text-marketing-green-1 transition-[color,opacity] duration-200 focus-visible:rounded-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-mint-green-dark`,children:e},`${e}-${t}`))},t))}),sR=()=>(0,r.jsx)("section",{className:"overflow-hidden bg-marketing-green-19 text-marketing-green-1","aria-labelledby":"use-cases-heading",children:(0,r.jsxs)(i.MarketingGirdle,{noPadding:!0,className:"max-w-[1240px] border-x border-marketing-divider-light",children:[(0,r.jsxs)("div",{className:"flex min-h-[310px] flex-col items-center justify-start px-4 pt-20 text-center sm:min-h-[280px] sm:pt-16 min-[1200px]:min-h-[310px] min-[1200px]:pt-20",children:[(0,r.jsx)("span",{className:"inline-flex h-7 items-center rounded-full bg-marketing-pill-light px-[11
40px] font-marketing-mono text-marketing-eyebrow uppercase",children:"Use cases"}),(0,r.jsx)("h2",{id:"use-cases-heading",className:"mt-[30px] text-marketing-heading-mobile font-normal sm:text-marketing-heading",children:"Powering the next generation of agents and models"}),(0,r.jsx)("p",{className:"mt-[14px] text-[18px] leading-[1.3] tracking-[-0.2px] text-marketing-green-200 sm:text-[20px]",children:"Make better decisions in production."})]}),(0,r.jsx)("div",{className:`${sk.default.viewport} overflow-hidden border-y border-marketing-divider-light`,children:(0,r.jsxs)("div",{className:sk.default.track,children:[(0,r.jsx)(sE,{rows:sA,className:sk.default.mobileRows}),(0,r.jsx)(sE,{rows:sA,className:sk.default.mobileRows,duplicate:!0}),(0,r.jsx)(sE,{rows:sq,className:sk.default.largeMobileRows}),(0,r.jsx)(sE,{rows:sq,className:sk.default.largeMobileRows,duplicate:!0}),(0,r.jsx)(sE,{rows:sS,className:sk.default.tabletRows}),(0,r.jsx)(sE,{rows:sS,className:sk.default.tabletRows,duplicate:!0}),(0,r.jsx)(sE,{rows:sC,className:sk.default.midTabletRows}),(0,r.jsx)(sE,{rows:sC,className:sk.default.midTabletRows,duplicate:!0}),(0,r.jsx)(sE,{rows:sM,className:sk.default.wideTabletRows}),(0,r.jsx)(sE,{rows:sM,className:sk.default.wideTabletRows,duplicate:!0}),(0,r.jsx)(sE,{rows:sN,className:sk.default.desktopRows}),(0,r.jsx)(sE,{rows:sN,className:sk.default.desktopRows,duplicate:!0})]})}),(0,r.jsx)("div",{className:"h-[72px] min-[1200px]:h-[102px]","aria-hidden":"true"})]})});var sT=e.i(22797);let sF=[{title:"Live",description:"Resolve decisions against fresh data at the source."},{title:"Fast",description:"Deliver decision-ready context in milliseconds."},{title:"Unified",description:"Data, logic, and compute in one execution path."},{title:"No duplication",description:"No brittle pipelines. No third copy of your customer table."},{title:"Private",description:"In your cloud, next to your data, under your controls."}],sL=()=>(0,r.jsxs)("section",{className:"relative isolate overflow-hidden bg-marketing-green-2 py-20 text-white sm:py-24 xl:py-28",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 text-marketing-green-300 opacity-40",style:{backgroundImage:"linear-gradient(to right, currentColor 1px, transparent 1px), linear-gradient(to bottom, currentColor 1px, transparent 1px)",backgroundPosition:"center center",backgroundSize:"calc(min(100vw, 1240px) / 13) calc(min(100vw, 1240px) / 13)"}}),(0,r.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-marketing-green-1 via-marketing-green-2/20 to-marketing-green-1"}),(0,r.jsx)(i.MarketingGirdle,{className:"relative z-10",children:(0,r.jsxs)("div",{className:"grid grid-cols-12",children:[(0,r.jsxs)("div",{className:"col-span-12 flex flex-col items-center gap-[30px] text-center",children:[(0,r.jsx)("span",{className:"rounded-full bg-marketing-badge px-[11px] py-[7px] font-marketing-mono text-marketing-eyebrow uppercase text-secondary-lime-550",children:"Why Chalk"}),(0,r.jsxs)("h2",{className:"max-w-[554px] text-marketing-heading-mobile font-normal sm:text-marketing-heading",children:["AI you can trust ",(0,r.jsx)("span",{className:"text-secondary-lime-550",children:"in production"})]})]}),(0,r.jsx)("ul",{className:"col-span-12 mt-16 grid grid-cols-1 gap-x-8 gap-y-10 sm:grid-cols-2 xl:mt-[108px] xl:grid-cols-5 xl:gap-x-6",children:sF.map(({title:e,description:t})=>(0,r.jsxs)("li",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-[14px]",children:[(0,r.jsx)("img",{alt:"","aria-hidden":"true",src:"/img/marketing/fuzzy-square.png",className:"h-[17px] w-[17px] shrink-0"}),(0,r.jsx)("h3",{className:"font-marketing-mono text-marketing-label font-normal uppercase",children:e})]}),(0,r.jsx)("p",{className:"mt-3 text-marketing-body text-marketing-muted",children:t})]},e))})]})})]});var sP=e.i(26207),sI=e.i(52394),sD=e.i(75713),sz=e.i(66762);let sW=[sP.WEBSITE_SCHEMA,sI.ORGANIZATION_SCHEMA,sI.DEMO_VIDEO_SCHEMA,sI.HOMEPAGE_PRODUCT_OFFERING_SCHEMA];e.s(["__N_SSG",0,!0,"default",0,function(e){return(0,r.jsxs)(S.MarketingLayoutV3,{colorTheme:sD.MarketingTheme.DarkGreen,title:"The Platform for Production AI | Chalk",description:"Run decisions. Close the loop. Chalk serves live context, runs models and agents, and tests every change before it ships to production.",metaImage:sz.DEFAULT_MARKETING_META_IMAGE,keywords:"production AI platform, feature store, federated query engine, AI agents in production, model serving, agent evals, real-time context, context engine, live context for AI, feature store, model serving, agent sandboxes, AI evals, fine-tuning",pageSchemas:sW,eventBannerConfig:e.latestEventBanner,navbarContent:e.navbar,children:[(0,r.jsx)(N,{id:"all-sizes"}),(0,r.jsx)(sT.UsersLogosSection,{}),(0,r.jsxs)("main",{className:"bg-marketing-green-1",children:[(0,r.jsx)(sf,{}),(0,r.jsx)(sL,{}),(0,r.jsx)(sw,{}),(0,r.jsx)(F,{}),(0,r.jsx)(sR,{}),(0,r.jsx)(L.KeepUpWithChalkSection,{}),(0,r.jsx)(q,{})]})]})}],92767)},7582,(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",()=>e.r(92767)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push(["/"])})}]);

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.