1import{h as u}from"./COK5vpkg.js";import{c as y,T as o,aF as b,c6 as $,a0 as d,c7 as q}from"./4q2j15kc.js";import{u as A}from"./CXKIPgJN.js";function C(n,a,f){const[e={},s]=typeof a=="string"?[{},a]:[a,f],t=y(()=>o(n)),c=y(()=>o(e.key)||"$f"+u([s,typeof t.value=="string"?t.value:"",...E(e)]));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:r,lazy:v,default:w,transform:F,pick:g,watch:i,immediate:m,getCachedData:D,deep:O,dedupe:_,timeout:j,...k}=e,h=b({...$,...k,cache:typeof e.cache=="boolean"?void 0:e.cache}),p={server:r,lazy:v,default:w,transform:F,pick:g,immediate:m,getCachedData:D,deep:O,dedupe:_,timeout:j,watch:i===!1?[]:[...i||[],h]};if(!m){let l=function(){p.immediate=!0};d(c,l,{flush:"sync",once:!0}),d([...i||[],h],l,{flush:"sync",once:!0})}return A(i===!1?c.value:c,(l,{signal:U})=>(e.$fetch||globalThis.$fetch)(t.value,{signal:U,...h}),p)}function E(n){var f;const a=[((f=o(n.method))==null?void 0:f.toUpperCase())||"GET",o(n.baseURL)];for(const e of[n.query||n.params]){const s=o(e);if(!s)continue;const t={};for(const[c,r]of Object.entries(s))t[o(c)]=o(r);a.push(t)}if(n.body){const e=o(n.body);if(!e)a.push(u(e));else if(e instanceof ArrayBuffer)a.push(u(Object.fromEntries([...new Uint8Array(e).entries()].map(([s,t])=>[s,t.toString()]))));else if(e instanceof FormData){const s={};for(const t of e.entries()){const[c,r]=t;s[c]=r instanceof File?r.name:r}a.push(u(s))}else if(q(e))a.push(u(b(e)));else try{a.push(u(e))}catch{console.warn("[useFetch] Failed to hash body",e)}}return a}export{C 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.