1import{u as f}from"./DCfU8UAB.js";import{T as p}from"./DDDRRzBQ.js";import{m as i,ai as o,aj as P}from"#entry";const _=s=>{const u=i(()=>{const t=o(s)||{};return JSON.stringify(t)}),c=i(()=>["threads",u.value]),e=f({queryKey:c,queryFn:async({pageParam:t})=>{const n=o(s)||{};if(typeof t!="number")throw new Error("pageParamãæ°å¤ãããªããï¼");const{firstLimit:r,nextLimit:a,limit:m,...h}=n,d={...h,offset:t,limit:t===0?r??m??10:a??5},l=p.parse(d);return await $fetch("/api/threads",{query:l})},initialPageParam:0,placeholderData:P,getNextPageParam:(t,n,r)=>{if(t.has_next===0)return;const a=t.threads?.length??0;if(a!==0)return r+a}});return{threads:i(()=>e.data.value?{has_next:e.data.value.pages[0]?.has_next??0,hit_count:e.data.value.pages[0]?.hit_count??0,threads:e.data.value.pages.flatMap(t=>t.threads??[])}:null),isLoading:e.isLoading,fetchNextPage:e.fetchNextPage,refetch:e.refetch,hasNextPage:e.hasNextPage}};export{_ as u};
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.