PageSourceSearch

https://www.gooood.cn/_nuxt/CRV9j9ux.js

js gooood.cn collected 2026-10-02 06:05:05 UTC 1,826 bytes, 1 lines download raw bytes

1import{a0 as m,Y as y,G as p,ac as g,D as w}from"./C3HS6IGA.js";import{u as k}from"./BYH_qx4e.js";function $(){const a="auth_token=";return document.cookie.split(";").map(e=>e.trim()).filter(e=>e.startsWith(a)).map(e=>{const o=e.slice(a.length);try{return decodeURIComponent(o)}catch{return o}}).filter(Boolean).at(-1)||""}class l extends Error{data;status;constructor(n,e,o){super(n),this.name="GoooodApiError",this.data=e,this.status=o}}function x(){const a=y();k();const n=String(a.public.goooodApiBase||"https://dashboard.gooood.cn/wp-json").replace(/\/$/,""),e=m("auth_token");function o(s){const t={},i=s.token||$()||e.value;return s.auth!==!1&&i&&(t.Authorization=`Bearer ${i}`),t}async function c(s,t={}){const i=s.startsWith("/")?s:`/${s}`,f=o(t);try{return await $fetch(`${n}${i}`,{method:t.method||"GET",body:t.body,query:t.query,headers:f,credentials:t.credentials})}catch(u){const r=u?.data,h=r?.msg||r?.message||u?.message||"Request failed";throw new l(h,r,u?.statusCode||r?.status)}}async function d(s,t={}){const i=s.startsWith("/")?s:`/${s}`,f=o(t);try{return await $fetch.raw(`${n}${i}`,{method:t.method||"GET",body:t.body,query:t.query,headers:f,credentials:t.credentials})}catch(u){const r=u?.data,h=r?.msg||r?.message||u?.message||"Request failed";throw new l(h,r,u?.statusCode||r?.status)}}return{request:c,requestRaw:d}}const b="$s";function A(...a){const n=typeof a[a.length-1]=="string"?a.pop():void 0;typeof a[0]!="string"&&a.unshift(n);const[e,o]=a;if(!e||typeof e!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+e);if(o!==void 0&&typeof o!="function")throw new Error("[nuxt] [useState] init must be a function: "+o);const c=b+e,d=p(),s=g(d.payload.state,c);if(s.value===void 0&&o){const t=o();if(w(t))return d.payload.state[c]=t,t;s.value=t}return s}export{x as a,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.