1var e=class extends Error{code;data;constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ApiError`}};async function t(t,n){let r=typeof FormData<`u`&&n?.body instanceof FormData,i=await fetch(t,{...n,headers:{...n?.body&&!r?{"Content-Type":`application/json`}:{},...n?.headers}}),a=await i.json().catch(()=>({code:-1,message:i.statusText||`Request failed`}));if(a.code!==0)throw new e(a.code??-1,a.message||`Request failed`,a.data);return a.data}var n=e=>t(e),r=(e,n)=>t(e,{method:`POST`,body:n==null?void 0:JSON.stringify(n)}),i=(e,n,r)=>t(e,{method:`POST`,headers:r,body:JSON.stringify(n)}),a=(e,n)=>t(e,{method:`POST`,body:n});async function o(t,n,r){let i=await fetch(t,{method:`PUT`,headers:{"Content-Type":r},body:n});if(!i.ok)throw new e(i.status,`Direct upload failed`)}var s=(e,n)=>t(e,{method:`PUT`,body:JSON.stringify(n)}),c=(e,n)=>t(e,{method:`PATCH`,body:JSON.stringify(n)}),l=e=>t(e,{method:`DELETE`}),u=(e,n)=>{let r=new FormData;return(Array.isArray(n)?n:[n]).forEach(e=>r.append(`files`,e)),t(e,{method:`POST`,body:r,headers:{}})};function d(e,t){let n=new URLSearchParams({page:String(t.page),pageSize:String(t.pageSize)});return t.search&&n.set(`search`,t.search),`${e}?${n}`}export{r as a,s as c,d,c as i,o as l,l as n,a as o,n as r,i as s,e as t,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.