import{h as i,r,s as c}from"./index.2e2ba873.js";function m(t){return i.get("//api.bilibili.com/x/space/wbi/acc/info",{params:t,isWbi:!0}).then(r)}const h=t=>i.get("//api.bilibili.com/x/space/setting",{params:t,isWbi:!0}).then(r),v=t=>i.get("//api.bilibili.com/x/relation/stat",{params:t,isWbi:!0}).then(r),$=t=>i.get("//api.bilibili.com/x/space/upstat",{params:t,isWbi:!0}).then(r),d=t=>i.get("//api.bilibili.com/x/space/arc/search",{params:t,isWbi:!0}).then(r).then(s=>{var a,n,o;return{page:(a=s==null?void 0:s.page)!=null?a:{},list:(o=(n=s==null?void 0:s.list)==null?void 0:n.vlist.map(e=>{var p,u,l,g;return{...e,pubdate:e.created,author:{name:e.author,mid:e.mid},duration:e.typeid===197?(p=e.meta)==null?void 0:p.stat.vt:e.length,cover:e.pic,stats:e.typeid===197?{like:-1,danmaku:(u=e.meta)==null?void 0:u.stat.danmaku,view:(l=e.meta)==null?void 0:l.stat.view,vt:(g=e.meta)==null?void 0:g.stat.vt}:{like:-1,danmaku:e.video_review,view:e.play,vt:e.vt},enableVt:e.enable_vt,vtDisplay:e.vt_display}}))!=null?o:[]}}),_=(t,s,a)=>{const n=`${c.api}/x/space/seasons/series/list?mid=${t}&page_num=${s}&page_size=${a}`;return i.get(n,{isWbi:!0}).then(r)},x=({mid:t,season_id:s,reverse:a,pn:n,ps:o})=>{const e=`${c.api}/x/space/seasons/archives/list?mid=${t}&season_id=${s}&sort_reverse=${a}&page_num=${n}&page_size=${o}`;return i.get(e,{isWbi:!0}).then(r)},S=t=>{const s=`${c.api}/x/series/series?series_id=${t}`;return i.get(s,{isWbi:!0}).then(r)},W=({mid:t,series_id:s,sort:a,pn:n,ps:o})=>{const e=`${c.api}/x/series/archives?mid=${t}&series_id=${s}&only_normal=true&sort=${a}&pn=${n}&ps=${o}`;return i.get(e,{isWbi:!0}).then(r)};export{_ as a,m as b,h as c,v as d,$ as e,x as f,d as g,S as h,W as i};
