PageSourceSearch

https://answersocrates.com/_next/static/chunks/3303-711690cdcf4377ea.js?dpl=dpl_BzHq8upZtpPsLoAuirACj8PvvMdC

js answersocrates.com collected 2026-09-24 18:08:52 UTC 22,337 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3303],{3697:(e,t,r)=>{let s;r.d(t,{TRPCErrorInterceptor:()=>y,TRPCReactProvider:()=>f,F:()=>p});var a=r(30955),n=r(54978),i=r(89118),c=r(31891),o=r(48219),l=r(15579),d=r(75913),u=r(5908),m=r(81665),h=r(13879),x=r(5345);r(78728);let p=(0,c.pY)();function f(e){let t=null!=s?s:s=new h.E({defaultOptions:{queries:{staleTime:3e4},dehydrate:{serializeData:l.Ay.serialize,shouldDehydrateQuery:e=>(0,x.XS)(e)||"pending"===e.state.status},hydrate:{deserializeData:l.Ay.deserialize}}}),[r]=(0,o.useState)(()=>p.createClient({links:[(0,i.$H)({enabled:e=>"down"===e.direction&&e.result instanceof Error}),(0,i.hf)({condition:e=>!0===e.context.stream,true:(0,i.kM)({transformer:l.Ay,url:"".concat(g(),"/api/trpc"),headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e},fetch:(e,t)=>fetch(e,{...t,credentials:"include"})}),false:(0,i.hf)({condition:e=>!0===e.context.skipBatch,true:(0,i.Lb)({transformer:l.Ay,url:g()+"/api/trpc",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e},fetch:(e,t)=>fetch(e,{...t,credentials:"include"})}),false:(0,i.fu)({transformer:l.Ay,url:g()+"/api/trpc",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e},fetch:(e,t)=>fetch(e,{...t,credentials:"include"})})})})]}));return(0,a.jsx)(n.Ht,{client:t,children:(0,a.jsx)(p.Provider,{client:r,queryClient:t,children:e.children})})}function g(){return window.location.origin}function y(e){let{children:t}=e,r=(0,d.useSetAtom)(m.lz),s=(0,n.jE)(),i=(0,u.wV)();return(0,o.useEffect)(()=>{if("loading"===i.status)return;let e=s.getMutationCache().subscribe(e=>{var t;("updated"!==e.type||"error"!==e.action.type?1:(null==(t=e.action.error.data)?void 0:t.code)!=="UNAUTHORIZED")?(e=>{var t;if("updated"!==e.type||"success"!==e.action.type)return!1;let r=e.mutation;if(!(null==r||null==(t=r.options)?void 0:t.mutationKey))return!1;let s="",a=r.options.mutationKey;if(Array.isArray(a)&&a.length>0){let e=a[0];Array.isArray(e)&&e.length>=2&&(s="".concat(e[0],".").concat(e[1]))}return!!s&&["semanticKeywords.search","deepSeekKeywords.search","lsiKeywords.search","longTailKeywords.generate","saasKeywords.generate","textSummarizer.summarize","aiContentDetector.detect","humanizeAiContent.humanize","aiRewriter.rewrite","paragraphExpander.expand","blogConclusionGenerator.generate","facebookPostGenerator.generate","llmBrandTracker.track","contentCalendarGenerator.generate","keywordExtractor.extract","entityExtractor.extract","seoTitleGenerator.generate","youtubeTitle.generate","tikTokTitle.generate"].includes(s)})(e)&&"unauthenticated"===i.status&&setTimeout(()=>{r(!0)},1e3):r(!0)});return()=>{e()}},[s,r,i.status]),(0,a.jsx)(a.Fragment,{children:t})}},21960:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(30955),a=r(70061),n=r(95659),i=r(37807),c=r(54135),o=r(68167),l=r(23675);let d=e=>{let{isOpen:t,onClose:r,context:d="general",subscriptionEndDate:u}=e,m=(0,n.c)("chrome.upgradeModal"),h=(0,i.Ym)();if(!t)return null;if("searchCreditsExhausted"===d){let e=((e,t)=>t?new Date(t).toLocaleDateString(e,{month:"long",day:"numeric",year:"numeric"}):null)(h,u);return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50",onClick:r}),(0,s.jsxs)("div",{className:"relative max-h-[85dvh] w-full max-w-md overflow-y-auto overscroll-contain rounded-xl border border-socrates-25 bg-socrates-600 p-6 shadow-xl",children:[(0,s.jsx)("button",{onClick:r,className:"absolute right-4 top-4 text-socrates-100 hover:text-socrates-0",children:(0,s.jsx)(a.A,{className:"h-6 w-6"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-6 flex items-center justify-center gap-2",children:(0,s.jsxs)("div",{className:"flex h-fit w-fit items-center gap-x-1 rounded-xl bg-[#FFD699] px-3 py-2 font-sans text-lg font-semibold text-[#ae3a0f]",children:[(0,s.jsx)(l.Gn_,{}),(0,s.jsx)("span",{children:"PRO"})]})}),(0,s.jsx)("h2",{className:"mb-4 font-serif text-3xl font-bold text-socrates-10",children:m("exh
1austed.heading")}),(0,s.jsx)("p",{className:"mb-4 text-socrates-0",children:m("exhausted.body")}),e?(0,s.jsxs)("div",{className:"mb-6 rounded-lg bg-socrates-650 p-4",children:[(0,s.jsx)("p",{className:"text-sm text-socrates-30",children:m("exhausted.resetOn")}),(0,s.jsx)("p",{className:"mt-1 text-lg font-semibold text-socrates-10",children:e})]}):(0,s.jsx)("p",{className:"mb-6 text-socrates-0",children:m("exhausted.waitBody")}),(0,s.jsx)("p",{className:"mb-6 text-sm text-socrates-30",children:m("exhausted.needMore")}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)(c.Ay,{href:"/pricing",className:"flex w-full items-center justify-center gap-x-3 rounded-lg bg-socrates-10 px-4 py-3 font-sans font-semibold text-socrates-650 transition-all duration-200 hover:bg-socrates-200",onClick:r,children:[(0,s.jsx)("span",{children:m("exhausted.viewOptions")}),(0,s.jsx)(o.L2n,{size:20,className:"font-bold"})]}),(0,s.jsx)("button",{onClick:r,className:"rounded-lg border border-socrates-25 px-6 py-3 font-semibold text-socrates-0 transition hover:bg-socrates-650",children:m("exhausted.waitButton")})]})]})]})]})}return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50",onClick:r}),(0,s.jsxs)("div",{className:"relative max-h-[85dvh] w-full max-w-md overflow-y-auto overscroll-contain rounded-xl border border-socrates-25 bg-socrates-600 p-5 shadow-xl sm:p-6",children:[(0,s.jsx)("button",{onClick:r,className:"absolute right-4 top-4 text-neutral-200 hover:text-white",children:(0,s.jsx)(a.A,{className:"h-6 w-6"})}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"mb-4 flex items-center justify-center gap-2 sm:mb-6",children:(0,s.jsxs)("div",{className:"flex h-fit w-fit items-center gap-x-1 rounded-xl bg-[#FFE3A3] px-3 py-2 font-sans text-lg font-semibold text-[#ae3a0f]",children:[(0,s.jsx)(l.Gn_,{}),(0,s.jsx)("span",{children:"PRO"})]})}),(0,s.jsx)("h2",{className:"mb-3 font-serif text-2xl font-bold text-white sm:mb-4 sm:text-3xl",children:m("".concat(d,".heading"))}),(0,s.jsx)("p",{className:"mb-4 text-white sm:mb-6",children:m("".concat(d,".body"))}),(0,s.jsx)("div",{className:"mb-4 flex flex-col items-center sm:mb-6",children:(0,s.jsxs)("h2",{className:"text-3xl font-bold text-white sm:text-4xl",children:["$29",(0,s.jsx)("span",{className:"ml-1 text-xl font-normal",children:m("perMonth")})]})}),(0,s.jsxs)("div",{className:"mb-4 rounded-lg bg-socrates-650 p-4 sm:mb-6",children:[(0,s.jsx)("h3",{className:"mb-3 font-semibold text-white",children:m("benefitsTitle")}),(0,s.jsx)("ul",{className:"space-y-2 text-sm text-white",children:["csv","searches","recursive","clusters","llm","metrics"].map(e=>(0,s.jsxs)("li",{className:"flex items-start",children:[(0,s.jsx)("span",{className:"mr-2 text-[#2BBC2E]",children:"✓"}),(0,s.jsx)("span",{children:m("benefits.".concat(e))})]},e))})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)(c.Ay,{href:"/pricing",className:"flex w-full items-center justify-center gap-x-3 rounded-lg bg-socrates-10 px-4 py-3 font-sans font-semibold text-socrates-650 transition-all duration-200 hover:bg-socrates-200",onClick:r,children:[(0,s.jsx)("span",{children:m("viewPlans")}),(0,s.jsx)(o.L2n,{size:20,className:"font-bold"})]}),(0,s.jsx)("button",{onClick:r,className:"rounded-lg border border-socrates-25 px-6 py-3 font-semibold text-white transition hover:bg-socrates-650",children:m("maybeLater")})]})]})]})]})}},32888:(e,t,r)=>{r.d(t,{o:()=>n});var s=r(95727),a=r(3697);let n=()=>{let e=a.F.userLimits.checkCsvDownloadLimit.useMutation(),t=a.F.useUtils();return{downloadWithLimitCheck:async(r,a)=>{try{await e.mutateAsync(),r(),t.userLimits.getUsedLimits.invalidate(),s.oR.success("CSV downloaded successfully!")}catch(t){let e=t instanceof Error?t.message:"Failed to download CSV";"UPGRADE_REQUIRED"===e?a?a():s.oR.error("You've used your free CSV download for this month. Upgrade for unlimited downloads."):s.oR.error(e)}},isChecking:e.isPending}}},38318:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(30955),a=r(72689);function n(){return(0,s.jsx)(a.default,{id:"software-application-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"SoftwareApplication","@id":"https://answersocrates.com/#softw
1areapplication",name:"Answer Socrates",description:"Answer Socrates is a web‑based keyword research and clustering platform that helps marketers discover fresh content ideas, analyse search intent, and organise keywords into actionable clusters.",applicationCategory:"SEOApplication",applicationSubCategory:"KeywordResearch",operatingSystem:"Web",softwareVersion:"2.1.0",datePublished:"2023-04-15",featureList:["SEO keyword research","Unlimited keyword discovery","Keyword clustering","Automatic topical clustering","Unlimited CSV exports of keywords","Keyword search volume and competition metrics","Free daily searches"],offers:[{"@type":"Offer",name:"Free Plan",price:"0",priceCurrency:"USD",description:"3 keyword searches per day, basic clustering",isAccessibleForFree:"True",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Socrates Lite",price:"15",priceCurrency:"USD",priceSpecification:{"@type":"UnitPriceSpecification",price:"15",priceCurrency:"USD",billingDuration:"P1M",unitText:"per month"},description:"100 keyword searches • 30 recursive searches • 3 000 cluster credits per month",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Seneca",price:"29",priceCurrency:"USD",priceSpecification:{"@type":"UnitPriceSpecification",price:"29",priceCurrency:"USD",billingDuration:"P1M",unitText:"per month"},description:"500 keyword searches • 100 recursive searches • 12 000 cluster credits per month",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Aurelius",price:"49",priceCurrency:"USD",priceSpecification:{"@type":"UnitPriceSpecification",price:"49",priceCurrency:"USD",billingDuration:"P1M",unitText:"per month"},description:"Unlimited keyword searches • 500 recursive searches • 40 000 cluster credits per month",availability:"https://schema.org/InStock"}
1],hasOfferCatalog:{"@id":"https://answersocrates.com/#pricing"},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",ratingCount:"137"},publisher:{"@id":"https://answersocrates.com/#organization"},provider:{"@id":"https://answersocrates.com/#organization"}})}})}},54135:(e,t,r)=>{r.d(t,{Ay:()=>d,gB:()=>m,uW:()=>u});var s=r(30955),a=r(38523),n=r.n(a),i=r(38940),c=r(37807),o=r(48219),l=r(27157);function d(e){let{href:t,...r}=e,a=(0,c.Ym)();return(0,s.jsx)(n(),{href:(0,l.lF)(t,a),...r})}function u(){let e=(0,c.Ym)();return(0,o.useCallback)(t=>(0,l.lF)(t,e),[e])}function m(){let e=(0,i.useRouter)(),t=u(),r=(0,o.useCallback)(function(r){for(var s=arguments.length,a=Array(s>1?s-1:0),n=1;n<s;n++)a[n-1]=arguments[n];return e.push(t(r),...a)},[e,t]),s=(0,o.useCallback)(function(r){for(var s=arguments.length,a=Array(s>1?s-1:0),n=1;n<s;n++)a[n-1]=arguments[n];return e.replace(t(r),...a)},[e,t]);return{...e,push:r,replace:s}}},81665:(e,t,r)=>{r.d(t,{lz:()=>n,pw:()=>i});var s=r(28061);let a=(0,s.eU)(!1),n=(0,s.eU)(null,(e,t,r)=>{t(a,r)}),i=(0,s.eU)(e=>e(a))},95978:(e,t,r)=>{r.d(t,{v:()=>g});var s=r(30955),a=r(48219),n=r(21960),i=r(78701),c=r(35434),o=r(60760),l=r(54881),d=r(73115),u=r(70067),m=r(51591),h=r(95659),x=r(32888),p=r(86396);let f=e=>((e=e.replace(/"/g,'""')).search(/("|,|\n)/g)>=0&&(e='"'+e+'"'),e),g=e=>{let{searchTerm:t,paaData:r,richPaaData:g,isCompact:y=!1,geo:b,lang:w}=e,v=(0,h.c)("paaExtractor.results"),j=(0,a.useRef)(null),N=(0,a.useRef)(null),k=(0,a.useRef)(null),{downloadWithLimitCheck:A,isChecking:C}=(0,x.o)(),[S,O]=(0,a.useState)(!1),[E,U]=(0,a.useState)(null),[R,L]=(0,a.useState)(1),[z,F]=(0,a.useState)(!1),P=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!j.current||!N.current||0===r.length)return;let e={id:"root",name:t,type:"main-topic",children:r.slice(0,4).map((e,t)=>{let r=(e.children||[]).slice(0,16).map((e,r)=>({id:"c-".concat(t,"-").concat(r),name:e.question,type:"child-question",paaItem:e}));return{id:"m-".concat(t),name:e.question,type:"main-question",paaItem:e,children:r}})},s=j.current,a=m.Ltv(N.current);a.selectAll("*").remove();let n=s.clientWidth,i=s.clientHeight;a.attr("width",n).attr("height",i).attr("viewBox","0 0 ".concat(n," ").concat(i)).style("cursor","grab");let c=a.append("g"),o=m.B22().size([i,n-400])(m.Sk5(e)),l=m.s_O().scaleExtent([.2,3]).on("zoom",e=>{c.attr("transform",e.transform),L(e.transform.k)}).on("start",()=>a.style("cursor","grabbing")).on("end",()=>a.style("cursor","grab"));k.current=l,a.call(l),c.selectAll(".link").data(o.links()).enter().append("path").attr("class","link").attr("d",m.pqs().x(e=>e.y).y(e=>e.x)).style("fill","none").style("stroke","#9CA3AF").style("stroke-width",1.5).style("stroke-solid","5,5").style("opacity",.7);let d=c.selectAll(".node").data(o.descendants()).enter().append("g").attr("class","node").attr("transform",e=>"translate(".concat(e.y,",").concat(e.x,")")).style("cursor","pointer");d.append("circle").attr("r",e=>"main-topic"===e.data.type?8:"main-question"===e.data.type?6:4).style("fill",e=>"main-topic"===e.data.type?"#1E40AF":"main-question"===e.data.type?"#3B82F6":"#60A5FA").style("stroke","#ffffff").style("stroke-width",2),d.append("text").attr("dy","0.31em").attr("x",e=>e.children?-12:12).style("text-anchor",e=>e.children?"end":"start").style("font-family","Inter, system-ui, -apple-system, sans-serif").style("font-size",e=>"main-topic"===e.data.type?"18px":"main-question"===e.data.type?"16px":"14px").style("font-weight",e=>"main-topic"===e.data.type?"700":"main-question"===e.data.type?"600":"400").style("fill","#1f2937").text(e=>e.data.name),d.on("click",(e,t)=>{if(e.stopPropagation(),"main-topic"===t.data.type)return;let r=t.data.name;if(r){let e=new URL("/paa-extractor",window.location.origin);e.searchParams.set("search",r),b&&e.searchParams.set("geo",b),w&&e.searchParams.set("lang",w),window.open(e.toString(),"_blank")}}),d.on("mouseover",(e,t)=>{if("main-topic"===t.data.type)return;let r=t.data.paaItem;if(r){let a=r.answer||"";if(!a&&r.aiOverview){var s;r.aiOverview.description?a=r.aiOverview.description:r.aiOverview.items&&r.aiOverview.items.length>0&&(null==(s=r.aiOverview.items[0])?void 0:s.text)&&(a=r.aiOverview.items[0].text)}if(a.trim()){let r=a.length>200?a.substring(0,200)+"...":a;U({x:e.pageX,y:e.pageY,content:"".concat(t.data.name,"\n\n").concat(r)})}}}).on("mouseout",()=>{U(null)});
1let u=c.node().getBBox(),h=u.width,x=u.height,p=u.x+h/2,f=u.y+x/2;if(0===h||0===x)return;let g=Math.min(1,.9/Math.max(h/n,x/i)),y=n/2-g*p,v=i/2-g*f,A=m.GSI.translate(y,v).scale(g);a.call(l.transform,A),L(g)},[r,t]),(0,a.useEffect)(()=>{let e=e=>{P.current&&!P.current.contains(e.target)&&F(!1)};return z&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[z]);let D=()=>{if(!r||0===r.length)return void alert(v("noDataAlert"));let e=(e=>{let t="\uFEFFQuestion,Answer,URL\r\n",r=e=>{if(!e.question)return;let s=e.answer||"";if(!s&&e.aiOverview){var a;e.aiOverview.description?s=e.aiOverview.description:e.aiOverview.items&&e.aiOverview.items.length>0&&(null==(a=e.aiOverview.items[0])?void 0:a.text)&&(s=e.aiOverview.items[0].text)}let n=e.url||"";if(!n&&e.aiOverview&&Array.isArray(e.aiOverview.references)&&e.aiOverview.references.length>0){let t=e.aiOverview.references[0];t&&t.url&&(n=t.url)}t+=[f(e.question||""),f(s),f(n)].join(",")+"\r\n",e.children&&e.children.length>0&&e.children.forEach(e=>{r(e)})};return e.filter(e=>e&&e.question).forEach(e=>{r(e)}),t})(g.length>
10?g:r),s="data:text/csv;charset=utf-8,".concat(encodeURIComponent(e)),a=document.createElement("a");a.setAttribute("href",s),a.setAttribute("download","PAA-Extractor-".concat((0,p.A)(t),"-").concat(new Date().toISOString().slice(0,10),".csv")),document.body.appendChild(a),a.click(),document.body.removeChild(a)},B=async()=>{if(N.current)try{let e=N.current,r=e.querySelector("g");if(!r)return;let s=r.getBBox(),a=s.width+40,n=s.height+40,i=e.cloneNode(!0);i.querySelector("g").setAttribute("transform","translate(".concat(-s.x+20,", ").concat(-s.y+20,")")),i.setAttribute("width","".concat(a)),i.setAttribute("height","".concat(n)),i.setAttribute("viewBox","0 0 ".concat(a," ").concat(n)),i.style.backgroundColor="white";let c=new XMLSerializer().serializeToString(i),o=document.createElement("canvas"),l=o.getContext("2d");if(!l)throw Error("Could not get canvas context");o.width=2*a,o.height=2*n;let d=new Image,u=new Blob([c],{type:"image/svg+xml;charset=utf-8"}),m=URL.createObjectURL(u);d.onload=()=>{l.scale(2,2),l.fillStyle="white",l.fillRect(0,0,a,n),l.drawImage(d,0,0),o.toBlob(e=>{if(e){let r=document.createElement("a");r.download="paa-tree-".concat((0,p.A)(t),".png"),r.href=URL.createObjectURL(e),r.click(),setTimeout(()=>{URL.revokeObjectURL(r.href),URL.revokeObjectURL(m)},100)}},"image/png")},d.onerror=e=>{console.error("Image loading error:",e),URL.revokeObjectURL(m)},d.src=m}catch(e){console.error("PNG export error:",e),alert(v("pngErrorAlert"))}};return(0,s.jsxs)("div",{className:"rounded-lg border border-socrates-600 bg-socrates-650 p-6 ".concat(y?"max-w-6xl mx-auto":""),children:[(0,s.jsx)(n.A,{isOpen:S,onClose:()=>O(!1)}),(0,s.jsxs)("div",{className:"mb-6 text-center",children:[(0,s.jsx)("h3",{className:"mb-2 text-xl font-semibold text-white font-inter",children:v("title",{term:t})}),(0,s.jsx)("p",{className:"text-sm text-white font-inter",children:v("hint")}),(0,s.jsxs)("div",{className:"mt-3 flex justify-center gap-6 text-xs",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-3 w-3 rounded-full",style:{backgroundColor:"#1E40AF"}}),(0,s.jsx)("span",{className:"text-white font-inter",children:v("legendMainTopic")})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-3 w-3 rounded-full",style:{backgroundColor:"#3B82F6"}}),(0,s.jsx)("span",{className:"text-white font-inter",children:v("legendMainQuestions")})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-3 w-3 rounded-full",style:{backgroundColor:"#60A5FA"}}),(0,s.jsx)("span",{className:"text-white font-inter",children:v("legendChildQuestions")})]})]}),0===r.length?(0,s.jsx)("p",{className:"mt-2 text-sm text-white font-inter",children:v("noneFound")}):(0,s.jsx)("p",{className:"mt-2 text-sm text-white font-inter",children:v("found",{main:r.length,child:r.reduce((e,t)=>{var r;return e+((null==(r=t.children)?void 0:r.length)||0)},0)})})]}),(0,s.jsxs)("div",{className:"mb-4 flex items-center justify-between rounded-lg border border-socrates-600 bg-socrates-650 px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-white font-inter",children:v("zoom")}),(0,s.jsx)("button",{onClick:()=>{N.current&&k.current&&m.Ltv(N.current).transition().duration(300).call(k.
1current.scaleBy,1/1.3)},className:"rounded-md p-2 transition-colors hover:bg-socrates-600",title:v("zoomOut"),children:(0,s.jsx)(i.A,{className:"h-4 w-4 text-white"})}),(0,s.jsx)("button",{onClick:()=>{if(N.current&&k.current){let e=m.Ltv(N.current),t=e.select("g");if(t.node()){let r=t.node().getBBox(),s=e.node().clientWidth,a=e.node().clientHeight,n=r.width,i=r.height;if(0===n||0===i)return;let c=Math.min(1,.9/Math.max(n/s,i/a)),o=r.x+n/2,l=r.y+i/2,d=s/2-c*o,u=a/2-c*l,h=m.GSI.translate(d,u).scale(c);e.transition().duration(750).call(k.current.transform,h),L(c)}}},className:"rounded-md p-2 transition-colors hover:bg-socrates-600",title:v("resetView"),children:(0,s.jsx)(c.A,{className:"h-4 w-4 text-white"})}),(0,s.jsx)("button",{onClick:()=>{N.current&&k.current&&m.Ltv(N.current).transition().duration(300).call(k.current.scaleBy,1.3)},className:"rounded-md p-2 transition-colors hover:bg-socrates-600",title:v("zoomIn"),children:(0,s.jsx)(o.A,{className:"h-4 w-4 text-white"})}),(0,s.jsxs)("div",{className:"relative",ref:P,children:[(0,s.jsxs)("button",{onClick:()=>F(!z),className:"flex items-center gap-1 rounded-md border border-socrates-500 bg-socrates-600 px-3 py-2 text-sm text-white transition-colors hover:bg-socrates-500 font-inter",children:[(0,s.jsxs)("span",{className:"font-inter",children:[Math.round(100*R),"%"]}),(0,s.jsx)(l.A,{className:"h-3 w-3"})]}),z&&(0,s.jsx)("div",{className:"absolute left-0 top-full z-50 mt-1 w-24 rounded-md border border-socrates-500 bg-socrates-700 shadow-lg",children:[25,50,75,100,125,150,200,300].map(e=>(0,s.jsxs)("button",{onClick:()=>{(e=>{if(N.current&&k.current){let t=m.Ltv(N.current),r=m._V(N.current),s=m.GSI.translate(r.x,r.y).scale(e);
1t.transition().duration(300).call(k.current.transform,s),L(e)}})(e/100),F(!1)},className:"w-full px-3 py-2 text-left text-sm text-white transition-colors hover:bg-socrates-600 font-inter ".concat(Math.round(100*R)===e?"bg-socrates-500":""),children:[e,"%"]},e))})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("button",{onClick:B,className:"flex items-center gap-2 rounded-md bg-socrates-500 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-socrates-600 font-inter",children:[(0,s.jsx)(d.A,{className:"h-4 w-4"}),v("png")]}),(0,s.jsxs)("button",{onClick:()=>{A(D,()=>{O(!0)})},disabled:C||!r||0===r.length,className:"flex items-center gap-2 rounded-md bg-socrates-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-socrates-700 disabled:cursor-not-allowed disabled:opacity-50 font-inter",children:[(0,s.jsx)(u.A,{className:"h-4 w-4"}),C?v("downloading"):v("csv")]})]})]}),(0,s.jsx)("div",{ref:j,className:"h-[960px] w-full overflow-hidden rounded-lg border border-socrates-600 bg-white",style:{userSelect:"none"},children:(0,s.jsx)("svg",{ref:N,className:"h-full w-full"})}),E&&(0,s.jsx)("div",{className:"pointer-events-none fixed z-50 rounded-lg bg-black/80 px-4 py-2 text-sm text-white shadow-lg backdrop-blur-sm font-inter",style:{left:E.x+15,top:E.y+15,maxWidth:"300px",whiteSpace:"pre-line"},children:E.content})]})}}}]);

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.