PageSourceSearch

https://www.cheatproof.ai/_next/static/chunks/7596.cc8abdf32f3c3493.js

js cheatproof.ai collected 2026-10-05 05:30:08 UTC 23,855 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d04fa0e2-ba0a-4808-947a-22aba94fba5d",e._sentryDebugIdIdentifier="sentry-dbid-d04fa0e2-ba0a-4808-947a-22aba94fba5d")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7596],{16112:()=>{},34039:(e,t,n)=>{"use strict";n.d(t,{$y:()=>f,OO:()=>u,a9:()=>i,jO:()=>s,ro:()=>p,vi:()=>l,wT:()=>r});var a=n(98734);let s={FLUSH_INTERVAL_MS:5e3,FLUSH_RAW_BYTES:524288,PACKET_GZIP_MAX:1048576,PACKET_RAW_MAX:8388608,CUSTOM_EVENT_MAX_BYTES:2048,FRAGMENT_MAX_MS:3e5,FRAGMENT_GZIP_MAX:5242880,FRAGMENT_RAW_MAX:0x2000000,QUEUE_MAX_BYTES:8388608,SCOPE_QUOTA_GZIP:262144e3,PACKETS_PER_MINUTE:30,PACKET_BURST:6,UPLOAD_GRACE_MS:6e4,DRAIN_BUDGET_MS:5e3,DRAIN_ATTEMPTS:2,SIGNED_URL_TTL_S:300,RETENTION_DAYS:30,FRAGMENTS_PER_SCOPE:500,CONTEXT_PER_PACKET:500,TRANSPORT_TIMEOUT_MS:15e3,MAX_PACKET_SEQ:1e4},r="2026-10-01",l="Your work in this browser IDE is recorded for the reviewing team: the editor contents, the files you open, your actions (switching tasks, editing, pasting, running code, submitting) and the visible output. Screen, camera and microphone recording are separate and need their own consent.",i=["candidate","interviewer","admin","guest_interviewer","unknown"],o=a.Ik({role:a.k5(i),name:a.Yj().max(120).optional()}).strict(),c=a.Yj().max(512),d=c.nullable(),u=a.Ik({seq:a.ai().int().nonnegative(),ts:a.ai().finite(),kind:a.k5(["task","stage","file","edit","paste","file_create","file_rename","file_delete","run","checkpoint","submit","finish","sync","remote_edit","preview","presence"]),taskId:c.optional(),stageId:d.optional(),path:d.optional(),fileId:d.optional(),prevPath:d.optional(),origin:a.k5(["local","remote","sync","program","unknown"]).optional(),actor:o.optional(),chars:a.ai().int().nonnegative().optional(),lines:a.ai().int().nonnegative().optional(),label:c.optional(),ref:c.optional()}).strict().refine(e=>JSON.stringify(e).length<=s.CUSTOM_EVENT_MAX_BYTES,{message:"context event too large"}),p="context",f={packetSeq:"X-Replay-Packet-Seq",eventRange:"X-Replay-Event-Range"}},57596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SessionReplayPanel:()=>q,default:()=>U});var a=n(95155),s=n(12115),r=n(34039);let l={task:"Switched task",stage:"Switched stage",file:"Opened file",edit:"Edited",paste:"Pasted",file_create:"Created file",file_rename:"Renamed file",file_delete:"Deleted file",run:"Ran code",checkpoint:"Saved checkpoint",submit:"Submitted",finish:"Finished",sync:"Synced state",remote_edit:"Collaborative edit",preview:"Preview",presence:"Participant activity"},i={candidate:"Candidate",interviewer:"Interviewer",admin:"Admin",guest_interviewer:"Guest",unknown:"Another participant"};function o(e){let t=i[e.role];return e.name&&"unknown"!==e.role?"".concat(t," ").concat(e.name):t}let c={edit:"edited",remote_edit:"edited",paste:"pasted into",file:"opened",file_create:"created",file_delete:"deleted"},d=e=>e.lines?"".concat(e.lines," line").concat(1===e.lines?"":"s"):e.chars?"".concat(e.chars," chars"):"",u=["https://cdn.jsdelivr.net/npm/monaco-editor@"],p=["/_next/static/"],f=new Set(["src","srcset","href","xlink:href","poster","background","data","action","formaction","ping","manifest","codebase","srcdoc","cite","longdesc","usemap","icon"]),m=new Set(["object","embed","applet","base","frame","iframe","form","meta","script"]),h=new Set(["id","class","width","height","style","title"]),g=/^\s*([a-z][a-z0-9+.-]*):/i;function y(e){var t,n;let a=e.trim();if(""===a||a.startsWith("#"))return!0;if(a.startsWith("//"))return!1;let s=null==(n=g.exec(a))||null==(t=n[1])?void 0:t.toLowerCase();return s?"data"===s||"blob"===s||u.some(e=>a.startsWith(e)):p.some(e=>a.startsWith(e))}let k=e=>e.split(",").every(e=>{var t;return y(null!=(t=e.trim().split(/\s+/)[0])?t:"")}),v=/url\(\s*(['"]?)([^'")]*)\1\s*\)/gi,b=/@import\s+(?:url\([^)]*\)|['"][^'"]*['"])[^;]*;?/gi;function x(e){return e.replace(b,"").replace(v,(e,t,n)=>y(n)?e:"none")}function w(e,t){let n=(null!=e?e:"").toLowerCase(),a={};for(let[e,s]of Object.entries(t)){let t=e.toLowerCase();if((!m.has(n)||h.has(t)||"_csstext"===t)&&!t.startsWith("on")){if("style"===t||"_csstext"===t){a[e]="string"==typeof s?x(s):function(e){if(!e||"object"!=typeof e)return e;let t={};for(let[n,a]of Object.entries(e))t[n]="string"==typeof a?x(a):Array.isArray(a)&&"string"==typeof a[0]?[x(a[0]),...a.slice(1)]:a;return t}(s);continue}if("rr_dataurl"===t){"string"==typeof s&&/^\s*data:/i.test(s)&&(a[e]=s);continue}if(f.has(t)){if("string"!=typeof s)continue;("srcset"===t?k(s):y(s))&&(a[e]=s);continue}a[e]=s}}return"link"===n&&"string"==typeof a.rel&&/preload|prefetch|dns-prefetch|preconnect|modulepreload|manifest|import/i.test(a.rel)&&delete a.href,a}let _=()=>({styleElements:new Set,styleTexts:new Set});function S(e,t){var n;let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s={...e},r=null==(n=e.tagName)?void 0:n.toLowerCase(),l=2===e.type&&"style"===r;return l&&"number"==typeof e.id&&t.styleElements.add(e.id),2===e.type&&e.attributes&&(s.attributes=w(e.tagName,e.attributes)),3===e.type&&"string"==typeof e.textContent&&(e.isStyle||a)&&(s.textContent=x(e.textContent),"number"==typeof e.id&&t.styleTexts.add(e.id)),Array.isArray(e.childNodes)&&(s.childNodes=m.has(null!=r?r:"")?[]:e.childNodes.map(e=>S(e,t,l))),s}let T=new Set([8,13,15]);async function j(e,t,n){let a=[...e.packets].sort((e,t)=>
1e.packetSeq-t.packetSeq);a.forEach((e,t)=>{if(e.packetSeq!==t)throw Error("missing packet ".concat(t))});var s=(await Promise.all(a.map(async e=>{let a=await t(e.url,{credentials:"omit",cache:"no-store"});if(!a.ok)throw Error("packet ".concat(e.packetSeq," download failed (").concat(a.status,")"));let s=await n(new Uint8Array(await a.arrayBuffer())),r=JSON.parse(new TextDecoder().decode(s));if(1!==r.v||!Array.isArray(r.events))throw Error("packet ".concat(e.packetSeq," malformed"));return r.events}))).flat();let r=_();return s.map(e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_(),n=e.data;if(!n||"object"!=typeof n)return e;if(2===e.type&&n.node)return{...e,data:{...n,node:S(n.node,t)}};if(3!==e.type)return e;if(0===n.source){let a=Array.isArray(n.adds)?n.adds.map(e=>{if(!e||"object"!=typeof e||!e.node)return e;let n="number"==typeof e.parentId&&t.styleElements.has(e.parentId);return{...e,node:S(e.node,t,n)}}):n.adds,s=Array.isArray(n.attributes)?n.attributes.map(e=>e&&"object"==typeof e&&e.attributes?{...e,attributes:w(void 0,e.attributes)}:e):n.attributes,r=Array.isArray(n.texts)?n.texts.map(e=>e&&"object"==typeof e&&"number"==typeof e.id&&t.styleTexts.has(e.id)&&"string"==typeof e.value?{...e,value:x(e.value)}:e):n.texts;return{...e,data:{...n,adds:a,attributes:s,texts:r}}}return T.has(Number(n.source))?{...e,data:function e(t){return"string"==typeof t?x(t):Array.isArray(t)?t.map(e):t&&"object"==typeof t?Object.fromEntries(Object.entries(t).map(t=>{let[n,a]=t;return[n,e(a)]})):t}(n)}:e})(e,r))}function E(e){let t=e=>{let t=e.startedAt?Date.parse(e.startedAt):NaN;return Number.isFinite(t)?t:1/0};return[...e].sort((e,n)=>t(e)-t(n)||e.fragmentSeq-n.fragmentSeq||e.id.localeCompare(n.id))}function I(e,t){for(let n of E(e.fragments)){if(null===n.firstTs||null===n.lastTs)continue;let e=function(e,t){if("number"==typeof t.clientTime&&Number.isFinite(t.clientTime))return t.clientTime;if(!t.serverTime||null===e.clockOffsetMs)return null;let n=Date.parse(t.serverTime);return Number.isFinite(n)?n-e.clockOffsetMs:null}(n,t);if(null===e||e<n.firstTs||e>n.lastTs)continue;let a="number"!=typeof t.clientTime;return{recordingId:n.id,seconds:(e-n.firstTs)/1e3,approximate:a&&(null===n.clockUncertaintyMs||n.clockUncertaintyMs>5e3)}}return null}function N(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),a=Math.floor(t%3600/60),s="".concat(String(a).padStart(2,"0"),":").concat(String(t%60).padStart(2,"0"));return n?"".concat(n,":").concat(s):s}var A=n(44085),M=n(34411);n(89488),n(16112);let C={complete:"success",partial:"warning",recording:"info"},R={missing:"No session replay was recorded for this session.",expired:"The session replay has expired and its packets were deleted.",unavailable:"Session replay is unavailable for this session."},P={interview_open:"The interview is still open.",attempt_in_progress:"The assessment is still in progress.",attempt_invalidated:"The assessment attempt was invali
1dated.",replay_not_enabled:"Session replay was not enabled for this assessment.",not_eligible:"This interview was not set up for session replay.",retention:"The retention period has ended."};function q(e){var t,u,p,f,m,h,g,y;let k,{manifestUrl:v,packetsUrl:b,timeline:x,seekRequest:w,title:_="Session replay",className:S=""}=e,[T,C]=(0,s.useState)({status:"loading"}),[q,U]=(0,s.useState)(0),[F,L]=(0,s.useState)(null),[X,G]=(0,s.useState)(null),[W,z]=(0,s.useState)(0),[Y,K]=(0,s.useState)({status:"idle"}),[J,Q]=(0,s.useState)(0),[V,Z]=(0,s.useState)(null),[H,$]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(null),[en,ea]=(0,s.useState)(null),es=(0,s.useRef)(b);es.current=b;let[er,el]=(0,s.useState)(null),[ei,eo]=(0,s.useState)(null),ec=(0,s.useRef)(null),ed=(0,s.useRef)(null),eu="ready"===T.status?T.manifest:null,ep=null!=(p=null==eu?void 0:eu.fragments.find(e=>e.id===F))?p:null;(0,s.useEffect)(()=>{let e=!1;return C({status:"loading"}),fetch(v,{credentials:"same-origin",cache:"no-store"}).then(async t=>{if(!t.ok)throw Error("Could not load the replay manifest (".concat(t.status,")."));let n=await t.json();e||C({status:"ready",manifest:n})}).catch(t=>{e||C({status:"error",message:t instanceof Error?t.message:"Could not load the replay manifest."})}),()=>{e=!0}},[v,q]),(0,s.useEffect)(()=>{(null==eu?void 0:eu.state)==="available"&&eu.fragments.length&&!eu.fragments.some(e=>e.id===F)&&L(E(eu.fragments)[0].id)},[eu,F]),(0,s.useEffect)(()=>{if(!ep)return void K({status:"idle"});if(ep.gzipBytes>0x1000000&&X!==ep.id)return void K({status:"confirm"});let e="undefined"==typeof DecompressionStream?null:async e=>{let t=new Blob([e]).stream().pipeThrough(new DecompressionStream("gzip"));return new Uint8Array(await new Response(t).arrayBuffer())};if(!e)return void K({status:"error",message:"This browser cannot decompress replay packets (DecompressionStream is unsupported)."});let t=!1;return K({status:"loading"}),Q(0),fetch(es.current(ep.id),{credentials:"same-origin",cache:"no-store"}).then(async n=>{if(!n.ok)throw Error("Could not load the packet list (".concat(n.status,")."));let a=await j(await n.json(),fetch,e);if(!a.length)throw Error("The fragment has no packets.");t||K({status:"ready",events:a,fragmentId:ep.id})}).catch(e=>{t||K({status:"error",message:e instanceof Error?e.message:"Could not download the fragment."})}),()=>{t=!0}},[ep,X,W]),(0,s.useEffect)(()=>{let e=ec.current;if("ready"!==Y.status||!e)return;let t=!1,a=null;return Promise.all([n.e(7436),n.e(5376)]).then(n.bind(n,67456)).then(n=>{let{default:s}=n;if(t)return;let r=Math.max(320,e.clientWidth);(a=new s({target:e,props:{events:Y.events,width:r,height:Math.round(9*r/16),autoPlay:!1,showController:!0,UNSAFE_replayCanvas:!1,speedOption:[1,2,4,8],skipInactive:!0,mouseTail:!1}})).addEventListener("ui-update-current-time",e=>Q(e.payload));let l=Y.fragmentId;a.getReplayer().on("finish",()=>{t||ea(l)}),eo(a)}).catch(()=>{t||K({status:"error",message:"Could not load the replay player."})}),()=>{t=!0,null==a||a.$destroy(),e.replaceChildren(),eo(null)}},[Y]);let ef="ready"===Y.status?Y.fragmentId:null;(0,s.useEffect)(()=>{if(!en||!eu)return;ea(null);let e=E(eu.fragments),t=e[e.findIndex(e=>e.id===en)+1];t&&en===F&&(L(t.id),el({recordingId:t.id,seconds:0,play:!0}))},[en,eu,F]),(0,s.useEffect)(()=>{ei&&er&&er.recordingId===ef&&(ei.goto(1e3*er.seconds,er.play),el(null))},[ei,er,ef]);let em=(0,s.useCallback)((e,t,n)=>{e===ef&&ei?ei.goto(1e3*t,n):(L(e),el({recordingId:e,seconds:t,play:n}))},[ef,ei]);(0,s.useEffect)(()=>{if(!w||!eu||ed.current===w.id)return;ed.current=w.id;let e=I(eu,w);if(!e)return void et("unknown_clock"==("number"!=typeof w.clientTime&&w.serverTime&&eu.fragments.every(e=>null===e.clockOffsetMs)?"unknown_clock":"outside_coverage")?"Cannot jump there: the clock offset of this recording is unknown, so server-stamped moments cannot be mapped.":"Cannot jump there: the requested moment is outside the recorded coverage.");et(e.approximate?"Jumped approximately: the clock offset for this fragment is uncertain.":null),em(e.recordingId,e.seconds,!0)},[w,eu,em]);let eh=(0,s.useMemo)(()=>eu?function(e){let t=E(e.fragments);return t.map((e,n)=>{let a=n>
10?t[n-1]:null,s=null!==e.firstTs&&null!==e.lastTs;return{id:e.id,fragmentSeq:e.fragmentSeq,status:e.status,startedAt:e.startedAt,durationMs:s?e.lastTs-e.firstTs:null,gzipBytes:e.gzipBytes,missingPacketSeqs:e.missingPacketSeqs,incompleteReason:e.incompleteReason,gapBeforeMs:a&&null!==a.lastTs&&null!==e.firstTs?Math.max(0,e.firstTs-a.lastTs):null}})}(eu):[],[eu]),eg=(0,s.useMemo)(()=>eu?function(e){let t=new Map,n=[];return E(e.fragments).forEach((e,a)=>{for(let s of e.context){let r={...s,seq:0x1000000*a+s.seq};t.set(r,{event:s,fragment:e}),n.push(r)}}),{events:n,byEvent:t}}(eu):null,[eu]),ey=(0,s.useMemo)(()=>eg?function(e){let t=new Map,n=[],a=new Map,s=(e,t)=>{var n,a;return e.fileId?"id:".concat(null!=(n=e.taskId)?n:"","/").concat(e.fileId):"path:".concat(null!=(a=e.taskId)?a:"","/").concat(null!=t?t:"")};for(let i of[...e].sort((e,t)=>e.seq-t.seq)){if("presence"===i.kind&&"open_file"!==i.label)continue;let e="file_rename"===i.kind?i.prevPath:i.path;if(!e&&!i.fileId)continue;let o=s(i,e),c=t.get(o);if(!c){var r,l;let s=null!=(r=a.get(o))?r:0;a.set(o,s+1),c={key:s?"".concat(o,"#").concat(s+1):o,...i.taskId?{taskId:i.taskId}:{},path:null!=(l=null!=e?e:i.path)?l:"",...i.fileId?{fileId:i.fileId}:{},events:[]},t.set(o,c),n.push(c)}c.events.push(i),"file_rename"===i.kind&&i.path?(t.delete(o),c.path=i.path,t.set(s(i,i.path),c)):"file_delete"===i.kind&&t.delete(o)}return n}(eg.events):[],[eg]),ek=null!=(f=ey.find(e=>O(e)===V))?f:null,ev=(0,s.useMemo)(()=>eg&&eu?[...(ek?ek.events:eg.events).map(e=>eg.byEvent.get(e)).map(e=>{var t;let{event:n,fragment:a}=e;return{key:"".concat(a.id,":").concat(n.seq),ts:n.ts,label:function(e){var t;if(e.actor||"presence"===e.kind)return function(e,t){var n,a,s,r;let i=o(t);if("presence"===e.kind)return"open_file"===e.label?"".concat(i," opened ").concat(null!=(n=e.path)?n:"a file"):"join"===e.label?"".concat(i," joined"):"leave"===e.label?"".concat(i," left"):"".concat(i,": ").concat(l.presence);if(e.label)return"".concat(i,": ").concat(e.label);if("file_rename"===e.kind)return"".concat(i," renamed ").concat(null!=(a=e.prevPath)?a:"a file"," → ").concat(null!=(s=e.path)?s:"?");let u=c[e.kind];if(!u)return"".concat(i,": ").concat(l[e.kind]);let p=d(e);return"".concat(i," ").concat(u," ").concat(null!=(r=e.path)?r:"a file").concat(p?" (".concat(p,")"):"")}(e,null!=(t=e.actor)?t:{role:"unknown"});if(e.label)return e.label;let n=l[e.kind];if("file_rename"===e.kind&&e.prevPath&&e.path)return"".concat(n,": ").concat(e.prevPath," → ").concat(e.path);if("remote_edit"===e.kind||"edit"===e.kind&&e.origin&&"local"!==e.origin)return"unknown"===e.origin?"Change (origin unknown)":"sync"===e.origin||"program"===e.origin?"Synced state":l.remote_edit;let a=d(e);return a?"".concat(n," ").concat(a):n}(n),path:null!=(t=n.path)?t:null,external:!1,actor:n.actor,candidate:!n.actor&&"presence"!==n.kind&&"remote_edit"!==n.kind&&"remote"!==n.origin,time:null===a.firstTs?null:N(n.ts-a.firstTs),fragmentSeq:a.fragmentSeq,seek:null===a.firstTs?null:{recordingId:a.id,seconds:(n.ts-a.firstTs)/1e3}}}),...ek?[]:(null!=x?x:[]).map(e=>{var t,n;let a=I(eu,e),s=a&&null!=(t=eu.fragments.find(e=>e.id===a.recordingId))?t:null,r="number"==typeof e.clientTime?e.clientTime:s&&null!==s.firstTs&&a?s.firstTs+1e3*a.seconds:1/0;return{key:"ext:".concat(e.id),ts:r,label:(null==a?void 0:a.approximate)?"".concat(e.label," (approximate)"):e.label,path:null,external:!0,actor:e.actor,candidate:!e.actor||"candidate"===e.actor.role,time:a?N(1e3*a.seconds):null,fragmentSeq:null!=(n=null==s?void 0:s.fragmentSeq)?n:null,seek:a}})].sort((e,t)=>e.ts-t.ts):[],[eg,eu,ek,x]),eb=ev.some(e=>!e.candidate),ex=H?ev.filter(e=>e.candidate):ev,ew=ep&&null!==ep.firstTs?function(e,t){let n={taskId:null,stageId:null,path:null,fileId:null},a=!1,s=!1,r=!1,l=[];for(let m=function(e,t){let n=0,a=e.length-1,s=-1;for(;n<=a;){let r=n+a>>1;e[r].ts<=t?(s=r,n=r+1):a=r-1}return s}(e,t);m>=0&&!(a&&s&&r);m--){var i,o,c,d,u,p,f;let t=e[m];if("task"===t.kind)a||(n.taskId=null!=(i=t.taskId)?i:null,a=!0),s||(n.stageId=null!=(o=t.stageId)?o:null,s=!0);else if("stage"===t.kind)s||(n.stageId=null!=(c=t.stageId)?c:null,s=!0);else if(!r){if("file_rename"===t.kind||"file_delete"===t.kind)l.push(t);else if("file"===t.kind){if(a&&n.taskId&&t.taskId&&t.taskId!==n.taskId)continue;let e=null!=(d=t.path)?d:null,s=null!=(u=t.fileId)?u:null;for(let t=l.length-1;t>=0&&null!==e;t--){let n=l[t];(null!==s&&n.fileId?n.fileId===s:("file_delete"===n.kind?n.path:n.prevPath)===e)&&("file_delete"===n.kind?(e=null,s=null):(e=null!=(p=n.path)?p:e,s=null!=(f=n.fileId)?f:s))}n.path=e,n.fileId=s,r=!0}}}return n}
1(ep.context,ep.firstTs+J):null,e_=(null==ew?void 0:ew.taskId)?null!=(m=null==ep||null==(t=ep.context.find(e=>"task"===e.kind&&e.taskId===ew.taskId&&e.label))?void 0:t.label)?m:ew.taskId:null,eS=(null==ew?void 0:ew.stageId)?null!=(h=null==ep||null==(u=ep.context.find(e=>"stage"===e.kind&&e.stageId===ew.stageId&&e.label))?void 0:u.label)?h:ew.stageId:null,eT=eh.length>1;return(0,a.jsxs)(A.w5,{title:_,className:S,description:"The candidate's browser IDE as recorded. Gaps between fragments and missing packets are shown explicitly, never as continuous recording.",children:["loading"===T.status&&(0,a.jsx)(A.ts,{label:"Loading session replay"}),"error"===T.status&&(0,a.jsx)(A.Xi,{onRetry:()=>U(e=>e+1),children:T.message}),eu&&"available"!==eu.state&&(0,a.jsxs)("p",{className:"report-note",children:[R[eu.state],eu.reason?" ".concat(null!=(g=P[eu.reason])?g:eu.reason):""]}),(null==eu?void 0:eu.state)==="available"&&!eu.fragments.length&&(0,a.jsx)("p",{className:"report-note",children:R.missing}),(null==eu?void 0:eu.state)==="available"&&eu.fragments.length>0&&(0,a.jsxs)("div",{className:"session-replay-layout",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"session-replay-fragments",role:"group","aria-label":"Recorded fragments",children:eh.map(e=>(0,a.jsx)(D,{summary:e,multiFragment:eT,selected:e.id===F,onSelect:()=>{L(e.id),el(null)}},e.id))}),ee&&(0,a.jsxs)("div",{className:"session-replay-notice",children:[(0,a.jsx)(A.EN,{tone:"warning",children:ee}),(0,a.jsx)(M.m,{variant:"ghost",size:"sm",onClick:()=>et(null),children:"Dismiss"})]}),ep&&(0,a.jsx)(B,{fragment:ep}),(0,a.jsxs)("div",{className:"session-replay-context","aria-live":"polite",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Task "}),null!=e_?e_:"—"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Stage "}),null!=eS?eS:"—"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"File "}),(0,a.jsx)("code",{children:null!=(y=null==ew?void 0:ew.path)?y:"—"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Time "}),N(J)]})]}),"loading"===Y.status&&(0,a.jsx)(A.ts,{label:"Downloading fragment"}),"error"===Y.status&&(0,a.jsx)(A.Xi,{onRetry:()=>z(e=>e+1),children:Y.message}),"confirm"===Y.status&&ep&&(0,a.jsxs)("div",{className:"session-replay-notice",children:[(0,a.jsxs)(A.EN,{tone:"warning",children:["This fragment is large (",(k=ep.gzipBytes)>=1048576?"".concat((k/1024/1024).toFixed(1)," MiB"):"".concat(Math.ceil(k/1024)," KiB")," compressed) and may take a while to download."]}),(0,a.jsx)(M.m,{variant:"secondary",size:"sm",onClick:()=>G(ep.id),children:"Load anyway"})]}),(0,a.jsx)("div",{ref:ec,className:"session-replay-player",hidden:"ready"!==Y.status}),(0,a.jsx)("p",{className:"report-note session-replay-note",children:"Replay shows the candidate's IDE as recorded; preview panes and other tabs are not included."})]}),(0,a.jsxs)("aside",{className:"session-replay-side","aria-label":"Replay navigation",children:[(0,a.jsx)("h3",{children:"Files"}),(0,a.jsxs)("div",{className:"session-replay-files",children:[(0,a.jsx)("button",{type:"button",className:"session-replay-chip","aria-pressed":null===V,onClick:()=>Z(null),children:"All files"}),ey.map(e=>(0,a.jsx)("button",{type:"button",className:"session-replay-chip","aria-pressed":V===O(e),title:e.path,onClick:()=>Z(O(e)),children:e.path||"(unnamed)"},O(e)))]}),(0,a.jsx)("h3",{children:ek?"Events in ".concat(ek.path):"Events"}),eb&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"session-replay-files",role:"group","aria-label":"Event filter",children:[(0,a.jsx)("button",{type:"button",className:"session-replay-chip","aria-pressed":!H,onClick:()=>$(!1),children:"All events"}),(0,a.jsx)("button",{type:"button",className:"session-replay-chip","aria-pressed":H,onClick:()=>$(!0),children:"Candidate only"})]}),(0,a.jsx)("ul",{className:"session-replay-legend","aria-label":"Participant colors",children:r.a9.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)("span",{className:"session-replay-actor","data-role":e,children:i[e]})},e))})]}),(0,a.jsxs)("div",{className:"session-replay-events",children:[ex.map(e=>{var t;return(0,a.jsxs)("button",{type:"button",className:"session-replay-event","data-external":e.external,disabled:!e.seek,title:e.seek?void 0:"Outside recorded coverage",onClick:()=>e.seek&&em(e.seek.recordingId,e.seek.seconds,!1),children:[(0,a.jsxs)("time",{children:[null!=(t=e.time)?t:"—",eT&&null!==e.fragmentSeq?" #".concat(e.fragmentSeq+1):""]}),(0,a.jsxs)("span",{children:[e.actor&&(0,a.jsx)("span",{className:"session-replay-actor","data-role":e.actor.role,children:o(e.actor)}),e.actor?function(e,t){let n=o(t);return e.startsWith("".concat(n,": "))?e.slice(n.length+2):e.startsWith("".concat(n," "))?e.slice(n.length+1):e}(e.label,e.actor):e.label,!e.seek&&" — outside recorded coverage",e.path&&!ek&&!e.label.includes(e.path)&&(0,a.jsx)("code",{children:e.path})]})]},e.key)}),!ex.length&&(0,a.jsx)("p",{className:"report-note",style:{padding:10},children:ev.length?"No candidate events here.":"No events recorded."})]})]})]})]})}let O=e=>e.key;function D(e){let t,{summary:n,selected:s,multiFragment:r,onSelect:l}=e,i=null===n.gapBeforeMs?n.fragmentSeq>0?"no recording \xb7 unknown length":null:n.gapBeforeMs>
1=2e3?"no recording \xb7 ".concat(N(n.gapBeforeMs)):null;return(0,a.jsxs)(a.Fragment,{children:[i&&(0,a.jsxs)("span",{className:"session-replay-gap","aria-label":"Gap between fragments",children:["— ",i," —"]}),(0,a.jsxs)("button",{type:"button",className:"session-replay-fragment","aria-pressed":s,onClick:l,children:[r&&(0,a.jsxs)("strong",{children:["#",n.fragmentSeq+1]}),(0,a.jsx)("span",{children:(t=n.startedAt)?new Date(t).toLocaleString():"unknown start"}),(0,a.jsx)("span",{children:null===n.durationMs?"duration unknown":N(n.durationMs)}),(0,a.jsx)(A.EN,{tone:C[n.status],children:n.status})]})]})}function B(e){let{fragment:t}=e;if("complete"===t.status)return null;let n=["recording"===t.status?"upload still open or never finished":null,t.incompleteReason?"reason: ".concat(t.incompleteReason.replace(/_/g," ")):null,t.missingPacketSeqs.length?"missing packets: ".concat(t.missingPacketSeqs.join(", ")):null,null!==t.expectedLastPacketSeq?"".concat(t.packetCount," of ").concat(t.expectedLastPacketSeq+1," packets"):"".concat(t.packetCount," packets, end unknown")].filter(Boolean).join(" \xb7 ");return(0,a.jsx)("div",{className:"session-replay-notice",children:(0,a.jsxs)(A.EN,{tone:"warning",children:["Partial recording — ",n]})})}let U=q},89488:()=>{}}]);

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.