1import{D as F,U as n,V as O,E as U,W as $}from"./DIQ1dSc3.js";import{u as x}from"./Dgl7Syl4.js";function A(o,r,u){const[e={},c]=typeof r=="string"?[{},r]:[r,u],t=F(()=>n(o)),s=e.key||O([c,typeof t.value=="string"?t.value:"",...C(e)]);if(!s||typeof s!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+s);if(!o)throw new Error("[nuxt] [useFetch] request is missing.");const i=s===c?"$f"+s:s;if(!e.baseURL&&typeof t.value=="string"&&t.value[0]==="/"&&t.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:y,lazy:m,default:d,transform:b,pick:g,watch:f,immediate:w,getCachedData:v,deep:D,dedupe:_,...k}=e,h=U({...$,...k,cache:typeof e.cache=="boolean"?void 0:e.cache}),E={server:y,lazy:m,default:d,transform:b,pick:g,immediate:w,getCachedData:v,deep:D,dedupe:_,watch:f===!1?[]:[h,t,...f||[]]};let a;return x(i,()=>{var l;(l=a==null?void 0:a.abort)==null||l.call(a),a=typeof AbortController<"u"?new AbortController:{};const p=n(e.timeout);return p&&setTimeout(()=>a.abort(),p),(e.$fetch||globalThis.$fetch)(t.value,{signal:a.signal,...h})},E)}function C(o){var u;const r=[((u=n(o.method))==null?void 0:u.toUpperCase())||"GET",n(o.baseURL)];for(const e of[o.params||o.query]){const c=n(e);if(!c)continue;const t={};for(const[s,i]of Object.entries(c))t[n(s)]=n(i);r.push(t)}return r}export{A 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.