PageSourceSearch

https://marketplace.elgato.com/_next/static/chunks/5315-04e2f4668a407d88.js

js elgato.com collected 2026-10-01 08:41:15 UTC 18,360 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5315],{4770:(e,t,r)=>{r.d(t,{AR:()=>i,SQ:()=>o,TopBarSearchContextProvider:()=>u});var a=r(54568),l=r(27736),s=r(7620),n=r(88472);let o=e=>{let{query:t,enabled:r=!0}=e;return(0,l.useQuery)({queryKey:["search",t],queryFn:()=>(0,n.zh)(t),enabled:r})},c=(0,s.createContext)({showSearchBar:!0,setShowSearchBar:()=>{},showSearchDialog:!0,setShowSearchDialog:()=>{},showAISearchDialog:!1,setShowAISearchDialog:()=>{},searchInputRef:void 0,focusSearchInput:()=>{},isAISearchEnabled:!1}),i=()=>{let[e,t]=(0,s.useState)(!1),r=(0,s.useContext)(c);return(0,s.useEffect)(()=>{t(!0)},[]),{...r,isMounted:e}},u=e=>{let{showSearchBar:t=!1,isAISearchEnabled:r=!1,children:l}=e,[n,o]=(0,s.useState)(t),[i,u]=(0,s.useState)(!1),[d,h]=(0,s.useState)(!1),m=(0,s.useRef)(void 0),f=(0,s.useCallback)(()=>{if(u(!0),"undefined"!=typeof navigator&&/iPhone|iPad|iPod|Macintosh/i.test(navigator.userAgent)){let e=document.createElement("input");e.setAttribute("type","text"),e.style.position="absolute",e.style.opacity="0",e.style.height="0",e.readOnly=!0,document.body.prepend(e),e.focus(),setTimeout(()=>{var t;null==(t=m.current)||t.focus(),e.remove()},150)}else{var e;null==(e=m.current)||e.focus()}},[m]),p=(0,s.useMemo)(()=>({showSearchBar:n,setShowSearchBar:o,showSearchDialog:i,setShowSearchDialog:u,showAISearchDialog:d,setShowAISearchDialog:h,searchInputRef:m,focusSearchInput:f,isAISearchEnabled:r}),[n,o,i,u,d,h,m,f,r]);return(0,a.jsx)(c.Provider,{value:p,children:l})}},13641:(e,t,r)=>{r.d(t,{f:()=>c});var a=r(54568),l=r(30554),s=r(55810),n=r(8910),o=r(72902);let c=e=>{let{variant:t="default",username:r,handle:c,description:i,avatarUrl:u,bannerUrl:d,defaultAvatarColor:h,className:m,...f}=e,p="compact"===t;return(0,a.jsxs)("div",{className:(0,o.A)("flex max-w-full flex-col justify-center","overflow-hidden rounded-m border border-border",!p&&"gap-m",m),...f,children:[(0,a.jsxs)("div",{className:(0,o.A)("flex flex-col justify-center self-stretch",p?"p-m pb-none":"relative"),children:[!p&&(0,a.jsx)(l.$U,{className:"w-full",src:d,aspectRatio:"4:1",rounded:"none",alt:"profile banner of ".concat(r)}),(0,a.jsx)(s.Avatar,{className:(0,o.A)(!p&&"absolute -bottom-xl left-m"),image:u,size:"3xl",color:h,name:r,ariaLabel:"profile picture of ".concat(r)})]}),(0,a.jsxs)("div",{className:(0,o.A)("flex flex-col gap-xs self-stretch p-m",p&&"pt-xs"),children:[(0,a.jsxs)("div",{className:"flex flex-col self-stretch",children:[(0,a.jsx)(n.E,{variant:"heading",size:"xs",tag:"h4",children:r}),(0,a.jsxs)(n.E,{variant:"body",size:"s",color:"secondary",children:["@",c]})]}),i&&(0,a.jsx)(n.E,{variant:"body",size:"s",color:"secondary",children:i})]})]})}},27058:(e,t,r)=>{r.d(t,{aK:()=>Q,gl:()=>z,Wp:()=>D,t4:()=>M});var a=r(54568),l=r(73886),s=r(75536),n=r(8910),o=r(6518),c=r(87516),i=r(26424),u=r(75192),d=r(19526),h=r(21913),m=r(83982),f=r(7620),p=r(88847),x=r(75597),v=r(19664),g=r.n(v),y=r(15280),j=r(72902),w=r(27541),C=r(9156),S=r(88472),I=r(60919),k=r(95820),b=r(45048),N=r(13641),q=r(4770),A=r(64470),_=r(12195),T=r(92429),L=r(37845),E=r(79243),P=r(58379);let R=e=>{let{prefix:t=(0,a.jsx)(l.TextFieldInputIcon,{icon:y.IconSearch}),...r}=e;return(0,a.jsx)(l.TextFieldInput,{...r,prefix:t})},F=e=>{let{className:t,...r}=e;return(0,a.jsxs)("button",{type:"button",className:(0,j.A)((0,s.m)(),t),...r,children:[(0,a.jsx)(l.TextFieldInputAffix,{children:(0,a.jsx)(l.TextFieldInputIcon,{icon:y.IconSearch})}),(0,a.jsx)(l.TextFieldInputFieldWrapper,{className:"items-center",children:(0,a.jsx)(n.E,{tag:"span",color:"secondary",className:(0,s.e)(),children:"Search plugins, designs, and more"})})]})},B=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{...r,className:(0,j.A)("flex flex-col gap-xs",t)})},U=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{...r,className:(0,j.A)("grid grid-cols-2 gap-m",t)})},M=e=>{let{product:t,cardType:r,onClickCard:l,surface:s,queryId:n,position:o}=e;return(0,a.jsx)(b.M,{item:t,type:r||((0,_.tq)(t.extension)?"app":"default"),onClickCard:l,surface:s,queryId:n,position:o})},D=e=>{let{maker:t,...r}=e;return(0,a.jsx)(g(),{href:"/@".concat(t.slug),...r,children:(0,a.jsx)(N.f,{variant:"compact",username:t.name,handle:t.slug,avatarUrl:t.avatarUrl,defaultAvatarColor:t.defaultAvatarColor})})},z=e=>{var t,r;let{onClose:l,onEnterAIMode:s}=e,v=(0,w.useRouter)(),{data:F}=(0,k.wV)(),z=!!(null==F?void 0:F.user),{searchInputRef:Q,focusSearchInput:O}=(0,q.AR)(),{searchHistory:H,addToSearchHistory:K,clearSearchHistory:J}=(0,S.kX)(),W=(0,f.useRef)(null),V=(0,f.useRef)(null),[X,Z]=(0,f.useState)(),$=(0,C.d7)((null==X?void 0:X.query)||"",750),G=(0,S.T0)($,3),{isSuccess:Y,isLoading:ee,data:et}=(0,q.SQ)({query:$,enabled:G}),{amountToUSD:er}=(0,P.H2)(),ea=(0,f.useMemo)(()=>et?Object.values(et.products).flatMap(e=>e.slice(0,4)):[],[et]),el=(0,f.useMemo)(()=>{let e=new Map;return ea.forEach((t,r)=>
1{e.set(t.id,r+1)}),e},[ea]),es=(0,f.useRef)(null);(0,f.useEffect)(()=>{Y&&et&&es.current!==$&&0!==ea.length&&(es.current=$,(0,E.x_)({items:ea,listName:$,listId:"search_autocomplete",surface:"search_autocomplete",amountToUSD:er}))},[Y,et,$,er,ea]),(0,f.useEffect)(()=>{let e=e=>{W.current&&!e.composedPath().includes(W.current)&&l()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l]);let en=G&&(null!=(r=null==X||null==(t=X.query)?void 0:t.length)?r:0)<=I.JF,eo=e=>{e.length>0&&(l(),v.push(e[0]))},ec=(0,C.re)(e=>Promise.resolve(e),750),ei=(0,f.useMemo)(()=>(0,p.r)({onStateChange(e){let{state:t}=e;Z(t)},getSources:()=>ec([{sourceId:"products",getItemInputValue(e){let{item:t}=e;return t.query},getItems(e){let{query:t}=e;return(0,x.C)({searchClient:ep,queries:[{indexName:"products_query_suggestions",params:{query:t,hitsPerPage:4,highlightPreTag:"<mark>",highlightPostTag:"</mark>"}}]})},getItemUrl(e){let{item:t}=e;return t.url}}])}),[]),eu=()=>{(null==Q?void 0:Q.current)&&K(null==Q?void 0:Q.current.value)},ed=null==X?void 0:X.collections.flatMap(e=>{let{items:t}=e;return t.map(e=>e.query.toLowerCase())}).includes($.toLowerCase()),eh=(0,f.useMemo)(()=>{if(!et)return!1;if(et.makers.length>0)return!0;for(let e of Object.keys(et.products))if(et.products[e].length>0)return!0;return null!==et.top_results},[et]),em=(e,t)=>()=>{K(e),null==t||t()},ef=(0,T.Z)({data:et,limit:4});(0,f.useEffect)(()=>{setTimeout(()=>{var e;null==Q||null==(e=Q.current)||e.focus()},50)},[Q]);let ep=(0,f.useMemo)(()=>(0,A.w)("0UFSS8QOIR","540ba199e7843e8b22ddb23f113e9f74"),[]);return ep?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.DialogHeader,{children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-s",children:[(0,a.jsx)("form",{ref:V,className:"flex-1",action:"/search",onSubmit:eu,children:(0,a.jsx)(R,{...ei.getInputProps({inputElement:(null==Q?void 0:Q.current)?null==Q?void 0:Q.current:null}),placeholder:"Search plugins, designs, and more",className:"w-full",containerClassName:"w-full",name:"q",autoComplete:"off",ref:Q})}),z&&s&&(0,a.jsx)(u.Button,{variant:"standard",size:"m",iconStart:y.IconSearchAi,iconEnd:en?y.IconArrowRight:void 0,onClick:()=>{if(en){var e;K($),l(),v.push("/search/ai?q=".concat(encodeURIComponent(null!=(e=null==X?void 0:X.query)?e:"")))}else null==s||s()},children:"AI search"})]})}),(0,a.jsx)(i.DialogBody,{className:"flex-1 [&>div]:h-full",children:(0,a.jsxs)("div",{className:"flex h-full flex-col gap-m",children:[X&&X.query.length>0&&(0,a.jsxs)("div",{className:"-mx-xs",children:[(0,a.jsx)("div",{className:"aa-Autocomplete",...ei.getRootProps({}),children:(0,a.jsx)("div",{className:"aa-Panel",...ei.getPanelProps({}),children:X.collections.map(e=>{let{source:t,items:r}=e;return(0,a.jsx)("div",{className:"aa-Source",children:r.length>0&&(0,a.jsx)(d.ListBox,{className:"aa-List",selection:"single",...ei.getListProps(),onSelectionChange:eo,children:(0,a.jsx)(d.ListBoxSection,{children:r.map(e=>{let t=e.query.split("").reduce((t,r,a)=>X.query.charAt(a)===r&&e.query.startsWith("".concat(t).concat(r))?"".concat(t).concat(r):t,"");return(0,a.jsx)(d.ListBoxItem,{label:e.query,prefixEl:(0,a.jsx)(d.ListBoxItemIcon,{icon:y.IconSearch}),value:"/search?q=".concat(encodeURIComponent(e.query)),children:t},e.objectID)})})})},"source-".concat(t.sourceId))})})}),!ed&&(0,a.jsxs)(g(),{href:"/search?q=".concat(encodeURIComponent($)),onClick:()=>K($),className:(0,j.A)(h.y,"hover:bg-surface-hover"),children:[(0,a.jsx)(y.IconSearch,{className:"-mx-4xs"}),(0,a.jsx)(n.E,{className:"max-w-full flex-1 overflow-hidden text-ellipsis",children:X.query.toLowerCase()})]})]}),(null==X?void 0:X.query.length)===0&&H.length>0&&(0,a.jsx)(d.ListBox,{className:"-mx-xs",selection:"none",children:(0,a.jsxs)(d.ListBoxSection,{children:[(0,a.jsx)(d.ListBoxHeader,{suffix:(0,a.jsx)("button",{type:"button",onClick:()=>J(),children:(0,a.jsx)(n.E,{color:"secondary",tag:"span",size:"s",children:"Clear all"})}),children:"Recent searches"}),H.map(e=>(0,a.jsx)(d.ListBoxItem,{as:"a",label:e,href:"/search?q=".concat(encodeURIComponent(e)),value:e,prefixEl:(0,a.jsx)(d.ListBoxItemIcon,{icon:y.IconTimeDelay}),className:(0,j.A)(h.y,"hover:bg-surface-hover")},e))]})}),G&&ee&&(0,a.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,a.jsx)(m.a,{indeterminate:!0})}),ee?null:Y?eh?(0,a.jsxs)("div",{className:"flex flex-col gap-2xl",children:[ef.length>0&&(0,a.jsxs)(B,{children:[(0,a.jsx)(c.CarouselTitleLink,{condensed:!1,children:"Top results"}),(0,a.jsx)(U,{children:ef.map((e,t)=>"product"===e.kind?(0,a.jsx)(M,{product:e.item,cardType:"default",surface:"search_autocomplete",queryId:et.algolia_query_id,position:t+1,onClickCard:em($,l)},e.item.id):(0,a.jsx)(D,{maker:e.item,onClick:()=>l()},e.item.id))})]}),Object.entries(et.products||{}).map(e=>{let[t,r]=e;return(0,a.jsxs)(B,{children:[(0,a.jsx)(c.CarouselTitleLink,{href:"/search?q=".concat(encodeURIComponent($),"&extension=").concat(t.toLowerCase()),onClick:l,children:t.replaceAll("-"," ")}),(0,a.jsx)(U,{children:r.slice(0,4).map(e=>(0,a.jsx)(b.M,{item:e,type:(0,_.tq)(e.extension)?"app":"default",surface:"search_autocomplete",queryId:et.algolia_query_id,position:el.get(e.id),onClickCard:em($,l)},e.id))})]},t)}),Array.isArray(et.makers)&&et.makers.length>0&&(0,a.jsxs)(B,{children:[(0,a.jsx)(c.CarouselTitleLink,{href:"/search?q=".concat(encodeURIComponent($),"&extension=makers"),onClick:l,children:"Makers"}),(0,a.jsx)(U,{children:et.makers.slice(0,3).map(e=>(0,a.jsx)(g(),{href:"/@".concat(e.slug),onClick:()=>l(),children:(0,a.jsx)(N.f,{username:e.name,handle:e.slug,avatarUrl:e.avatarUrl,defaultAvatarColor:e.defaultAvatarColor})},e.id))})]})]}):(0,a.jsx)(L.w,{query:$,handleFocusSearch:O}):0===H.length?(0,a.jsx)(o.g,{className:"w-full flex-1 flex-col items-center justify-center",heading:"",description:"No search history"}):null]})}),Y&&eh&&(0,a.jsx)(i.DialogFooter,{children:(0,a.jsx)(u.Button,{className:"w-full",onClick:()=>{V.current&&(eu(),V.current.submit())},children:"Show all results"})})]}):null},Q=e=>{let{className:t}=e,{focusSearchInput:r}=(0,q.AR)();return(0,a.jsx)(F,{onClick:r,className:(0,j.A)(t,"w-full")})}},37834:(e,t,r)=>{r.d(t,{I:()=>l});var a=r(88167);let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,{matchesL:t,matchesM:r,matchesS:l}=(0,a.dv)(),s=1===e?"2/3":"auto";return t?{columns:e,columnWidth:s,touchSnapping:!0}:r?{columnWidth:s,columns:e>3?3:e,touchSnapping:!0}:l?{columnWidth:s,columns:e>2?2:e,touchSnapping:!1}:{columnWidth:"2/3",columns:1,touchSnapping:!1}}},37845:(e,t,r)=>{r.d(t,{w:()=>n});var a=r(54568),l=r(6518),s=r(15280);function n(e){let{query:t,handleFocusSearch:r}=e;return(0,a.jsx)("div",{className:"flex w-full grow flex-col items-center justify-center gap-s self-stretch",children:(0,a.jsx)(l.g,{className:"max-w-full",visualSlot:(0,a.jsx)(s.IconSearch,{className:"size-3xl text-content-secondary"}),heading:"Nothing was found for “".concat(t,"”"),secondaryButtonProps:{children:"Try another search",onClick:r}})})}},45048:(e,t,r)=>{r.d(t,{M:()=>m});var a=r(54568),l=r(50552),s=r(40387),n=r(63619),o=r(92691),c=r(94859),i=r(87660),u=r(79243),d=r(58379),h=r(94892);let m=e=>
1{let{item:t,type:r,onClickCard:m,aiSessionId:f,surface:p,queryId:x,position:v}=e,{lowestPrice:g}=(0,h.rn)(t,t),{amountToUSD:y}=(0,d.H2)(),j="/product/".concat(t.slug);return(0,a.jsx)(i.Ii,{value:{item:t,aiSessionId:f,surface:p},children:(0,a.jsx)(c.g,{href:j,label:t.name,onActivate:()=>{l.i.clickId({productId:t.id,queryId:x,position:v}),null==m||m(),(0,u.kF)({item:{...t,org_name:t.org_name},surface:p,amountToUSD:y})},openInNewTab:!0,children:"app"===r?(0,a.jsx)(o.A,{...(0,n.Uh)(t),linksTarget:"_blank",price:g}):(0,a.jsx)(s.A,{...(0,n.Uh)(t),linksTarget:"_blank",price:g})})})}},66484:(e,t,r)=>{r.d(t,{CK:()=>i,J5:()=>c,j$:()=>s,px:()=>n,t7:()=>l});let a={json:"application/json",text:"text/plain",html:"text/html",xml:"application/xml",form:"application/x-www-form-urlencoded",multipart:"multipart/form-data",octetStream:"application/octet-stream"};async function l(e,t){let r,l,s="".concat("/api/proxy").concat(e),n={credentials:"include",...t,headers:{"Content-Type":a.json,...null==t?void 0:t.headers}};try{r=await fetch(s,n)}catch(e){return{ok:!1,value:void 0,error:e}}try{switch(r.headers.get("content-type")){case a.json:l=await r.json();break;case a.text:case a.html:case a.xml:l=await r.text();break;case a.form:case a.multipart:l=await r.formData();break;case a.octetStream:l=await r.arrayBuffer();break;default:l=void 0}}catch(e){console.error(e)}return r.ok?{ok:!0,value:l||void 0,status:r.status}:{ok:!1,value:l||void 0,status:r.status}}class s extends Error{constructor(e,t,r){super(t),this.status=e,this.data=r,this.name="HttpError"}}async function n(e){let{url:t="",body:r,method:a="GET",contentType:l="application/json",credentials:n=!0,...o}=e,c={headers:{...!(r&&r instanceof FormData)&&l&&{"Content-Type":l}},...n&&{credentials:"include"},method:a,...r&&{body:r},...o};try{let e=await fetch(t,c);if(!e.ok){let t;try{t=await e.json()}catch(e){}throw new s(e.status,e.statusText,t)}if(204===e.status)return null;let r=await e.json();if(r.error_Ledger&&204!==r.error_Ledger.http_status_code)throw r;if(r.error_Profile&&204===r.error_Profile.http_status_code)return null;return r}catch(e){if(e instanceof s)throw e;throw console.error(e),Error(e.statusText)}}function o(e){return new Promise(t=>{setTimeout(t,e)})}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{retries:r=3,retryDelay:a=2e3,retryOn:l=[429,500,502,503,504],...n}=t;for(;;
1)try{let t=await fetch(e,n);if(!t.ok){if(r>0&&l.includes(t.status)){let s=a,i=t.headers.get("Retry-After");if(i){let e=parseInt(i,10);Number.isNaN(e)||(s=1e3*e)}return console.warn("Retrying ".concat(e," after ").concat(s,"ms due to status ").concat(t.status," (").concat(r-1," attempts left)...")),await o(s),await c(e,{...n,retries:r-1,retryDelay:2*a,retryOn:l})}throw new s(t.status,"HTTP error: ".concat(t.status," ").concat(t.statusText))}return await t.json()}catch(t){if(t instanceof s)throw t;if(console.error("Fetch failed with:",t),r>0)console.warn("Network error retrying ".concat(e," (").concat(r-1," attempts left)...")),await o(a),r-=1,a*=2;else throw Error("Failed to fetch ".concat(e," after multiple retries: ").concat(t instanceof Error?t.message:String(t)))}}function i(e,t,r,a){var l,s,n,o,c,i;if(401===e)return"Session expired. Please sign in again.";if(403===e)return"Permission denied.";if(404===e)return"Not found.";if(429===e)return"Too many requests. Please try again later.";if((null==a?void 0:a.fields)&&t){for(let[e,r]of Object.entries(a.fields))if(null!=t[e])return r}let{codes:u}=null!=a?a:{},d=null==t?void 0:t.detail,h=null==t||null==(l=t.non_field_errors)?void 0:l[0];return null!=(i=null!=(c=null!=(o=void 0!==h?null!=(s=null==u?void 0:u[h])?s:h:void 0)?o:void 0!==d?null!=(n=null==u?void 0:u[d])?n:d:void 0)?c:null==t?void 0:t.error)?i:r}},88472:(e,t,r)=>{r.d(t,{T0:()=>c,kX:()=>d,zh:()=>i});var a=r(4869),l=r(27736),s=r(81562),n=r(66484);let o=["eq","5e"],c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return o.some(t=>{var r;return t.toLowerCase()===(null==e||null==(r=e.toLowerCase())?void 0:r.trim())})?(null==e?void 0:e.trim().length)>=2:(null==e?void 0:e.trim().length)>=t},i=async e=>{let t="".concat("https://mp-gateway.elgato.com","/search?q=").concat(encodeURIComponent(e)),r=await (0,n.px)({url:t,credentials:!1});if(!r)throw Error();return r},u="searchHistory",d=()=>{let e=(0,a.useQueryClient)(),{data:t=[]}=(0,l.useQuery)({queryKey:[u],queryFn:()=>JSON.parse(localStorage.getItem(u)||"[]")}),{mutate:r}=(0,s.useMutation)({mutationFn:e=>{let r=t.includes(e.toLowerCase()),a=[e.toLowerCase(),...r?t.filter(t=>t!==e.toLowerCase()):t].filter(e=>e).slice(0,5);return localStorage.setItem(u,JSON.stringify(a)),Promise.resolve(a)},onSettled:()=>e.invalidateQueries({queryKey:[u]})}),{mutate:n}=(0,s.useMutation)({mutationFn:()=>(localStorage.removeItem(u),Promise.resolve()),onSettled:()=>e.invalidateQueries({queryKey:[u]})});return{searchHistory:t,addToSearchHistory:r,clearSearchHistory:n}}},92429:(e,t,r)=>{r.d(t,{Z:()=>l});var a=r(7620);let l=e=>{let{data:t,limit:r}=e;return(0,a.useMemo)(()=>{if(void 0===t||void 0===t.top_results||null===t.top_results)return[];let e=r?t.top_results.related.slice(0,r-1):t.top_results.related;return[t.top_results.primary,...e]},[t,r])}},94859:(e,t,r)=>{r.d(t,{g:()=>o});var a=r(54568),l=r(72902),s=r(19664),n=r.n(s);let o=e=>{let{href:t,label:r,onActivate:s,openInNewTab:o=!1,className:c,children:i}=e;return(0,a.jsxs)("div",{className:(0,l.A)("group relative",c),children:[i,(0,a.jsx)(n(),{href:t,"aria-label":r,prefetch:!1,onClick:s,...o&&{target:"_blank",rel:"noopener noreferrer"},className:"absolute inset-0 z-0 rounded-m focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"})]})}},95820:(e,t,r)=>{r.d(t,{Jv:()=>l,wV:()=>n});var a=r(27736);function l(e){let t=null!=e?e:window.location.pathname+window.location.search;try{let e=new URL(t);t=e.pathname+e.search+e.hash}catch(e){}t.startsWith("/")||(t="/"),window.location.href="/auth/login?callbackUrl=".concat(encodeURIComponent(t))}async function s(){let e=await fetch("/api/auth/session",{credentials:"include"});return e.ok?e.json():{user:null}}function n(){return(0,a.useQuery)({queryKey:["session"],queryFn:s,staleTime:6e4,retry:!1})}}}]);

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.