PageSourceSearch

https://kedou.life/_nuxt/CVrc0i_4.js

js kedou.life collected 2026-10-03 19:46:42 UTC 4,877 bytes, 1 lines download raw bytes

1import{am as E,r as b,ab as U,an as B,ao as S,a9 as O,a8 as T,ap as q,aq as F,l as M,ar as $,f as j,as as p,at as z,y as K,au as L,av as x,T as H,G as k,aw as G,A as N}from"./Oiuv4CQU.js";const I=s=>s==="defer"||s===!1;function Q(...s){var _;const n=typeof s[s.length-1]=="string"?s.pop():void 0;typeof s[0]!="string"&&s.unshift(n);let[t,o,a={}]=s;if(typeof t!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof o!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const e=q(),l=o,m=()=>null,u=()=>e.isHydrating?e.payload.data[t]:e.static.data[t];a.server=a.server??!0,a.default=a.default??m,a.getCachedData=a.getCachedData??u,a.lazy=a.lazy??!1,a.immediate=a.immediate??!0,a.deep=a.deep??E.deep,a.dedupe=a.dedupe??"cancel";const d=()=>a.getCachedData(t,e)!=null;if(!e._asyncData[t]||!a.immediate){(_=e.payload._errors)[t]??(_[t]=null);const c=a.deep?b:U;e._asyncData[t]={data:c(a.getCachedData(t,e)??a.default()),pending:b(!d()),error:B(e.payload._errors,t),status:b("idle")}}const r={...e._asyncData[t]};r.refresh=r.execute=(c={})=>{if(e._asyncDataPromises[t]){if(I(c.dedupe??a.dedupe))return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}if((c._initial||e.isHydrating&&c._initial!==!1)&&d())return Promise.resolve(a.getCachedData(t,e));r.pending.value=!0,r.status.value="pending";const h=new Promise((i,f)=>{try{i(l(e))}catch(g){f(g)}}).then(async i=>{if(h.cancelled)return e._asyncDataPromises[t];let f=i;a.transform&&(f=await a.transform(i)),a.pick&&(f=J(f,a.pick)),e.payload.data[t]=f,r.data.value=f,r.error.value=null,r.status.value="success"}).catch(i=>{if(h.cancelled)return e._asyncDataPromises[t];r.error.value=F(i),r.data.value=M(a.default()),r.status.value="error"}).finally(()=>{h.cancelled||(r.pending.value=!1,delete e._asyncDataPromises[t])});return e._asyncDataPromises[t]=h,e._asyncDataPromises[t]},r.clear=()=>V(e,t);const D=()=>r.refresh({_initial:!0}),w=a.server!==!1&&e.payload.serverRendered;{const c=$();if(c&&!c._nuxtOnBeforeMountCbs){c._nuxtOnBeforeMountCbs=[];const i=c._nuxtOnBeforeMountCbs;c&&(S(()=>{i.forEach(f=>{f()}),i.splice(0,i.length)}),O(()=>i.splice(0,i.length)))}w&&e.isHydrating&&(r.error.value||d())?(r.pending.value=!1,r.status.value=r.error.value?"error":"success"):c&&(e.payload.serverRendered&&e.isHydrating||a.lazy)&&a.immediate?c._nuxtOnBeforeMountCbs.push(D):a.immediate&&D(),a.watch&&T(a.watch,()=>r.refresh());const h=e.hook("app:data:refresh",async i=>{(!i||i.includes(t))&&await r.refresh()});c&&O(h)}const v=Promise.resolve(e._asyncDataPromises[t]).then(()=>r);return Object.assign(v,r),v}function V(s,n){n in s.payload.data&&(s.payload.data[n]=void 0),n in s.payload._errors&&(s.payload._errors[n]=null),s._asyncData[n]&&(s._asyncData[n].data.value=void 0,s._asyncData[n].error.value=null,s._asyncData[n].pending.value=!1,s._asyncData[n].status.value="idle"),n in s._asyncDataPromises&&(s._asyncDataPromises[n].cancelled=!0,s._asyncDataPromises[n]=void 0)}function J(s,n){const t={};for(const o of n)t[o]=s[o];return t}function W(s,n,t){const[o={},a]=typeof n=="string"?[{},n]:[n,t],e=j(()=>p(s)),l=o.key||z([a,typeof e.value=="string"?e.value:"",...X(o)]);if(!l||typeof l!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+l);if(!s)throw new Error("[nuxt] [useFetch] request is missing.");const m=l===a?"$f"+l:l;if(!o.baseURL&&typeof e.value=="string"&&e.value[0]==="/"&&e.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:u,lazy:d,default:r,transform:D,pick:w,watch:v,immediate:_,getCachedData:c,deep:h,dedupe:i,...f}=o,g=K({...L,...f,cache:typeof o.cache=="boolean"?void 0:o.cache}),R={server:u,lazy:d,default:r,transform:D,pick:w,immediate:_,getCachedData:c,deep:h,dedupe:i,watch:v===!1?[]:[g,e,...v||[]]};let y;return Q(m,()=>{var P;(P=y==null?void 0:y.abort)==null||P.call(y),y=typeof AbortController<"u"?new AbortController:{};const C=p(o.timeout);return C&&setTimeout(()=>y.abort(),C),(o.$fetch||globalThis.$fetch)(e.value,{signal:y.signal,...g})},R)}function X(s){var t;const n=[((t=p(s.method))==null?void 0:t.toUpperCase())||"GET",p(s.baseURL)];for(const o of[s.params||s.query]){const a=p(o);if(!a)continue;const e={};for(const[l,m]of Object.entries(a))e[p(l)]=p(m);n.push(e)}return n}const ee=(s,n)=>{const t=x("token"),o=G(),a=H(),e=k(),m={baseURL:s.indexOf("/video-tool")!==-1?"":o.public.baseUrl,timeout:180*1e3,onRequest({options:u}){u.headers=u.headers||{},t.value&&(u.headers.Authorization="Bearer "+t.value),u.headers.KdSystem="Kedou"},onResponse({response:u}){if(+u.status==200&&+u._data.code!=200&&(N.error(u._data.message),u._data.code===403)){t.value="",a.initStore(
1);let d=window.location.pathname;d==="/"&&location.reload(),d==="/user"&&e.push("/")}},onResponseError({response:u}){}};return W(s,{...m,...n},"$SQlhB7w0w2")};export{ee 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.