PageSourceSearch

https://codemuse.vercel.app/_next/static/chunks/308-1f357c566d53bf38.js

js codemuse.vercel.app collected 2026-10-03 05:17:54 UTC 19,408 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[308],{10735:(e,t,r)=>{r.d(t,{cn:()=>o});var a=r(11682),s=r(99037);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},12642:(e,t,r)=>{r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>n,aR:()=>i,wL:()=>u});var a=r(47943),s=r(38543),o=r(10735);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...s})});n.displayName="Card";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("text-2xl font-semibold leading-none tracking-tight",r),...s})});l.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},17032:(e,t,r)=>{r.d(t,{bq:()=>m,eb:()=>g,gC:()=>x,l6:()=>c,yv:()=>u});var a=r(47943),s=r(38543),o=r(95458),n=r(16331),i=r(64570),l=r(3023),d=r(10735);let c=o.bL;o.YJ;let u=o.WT,m=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.l9,{ref:t,className:(0,d.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,(0,a.jsx)(o.In,{asChild:!0,children:(0,a.jsx)(n.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=o.l9.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.PP,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})});f.displayName=o.PP.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.wn,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(n.A,{className:"h-4 w-4"})})});p.displayName=o.wn.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,position:n="popper",...i}=e;return(0,a.jsx)(o.ZL,{children:(0,a.jsxs)(o.UC,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,a.jsx)(f,{}),(0,a.jsx)(o.LM,{className:(0,d.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(p,{})]})})});x.displayName=o.UC.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.JU,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...s})}).displayName=o.JU.displayName;let g=s.forwardRef((e,t)=>{let{className:r,children:s,...n}=e;return(0,a.jsxs)(o.q7,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...n,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(o.VF,{children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})}),(0,a.jsx)(o.p4,{children:s})]})});g.displayName=o.q7.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=o.wv.displayName},18416:(e,t,r)=>{r.d(t,{$:()=>d});var a=r(47943),s=r(38543),o=r(48101),n=r(692),i=r(10735);let l=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:n,asChild:d=!1,...c}=e,u=d?o.DX:"button";return(0,a.jsx)(u,{className:(0,i.cn)(l({variant:s,size:n,className:r})),ref:t,...c})});d.displayName="Button"},33120:(e,t,r)=>{r.d(t,{$:()=>T});var a=r(47943),s=r(38543),o=r(77329),n=r(20213),i=r(98459),l=r(4110),d=r(33268);function c(){return(0,a.jsxs)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"flex flex-col items-center justify-center p-8 space-y-6",children:[(0,a.jsxs)(n.P.div,{className:"relative w-20 h-20 flex items-center justify-center",animate:{rotate:360},transition:{duration:10,repeat:Number.POSITIVE_INFINITY,ease:"linear"},children:[(0,a.jsx)(n.P.div,{className:"absolute inset-0 rounded-full bg-gradient-to-r from-neon-blue to-neon-purple opacity-20",animate:{scale:[1,1.2,1]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY}}),(0,a.jsx)(i.A,{className:"w-10 h-10 text-primary"}),[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,a.jsx)(n.P.div,{className:"absolute",initial:{x:0,y:0,opacity:0,rotate:360*Math.random()},animate:{x:60*Math.random()-30,y:60*Math.random()-30,opacity:[0,1,0],scale:[.5,1,.5]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY,delay:.4*t,repeatType:"loop"},children:(0,a.jsx)(l.A,{className:"w-4 h-4 text-neon-pink"})},t))]}),(0,a.jsxs)("div",{className:"space-y-2 text-center",children:[(0,a.jsxs)(n.P.div,{className:"flex items-center justify-center space-x-2",animate:{y:[0,-5,0]},transition:{duration:1.5,repeat:Number.POSITIVE_INFINITY},children:[(0,a.jsx)(d.A,{className:"w-5 h-5 text-neon-blue"}),(0,a.jsx)("h3",{className:"text-xl font-bold text-primary",children:"Thinking..."}),(0,a.jsx)(d.A,{className:"w-5 h-5 text-neon-pink"})]}),(0,a.jsx)(n.P.p,{className:"text-sm text-muted-foreground max-w-md",animate:{opacity:[.5,1,.5]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY},children:"Analyzing your request and generating the perfect solution"})]})]})}var u=r(5492),m=r(90859),f=r(18416),p=r(3023),x=r(91428),g=r(62285),h=r(13482),b=r(31236),v=r(17773),y=r(97959),N=r(59124),w=r(43464);r(89468);let j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Code Snippet",r=new w.uE({orientation:"portrait",unit:"mm",format:"a4"});r.setFont("helvetica","normal"),r.setFontSize(18),r.text(t,20,20),r.setFontSize(12),r.setTextColor(100,100,100),r.text("Generated by Code Muse - Your Intelligent Coding Companion",20,30);let a=new Date().toLocaleString();r.setFontSize(10),r.text("Generated on: ".concat(a),20,40),r.setDrawColor(200,200,200),r.line(20,45,190,45),r.setFontSize(10),r.setTextColor(0,0,0);let s=e.split("\n"),o=55;s.forEach(e=>{if(e.length>100){let t=[];for(let r=0;r<e.length;r+=100)t.push(e.substring(r,r+100));t.forEach(e=>{r.text(e,20,o),o+=5})}else r.text(e,20,o),o+=5;o>280&&(r.addPage(),o=20)}),r.save("".concat(t.toLowerCase().replace(/\s+/g,"-"),".pdf"))};function T(e){let{isLoading:t,output:r,language:i,title:l="Output",beforeContent:d,afterContent:w}=e,[T,S]=(0,s.useState)(!1),[E,C]=(0,s.useState)(d&&w?"before-after":"output"),{toast:I}=(0,y.dj)();return(0,a.jsx)(o.N,{mode:"wait",children:t?(0,a.jsx)(c,{},"thinking"):r&&(0,a.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"rounded-lg overflow-hidden border border-border/50 shadow-lg",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 bg-card/80 backdrop-blur-sm border-b border-border/50",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex gap-1.5",children:[(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),(0,a.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),(0,a.jsx)("span",{className:"text-sm font-medium text-foreground/80",children:l})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(f.$,{variant:"ghost",size:"icon",onClick:()=>{navigator.clipboard.writeText(r),S(!0),I({title:"Copied to clipboard",description:"The output has been copied to your clipboard."}),setTimeout(()=>S(!1),2e3)},className:"h-8 w-8",title:"Copy to clipboard",children:T?(0,a.jsx)(p.A,{className:"h-4 w-4"}):(0,a.jsx)(x.A,{className:"h-4 w-4"})}),(0,a.jsx)(f.$,{variant:"ghost",size:"icon",onClick:()=>{let e=new Blob(['<?xml version="1.0" encoding="UTF-8"?>\n<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office
1:1.0" \n                xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"\n                office:mimetype="application/vnd.oasis.opendocument.text">\n  <office:body>\n    <office:text>\n      <text:p>'.concat(l,"</text:p>\n      <text:p>").concat(r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"</text:p>\n    </office:text>\n  </office:body>\n</office:document>")],{type:"application/vnd.oasis.opendocument.text"}),t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download="".concat(l.toLowerCase().replace(/\s+/g,"-"),".odt"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(t),I({title:"Downloaded as ODF",description:"The output has been downloaded as an ODF document."})},className:"h-8 w-8",title:"Download as ODF",children:(0,a.jsx)(g.A,{className:"h-4 w-4"})}),(0,a.jsx)(f.$,{variant:"ghost",size:"icon",onClick:()=>{try{j(r,l),I({title:"Downloaded as PDF",description:"The output has been downloaded as a PDF document."})}catch(e){console.error("Error generating PDF:",e),I({title:"Error",description:"Failed to generate PDF. Please try again.",variant:"destructive"})}},className:"h-8 w-8",title:"Download as PDF",children:(0,a.jsx)(h.A,{className:"h-4 w-4"})})]})]}),d&&w?(0,a.jsxs)(N.tU,{defaultValue:E,onValueChange:e=>C(e),className:"w-full",children:[(0,a.jsx)("div",{className:"px-4 pt-2 bg-muted/30",children:(0,a.jsxs)(N.j7,{className:"grid w-full grid-cols-2",children:[(0,a.jsxs)(N.Xi,{value:"output",className:"text-xs",children:[(0,a.jsx)(b.A,{className:"mr-1 h-3 w-3"})," Code Output"]}),(0,a.jsxs)(N.Xi,{value:"before-after",className:"text-xs",children:[(0,a.jsx)(v.A,{className:"mr-1 h-3 w-3"})," Before/After"]})]})}),(0,a.jsx)(N.av,{value:"output",className:"mt-0",children:(0,a.jsx)(u.A,{language:i.toLowerCase(),style:m.A,customStyle:{margin:0,padding:"1.5rem",borderRadius:0},showLineNumbers:!0,children:r})}),(0,a.jsx)(N.av,{value:"before-after",className:"mt-0 p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-border/50",children:[(0,a.jsxs)("div",{className:"p-4 bg-red-500/10",children:[(0,a.jsxs)("div",{className:"mb-2 text-xs font-medium text-red-500 flex items-center",children:[(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-red-500 mr-1.5"}),"BEFORE"]}),(0,a.jsx)("div",{className:"text-sm font-mono whitespace-pre-wrap",children:d})]}),(0,a.jsxs)("div",{className:"p-4 bg-green-500/10",children:[(0,a.jsxs)("div",{className:"mb-2 text-xs font-medium text-green-500 flex items-center",children:[(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-green-500 mr-1.5"}),"AFTER"]}),(0,a.jsx)("div",{className:"text-sm font-mono whitespace-pre-wrap",children:w})]})]})})]}):(0,a.jsx)(u.A,{language:i.toLowerCase(),style:m.A,customStyle:{margin:0,padding:"1.5rem",borderRadius:0},showLineNumbers:!0,children:r})]},"output")})}},40804:(e,t,r)=>{r.d(t,{b:()=>a});async function a(e,t,r){console.log("generateCode called with:",{problem:e,language:t,framework:r});try{if(!e.trim())throw console.error("Empty problem description"),Error("Problem description is required");if(!t.trim())throw console.error("Empty language"),Error("Programming language is required");console.log("Sending request to /api/generate");let a=new AbortController,s=setTimeout(()=>a.abort(),3e4);try{let o;let n=await fetch("/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({problem:e,language:t,framework:r||"Core"}),signal:a.signal});if(clearTimeout(s),console.log("Response status:",n.status),!n.ok){console.error("HTTP error:",n.status);let e="Server responded with status: ".concat(n.status);try{let t=await n.text();if(t.trim().startsWith("{")||t.trim().startsWith("["))try{let r=JSON.parse(t);(null==r?void 0:r.error)&&(e=r.error)}catch(r){console.error("Failed to parse error JSON:",r),t.trim()&&(e=t)}else t.trim()&&(e=t)}catch(e){console.error("Failed to read response text:",e)}throw Error(e)}let i=await n.text();if(!i||""===i.trim())throw console.error("Empty response from server"),Error("Server returned an empty response");try{o=JSON.parse(i),console.log("Response parsed as JSON successfully")}catch(e){if(console.error("Failed to parse response as JSON:",e),i.trim())return console.log("Returning non-JSON response as code"),i;throw Error("Invalid response format from server")}if(o.error)throw console.error("Error in response:",o.error),Error(o.error);if(!o.code||"string"!=typeof o.code){if(console.error("Invalid response format:",o),"string"==typeof o&&o.trim())return o;throw Error("Invalid response format from code generation service")}return o.code}catch(e){if("AbortError"===e.name)throw Error("Request timed out. Please try again.");throw e}finally{clearTimeout(s)}}catch(e){if(console.error("Error in generateCode:",e),e instanceof Error)throw e;throw Error("Failed to generate code")}}},59124:(e,t,r)=>{r.d(t,{Xi:()=>d,av:()=>c,j7:()=>l,tU:()=>i});var a=r(47943),s=r(38543),o=r(68003),n=r(10735);let i=o.bL,l=s.forwardRef((e,t)=>
1{let{className:r,...s}=e;return(0,a.jsx)(o.B8,{ref:t,className:(0,n.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",r),...s})});l.displayName=o.B8.displayName;let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.l9,{ref:t,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",r),...s})});d.displayName=o.l9.displayName;let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.UC,{ref:t,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...s})});c.displayName=o.UC.displayName},73041:(e,t,r)=>{r.d(t,{E:()=>i});var a=r(47943),s=r(692),o=r(10735);let n=(0,s.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,o.cn)(n({variant:r}),t),...s})}},75067:(e,t,r)=>{r.d(t,{F:()=>i});var a=r(47943),s=r(38543),o=r(75433),n=r(10735);let i=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.bL,{ref:t,className:(0,n.cn)("relative overflow-hidden",r),...i,children:[(0,a.jsx)(o.LM,{className:"h-full w-full rounded-[inherit]",children:s}),(0,a.jsx)(l,{}),(0,a.jsx)(o.OK,{})]})});i.displayName=o.bL.displayName;let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="vertical",...i}=e;return(0,a.jsx)(o.VM,{ref:t,orientation:s,className:(0,n.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...i,children:(0,a.jsx)(o.lr,{className:"relative flex-1 rounded-full bg-border"})})});l.displayName=o.VM.displayName},82930:(e,t,r)=>{r.d(t,{T:()=>n});var a=r(47943),s=r(38543),o=r(10735);let n=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("textarea",{className:(0,o.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});n.displayName="Textarea"},97959:(e,t,r)=>{r.d(t,{dj:()=>m});var a=r(38543);let s=0,o=new Map,n=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?n(r):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=i(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=a.useState(d);return a.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}}}]);

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.