// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.3.7 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL https://github.com/magicdawn/bilibili-app-recommend // @supportURL https://github.com/magicdawn/bilibili-app-recommend/issues // @match https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png // @match *://www.bilibili.com/ // @require https://unpkg.com/jquery@3.6.0/dist/jquery.min.js // @require https://unpkg.com/axios@0.27.2/dist/axios.min.js // @require https://unpkg.com/axios-userscript-adapter@0.2.0/dist/axiosGmxhrAdapter.min.js // @require https://unpkg.com/react@18.1.0/umd/react.production.min.js // @require https://unpkg.com/react-dom@18.1.0/umd/react-dom.production.min.js // @connect app.bilibili.com // @connect passport.bilibili.com // @connect link.acg.tv // @connect www.mcbbs.net // @grant GM.xmlHttpRequest // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant unsafeWindow // @downloadURL none // ==/UserScript== ;(({ cssTextList = [] }) => { cssTextList.forEach((s) => { const style = document.createElement("style"); style.innerText = s; style.dataset.source = "vite-plugin-monkey"; document.head.appendChild(style); }); })({ "cssTextList": [ "._toast-container_9119l_1{position:fixed;top:50%;left:50%;z-index:999999;padding:12px 24px;font-size:14px;width:240px;margin-left:-120px;background:#ffb243;color:#fff;border-radius:6px}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._bili-video-card_14zjz_1{position:relative}._image-wrapper_14zjz_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_14zjz_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._watch-later_14zjz_21{z-index:3}._badge_14zjz_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_14zjz_32{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_14zjz_47{color:default}._btn-dislike_14zjz_50{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_14zjz_50 ._btn-dislike-icon_14zjz_65{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_14zjz_50 ._btn-dislike-tip_14zjz_72{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_14zjz_87{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_14zjz_87{border:1px solid #333}._disliked-wrapper_14zjz_87 ._dislike-content-cover_14zjz_101{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_14zjz_87 ._dislike-content-cover_14zjz_101 ._dislike-content-cover-inner_14zjz_107{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_14zjz_87 ._dislike-content-cover_14zjz_101 ._dislike-content-cover-inner_14zjz_107 ._dislike-icon_14zjz_118{color:inherit}._disliked-wrapper_14zjz_87 ._dislike-content-cover_14zjz_101 ._dislike-content-cover-inner_14zjz_107 ._dislike-reason_14zjz_121{font-size:20px;text-align:center}._disliked-wrapper_14zjz_87 ._dislike-content-cover_14zjz_101 ._dislike-content-cover-inner_14zjz_107 ._dislike-desc_14zjz_125{font-size:16px;text-align:center}._disliked-wrapper_14zjz_87 ._dislike-content-action_14zjz_129{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_14zjz_87 ._dislike-content-action_14zjz_129{border-top:1px solid #333}._disliked-wrapper_14zjz_87 ._dislike-content-action_14zjz_129 button{font-size:18px;color:inherit}._modal-mask_vh629_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_vh629_1{width:500px;max-height:calc(80vh - 50px);border-radius:10px;overflow:hidden;background-color:#fff;padding:0 15px 15px;display:flex;flex-direction:column}._modal_vh629_1 ._modal-header_vh629_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal_vh629_1 ._modal-header_vh629_23 ._modal-title_vh629_30{font-size:1.5rem;margin-bottom:0;line-height:1.5}._modal_vh629_1 ._modal-header_vh629_23 ._title-desc_vh629_35{margin-left:5px;font-size:40%}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{margin-left:10px}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_vh629_1 ._modal-body_vh629_57{padding-top:0;flex-grow:1;overflow-y:scroll}._reason-list_vh629_62{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_vh629_62{color:inherit;width:45%;text-align:center;line-height:20px;border:1px solid #eee;margin-top:8px;margin-bottom:8px;padding-top:5px;padding-bottom:5px}body.dark ._reason_vh629_62{border:1px solid #333}._modal-mask_1urmj_1{position:fixed;left:0;top:0;right:0;bottom:0;z-index:11000;background-color:#00000080;display:flex;align-items:center;justify-content:center}._modal-mask_1urmj_1._narrow-mode_1urmj_13{background-color:#000000e6}._modal_1urmj_1{width:calc(100vw - 30px);height:calc(100vh - 30px);border-radius:10px;overflow:hidden;background-color:#fff;padding:0 0 15px 15px;display:flex;flex-direction:column}body.dark ._modal_1urmj_1{border:1px solid #fb7299}._modal_1urmj_1._narrow-mode_1urmj_13{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_1urmj_1._narrow-mode_1urmj_13{border:none}._modal_1urmj_1 ._modal-header_1urmj_38{padding-top:10px;padding-bottom:10px;border-bottom:none;padding-right:15px;display:flex;align-items:center}._modal_1urmj_1 ._modal-header_1urmj_38 ._modal-title_1urmj_46{font-size:1.5rem;margin-bottom:0;line-height:1.5}body.dark ._modal_1urmj_1 ._modal-header_1urmj_38 ._btn-refresh_1urmj_51,body.dark ._modal_1urmj_1 ._modal-header_1urmj_38 ._btn-close_1urmj_52{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_1urmj_1 ._modal-header_1urmj_38 ._btn-close_1urmj_52{margin-left:10px}._modal_1urmj_1 ._modal-header_1urmj_38 ._btn-close_1urmj_52 svg{width:10px;height:10px}._modal_1urmj_1 ._modal-body_1urmj_68{padding-top:0;flex-grow:1;overflow-y:scroll;padding-right:15px}._list_1urmj_74{color:inherit}._card_1urmj_77{border:2px solid transparent}._card_1urmj_77 .bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px)}._card_1urmj_77._active_1urmj_85{border-color:#fb7299;border-radius:6px;overflow:hidden}._video-card-list_1urmj_90{display:block!important}#_video-card-body_1urmj_1>*{display:block!important}#_video-card-body_1urmj_1._narrow-mode_1urmj_13{grid-template-columns:repeat(2,1fr)}._loader_1urmj_99{text-align:center;line-height:60px;font-size:120%}._checkbox_1urmj_104{margin-left:5px;margin-top:1px;cursor:pointer;outline:none}._checkbox_1urmj_104+label{margin-left:2px;user-select:none;cursor:pointer}._grid_20olc_1{color:default}@media (min-width: 2200px){._video-card-list_20olc_5.is-full{grid-column:span 7!important}._video-card-list_20olc_5.is-full .video-card-body.more-class1.more-class2{grid-column:span 7!important;grid-template-columns:repeat(7,1fr)!important}._video-card-list_20olc_5.is-full .video-card-body.more-class1.more-class2>*{display:block!important}._video-card-list_20olc_5.is-full .video-card-body.more-class1.more-class2>*:nth-of-type(1n + 15){display:none!important}}._expand-btn_20olc_19{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_20olc_19 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_20olc_19 svg._expanded_20olc_30{transform:rotate(0)}.primary-btn[disabled]:active,.primary-btn[disabled]:hover{cursor:wait;background-color:inherit}\n" ] }); var gh=Object.defineProperty,yh=Object.defineProperties;var bh=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var gs=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable;var Sn=(v,H,U)=>H in v?gh(v,H,{enumerable:!0,configurable:!0,writable:!0,value:U}):v[H]=U,Se=(v,H)=>{for(var U in H||(H={}))gs.call(H,U)&&Sn(v,U,H[U]);if(ut)for(var U of ut(H))ys.call(H,U)&&Sn(v,U,H[U]);return v},Oe=(v,H)=>yh(v,bh(H));var bs=(v,H)=>{var U={};for(var Z in v)gs.call(v,Z)&&H.indexOf(Z)<0&&(U[Z]=v[Z]);if(v!=null&&ut)for(var Z of ut(v))H.indexOf(Z)<0&&ys.call(v,Z)&&(U[Z]=v[Z]);return U};var Tn=(v,H,U)=>(Sn(v,typeof H!="symbol"?H+"":H,U),U);(function(v,H,U,Z,_s){"use strict";function Ae(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ft=Ae(v),Pe=Ae(H),ws=Ae(U),dt=Ae(Z),Ss=Ae(_s),Ts=typeof global=="object"&&global&&global.Object===Object&&global,xn=Ts,xs=typeof self=="object"&&self&&self.Object===Object&&self,Es=xn||xs||Function("return this")(),ee=Es,Cs=ee.Symbol,te=Cs,En=Object.prototype,Os=En.hasOwnProperty,As=En.toString,Re=te?te.toStringTag:void 0;function Ps(e){var t=Os.call(e,Re),n=e[Re];try{e[Re]=void 0;var r=!0}catch{}var i=As.call(e);return r&&(t?e[Re]=n:delete e[Re]),i}var Rs=Object.prototype,Ms=Rs.toString;function Ds(e){return Ms.call(e)}var Ls="[object Null]",Ns="[object Undefined]",Cn=te?te.toStringTag:void 0;function Te(e){return e==null?e===void 0?Ns:Ls:Cn&&Cn in Object(e)?Ps(e):Ds(e)}function xe(e){return e!=null&&typeof e=="object"}var ks="[object Symbol]";function He(e){return typeof e=="symbol"||xe(e)&&Te(e)==ks}function Fs(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=ma)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _a(e){return function(){return e}}var wa=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch{}}(),We=wa,Sa=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:_a(t),writable:!0})}:Js,Ta=Sa,xa=ba(Ta),Ea=xa,Ca=9007199254740991,Oa=/^(?:0|[1-9]\d*)$/;function gt(e,t){var n=typeof e;return t=t==null?Ca:t,!!t&&(n=="number"||n!="symbol"&&Oa.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=La}function Na(e){return e!=null&&bt(e.length)&&!Mn(e)}var ka=Object.prototype;function Fa(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ka;return e===n}function ja(e,t){for(var n=-1,r=Array(e);++n-1}function qo(e,t){var n=this.__data__,r=Ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(o)?t>1?Gn(o,t-1,n,r,i):Un(i,o):r||(i[i.length]=o)}return i}function gl(e){var t=e==null?0:e.length;return t?Gn(e,1):[]}function yl(e){return Ea(Da(e,void 0,gl),e+"")}function bl(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r=r?e:bl(e,t,n)}var wl="\\ud800-\\udfff",Sl="\\u0300-\\u036f",Tl="\\ufe20-\\ufe2f",xl="\\u20d0-\\u20ff",El=Sl+Tl+xl,Cl="\\ufe0e\\ufe0f",Ol="\\u200d",Al=RegExp("["+Ol+wl+El+Cl+"]");function Et(e){return Al.test(e)}function Pl(e){return e.split("")}var Kn="\\ud800-\\udfff",Rl="\\u0300-\\u036f",Ml="\\ufe20-\\ufe2f",Dl="\\u20d0-\\u20ff",Ll=Rl+Ml+Dl,Nl="\\ufe0e\\ufe0f",kl="["+Kn+"]",Ct="["+Ll+"]",Ot="\\ud83c[\\udffb-\\udfff]",Fl="(?:"+Ct+"|"+Ot+")",Vn="[^"+Kn+"]",Xn="(?:\\ud83c[\\udde6-\\uddff]){2}",Jn="[\\ud800-\\udbff][\\udc00-\\udfff]",jl="\\u200d",Zn=Fl+"?",Qn="["+Nl+"]?",Il="(?:"+jl+"(?:"+[Vn,Xn,Jn].join("|")+")"+Qn+Zn+")*",$l=Qn+Zn+Il,zl="(?:"+[Vn+Ct+"?",Ct,Xn,Jn,kl].join("|")+")",Bl=RegExp(Ot+"(?="+Ot+")|"+zl+$l,"g");function Hl(e){return e.match(Bl)||[]}function Wl(e){return Et(e)?Hl(e):Pl(e)}function Ul(){this.__data__=new ae,this.size=0}function Yl(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Gl(e){return this.__data__.get(e)}function Kl(e){return this.__data__.has(e)}var Vl=200;function Xl(e,t){var n=this.__data__;if(n instanceof ae){var r=n.__data__;if(!Le||r.lengtho))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,h=n&bc?new Ke:void 0;for(s.set(e,t),s.set(t,e);++f=t||j<0||f&&z>=s}function b(){var C=Dt();if(y(C))return P(C);o=setTimeout(b,g(C))}function P(C){return o=void 0,d&&r?h(C):(r=i=void 0,a)}function D(){o!==void 0&&clearTimeout(o),l=0,r=c=i=o=void 0}function T(){return o===void 0?a:P(Dt())}function x(){var C=Dt(),j=y(C);if(r=arguments,i=this,c=C,j){if(o===void 0)return p(c);if(f)return clearTimeout(o),o=setTimeout(b,t),h(c)}return o===void 0&&(o=setTimeout(b,t)),a}return x.cancel=D,x.flush=T,x}function Zc(e,t){return hr(e,t)}function Qc(e,t,n,r){if(!ce(e))return e;t=Ge(t,e);for(var i=-1,s=t.length,a=s-1,o=e;o!=null&&++ieu)return n;do t%2&&(n+=e),t=tu(t/2),t&&(e+=e);while(t);return n}var nu=Gc("length"),ru=nu,mr="\\ud800-\\udfff",iu="\\u0300-\\u036f",su="\\ufe20-\\ufe2f",au="\\u20d0-\\u20ff",ou=iu+su+au,lu="\\ufe0e\\ufe0f",cu="["+mr+"]",Lt="["+ou+"]",Nt="\\ud83c[\\udffb-\\udfff]",uu="(?:"+Lt+"|"+Nt+")",gr="[^"+mr+"]",yr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",fu="\\u200d",_r=uu+"?",wr="["+lu+"]?",du="(?:"+fu+"(?:"+[gr,yr,br].join("|")+")"+wr+_r+")*",hu=wr+_r+du,pu="(?:"+[gr+Lt+"?",Lt,yr,br,cu].join("|")+")",Sr=RegExp(Nt+"(?="+Nt+")|"+pu+hu,"g");function vu(e){for(var t=Sr.lastIndex=0;Sr.test(e);)++t;return t}function Tr(e){return Et(e)?vu(e):ru(e)}var mu=Math.ceil;function gu(e,t){t=t===void 0?" ":ht(t);var n=t.length;if(n<2)return n?vr(t,e):t;var r=vr(t,mu(e/Tr(t)));return Et(t)?_l(Wl(r),0,e).join(""):r.slice(0,e)}function yu(e,t,n){e=Wn(e),t=Xs(t);var r=t?Tr(e):0;return t&&re&&(It.has(e)?It.get(e):jt(e)===Object.prototype||jt(e)===Array.prototype),$t=e=>typeof e=="object"&&e!==null,xu=(e,t)=>{let n=!1;const r=(s,a,o)=>{if(!n){let c=s.a.get(e);c||(c=new Set,s.a.set(e,c)),o&&c.has(kt)||c.add(a)}},i={f:t,get(s,a){return a===Ft?e:(r(this,a),Cr(s[a],this.a,this.c))},has(s,a){return a===Tu?(n=!0,this.a.delete(e),!0):(r(this,a),a in s)},getOwnPropertyDescriptor(s,a){return r(this,a,!0),Object.getOwnPropertyDescriptor(s,a)},ownKeys(s){return r(this,kt),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),i},Cr=(e,t,n)=>{if(!Er(e))return e;const r=e[Ft]||e,i=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(o=>!o.writable))(r);let s=n&&n.get(r);return s&&s.f===i||(s=xu(r,i),s.p=new Proxy(i?(a=>{if(Array.isArray(a))return Array.from(a);const o=Object.getOwnPropertyDescriptors(a);return Object.values(o).forEach(c=>{c.configurable=!0}),Object.create(jt(a),o)})(r):r,s),n&&n.set(r,s)),s.a=t,s.c=n,s.p},Eu=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some((i,s)=>i!==r[s])},Or=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!$t(e)||!$t(t))return!0;const i=n.get(e);if(!i)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let s=null;for(const a of i){const o=a===kt?Eu(e,t):Or(e[a],t[a],n,r);if(o!==!0&&o!==!1||(s=o),s)break}return s===null&&(s=!0),r&&r.set(e,{n:t,g:s}),s},Cu=e=>Er(e)&&e[Ft]||null,Ar=(e,t)=>{It.set(e,t)},Ou=(e,t)=>{const n=[],r=new WeakSet,i=(s,a)=>{if(r.has(s))return;$t(s)&&r.add(s);const o=t.get(s);o?o.forEach(c=>{i(s[c],a?[...a,c]:[c])}):a&&n.push(a)};return i(e),n};var Au=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pr={exports:{}},Rr={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ee=ft.default;function Pu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ru=typeof Object.is=="function"?Object.is:Pu,Mu=Ee.useState,Du=Ee.useEffect,Lu=Ee.useLayoutEffect,Nu=Ee.useDebugValue;function ku(e,t){var n=t(),r=Mu({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return Lu(function(){i.value=n,i.getSnapshot=t,zt(i)&&s({inst:i})},[e,n,t]),Du(function(){return zt(i)&&s({inst:i}),e(function(){zt(i)&&s({inst:i})})},[e]),Nu(n),n}function zt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ru(e,n)}catch{return!0}}function Fu(e,t){return t()}var ju=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Fu:ku;Rr.useSyncExternalStore=Ee.useSyncExternalStore!==void 0?Ee.useSyncExternalStore:ju,Pr.exports=Rr;var Iu=Pr.exports;const $u=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),ne=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),Xe=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),zu=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),Ne=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),Mr=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),Dr=new WeakSet,Bt=e=>typeof e=="object"&&e!==null,Bu=e=>Bt(e)&&!Dr.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),Lr=new WeakMap;let Nr=1;const kr=new WeakMap;function Je(e={}){if(!Bt(e))throw new Error("object required");const t=Lr.get(e);if(t)return t;let n=Nr;const r=new Set,i=(d,h=++Nr)=>{n!==h&&(n=h,r.forEach(p=>p(d,h)))},s=new Map,a=d=>{let h=s.get(d);return h||(h=(p,g)=>{const y=[...p];y[1]=[d,...y[1]],i(y,g)},s.set(d,h)),h},o=d=>{const h=s.get(d);return s.delete(d),h},c=(d,h)=>{const p=kr.get(h);if((p==null?void 0:p[0])===n)return p[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return Ar(g,!0),kr.set(h,[n,g]),Reflect.ownKeys(d).forEach(y=>{const b=Reflect.get(d,y,h);if(Dr.has(b))Ar(b,!1),g[y]=b;else if(b instanceof Promise)if(Ne in b)g[y]=b[Ne];else{const P=b[Mr]||b;Object.defineProperty(g,y,{get(){if(Ne in b)return b[Ne];throw P}})}else b!=null&&b[ne]?g[y]=b[Xe]:g[y]=b}),Object.freeze(g),g},l=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),u={get(d,h,p){return h===$u?n:h===ne?r:h===Xe?c(d,p):h===zu?u:Reflect.get(d,h,p)},deleteProperty(d,h){const p=Reflect.get(d,h),g=p==null?void 0:p[ne];g&&g.delete(o(h));const y=Reflect.deleteProperty(d,h);return y&&i(["delete",[h],p]),y},is:Object.is,canProxy:Bu,set(d,h,p,g){var y;const b=Reflect.has(d,h),P=Reflect.get(d,h,g);if(b&&this.is(P,p))return!0;const D=P==null?void 0:P[ne];D&&D.delete(o(h)),Bt(p)&&(p=Cu(p)||p);let T;return(y=Object.getOwnPropertyDescriptor(d,h))!=null&&y.set?T=p:p instanceof Promise?T=p.then(x=>(T[Ne]=x,i(["resolve",[h],x]),x)).catch(x=>{T[Mr]=x,i(["reject",[h],x])}):p!=null&&p[ne]?(T=p,T[ne].add(a(h))):this.canProxy(p)?(T=Je(p),T[ne].add(a(h))):T=p,Reflect.set(d,h,T,g),i(["set",[h],p,P]),!0}},f=new Proxy(l,u);return Lr.set(e,f),Reflect.ownKeys(e).forEach(d=>{const h=Object.getOwnPropertyDescriptor(e,d);h.get||h.set?Object.defineProperty(l,d,h):f[d]=e[d]}),f}function Fr(e,t,n){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[ne])&&console.warn("Please use proxy object");let r;const i=[],s=a=>{if(i.push(a),n){t(i.splice(0));return}r||(r=Promise.resolve().then(()=>{r=void 0,t(i.splice(0))}))};return e[ne].add(s),()=>{e[ne].delete(s)}}function jr(e){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(e!=null&&e[Xe])&&console.warn("Please use proxy object"),e[Xe]}const{useSyncExternalStore:Hu}=Iu,Wu=(e,t)=>{const n=v.useRef();v.useEffect(()=>{n.current=Ou(e,t)}),v.useDebugValue(n.current)};function Ht(e,t){const n=t==null?void 0:t.sync,r=v.useRef(),i=v.useRef();let s=!0;const a=Hu(v.useCallback(l=>{const u=Fr(e,l,n);return l(),u},[e,n]),()=>{const l=jr(e);try{if(!s&&r.current&&i.current&&!Or(r.current,l,i.current,new WeakMap))return r.current}catch{}return l},()=>jr(e));s=!1;const o=new WeakMap;v.useEffect(()=>{r.current=a,i.current=o}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Wu(a,o);const c=v.useMemo(()=>new WeakMap,[]);return Cr(a,o,c)}const Ir={accessKey:"",useNarrowMode:!1,initialShowMore:!1},$r=Object.keys(Ir),re=Je(Ir),Wt=function(){return Ht(re)},zr="bilibili-app-recommend.config";function Uu(){const e=GM_getValue(zr);e&&typeof e=="object"&&Object.assign(re,xr(e,$r)),Fr(re,()=>{Yu()})}function Yu(){GM_setValue(zr,xr(re,$r))}function Br(e){Object.assign(re,e)}Uu();var Ut={exports:{}};const Gu=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Hr=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Wr=({clearTimeout:e,setTimeout:t,willResolve:n})=>(r,{value:i,signal:s}={})=>{if(s&&s.aborted)return Promise.reject(Hr());let a,o,c;const l=e||clearTimeout,u=()=>{l(a),c(Hr())},f=()=>{s&&s.removeEventListener("abort",u)},d=new Promise((h,p)=>{o=()=>{f(),n?h(i):p(i)},c=p,a=(t||setTimeout)(o,r)});return s&&s.addEventListener("abort",u,{once:!0}),d.clear=()=>{l(a),a=null,o()},d},Ur=e=>{const t=Wr(Oe(Se({},e),{willResolve:!0}));return t.reject=Wr(Oe(Se({},e),{willResolve:!1})),t.range=(n,r,i)=>t(Gu(n,r),i),t},Yt=Ur();Yt.createWithTimers=Ur,Ut.exports=Yt,Ut.exports.default=Yt;var Yr=Ut.exports,Gt,Ku=ws.default;Gt=Ku.createRoot;var Vu=function(t){return function(n,r){var i=v.useRef(!1);t(function(){return function(){i.current=!1}},[]),t(function(){if(!i.current)i.current=!0;else return n()},r)}},Kt=function(t){return typeof t=="function"},Xu=function(t){return typeof t=="string"},Gr=function(t){return typeof t=="number"};function W(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var n=v.useRef();return n.current||(n.current=function(){for(var r=[],i=0;i0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},Kr=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t-1&&(s=setTimeout(function(){Qe.delete(t)},n)),Qe.set(t,Ze(Ze({},r),{timer:s}))},ef=function(t){return Qe.get(t)},qe=new Map,tf=function(t){return qe.get(t)},nf=function(t,n){qe.set(t,n),n.then(function(r){return qe.delete(t),r}).catch(function(){qe.delete(t)})},me={},rf=function(t,n){me[t]&&me[t].forEach(function(r){return r(n)})},Jt=function(t,n){return me[t]||(me[t]=[]),me[t].push(n),function(){var i=me[t].indexOf(n);me[t].splice(i,1)}},sf=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},af=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},uf=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},_f=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},Pf=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},kf=function(){var t=Nf(v.useState({}),2),n=t[1];return v.useCallback(function(){return n({})},[])},Ff=kf,fe=globalThis&&globalThis.__assign||function(){return fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},Ce=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},Zr=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},Kf=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s};function qr(e,t){e===void 0&&(e=!1);var n=Vf(v.useState(e),2),r=n[0],i=n[1],s=v.useMemo(function(){var a=t===void 0?!e:t,o=function(){return i(function(d){return d===e?a:e})},c=function(d){return i(d)},l=function(){return i(e)},u=function(){return i(a)};return{toggle:o,set:c,setLeft:l,setRight:u}},[]);return[r,s]}var Xf=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s};function Jf(e){e===void 0&&(e=!1);var t=Xf(qr(e),2),n=t[0],r=t[1],i=r.toggle,s=r.set,a=v.useMemo(function(){var o=function(){return s(!0)},c=function(){return s(!1)};return{toggle:i,set:function(u){return s(!!u)},setTrue:o,setFalse:c}},[]);return[n,a]}var Zf=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Qf=Zf;function tt(e,t){if(!!Qf){if(!e)return t;var n;return Kt(e)?n=e():"current"in e?n=e.current:n=e,n}}var qf=function(t){var n=function(i,s,a){var o=v.useRef(!1),c=v.useRef([]),l=v.useRef([]),u=v.useRef();t(function(){var f,d=Array.isArray(a)?a:[a],h=d.map(function(p){return tt(p)});if(!o.current){o.current=!0,c.current=h,l.current=s,u.current=i();return}(h.length!==c.current.length||!Xt(h,c.current)||!Xt(s,l.current))&&((f=u.current)===null||f===void 0||f.call(u),c.current=h,l.current=s,u.current=i())}),Fe(function(){var f;(f=u.current)===null||f===void 0||f.call(u),o.current=!1})};return n},ed=qf,td=ed(v.useEffect),ei=td,ti={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Au,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",c="hour",l="day",u="week",f="month",d="quarter",h="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},D=function(E,S,_){var O=String(E);return!O||O.length>=S?E:""+Array(S+1-O.length).join(_)+E},T={s:D,z:function(E){var S=-E.utcOffset(),_=Math.abs(S),O=Math.floor(_/60),w=_%60;return(S<=0?"+":"-")+D(O,2,"0")+":"+D(w,2,"0")},m:function E(S,_){if(S.date()<_.date())return-E(_,S);var O=12*(_.year()-S.year())+(_.month()-S.month()),w=S.clone().add(O,f),A=_-w<0,R=S.clone().add(O+(A?-1:1),f);return+(-(O+(_-w)/(A?w-R:R-w))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:f,y:h,w:u,d:l,D:p,h:c,m:o,s:a,ms:s,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},x="en",C={};C[x]=P;var j=function(E){return E instanceof K},z=function E(S,_,O){var w;if(!S)return x;if(typeof S=="string"){var A=S.toLowerCase();C[A]&&(w=A),_&&(C[A]=_,w=A);var R=S.split("-");if(!w&&R.length>1)return E(R[0])}else{var N=S.name;C[N]=S,w=N}return!O&&w&&(x=w),w||!O&&x},k=function(E,S){if(j(E))return E.clone();var _=typeof S=="object"?S:{};return _.date=E,_.args=arguments,new K(_)},L=T;L.l=z,L.i=j,L.w=function(E,S){return k(E,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var K=function(){function E(_){this.$L=z(_.locale,null,!0),this.parse(_)}var S=E.prototype;return S.parse=function(_){this.$d=function(O){var w=O.date,A=O.utc;if(w===null)return new Date(NaN);if(L.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var R=w.match(y);if(R){var N=R[2]-1||0,B=(R[7]||"0").substring(0,3);return A?new Date(Date.UTC(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,B)):new Date(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,B)}}return new Date(w)}(_),this.$x=_.x||{},this.init()},S.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},S.$utils=function(){return L},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(_,O){var w=k(_);return this.startOf(O)<=w&&w<=this.endOf(O)},S.isAfter=function(_,O){return k(_)0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},en=function(e,t){var n=t||{},r=n.onEnter,i=n.onLeave,s=nd(Jf(!1),2),a=s[0],o=s[1],c=o.setTrue,l=o.setFalse;return qt("mouseenter",function(){r==null||r(),c()},{target:e}),qt("mouseleave",function(){i==null||i(),l()},{target:e}),a},rd=function(t,n){return n===void 0&&(n=[]),Zc(t,n)},id=function(t,n,r){var i=v.useRef(),s=v.useRef(0);rd(n,i.current)||(i.current=n,s.current+=1),ei(t,[s.current],r)},sd=id,tn=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ad={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},nn={ctrl:function(t){return t.ctrlKey},shift:function(t){return t.shiftKey},alt:function(t){return t.altKey},meta:function(t){return t.metaKey}};function od(e){var t=Object.keys(nn).reduce(function(n,r){return nn[r](e)?n+1:n},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function ri(e,t,n){var r,i;if(!e.key)return!1;if(Gr(t))return e.keyCode===t;var s=t.split("."),a=0;try{for(var o=tn(s),c=o.next();!c.done;c=o.next()){var l=c.value,u=nn[l],f=ad[l.toLowerCase()];(u&&u(e)||f&&f===e.keyCode)&&a++}}catch(d){r={error:d}}finally{try{c&&!c.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return n?a===s.length&&od(e)===s.length:a===s.length}function ld(e,t){return Kt(e)?e:Xu(e)||Gr(e)?function(n){return ri(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return ri(n,r,t)})}:e?function(){return!0}:function(){return!1}}var cd=["keydown"];function ge(e,t,n){var r=n||{},i=r.events,s=i===void 0?cd:i,a=r.target,o=r.exactMatch,c=o===void 0?!1:o,l=ke(t),u=ke(e);sd(function(){var f,d,h,p=tt(a,window);if(!!p){var g=function(T){var x,C=ld(u.current,c);if(C(T))return(x=l.current)===null||x===void 0?void 0:x.call(l,T)};try{for(var y=tn(s),b=y.next();!b.done;b=y.next()){var P=b.value;(h=p==null?void 0:p.addEventListener)===null||h===void 0||h.call(p,P,g)}}catch(D){f={error:D}}finally{try{b&&!b.done&&(d=y.return)&&d.call(y)}finally{if(f)throw f.error}}return function(){var D,T,x;try{for(var C=tn(s),j=C.next();!j.done;j=C.next()){var z=j.value;(x=p==null?void 0:p.removeEventListener)===null||x===void 0||x.call(p,z,g)}}catch(k){D={error:k}}finally{try{j&&!j.done&&(T=C.return)&&T.call(C)}finally{if(D)throw D.error}}}}},[s],a)}var ud=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s};function fd(e){var t=v.useRef(0),n=ud(v.useState(e),2),r=n[0],i=n[1],s=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return Fe(function(){cancelAnimationFrame(t.current)}),[r,s]}var dd=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){a={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s},hd={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},pd=function(e){var t=dd(fd(hd),2),n=t[0],r=t[1];return qt("mousemove",function(i){var s=i.screenX,a=i.screenY,o=i.clientX,c=i.clientY,l=i.pageX,u=i.pageY,f={screenX:s,screenY:a,clientX:o,clientY:c,pageX:l,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},d=tt(e);if(d){var h=d.getBoundingClientRect(),p=h.left,g=h.top,y=h.width,b=h.height;f.elementPosX=p+window.pageXOffset,f.elementPosY=g+window.pageYOffset,f.elementX=l-f.elementPosX,f.elementY=u-f.elementPosY,f.elementW=y,f.elementH=b}r(f)},{target:function(){return document}}),n},ii={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r)}catch{}}return e});async function md(){return(await nt.get(si+"/x/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}async function gd(){return sn(2)}async function sn(e){const t=new Array(e).fill(0).map(i=>md());let r=(await Promise.all(t)).reduce((i,s)=>i.concat(s),[]);return r=yd(r),r.map(i=>Oe(Se({},i),{uniqId:i.param+"-"+crypto.randomUUID()}))}function yd(e){const t=new Set;return e=e.filter(n=>{const{param:r}=n;return t.has(r)?(console.log("[bilibili-app-recommend]: [uniqRecList]: duplicate",n),!1):(t.add(r),!0)}),e}const ai="_toast-container_9119l_1";var wh={toastContainer:ai};function le(e,t=2e3){const n=Pe.default(`
${e}
`);n.appendTo(document.body),setTimeout(()=>n.remove(),t)}const bd="\u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!",_d="\u64CD\u4F5C\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!";function oi(){return le(bd)}function li(){return le(_d)}async function wd(){var c,l;const t=(await dt.default.get("https://passport.bilibili.com/login/app/third",{params:{appkey:"27eb53fc9058f8c3",api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:t};if(!((l=t==null?void 0:t.data)!=null&&l.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:t};const n=t.data.confirm_uri;let r;const i=new Promise(u=>{window.addEventListener("message",d=>{if(d.origin!="https://www.mcbbs.net"||!d.data)return;const h=d.data.match(/access_key=([0-9a-z]{32})/);if(!h||!h[1])return u({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});u(h[1])});let f=Number(GM_getValue("authTimeout")||10);isNaN(f)&&(f=10),console.log("[bilibili-app-recommend]: authTimeout = %s(s)",f),r=setTimeout(()=>{u({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},f*1e3)}),s=Pe.default(`